joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ca60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40ca87
xor eax, eax
jmp 0x40cb07
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ca9e
xor eax, eax
jmp 0x40cb07
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x40caea
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jae 0x40caea
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx*2 + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x14], eax
jmp 0x40cac1
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x40caf6
xor eax, eax
jmp 0x40cb07
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
test ecx, ecx
jne 0x40cb04
xor eax, eax
jmp 0x40cb07
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d670
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x4483b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0x234], 0
push 0x228
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.0041a970
add esp, 0xc
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40d736
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40d72c
mov eax, dword [ebp - 0x22c]
cmp eax, dword [ebp + 8]
jne 0x40d718
mov eax, dword [ebp + 0x10]
sub eax, 1
push eax
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0041b12f
add esp, 0xc
mov dword [ebp - 0x238], 1
jmp 0x40d72c
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40d6e7
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a95f
mov esp, ebp
pop ebp
ret
Function at 0x40d750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
push 1
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40d791
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x40d787
mov eax, 1
jmp 0x40d793
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d7a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x4483b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x238], 0
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.0041a970
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40d848
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40d83e
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp + 8]
jne 0x40d82a
mov eax, dword [ebp - 0x220]
mov dword [ebp - 8], eax
jmp 0x40d83e
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40d814
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a95f
mov esp, ebp
pop ebp
ret

Function at 0x40d990
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 8
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xb7
je 0x40d9d3
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 5
jne 0x40d9f4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x40d9f0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax], 0
xor al, al
jmp 0x40d9f6
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ffb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x490
mov eax, dword [0x4483b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
call fcn.0040f820
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1c]
call fcn.00412b80
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00410280
lea ecx, [ebp - 0x440]
call fcn.00413010
push 0x400
mov eax, dword [ebp + 8]
push eax
call fcn.0040fd60
add esp, 8
mov dword [ebp - 0x444], eax
push 2
push 0
mov eax, dword [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x41002e
call fcn.0040f900
mov dword [ebp - 0x20], eax
jmp 0x41015f
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x410056
call fcn.0040f900
mov dword [ebp - 0x20], eax
jmp 0x41015f
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x41007a
call fcn.0040f900
mov dword [ebp - 0x20], eax
jmp 0x41015f
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
add eax, 1
cmp eax, dword [ebp - 0x38]
jae 0x4100c4
mov dword [ebp - 0x490], 0x8007000e
lea ecx, [ebp - 0x440]
call fcn.00413030
lea ecx, [ebp - 0x1c]
call fcn.00412ba0
mov eax, dword [ebp - 0x490]
jmp 0x410191
mov eax, dword [ebp - 0x38]
add eax, 1
push eax
lea ecx, [ebp - 0x440]
call fcn.00413080
lea ecx, [ebp - 0x440]
call fcn.00413060
test eax, eax
jne 0x4100ee
mov dword [ebp - 0x20], 0x8007000e
jmp 0x41015f
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x440]
call fcn.00413060
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
push 0
call fcn.0040f820
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x41012d
call fcn.0040f900
mov dword [ebp - 0x20], eax
jmp 0x41015f
lea ecx, [ebp - 0x440]
call fcn.00413060
xor ecx, ecx
mov edx, dword [ebp - 0x448]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x440]
call fcn.00413060
push eax
lea ecx, [ebp - 0x28]
call fcn.004102b0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x2c], 0
je 0x41016f
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48c], eax
lea ecx, [ebp - 0x440]
call fcn.00413030
lea ecx, [ebp - 0x1c]
call fcn.00412ba0
mov eax, dword [ebp - 0x48c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a95f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x411c00
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x4483b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x10]
call fcn.00411920
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00411b90
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x411c65
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x26c], eax
lea ecx, [ebp - 0x10]
call fcn.00411950
mov eax, dword [ebp - 0x26c]
jmp 0x411cf3
mov dword [ebp - 0x20], 0x100
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x411ccb
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x10]
call fcn.00411c00
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x411cc2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x268], eax
lea ecx, [ebp - 0x10]
call fcn.00411950
mov eax, dword [ebp - 0x268]
jmp 0x411cf3
mov dword [ebp - 0x20], 0x100
jmp 0x411c6c
lea ecx, [ebp - 0x10]
call fcn.00411ac0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00411a00
mov dword [ebp - 0x264], eax
lea ecx, [ebp - 0x10]
call fcn.00411950
mov eax, dword [ebp - 0x264]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a95f
mov esp, ebp
pop ebp
ret 4
Function at 0x412290
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor eax, eax
jne 0x41229c
xor eax, eax
jne 0x41229c
xor eax, eax
cmp dword [ebp + 0xc], 0
setne al
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4122bd
mov eax, 0xd
jmp 0x412318
xor eax, eax
jne 0x4122a4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax*2]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x10], 1
jne 0x4122ce
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4149e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.004149b0
test eax, eax
je 0x4149fc
xor eax, eax
jmp 0x414a3a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
jne 0x414a09
xor eax, eax
jmp 0x414a3a
mov eax, dword [ebp - 4]
add eax, 8
push eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
push 0
push 0
call fcn.0041bc4c
add esp, 0x18
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
call fcn.004149b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416568
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x449dd4], 0
push esi
jne 0x4164d6
call fcn.004163ea
test eax, eax
je 0x416519
mov eax, dword [0x449dd4]
cmp eax, 1
jne 0x4164f7
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x416519
pop esi
ret
push eax
call dword [0x449ddc]
test eax, eax
jne 0x416561
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41651d
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x449dd4]
call dword [0x449ddc]
mov edi, eax
test edi, edi
je 0x416542
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41655e
mov edi, esi
add esi, 0xff0
push edi
push dword [0x449dd4]
call dword [0x449dd8]
add edi, 0x10
cmp edi, esi
jb 0x41654a
mov eax, edi
pop edi
pop esi
ret
jmp 0x4164c3
Function at 0x416a90
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 4
cmp dword [ebp + 8], 0
je 0x416b53
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
sub ecx, 1
mov dword [ebp + 0xc], ecx
test eax, eax
jle 0x416b53
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x416af3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x416aab
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 4
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x20000013
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x416b3e
cmp dword [ebp - 0xc], 0xc8
jne 0x416b30
jmp 0x416b53
mov dword [ebp - 8], 0
jmp 0x416aab
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x416aab
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4172e0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f5eb
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x4483b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1a4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
movzx ecx, word [ebp - 0x1a4]
and ecx, 0xff
movzx edx, cl
cmp edx, 2
jne 0x417349
movzx eax, word [ebp - 0x1a4]
shr eax, 8
and eax, 0xff
movzx ecx, al
cmp ecx, 2
je 0x41735b
push str.init_socket_failed
call fcn.0041bfd2
add esp, 4
jmp 0x41749c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0
jne 0x41738c
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.pHost__NULL__n
call fcn.0041bfd2
add esp, 4
jmp 0x41749c
mov dword [ebp - 0x1a8], 0
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x1a8]
cmp dword [ecx + edx*4], 0
je 0x417496
mov byte [ebp - 0x2b4], 0
push 0x103
push 0
lea eax, [ebp - 0x2b3]
push eax
call fcn.0041a970
add esp, 0xc
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [edx + eax*4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [ebp - 0x2d4], eax
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x2d8], eax
mov ecx, dword [ebp - 0x2d8]
mov dword [ebp - 0x2dc], ecx
mov edx, dword [ebp - 0x2d4]
mov al, byte [edx]
mov byte [ebp - 0x2dd], al
mov ecx, dword [ebp - 0x2d8]
mov dl, byte [ebp - 0x2dd]
mov byte [ecx], dl
mov eax, dword [ebp - 0x2d4]
add eax, 1
mov dword [ebp - 0x2d4], eax
mov ecx, dword [ebp - 0x2d8]
add ecx, 1
mov dword [ebp - 0x2d8], ecx
cmp byte [ebp - 0x2dd], 0
jne 0x417405
lea edx, [ebp - 0x2b4]
push edx
lea ecx, [ebp - 0x2d0]
call fcn.00417be0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2d0]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00417ec0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2d0]
call fcn.00417c60
mov ecx, dword [ebp - 0x1a8]
add ecx, 1
mov dword [ebp - 0x1a8], ecx
jmp 0x417396
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041a95f
mov esp, ebp
pop ebp
ret
Function at 0x41a330
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f940
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4483b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.0041a440
test eax, eax
je 0x41a36f
mov eax, 1
jmp 0x41a423
cmp dword [ebp + 0xc], 0
je 0x41a38d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41a38d
mov eax, 1
jmp 0x41a423
cmp dword [ebp + 0x10], 0
je 0x41a3dc
call fcn.0040f820
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0041a800
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
call fcn.0041a830
push eax
call fcn.0041a6e0
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x25], al
lea ecx, [ebp - 0x2c]
call fcn.0041a820
movzx edx, byte [ebp - 0x25]
test edx, edx
je 0x41a3dc
mov eax, 1
jmp 0x41a423
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041a500
add esp, 8
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x14], edx
jmp 0x41a419
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41a6e0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x4483b0]
xor eax, ebp
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], 0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0xffffffff
jne 0x41a72f
xor eax, eax
jmp 0x41a7e6
push 0
lea ecx, [ebp - 4]
push ecx
push 0x40
lea edx, [ebp - 0x150]
push edx
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a7c7
cmp dword [ebp - 4], 0x40
jne 0x41a7c7
movzx ecx, word [ebp - 0x150]
cmp ecx, 0x5a4d
jne 0x41a7c7
push 0
push 0
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [ebp - 0x114]
jne 0x41a7c7
push 0
lea ecx, [ebp - 4]
push ecx
push 0xf8
lea edx, [ebp - 0x100]
push edx
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a7c7
cmp dword [ebp - 4], 0xf8
jne 0x41a7c7
cmp dword [ebp - 0x100], 0x4550
jne 0x41a7c7
movzx ecx, word [ebp - 0xfa]
test ecx, ecx
jne 0x41a7c9
jmp 0x41a7d3
mov dword [ebp - 0x108], 1
mov edx, dword [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x10c]
xor ecx, ebp
call fcn.0041a95f
mov esp, ebp
pop ebp
ret

Function at 0x41a95f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4483b0]
jne 0x41a969
repz ret
jmp fcn.0041f10e
Function at 0x4350e3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00420e33
and dword [ebp - 4], 0
cmp dword [0x44a914], 0
mov ebx, eax
jne 0x435194
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x435245
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x435245
push eax
call fcn.00420dc1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44a914], eax
call esi
push eax
call fcn.00420dc1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44a918], eax
call esi
push eax
call fcn.00420dc1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44a91c], eax
call esi
push eax
call fcn.00420dc1
pop ecx
mov dword [0x44a924], eax
test eax, eax
je 0x435194
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00420dc1
pop ecx
mov dword [0x44a920], eax
mov eax, dword [0x44a920]
cmp eax, ebx
je 0x4351ec
cmp dword [0x44a924], ebx
je 0x4351ec
push eax
call fcn.00420e3c
push dword [0x44a924]
mov esi, eax
call fcn.00420e3c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4351ec
test edi, edi
je 0x4351ec
call esi
test eax, eax
je 0x4351e3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4351e3
test byte [ebp - 0xc], 1
jne 0x4351ec
or dword [ebp + 0x10], 0x200000
jmp 0x435225
mov eax, dword [0x44a918]
cmp eax, ebx
je 0x435225
push eax
call fcn.00420e3c
pop ecx
test eax, eax
je 0x435225
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x435225
mov eax, dword [0x44a91c]
cmp eax, ebx
je 0x435225
push eax
call fcn.00420e3c
pop ecx
test eax, eax
je 0x435225
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44a914]
call fcn.00420e3c
pop ecx
test eax, eax
je 0x435245
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x435247
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008124b
Capabilities:
Encode data using xor

Disassembly:
call 0x100811c4
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x100811f4
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x10081210
xor edx, 0
jmp 0x1008121b
xor edx, edx
jmp 0x10081232
jmp 0x1008123e
xor eax, eax
push 0x8427d7c0
call 0x1008124b
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x10081287
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x10081260
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1008129e
add eax, 0
jno 0x100812a3
add esi, 0
ret 0x10

Function at 0x1008200c
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1008202e
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x100821d0
cmp edi, dword [ebp + 0x10]
jb 0x100821d0
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.10081af8
inc edi
jmp 0x100820b7
jmp 0x100820c4
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.10081af8
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.10081af8
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x10082118
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x100820fc
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.10082146
add dword [eax], 0x39
jle 0x10082122
sub al, 0xf5
mov ch, al
call fcn.1008215b
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10