joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417140
Capabilities:
Create thread
Initialize winsock library

Disassembly:
sub esp, 0x3e4
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x3e0], eax
mov eax, dword [esp + 0x3e8]
push edi
push 0
push eax
push 0
push 0
push 0
push closesocket
push 0
push closesocket
push 0xcf0000
push 0x4276d0
push 0x427608
push 0
mov dword [0x427798], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x417314
push 0x206
lea eax, [esp + 0x1de]
push 0
push eax
mov word [esp + 0x1e4], 0
call fcn.004054f0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
mov edi, 0x427f58
call fcn.0040e0f0
add esp, 4
test eax, eax
jne 0x4172c9
push 0x3a
push eax
lea edx, [esp + 0x1a6]
push edx
mov word [esp + 0x1a8], ax
call fcn.004054f0
add esp, 0xc
lea edi, [esp + 0x19c]
call fcn.00415cc0
xor eax, eax
jmp 0x417210
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x428100], cx
add eax, 2
test cx, cx
jne 0x417210
push 0x423328
push 0x40
push 0x427f5c
call fcn.00401201
add esp, 0xc
push 0x423344
push 0x10
push 0x427fde
mov word [0x427fdc], 0x51
call fcn.00401201
add esp, 0xc
push 0x423350
push 0x40
push 0x427ffe
call fcn.00401201
add esp, 0xc
mov word [0x42807e], 0x2b66
xor eax, eax
jmp 0x417280
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x4280e0], cx
add eax, 2
test cx, cx
jne 0x417280
mov eax, 0x4280e0
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4172a0
mov ecx, dword [0x42336c]
mov dx, word [0x423370]
mov dword [eax], ecx
mov word [eax + 4], dx
mov dword [0x428120], 5
call fcn.00416e70
lea edi, [esp + 0x1d8]
call fcn.00415cc0
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x1d8]
mov word [eax + 0x428158], cx
add eax, 2
test cx, cx
jne 0x4172e0
push 0x428158
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x41732c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.00401148
add esp, 0x3e4
ret
push 0x428158
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x417314
mov ecx, 0x4285f0
call fcn.00416fb0
mov eax, dword [0x428124]
push 0
push 0
push 0
push 0x415c00
push 0
push 0
mov dword [0x4285f8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x3e4]
pop edi
mov dword [0x426660], eax
xor ecx, esp
mov eax, 1
call fcn.00401148
add esp, 0x3e4
ret
Function at 0x417390
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push ebx
mov edi, eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4173c3
mov eax, ebx
call fcn.00414f50
cmp eax, edi
jne 0x4173c3
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x200000
call fcn.00401743
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 4
push ebp
push eax
lea edx, [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x1c], 0x200000
call fcn.00418070
add esp, 8
test eax, eax
je 0x41748e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00401d14
add esp, 4
call fcn.00401d21
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [0x423618]
fmul qword [0x423640]
fadd qword [0x423638]
call fcn.00418310
mov esi, dword [esp + 0x14]
lea ebx, [esi + ebp]
mov edi, eax
call fcn.00414e60
add edi, esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
call fcn.0040dfa0
mov esi, eax
cmp esi, 0xffffffff
je 0x41748c
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
cmp eax, edi
jne 0x41746b
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
jne 0x41748c
push ebp
mov esi, ebx
call fcn.00401d43
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor esi, esi
push ebp
call fcn.00401d43
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x417730
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x4276d0
push 0x67
push esi
call edi
push 0x64
push 0x427608
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00416f20
mov eax, dword [ebp + 0x10]
mov edx, 0x4281d8
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x417780
call fcn.00414fb0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
mov dword [0x4260c0], eax
call edi
call fcn.00416380
test eax, eax
je 0x4177bc
call fcn.00414cb0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call fcn.00417140
add esp, 4
test eax, eax
jne 0x4177df
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.00401148
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.004054f0
mov eax, dword [0x427e20]
add esp, 0xc
test eax, eax
jbe 0x417832
cmp word [0x427e24], 0
jbe 0x417832
push eax
mov esi, 0x426668
call fcn.004150b0
mov cx, word [0x427e24]
add esp, 4
mov word [0x426678], cx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, 0x10624dd3
mul edx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push 0x422fc4
mov edx, 0x4283e8
call fcn.00401000
call fcn.00416130
lea esi, [esp + 0x10]
call fcn.004154c0
push 0x422fdc
mov edx, esi
push 0x104
push edx
call fcn.00401187
add esp, 0x14
push 0x4283e8
mov eax, esi
push 0x104
push eax
call fcn.00401187
add esp, 0xc
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4178c2
push 0x1f4
call edi
push 1
push 0
push 0x422fe0
mov edx, esi
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call edi
call fcn.004174b0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x417da0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, eax
xor ebp, ebp
cmp esi, 0xffffffff
push edi
mov dword [esp + 0x14], ebp
je 0x417fc2
push 0x400
call fcn.00401fcc
add esp, 4
push 0x400
mov ebx, eax
push ebp
push ebx
mov dword [esp + 0x24], ebx
call fcn.004054f0
add esp, 0xc
push esi
call fcn.00414960
add esp, 4
push ebx
push eax
call fcn.00414c50
add esp, 8
test eax, eax
je 0x417fb5
lea edi, [ebx + 4]
mov eax, 4
mov ecx, 0x422150
mov edx, edi
mov ebp, dword [edx]
cmp ebp, dword [ecx]
jne 0x417e1c
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x417e04
test eax, eax
je 0x417e85
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x417e6b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x417e81
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x417e6b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x417e81
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x417e6b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x417e81
movzx eax, byte [ecx]
movzx ebx, byte [edx]
sub ebx, eax
je 0x417e81
mov ebp, dword [esp + 0x14]
test ebx, ebx
mov ebx, dword [esp + 0x18]
mov eax, 1
jg 0x417e8b
or eax, 0xffffffff
jmp 0x417e8b
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
xor eax, eax
test eax, eax
jne 0x417eb5
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
jmp 0x417ea0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417ea0
sub eax, edx
sar eax, 1
jne 0x417fa1
lea ecx, [esp + 0x1c]
push ecx
xor eax, eax
lea edx, [esp + 0x1c]
push edx
push 0x400
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 0x3c00
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417fb5
mov eax, 4
mov ecx, 0x422158
mov edx, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x417f1e
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x417f06
test eax, eax
je 0x417f7b
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x417f6d
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x417f7b
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x417f6d
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x417f7b
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x417f6d
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x417f7b
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x417f7b
test esi, esi
mov eax, 1
jg 0x417f7d
or eax, 0xffffffff
jmp 0x417f7d
xor eax, eax
test eax, eax
jne 0x417fb5
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417f90
sub eax, edx
sar eax, 1
je 0x417fb5
mov edi, dword [esp + 0x34]
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ebp, 1
test ebx, ebx
je 0x417fc2
push ebx
call fcn.00401dd1
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x417fd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.004054f0
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx edx, word [esp + 8]
sub edx, 0x41
lea ebx, [esp + 4]
call fcn.00414aa0
mov ebx, dword [esp + 4]
call fcn.00414ba0
cmp eax, 0xffffffff
jne 0x41804f
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00401148
add esp, 0x218
ret
push esi
call fcn.00417da0
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.00401148
add esp, 0x218
ret
Function at 0x1017711
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x101772c
push 0x80004005
call fcn.01017172
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x101772e
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1017ecb
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10619c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], ecx
lea ecx, reloc.Secur32.dll_LsaDeregisterLogonProcess
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], esi
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], esi
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], esi
call fcn.0101766f
mov edi, eax
cmp edi, esi
je 0x1017f3d
lea ecx, reloc.Secur32.dll_LsaDeregisterLogonProcess
call fcn.010175fc
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01041ea8
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1017f5b
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
lea ecx, reloc.Secur32.dll_LsaDeregisterLogonProcess
call fcn.01017ecb
cmp eax, esi
jne 0x1017fa6
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push esi
push esi
push esi
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 0x100
call edi
test eax, eax
je 0x1017f45
lea ecx, reloc.Secur32.dll_LsaDeregisterLogonProcess
call fcn.010175fc
push dword [ebp - 0x21c]
mov ecx, dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess]
call fcn.01017576
lea ecx, reloc.Secur32.dll_LsaDeregisterLogonProcess
mov esi, eax
call fcn.010175fc
mov eax, esi
jmp 0x1017f2d

Function at 0x10183a9
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
cmp eax, esi
jne 0x10183ca
xor eax, eax
jmp 0x10183f0
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x1017e2a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
jne 0x10183ed
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x1019aa6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10619c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push 2
push edi
push eax
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], edi
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], ecx
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], edi
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
cmp eax, edi
jne 0x1019b01
call fcn.010172d4
mov esi, eax
jmp 0x1019be2
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x1019b1a
call fcn.010172d4
jmp 0x1019bd4
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x1019b10
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x1019b7f
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
cmp dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
je 0x1019b5c
lea ecx, reloc.Secur32.dll_LsaDeregisterLogonProcess
call fcn.01017daf
mov esi, 0x8007000e
lea ecx, reloc.Secur32.dll_LsaDeregisterLogonProcess
call fcn.01017cbe
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01041ea8
leave
ret 0x10
push eax
lea ecx, reloc.Secur32.dll_LsaDeregisterLogonProcess
call fcn.01018b79
cmp dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], edi
jne 0x1019b9a
mov esi, 0x8007000e
jmp 0x1019bd6
push esi
push dword [ebp - 0x408]
push esi
push ebx
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x1019b10
mov edx, dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x408]
lea ecx, reloc.Secur32.dll_LsaDeregisterLogonProcess
call fcn.01019908
mov esi, eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
cmp dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
je 0x1019b61
lea ecx, reloc.Secur32.dll_LsaDeregisterLogonProcess
call fcn.01017daf
jmp 0x1019b61
Function at 0x101c981
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 8], ecx
cmp esi, ebx
je 0x101c9a2
cmp dword [esi], ebx
je 0x101c9a2
mov ecx, dword [esi + 4]
cmp ecx, ebx
jne 0x101c9d5
mov ecx, 0x80070057
mov edi, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x101ca67
test byte [eax + 0x1c], 4
je 0x101ca67
push ecx
push 0x10029a4
push 0x1002560
push 0x2d
jmp 0x101ca58
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
call fcn.01029507
mov edi, eax
cmp edi, ebx
jge 0x101ca28
mov eax, dword [section..data]
cmp eax, section..data
je 0x101ca13
test byte [eax + 0x1c], 4
je 0x101ca13
push edi
push 0x1002560
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101b900
push dword [ebp + 8]
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.01040c90
jmp 0x101ca67
push dword [esi + 4]
mov ecx, dword [ebp - 8]
call fcn.0101c4b1
mov edi, eax
cmp edi, ebx
jge 0x101ca65
mov eax, dword [section..data]
cmp eax, section..data
je 0x101ca67
test byte [eax + 0x1c], 4
je 0x101ca67
push edi
push 0x1002958
push 0x1002560
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104e22f
jmp 0x101ca67
xor edi, edi
cmp esi, ebx
je 0x101ca82
mov eax, dword [esi]
cmp eax, ebx
je 0x101ca82
add eax, 0xc5c
cmp word [eax], bx
je 0x101ca82
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
push esi
call fcn.0101bce7
mov ecx, 0x1061f28
call fcn.0101989f
xor eax, eax
cmp edi, ebx
pop edi
pop esi
setge al
pop ebx
leave
ret 4

Function at 0x101dd62
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
cmp dword [esi + reloc.Secur32.dll_LsaDeregisterLogonProcess], 0
jne 0x101dd9b
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [esi + 0x48]
call edi
mov eax, dword [esi + 0x44]
test eax, eax
je 0x101dd8e
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x101dd9a
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x101dd9a
push 0
push eax
call edi
pop edi
and dword [esi + 0xc], 0
pop esi
ret

Function at 0x101faa7
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
cmp dword [esi + reloc.Secur32.dll_LsaDeregisterLogonProcess], 0
push edi
jne 0x101faf2
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x48]
call edi
mov eax, dword [esi + 0x44]
test eax, eax
je 0x101fad6
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 0x44]
jmp 0x101faf5
mov ecx, esi
call fcn.0101e98a
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x101faee
push 5
push eax
call edi
mov eax, dword [esi + 0x4c]
jmp 0x101faf5
xor eax, eax
jmp 0x101faf5
mov eax, dword [esi + 4]
push eax
mov ecx, esi
mov dword [esi + 0xc], 1
call fcn.0101f9fb
pop edi
pop esi
ret
Function at 0x1021242
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x10619c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
test eax, eax
je 0x1021281
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x20000000
je 0x1021281
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, 0x100
push edi
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push 0xbb7
push dword [esi + 0x2c]
call fcn.0105a165
test eax, eax
jne 0x10212b1
push 0x100359c
push edi
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
call fcn.0101b116
push dword [ebp + 0xc]
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push edi
push eax
call fcn.0101b185
mov esi, dword [esi + 4]
add esp, 0x10
push 0x10010
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push ebx
push esi
call fcn.01059d79
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1021308
test byte [eax + 0x1c], 2
je 0x1021308
push esi
push 0x1002c24
push 0x73
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101b900
pop edi
mov eax, esi
dec eax
pop esi
pop ebx
je 0x102131f
dec eax
dec eax
je 0x102131f
dec eax
jne 0x102132e
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x102132e
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01041ea8
leave
ret 8
Function at 0x10264fc
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
inc ebx
push edi
mov dword [ebp - 4], ebx
xor esi, esi
call fcn.01025d54
test eax, eax
je 0x1026521
mov eax, ebx
jmp 0x102664e
test edi, edi
je 0x102664b
push 0x5c
pop ebx
cmp word [edi], bx
jne 0x1026590
cmp word [edi + 2], bx
jne 0x1026590
push 2
pop esi
movzx eax, word [edi + esi*2]
test ax, ax
je 0x1026549
inc esi
cmp ax, bx
jne 0x102653a
cmp word [edi + esi*2], 0
jne 0x102657c
mov eax, dword [section..data]
cmp eax, section..data
je 0x1026575
test byte [eax + 0x1c], 4
je 0x1026575
push edi
push 0x1003cdc
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010170e7
xor eax, eax
jmp 0x102664e
cmp word [edi + esi*2 + 2], 0x24
jne 0x10265af
cmp word [edi + esi*2 + 4], bx
jne 0x10265af
add esi, 3
jmp 0x10265af
movzx eax, word [edi + esi*2]
test ax, ax
je 0x10265a0
inc esi
cmp ax, 0x3a
jne 0x1026590
movzx eax, word [edi + esi*2]
test ax, ax
je 0x10265fa
cmp ax, bx
jne 0x10265fa
inc esi
lea esi, [edi + esi*2]
movzx eax, word [esi]
test ax, ax
je 0x1026621
cmp ax, bx
jne 0x10265f0
xor eax, eax
push edi
mov word [esi], ax
call fcn.01025d54
test eax, eax
jne 0x10265eb
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10265eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10265eb
and dword [ebp - 4], 0
mov eax, ebx
mov word [esi], ax
inc esi
inc esi
cmp dword [ebp - 4], 0
jne 0x10265b2
jmp 0x1026627
mov eax, dword [section..data]
cmp eax, section..data
je 0x1026575
test byte [eax + 0x1c], 4
je 0x1026575
push edi
push 0x1003cdc
push 0x32
jmp 0x102656a
cmp dword [ebp - 4], 0
jne 0x102664b
mov eax, dword [section..data]
cmp eax, section..data
je 0x102664b
test byte [eax + 0x1c], 4
je 0x102664b
push 0x1003cdc
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01017c98
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1029095
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp + 0x14]
push eax
push 0x20019
push 0
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, 2
je 0x102916e
cmp esi, 5
je 0x102916e
test esi, esi
je 0x10290ed
mov eax, dword [section..data]
cmp eax, section..data
je 0x102914e
test byte [eax + 0x1c], 4
je 0x102914e
push esi
push 0x10044b8
push 0x10043c8
push 0x12
jmp 0x1029143
push 4
pop ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
je 0x102916e
cmp esi, 5
je 0x102916e
test esi, esi
je 0x1029160
mov eax, dword [section..data]
cmp eax, section..data
je 0x102914e
test byte [eax + 0x1c], bl
je 0x102914e
push esi
push 0x1004488
push 0x10043c8
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104e22f
test esi, esi
jle 0x1029171
and esi, 0xffff
or esi, 0x80070000
jmp 0x1029171
cmp dword [ebp - 4], ebx
jne 0x102916e
cmp dword [ebp + 8], ebx
jne 0x102916e
xor esi, esi
jmp 0x1029171
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1031cd4
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0xc]
push eax
push 2
xor esi, esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1031d0d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1031d04
inc esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret 0xc