joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d9a00
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.004dfe80
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x4d9af9
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, esi
call fcn.004d9b10
test eax, eax
jne 0x4d9af9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, esi
call fcn.004d9b10
test eax, eax
jne 0x4d9af9
lea edx, [esp + 0x10]
push 0x140fa50
push edx
call fcn.00508880
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d9aca
lea eax, [esp + 0x10]
push 0x140fa4c
push eax
call fcn.00508880
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d9aca
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4d9acd
mov byte [esi], 0
push 0x140f214
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x4d9b10
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4d9b72
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4dfdc0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x52bd38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x4dfe70
mov eax, dword [0x1416338]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0051c6b0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0051c6ff
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.0051c65c
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4dfe57
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4dfe57
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0051c2cc
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4e2f70
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52c1c0
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4e3117
mov ecx, dword [0x1416338]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x4e306c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004e1c90
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0051c3b9
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0051c2cc
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x140f214
call fcn.0051c33a
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.004e2050
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.0051c3b9
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.0051c2cc
lea ecx, [esp + 0xc]
call fcn.0051c794
mov ecx, dword [esp + 0xc]
push 0x140fc54
push ecx
call fcn.00507734
add esp, 8
test eax, eax
je 0x4e3094
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x4e2fcd
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.0051c2cc
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0051c2cc
jmp 0x4e311b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004e2d10
test eax, eax
push 0
je 0x4e30ff
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.004e13b0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4e30e5
cmp eax, 0x64
jg 0x4e30d3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4e3070
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4e3070
cmp eax, 0x64
jge 0x4e306c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4e3070
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.004e13b0
mov esi, eax
jmp 0x4e3070
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x4e3125
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x4ec430
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4ec496
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4ec496
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4ec477
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4ec820
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4ec858
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4ed4d0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4ed519
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4ed990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52c570
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004ed540
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004ed5c0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004ed5c0
lea ecx, [esi + 0xc]
call fcn.0051c257
lea ecx, [esi + 0x10]
call fcn.0051c257
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004eeb50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004eeb50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004eeb50
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0051c2cc
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0051c2cc
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4f1b80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x14637d0]
xor edx, edx
cmp eax, edx
jne 0x4f1ba6
xor eax, eax
mov byte [eax + 0x14636d0], al
inc eax
cmp eax, 0x100
jl 0x4f1b8e
mov dword [0x14637d0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x14636d0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4f1c37
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4f1c0a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4f1bd8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4f1cb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4f1d03
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4f1cea
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f86c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52c96e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004f8fe0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x13ae1ec
call fcn.0051c00d
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4f8753
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0051c00d
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4f874c
push 0
mov ecx, eax
call fcn.004ef7c0
mov dword [esi + 0xc], eax
jmp 0x4f8755
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4f8755
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x50985b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x50987b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00508caa
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x50989e
test byte [esp + 8], 2
je 0x50989e
call fcn.00508d1d
mov dword [eax], 0xd
call fcn.00508d26
mov dword [eax], 5
jmp 0x509877
xor eax, eax
ret

Function at 0x51e6d7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x51e70f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0051c727
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0051c6ff
jmp 0x51e71b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x51fdcd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x51fe0f
call fcn.00525e0c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x51fe0f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x51fe06
xor eax, eax
jmp 0x51fe17
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0051fe1d
pop edi
pop esi
pop ebx
ret 4

Function at 0x52633c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x52636a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x526388
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005262a2
jmp 0x526388
mov eax, dword [esi + 0x14]
test eax, eax
je 0x526388
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005262a2
test edi, edi
mov eax, edi
jne 0x526372
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [esi]
mov ecx, edx
and ecx, 0xff
push edi
movzx edi, al
xor ecx, edi
mov ecx, dword [ecx*4 + section..data]
shr edx, 8
xor ecx, edx
mov edx, eax
mov dword [esi], ecx
shr edx, 8
mov edi, ecx
movzx edx, dl
and edi, 0xff
xor edx, edi
mov edx, dword [edx*4 + section..data]
shr ecx, 8
xor edx, ecx
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
mov edi, edx
mov dword [esi], edx
and edi, 0xff
xor ecx, edi
mov ecx, dword [ecx*4 + section..data]
shr edx, 8
xor ecx, edx
shr eax, 0x18
mov edx, ecx
mov dword [esi], ecx
and edx, 0xff
xor eax, edx
mov eax, dword [eax*4 + section..data]
shr ecx, 8
xor eax, ecx
not eax
mov dword [esi], eax
pop edi
xor eax, eax
pop esi
ret

Function at 0x401090
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
jne 0x40109c
lea eax, [edx + 0x17]
ret
push esi
mov esi, dword [esp + 0xc]
mov dword [esi], 0xffffffff
mov cl, byte [edx]
test cl, cl
je 0x4010d3
push edi
mov edi, edi
mov eax, dword [esi]
mov edi, eax
movzx ecx, cl
and edi, 0xff
xor edi, ecx
shr eax, 8
xor eax, dword [edi*4 + section..data]
inc edx
mov dword [esi], eax
mov cl, byte [edx]
test cl, cl
jne 0x4010b0
pop edi
mov edx, dword [esi]
not edx
mov dword [esi], edx
xor eax, eax
pop esi
ret

Function at 0x4011a0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret
Function at 0x409acc
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.0040449f
and dword [ebp - 4], 0
cmp dword [0x410df4], 0
mov ebx, eax
jne 0x409b7d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409c2e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409c2e
push eax
call fcn.0040442d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x410df4], eax
call esi
push eax
call fcn.0040442d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x410df8], eax
call esi
push eax
call fcn.0040442d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x410dfc], eax
call esi
push eax
call fcn.0040442d
pop ecx
mov dword [0x410e04], eax
test eax, eax
je 0x409b7d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040442d
pop ecx
mov dword [0x410e00], eax
mov eax, dword [0x410e00]
cmp eax, ebx
je 0x409bd5
cmp dword [0x410e04], ebx
je 0x409bd5
push eax
call fcn.004044a8
push dword [0x410e04]
mov esi, eax
call fcn.004044a8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409bd5
test edi, edi
je 0x409bd5
call esi
test eax, eax
je 0x409bcc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409bcc
test byte [ebp - 0xc], 1
jne 0x409bd5
or dword [ebp + 0x10], 0x200000
jmp 0x409c0e
mov eax, dword [0x410df8]
cmp eax, ebx
je 0x409c0e
push eax
call fcn.004044a8
pop ecx
test eax, eax
je 0x409c0e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409c0e
mov eax, dword [0x410dfc]
cmp eax, ebx
je 0x409c0e
push eax
call fcn.004044a8
pop ecx
test eax, eax
je 0x409c0e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x410df4]
call fcn.004044a8
pop ecx
test eax, eax
je 0x409c2e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409c30
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41242c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004122ab

Function at 0x416823
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416191

Function at 0x41682e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004163cc

Function at 0x401000
Capabilities:
Accept command line arguments
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push 0x8c800
push 0
call sub.kernel32.dll_GetCommandLineW
call sub.kernel32.dll_VirtualAlloc
call fcn.0049fa24
ret
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40596d
pop dword [ebp - 0x28]
mov eax, 0x40596d
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x3ea5631e
add dword [ebp - 0x38], 0xface22d
mov dword [ebp - 0x34], 0x84c527b3
add dword [ebp - 0x34], 0xad6e2492
mov dword [ebp - 0x30], 0xc1ba3c85
sub dword [ebp - 0x30], 0x756df857
mov dword [ebp - 0x2c], 0x56076c3a
add dword [ebp - 0x2c], 0xa9f893c6
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xddc87d2c
sub dword [ebp - 0x38], 0x695613d6
mov dword [ebp - 0x34], 0xaae05216
sub dword [ebp - 0x34], 0x6973f0a1
mov dword [ebp - 0x30], 0x5547d51f
add dword [ebp - 0x30], 0xe27974d
mov dword [ebp - 0x2c], 0x94588faa
add dword [ebp - 0x2c], 0x6ba77056
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x388c7
push 0
call eax
mov ecx, 0x4f54
xor edi, edi
add edi, eax
mov edx, 0x410000
add edx, dword [ebp - 0x28]
mov esi, 0x189579d3
sub esi, 0x5f94efb6
sub dword [ebp - 0x18], 0x9810a71a
mov ebx, dword [edx]
mov dword [ebp - 8], 0x485fb6e8
xor ebx, esi
add dword [ebp - 0x10], 0xbec66ef2
mov dword [edi], ebx
mov dword [ebp - 8], 0x986037ac
add edi, 4
add edx, 0x818c98e7
sub edx, 0x818c98e3
loop 0x405a76
add eax, 0x13023
mov ebx, eax
add eax, 0x18d4f1c4
sub eax, 0x18d4f1bf
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x10644058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.106441a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1064407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1064406a
add dl, dl
jne 0x10644089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106440dc
xor eax, eax
add dl, dl
jne 0x10644096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1064417d
add dl, dl
jne 0x106440a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106440b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106440bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106440c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x106440d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10644075
mov eax, 1
add dl, dl
jne 0x106440ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106440f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106440e1
sub eax, ebx
mov ebx, 1
jne 0x10644128
mov ecx, 1
add dl, dl
jne 0x1064410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10644119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10644105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10644075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1064413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1064414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10644136
cmp eax, 0x7d00
jae 0x1064416d
cmp eax, 0x500
jb 0x10644168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10644075
cmp eax, 0x7f
ja 0x10644170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10644075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1064419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10644075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10