joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4225e0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x47b090
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4a9128]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4226f7
cmp dword [esp + 0x24], eax
mov edi, dword [esp + 0xc]
mov dword [esp + 0x10], edi
je 0x4226c8
push str.hjjm.exe_zhj5
lea edx, [esp + 0x28]
push 0x4aa924
push edx
call fcn.00401d00
add esp, 0xc
mov esi, dword [eax]
xor eax, eax
test esi, esi
setne al
mov byte [esp + 0x1c], 1
test eax, eax
jne 0x422685
push 0x80004005
call fcn.00401000
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
push esi
push 1
push 0
push str.Hjjm
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4226ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4226ec
push 0x481930
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
push 0x481930
push 1
push 0
push str.Hjjm
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test edi, edi
je 0x4226f7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 4
Function at 0x425f70
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push edi
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x20]
push 0x476
push eax
call ebx
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x425fe8
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x425fe8
mov ecx, dword [esi + 0x20]
mov dword [esp + 0xc], ecx
mov ecx, esi
mov dword [esp + 0x14], 0xffffff37
call fcn.0043ebcb
lea edx, [esp + 0xc]
push edx
push eax
push 0x4e
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 0
call ebx
test eax, eax
je 0x425fdf
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x42a3e0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0xc
cmp dword [0x4aa910], 0
jne 0x42a420
mov eax, dword [esp + 0x10]
cmp eax, 3
ja case.default.0x42a4bf
jmp dword [eax*4 + 0x42a4e8]
push 0
push 0
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0xc
ret 4
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0xc
ret 4
lea eax, [esp]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x42a443
push eax
push eax
push 0x488f3c
call fcn.00435d18
push esi
push 0x10
call fcn.0043379c
add esp, 4
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
mov esi, eax
push 0
mov dword [esi], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 8]
push 0
push 0
push 0
mov dword [esi + 4], edx
mov eax, dword [esp + 0x18]
push esi
mov dword [esi + 8], eax
mov dword [esi + 0xc], 2
mov ecx, dword [esp + 0x14]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x42a4a1
push eax
push eax
push 0x488f3c
call fcn.00435d18
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00433797
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, 3
pop esi
ja case.default.0x42a4bf
jmp dword [eax*4 + 0x42a4f8]
push 0
push 8
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0xc
ret 4
push 0
push 1
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0xc
ret 4

Function at 0x42a520
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
push esi
push edi
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
xor edi, edi
lea ecx, [esp + 0xc]
push ecx
push edi
push 0x2001f
push edi
push edi
push edi
push edx
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42a554
mov edi, dword [esp + 8]
test eax, eax
mov esi, eax
jne 0x42a58a
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x42a56c
push 0x80004005
call fcn.00401000
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x1c]
add eax, 1
push eax
push esi
push 1
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test edi, edi
je 0x42a595
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ecx
ret 0x10
Function at 0x42ac00
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x47c080
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a9128]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push 0x488d70
push 0
call esi
push eax
call fcn.0043b872
push 0x488d70
push 0
mov edi, eax
call esi
cmp dword [0x4aa914], 0
mov esi, eax
jne 0x42ac7b
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x42ac69
push 9
mov ecx, edi
call fcn.0043ec47
push 1
mov ecx, edi
call fcn.0043ec47
push 5
mov ecx, edi
call fcn.0043ec47
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, dword [esp + 0x38]
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
mov ebp, dword [esp + 0x3c]
jle 0x42ad67
lea ecx, [esp + 0x14]
call fcn.004409a8
push str.temptemp.dat
lea edx, [esp + 0x3c]
push 0x4aa924
push edx
mov dword [esp + 0x3c], 0
call fcn.00401d00
add esp, 0xc
mov eax, dword [eax]
push 0
push 0x1001
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 1
call fcn.004409be
test eax, eax
mov eax, dword [esp + 0x38]
sete bl
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ad00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x42ad41
cmp ebp, 2
jg 0x42ad17
push 0
push 0
push 0x488e70
call fcn.00435d18
cmp ebp, 3
jne 0x42ad2c
push 0
push 0
push 0x488e00
call fcn.00435d18
jmp 0x42ad56
cmp ebp, 4
jne 0x42ad56
push 0
push 0
push 0x488d90
call fcn.00435d18
jmp 0x42ad56
mov eax, dword [edi]
push eax
lea ecx, [esp + 0x18]
call fcn.00440b8d
lea ecx, [esp + 0x14]
call fcn.00440d63
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.00440d9f
push edi
mov ecx, 0x4aa93c
call fcn.00401b60
mov ecx, dword [0x4aa93c]
push ebp
push ecx
push 0x402
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
call fcn.0045d5bc
int3
Function at 0x4315c0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x47ccab
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4a9128]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebp
push esi
push edi
mov eax, dword [0x4a9128]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push ebp
mov dword [esp + 0x1c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4316f7
or edi, 0xffffffff
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402cf0
mov edx, dword [esp + 0x10]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
mov dword [esp + 0x148], 0
jge 0x431662
push esi
lea ecx, [esp + 0x14]
call fcn.00401510
mov edx, dword [esp + 0x10]
lea eax, [esi + 1]
push eax
push edx
call fcn.0045fc9d
push eax
call fcn.0040c030
add esp, 0xc
test esi, esi
jl 0x431752
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x431752
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x10]
mov byte [esi + ecx], 0
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], 0
jl 0x4316bb
push str.mcshield.exe
push ecx
call fcn.0045e0fc
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x4316bb
sub eax, ecx
cmp eax, edi
jne 0x431720
lea eax, [ecx - 0x10]
mov dword [esp + 0x148], edi
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4316dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x431623
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0045d22c
add esp, 0x13c
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x148], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x43174b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4316f9
push 0x80070057
call fcn.00401000
int3
Function at 0x431760
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x130
mov eax, dword [0x4a9128]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
mov edi, dword [esp + 0x13c]
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4317f8
nop
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0xc]
call fcn.00402cf0
mov eax, dword [edi]
mov edx, dword [esp + 8]
push eax
push edx
call fcn.0045c990
add esp, 8
test eax, eax
je 0x431814
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4317e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4317a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov ecx, dword [esp + 0x134]
pop edi
pop esi
xor ecx, esp
call fcn.0045d22c
add esp, 0x130
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43183f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x4317fb
Function at 0x432110
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push eax
call fcn.00431760
cmp eax, 0xffffffff
je 0x432136
push eax
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
ret 4
Function at 0x43cc5c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x43cc95
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00434d7f
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00426f80
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x43e9c1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x43ea04
call fcn.00434c9e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43ea04
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43ea1f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0043e578
test ebx, ebx
mov esi, eax
je 0x43ea1d
test edi, edi
je 0x43ea1d
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4406db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00434c9e
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x440712
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004402fd
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x440ad7
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x440ae0
xor eax, eax
jmp 0x440b49
cmp dword [esp + 8], 0
jne 0x440aec
call fcn.00433e1f
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0045dd84
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x440b27
push dword [esi + 0x10]
call fcn.0045d833
test eax, eax
pop ecx
jne 0x440b27
mov esi, dword [esi + 0xc]
call fcn.00460f95
push esi
push dword [eax]
push 1
call fcn.0044b8d8
push dword [esi + 0x10]
call fcn.0045d862
test eax, eax
pop ecx
je 0x440b46
push dword [esi + 0x10]
call fcn.0046379d
push eax
call fcn.0040c030
pop ecx
pop ecx
jmp 0x440b15
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x444194
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4441aa
mov edi, dword [esi + 0xc]
jmp 0x4441ea
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4441c3
call fcn.00437e0e
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4441d8
call fcn.00437e0e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4441ea
call fcn.00437e0e
call fcn.00434c9e
cmp dword [eax + 0x3c], 0
je 0x4441ff
push edi
mov ecx, ebx
call fcn.0044313b
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004440ae
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x44421d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x444229
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x44467c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_recv]
ret 0xc

Function at 0x444694
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_send]
ret 0xc

Function at 0x444739
Capabilities:
Connect socket

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x447f40
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x447f69
call fcn.00434c9e
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x447f8c
push eax
push dword [esi + 4]
call fcn.00447ecb
push esi
push eax
mov ecx, 0x4ad698
call fcn.00447b81
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x44879c
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x47e7b6
call fcn.00460d9b
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0044875e
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401590
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x448802
push eax
push dword [esi + 8]
call fcn.00447ecb
push dword [esi + 0xc]
mov ecx, 0x4ad698
push eax
call fcn.00447b81
mov eax, esi
call fcn.00460e73
ret 0x18

Function at 0x457ae1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x457b27
call fcn.00434c9e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x457b27
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x457b6a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x457b53
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x457b53
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x457b67
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x45d22c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a9128]
jne 0x45d236
repz ret
jmp fcn.004689dc

Function at 0x45e30b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x45e338
call fcn.00460f95
mov dword [eax], esi
call fcn.00460f82
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00465f73
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x45e314
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45e367
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00460fa8
pop ecx
call fcn.00460f82
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x45e38e
test al, 1
je 0x45e38e
test byte [esp + 0xc], 2
je 0x45e38e
call fcn.00460f95
mov dword [eax], 5
call fcn.00460f82
mov dword [eax], 0xd
jmp 0x45e35e
xor eax, eax
pop esi
ret
Function at 0x4720cc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00465413
xor ebx, ebx
cmp dword [0x4ae4b4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4721a1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x47210c
xor eax, eax
jmp 0x472265
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x494a58
push edi
call esi
cmp eax, ebx
je 0x472105
push eax
call fcn.004653b0
mov dword [esp], 0x494a48
push edi
mov dword [0x4ae4b4], eax
call esi
push eax
call fcn.004653b0
mov dword [esp], 0x494a34
push edi
mov dword [0x4ae4b8], eax
call esi
push eax
call fcn.004653b0
mov dword [0x4ae4bc], eax
lea eax, [ebp - 8]
push eax
call fcn.0045d3e9
test eax, eax
pop ecx
pop ecx
je 0x47216f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00465e77
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4721a1
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004653b0
cmp eax, ebx
pop ecx
mov dword [0x4ae4c4], eax
je 0x4721a1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004653b0
pop ecx
mov dword [0x4ae4c0], eax
mov eax, dword [0x4ae4c0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x47221a
cmp dword [0x4ae4c4], esi
je 0x47221a
push eax
call fcn.0046541c
pop ecx
call eax
cmp eax, ebx
je 0x4721e7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4ae4c4]
call fcn.0046541c
pop ecx
call eax
test eax, eax
je 0x4721e7
test byte [ebp - 0x18], 1
jne 0x47221a
lea eax, [ebp - 0xc]
push eax
call fcn.0045d420
test eax, eax
pop ecx
je 0x472202
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00465e77
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x472211
or dword [ebp + 0x10], 0x200000
jmp 0x47224b
or dword [ebp + 0x10], 0x40000
jmp 0x47224b
mov eax, dword [0x4ae4b8]
cmp eax, esi
je 0x47224b
push eax
call fcn.0046541c
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x47224b
mov eax, dword [0x4ae4bc]
cmp eax, esi
je 0x47224b
push dword [ebp - 4]
push eax
call fcn.0046541c
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4ae4b4]
call fcn.0046541c
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4770ea
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4a9128]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0047707f
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0045d2b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x477139
cmp dword [ebp - 0x1c], 5
jb 0x477151
jmp 0x47714d
cmp dword [ebp - 0x10], 1
jne 0x477151
cmp dword [ebp - 0x1c], 4
ja 0x47714d
jne 0x477151
cmp dword [ebp - 0x18], 0
jbe 0x477151
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x495464
call fcn.00476f53
test eax, eax
jge 0x477172
mov byte [0x4aab04], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045d22c
add ebp, 0x78
leave
ret