joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ae9c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x5159c4]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x810], 1
push 0x502f10
lea ecx, [ebp - 4]
call fcn.00413a00
lea eax, [ebp - 0x80c]
push eax
call fcn.0043bc50
add esp, 4
xor ecx, ecx
mov word [ebp - 0x808], cx
push 0x7fe
push 0
lea edx, [ebp - 0x806]
push edx
call fcn.004c62e0
add esp, 0xc
lea ecx, [ebp - 0x80c]
call fcn.00413b20
push eax
push 0x104
lea eax, [ebp - 0x808]
push eax
push 0
lea ecx, [ebp - 4]
call fcn.00413b20
push eax
push 0x502f14
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 1
jbe 0x4aeb2c
push 0x3b
lea ecx, [ebp - 0x808]
push ecx
call fcn.0040d270
add esp, 8
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 0
je 0x4aead2
mov edx, dword [ebp - 0x814]
movzx eax, word [edx + 2]
test eax, eax
je 0x4aeaae
mov ecx, dword [ebp - 0x814]
add ecx, 2
push ecx
lea ecx, [ebp - 0x818]
call fcn.00413a00
lea edx, [ebp - 0x818]
push edx
mov ecx, 0x519204
call fcn.00430750
lea ecx, [ebp - 0x818]
call fcn.00413a40
xor eax, eax
mov ecx, dword [ebp - 0x814]
mov word [ecx], ax
push 0x3b
lea edx, [ebp - 0x808]
push edx
call fcn.0040d270
add esp, 8
mov dword [ebp - 0x814], eax
jmp 0x4aea66
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0x81c]
call fcn.00413a00
lea ecx, [ebp - 0x81c]
push ecx
mov ecx, 0x519204
call fcn.00430750
lea ecx, [ebp - 0x81c]
call fcn.00413a40
mov edx, dword [ebp - 0x810]
add edx, 1
mov dword [ebp - 0x810], edx
mov eax, dword [ebp - 0x810]
push eax
push 0x502f20
lea ecx, [ebp - 4]
push ecx
call fcn.00415220
add esp, 0xc
jmp 0x4aea18
mov ecx, 0x519204
call fcn.0047f3c0
xor edx, edx
cmp edx, eax
sbb eax, eax
neg eax
mov dword [ebp - 0x820], eax
lea ecx, [ebp - 0x80c]
call fcn.00413a40
lea ecx, [ebp - 4]
call fcn.00413a40
mov eax, dword [ebp - 0x820]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004c62c9
mov esp, ebp
pop ebp
ret

Function at 0x4aec70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0xfeff
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4aeca3
xor eax, eax
jmp 0x4aece5
push 0
lea ecx, [ebp - 4]
push ecx
push 2
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x4aecdb
cmp dword [ebp - 4], 2
jne 0x4aecdb
mov dword [ebp - 0x10], 1
jmp 0x4aece2
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4afd30
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x5159c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
mov ecx, dword [ebp + 8]
call fcn.00413b50
cmp eax, 3
jg 0x4afd58
xor eax, eax
jmp 0x4afef6
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
call fcn.004139e0
push 0x5c
lea ecx, [ebp - 4]
call fcn.00420590
mov esi, eax
lea ecx, [ebp - 4]
call fcn.00413b50
sub eax, 1
cmp esi, eax
jne 0x4afd8e
push 0x503168
lea ecx, [ebp - 4]
call fcn.0041fe40
jmp 0x4afd9b
push 0x50315c
lea ecx, [ebp - 4]
call fcn.0041fe40
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 4]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xc], eax
xor edx, edx
cmp dword [ebp - 0xc], 0xffffffff
setne dl
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x4afec9
push 0x503158
lea eax, [ebp - 0x234]
push eax
call fcn.004c8835
add esp, 8
test eax, eax
je 0x4afeb0
push 0x4fcc78
lea ecx, [ebp - 0x234]
push ecx
call fcn.004c8835
add esp, 8
test eax, eax
je 0x4afeb0
mov edx, dword [ebp - 0x260]
and edx, 0x10
je 0x4afe5d
lea eax, [ebp - 0x234]
push eax
push 0x4f8900
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x264]
push edx
call fcn.004123a0
add esp, 0xc
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.004123a0
add esp, 0xc
push eax
call fcn.004afd30
add esp, 4
lea ecx, [ebp - 0x268]
call fcn.00413a40
lea ecx, [ebp - 0x264]
call fcn.00413a40
jmp 0x4afeb0
lea ecx, [ebp - 0x234]
push ecx
push 0x4f8900
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x26c]
push eax
call fcn.004123a0
add esp, 0xc
push eax
lea ecx, [ebp - 0x270]
push ecx
call fcn.004123a0
add esp, 0xc
mov ecx, eax
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x270]
call fcn.00413a40
lea ecx, [ebp - 0x26c]
call fcn.00413a40
lea edx, [ebp - 0x260]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 8], eax
jmp 0x4afdc0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
call fcn.00413b20
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x274], eax
lea ecx, [ebp - 4]
call fcn.00413a40
mov eax, dword [ebp - 0x274]
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c62c9
mov esp, ebp
pop ebp
ret
Function at 0x4b0230
Capabilities:
Create process on windows
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x5159c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x9c], ecx
mov eax, dword [ebp - 0x9c]
cmp dword [eax + 0x288], 0
je 0x4b0267
mov ecx, dword [ebp + 8]
call fcn.004b1250
movzx ecx, al
test ecx, ecx
je 0x4b026e
xor eax, eax
jmp 0x4b0378
push 0x503208
lea ecx, [ebp - 0x3c]
call fcn.004b13b0
mov edx, dword [ebp - 0x9c]
add edx, 8
push edx
lea ecx, [ebp - 0x5c]
call fcn.004b1330
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.004c16d0
add esp, 8
push eax
lea ecx, [ebp - 0x3c]
call fcn.004aa340
lea ecx, [ebp - 0x78]
call fcn.004b1180
lea ecx, [ebp - 0x5c]
call fcn.004b11a0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.004c16d0
add esp, 8
mov ecx, dword [ebp + 0xc]
call fcn.004b1250
movzx ecx, al
test ecx, ecx
jne 0x4b0308
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x94]
push eax
call fcn.004c16d0
add esp, 8
push eax
push 0x503288
lea ecx, [ebp - 0x20]
call fcn.004522e0
mov ecx, eax
call fcn.004aa340
lea ecx, [ebp - 0x94]
call fcn.004b1180
lea ecx, [ebp - 0x20]
call fcn.004a36a0
shl eax, 1
push eax
lea ecx, [ebp - 0x20]
call fcn.0043bfd0
push eax
push 1
push 0x50328c
lea ecx, [ebp - 0x3c]
call fcn.0043bfd0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x40], eax
push 0
push 0
push 0x5032a4
push 0x5032d0
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x98], ecx
lea ecx, [ebp - 0x20]
call fcn.004b1180
lea ecx, [ebp - 0x3c]
call fcn.004b1180
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c62c9
mov esp, ebp
pop ebp
ret 8

Function at 0x4b0470
Capabilities:
Create process on windows
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x5159c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x64]
cmp dword [eax + 0x288], 0
jne 0x4b0496
xor eax, eax
jmp 0x4b0527
push str.SYSTEMCurrentControlSet_servicesTcpipParametersInterfaces_
lea ecx, [ebp - 0x20]
call fcn.004b13b0
mov ecx, dword [ebp - 0x64]
add ecx, 8
push ecx
lea ecx, [ebp - 0x40]
call fcn.004b1330
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x5c]
push eax
call fcn.004c16d0
add esp, 8
push eax
lea ecx, [ebp - 0x20]
call fcn.004aa340
lea ecx, [ebp - 0x5c]
call fcn.004b1180
lea ecx, [ebp - 0x40]
call fcn.004b11a0
push str.NameServer
lea ecx, [ebp - 0x20]
call fcn.0043bfd0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x24], eax
push 0
push 0
push str._c_ipconfig__flushdns
push 0x50339c
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x20]
call fcn.004b1180
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c62c9
mov esp, ebp
pop ebp
ret
Function at 0x4b0990
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5159c4]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x114], ecx
push 0x100
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x4b09de
xor eax, eax
jmp 0x4b0a87
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0xffffffff
jne 0x4b09fb
xor eax, eax
jmp 0x4b0a87
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
jmp 0x4b0a14
mov ecx, dword [ebp - 0x110]
mov edx, dword [ecx]
mov dword [ebp - 0x110], edx
cmp dword [ebp - 0x110], 0
je 0x4b0a85
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 0x1a0]
push ecx
mov ecx, dword [ebp - 0x114]
call fcn.004b0c00
test eax, eax
jne 0x4b0a3b
jmp 0x4b0a06
mov edx, dword [ebp - 0x110]
add edx, 0x10c
push edx
mov eax, dword [ebp - 0x110]
add eax, 8
push eax
mov ecx, dword [ebp - 0x114]
call fcn.004b0c40
test eax, eax
jne 0x4b0a63
jmp 0x4b0a06
mov ecx, dword [ebp - 0x110]
add ecx, 0x1b0
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, dword [ebp - 4]
jne 0x4b0a83
mov eax, dword [ebp - 0x110]
jmp 0x4b0a87
jmp 0x4b0a06
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004c62c9
mov esp, ebp
pop ebp
ret 4
Function at 0x4b1c60
Capabilities:
Reference 114dns dns server
Reference google public dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x4b1c78
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jae 0x4b1c9e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x515634]
push edx
mov ecx, dword [ebp + 8]
call fcn.004b3e10
test eax, eax
jne 0x4b1c9c
mov eax, 1
jmp 0x4b1d10
jmp 0x4b1c6f
mov dword [ebp - 8], 0
jmp 0x4b1cb0
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jae 0x4b1cd6
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x51563c]
push edx
mov ecx, dword [ebp + 8]
call fcn.004b3e10
test eax, eax
jne 0x4b1cd4
mov eax, 2
jmp 0x4b1d10
jmp 0x4b1ca7
mov dword [ebp - 0xc], 0
jmp 0x4b1ce8
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jae 0x4b1d0e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx*4 + 0x515640]
push edx
mov ecx, dword [ebp + 8]
call fcn.004b3e10
test eax, eax
jne 0x4b1d0c
mov eax, 3
jmp 0x4b1d10
jmp 0x4b1cdf
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4b49c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5159c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x68], 0x14
xor eax, eax
mov word [ebp - 0x90], ax
xor ecx, ecx
mov dword [ebp - 0x8e], ecx
mov dword [ebp - 0x8a], ecx
mov dword [ebp - 0x86], ecx
mov dword [ebp - 0x82], ecx
mov dword [ebp - 0x7e], ecx
mov dword [ebp - 0x7a], ecx
mov dword [ebp - 0x76], ecx
mov dword [ebp - 0x72], ecx
mov dword [ebp - 0x6e], ecx
mov word [ebp - 0x6a], cx
xor edx, edx
mov word [ebp - 0x48], dx
xor eax, eax
mov dword [ebp - 0x46], eax
mov dword [ebp - 0x42], eax
mov dword [ebp - 0x3e], eax
mov dword [ebp - 0x3a], eax
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov word [ebp - 0x22], ax
lea ecx, [ebp - 0x64]
call fcn.004b58a0
lea ecx, [ebp - 0x20]
call fcn.004b58a0
mov ecx, dword [ebp - 0x10c]
add ecx, 0x90
call fcn.004b58e0
push eax
push 0x14
lea ecx, [ebp - 0x90]
push ecx
push 0x5036a4
mov ecx, dword [ebp - 0x10c]
add ecx, 0xac
call fcn.0043bfd0
push eax
push 0x5036a8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x10c]
add ecx, 0x90
call fcn.004b58e0
push eax
push 0x14
lea edx, [ebp - 0x48]
push edx
push 0x5036bc
mov ecx, dword [ebp - 0x10c]
add ecx, 0xc8
call fcn.0043bfd0
push eax
push 0x5036c0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x64]
call fcn.004b58c0
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004b58c0
push 0x519288
lea edx, [ebp - 0x64]
push edx
call fcn.004b8c70
add esp, 8
movzx eax, al
test eax, eax
je 0x4b4b04
push 0x5036d4
lea ecx, [ebp - 0x64]
call fcn.004b58c0
push 0x519288
lea ecx, [ebp - 0x20]
push ecx
call fcn.004b8c70
add esp, 8
movzx edx, al
test edx, edx
je 0x4b4b29
push 0x5036d8
lea ecx, [ebp - 0x20]
call fcn.004b58c0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0xe4]
push ecx
call fcn.004c17a0
add esp, 8
push eax
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x100]
push eax
call fcn.004c17a0
add esp, 8
push eax
lea ecx, [ebp - 0xc8]
call fcn.004b6590
lea ecx, [ebp - 0x100]
call fcn.004b11a0
lea ecx, [ebp - 0xe4]
call fcn.004b11a0
lea ecx, [ebp - 0xc8]
call fcn.004b1250
movzx ecx, al
test ecx, ecx
je 0x4b4bb1
mov dword [ebp - 0x104], 0
lea ecx, [ebp - 0xc8]
call fcn.004b5670
lea ecx, [ebp - 0x20]
call fcn.004b1180
lea ecx, [ebp - 0x64]
call fcn.004b1180
mov eax, dword [ebp - 0x104]
jmp 0x4b4bdc
mov dword [ebp - 0x108], 1
lea ecx, [ebp - 0xc8]
call fcn.004b5670
lea ecx, [ebp - 0x20]
call fcn.004b1180
lea ecx, [ebp - 0x64]
call fcn.004b1180
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c62c9
mov esp, ebp
pop ebp
ret
Function at 0x4c0b40
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x5159c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x4c0b65
xor al, al
jmp 0x4c0cdd
call fcn.0049d4e0
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x4c0b7a
xor al, al
jmp 0x4c0cdd
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x54], ecx
push str.Host:
lea ecx, [ebp - 0x2c]
call fcn.004b1330
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x2c]
call fcn.004b6760
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x2c]
call fcn.0041b5e0
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.004c0e20
add esp, 8
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x4c]
call fcn.004b5860
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x2712
mov edx, dword [ebp - 0x50]
push edx
call fcn.0049d540
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
push 0x2727
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0049d540
add esp, 0xc
push 1
push 0x2c
mov edx, dword [ebp - 0x50]
push edx
call fcn.0049d540
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
push 0x9b
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0049d540
add esp, 0xc
lea edx, [ebp - 0x4c]
push edx
push 0x2711
mov eax, dword [ebp - 0x50]
push eax
call fcn.0049d540
add esp, 0xc
push 0x4c0850
push 0x4e2b
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0049d540
add esp, 0xc
mov byte [ebp - 0x2d], 0
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4c0c55
jmp 0x4c0cac
mov eax, dword [ebp - 0x50]
push eax
call fcn.0049d510
add esp, 4
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4c0c71
jmp 0x4c0cac
cmp dword [ebp + 0x14], 0
je 0x4c0ca4
mov edx, dword [ebp - 0x60]
sub edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x5c]
sbb eax, dword [ebp - 0x64]
push 0
push 0x3e8
push eax
push edx
call fcn.004c9770
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], edx
fild qword [ebp - 0x74]
fild qword [ebp - 8]
fdivp st(1)
mov ecx, dword [ebp + 0x14]
fstp dword [ecx]
mov byte [ebp - 0x2d], 1
xor edx, edx
jne 0x4c0c45
mov eax, dword [ebp - 0xc]
push eax
call fcn.004c0e60
add esp, 4
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0049d4b0
add esp, 4
mov dl, byte [ebp - 0x2d]
mov byte [ebp - 0x69], dl
lea ecx, [ebp - 0x4c]
call fcn.004b11a0
lea ecx, [ebp - 0x2c]
call fcn.004b11a0
mov al, byte [ebp - 0x69]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c62c9
mov esp, ebp
pop ebp
ret
Function at 0x4c38ce
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x519334], 0
push esi
jne 0x4c383c
call fcn.004c3750
test eax, eax
je 0x4c387f
mov eax, dword [0x519334]
cmp eax, 1
jne 0x4c385d
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4c387f
pop esi
ret
push eax
call dword [0x51933c]
test eax, eax
jne 0x4c38c7
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 0x4c3883
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x519334]
call dword [0x51933c]
mov edi, eax
test edi, edi
je 0x4c38a8
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4c38c4
mov edi, esi
add esi, 0xff0
push edi
push dword [0x519334]
call dword [0x519338]
add edi, 0x10
cmp edi, esi
jb 0x4c38b0
mov eax, edi
pop edi
pop esi
ret
jmp 0x4c3829

Function at 0x4c62c9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5159c4]
jne 0x4c62d3
repz ret
jmp fcn.004d1c51

Function at 0x4ea4f3
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.004d26a9
and dword [ebp - 4], 0
cmp dword [0x51a0c0], 0
mov ebx, eax
jne 0x4ea5a4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4ea655
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4ea655
push eax
call fcn.004d2637
mov dword [esp], 0x507998
push edi
mov dword [0x51a0c0], eax
call esi
push eax
call fcn.004d2637
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x51a0c4], eax
call esi
push eax
call fcn.004d2637
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x51a0c8], eax
call esi
push eax
call fcn.004d2637
pop ecx
mov dword [0x51a0d0], eax
test eax, eax
je 0x4ea5a4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004d2637
pop ecx
mov dword [0x51a0cc], eax
mov eax, dword [0x51a0cc]
cmp eax, ebx
je 0x4ea5fc
cmp dword [0x51a0d0], ebx
je 0x4ea5fc
push eax
call fcn.004d26b2
push dword [0x51a0d0]
mov esi, eax
call fcn.004d26b2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4ea5fc
test edi, edi
je 0x4ea5fc
call esi
test eax, eax
je 0x4ea5f3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4ea5f3
test byte [ebp - 0xc], 1
jne 0x4ea5fc
or dword [ebp + 0x10], 0x200000
jmp 0x4ea635
mov eax, dword [0x51a0c4]
cmp eax, ebx
je 0x4ea635
push eax
call fcn.004d26b2
pop ecx
test eax, eax
je 0x4ea635
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4ea635
mov eax, dword [0x51a0c8]
cmp eax, ebx
je 0x4ea635
push eax
call fcn.004d26b2
pop ecx
test eax, eax
je 0x4ea635
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x51a0c0]
call fcn.004d26b2
pop ecx
test eax, eax
je 0x4ea655
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4ea657
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410018
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4211f8]
je 0x410033
inc edi
cmp edi, 0x17
jb 0x410024
cmp edi, 0x17
jae 0x4101b3
push ebp
push 3
call fcn.00416eba
cmp eax, 1
pop ecx
je 0x41017f
push 3
call fcn.00416eba
test eax, eax
pop ecx
jne 0x410067
cmp dword [0x42062c], 1
je 0x41017f
cmp ebx, 0xfc
je 0x4101b2
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x421d48
push ebp
call fcn.0040c06b
add esp, 0xc
test eax, eax
je 0x41009d
push esi
push esi
push esi
push esi
push esi
call fcn.00407516
add esp, 0x14
push 0x104
mov esi, 0x421d61
push esi
push 0
mov byte [0x421e65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4100e1
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040c06b
add esp, 0xc
test eax, eax
je 0x4100e1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00407516
add esp, 0x14
push esi
call fcn.00409b50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x410126
push esi
call fcn.00409b50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42205c
push 0x41c634
sub ecx, eax
push ecx
push eax
call fcn.00412056
add esp, 0x14
test eax, eax
je 0x410126
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00407516
add esp, 0x14
jmp 0x410128
xor esi, esi
push 0x41c630
push ebx
push ebp
call fcn.00411f95
add esp, 0xc
test eax, eax
je 0x410148
push esi
push esi
push esi
push esi
push esi
call fcn.00407516
add esp, 0x14
push dword [edi*8 + 0x4211fc]
push ebx
push ebp
call fcn.00411f95
add esp, 0xc
test eax, eax
je 0x41016a
push esi
push esi
push esi
push esi
push esi
call fcn.00407516
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00416cfd
add esp, 0xc
jmp 0x4101b2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4101b2
cmp ebp, 0xffffffff
je 0x4101b2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4211fc]
push dword [esi]
call fcn.00409b50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x8e52d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3f0000]
push edi
or ebp, 0xffffffff
jmp 0x8e52f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8e52f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8e52e8
mov eax, 1
add ebx, ebx
jne 0x8e530b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8e531c
jne 0x8e532c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8e532c
dec eax
add ebx, ebx
jne 0x8e5328
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8e5300
xor ecx, ecx
sub eax, 3
jb 0x8e5344
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8e53b6
sar eax, 1
mov ebp, eax
jmp 0x8e534f
add ebx, ebx
jne 0x8e534f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x8e535c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x8e5380
inc ecx
add ebx, ebx
jne 0x8e536c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8e5361
jne 0x8e537d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8e5361
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8e53a0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8e5391
jmp 0x8e52ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8e53a0
add edi, ecx
jmp 0x8e52ee
pop esi
mov edi, esi
mov ecx, 0x4b34a2
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x8e53db
cmp byte [edi], 0xa2
jne 0x8e53c0
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x8e53be
lea edi, [esi + 0x4e3000]
mov eax, dword [edi]
or eax, eax
je 0x8e542c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4e60e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4e6124]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8e53e1
mov ecx, edi
jns 0x8e5410
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4e6128]
or eax, eax
je 0x8e5426
mov dword [ebx], eax
add ebx, 4
jmp 0x8e53fe
call dword [esi + 0x4e612c]
popal
jmp 0x40ff50