joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414f55
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov esi, ecx
call fcn.0040289e
mov ecx, dword [esi + 0x74]
add ecx, 0x74
call fcn.00409bc9
test eax, eax
jne 0x414ffe
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.004288d8
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push 0x14
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
lea edi, [esi + 0x84]
cdq
sub eax, edx
sar eax, 1
sub eax, 0xa
push eax
push 0
push esi
mov ecx, edi
call fcn.0040bf15
push 1
mov ecx, edi
call fcn.0040becd
push 0x4608a8
mov ecx, edi
call fcn.0040c004
mov ecx, dword [esi + 0x74]
push 0
push 0x3e9
call fcn.004023bf
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x414b71
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41502b
mov ecx, dword [esi + 0x74]
mov edi, 0x3e9
push edi
call fcn.0042791b
test eax, eax
je 0x415013
mov eax, dword [eax + 0x20]
mov esi, dword [esi + 0x74]
test esi, esi
je 0x41501d
mov esi, dword [esi + 0x20]
push eax
push edi
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret

Function at 0x416800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov dword [esi], 0
jmp 0x416810
mov eax, dword [esi]
mov edx, dword [ebx + 4]
mov ecx, edi
sub ecx, eax
push ecx
add eax, ebp
push eax
push edx
call fcn.0044e3a9
add esp, 0xc
test eax, eax
jle 0x416830
add dword [esi], eax
cmp dword [esi], edi
jb 0x416810
test eax, eax
pop ebp
jge 0x416852
call fcn.0043ff4c
mov eax, dword [eax]
push eax
call fcn.0043feaa
push eax
push 0xffffffffffffffff
push ebx
call fcn.00417210
add esp, 0x10
or eax, 0xffffffff
ret
jne 0x41685b
mov dword [ebx + 0x28], 1
xor eax, eax
ret
Function at 0x419980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push ebp
push esi
mov ebp, dword [edi + 0x3c]
sub ebp, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x4199fe
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0043e5c0
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x4199d1
sub eax, ebx
jmp 0x4199d3
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x4199c2
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x4199f2
sub eax, ebx
jmp 0x4199f4
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x4199e3
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x419ad2
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, ebp
add edx, dword [edi + 0x38]
push edx
call fcn.00419700
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x419a49
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x419a5d
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x419986
mov eax, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jae 0x419ad2
mov esi, dword [edi + 0x6c]
add esi, edx
cmp eax, esi
jae 0x419aa1
sub ecx, esi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x419a84
mov ebx, 0x102
mov ecx, dword [edi + 0x38]
push ebx
add ecx, esi
push 0
push ecx
call fcn.0043b390
add esp, 0xc
add ebx, esi
pop esi
pop ebp
mov dword [edi + 0x16c0], ebx
pop ebx
ret
lea edx, [esi + 0x102]
cmp eax, edx
jae 0x419ad2
sub esi, eax
add esi, 0x102
sub ecx, eax
cmp esi, ecx
jbe 0x419abb
mov esi, ecx
mov ecx, dword [edi + 0x38]
push esi
add ecx, eax
push 0
push ecx
call fcn.0043b390
add esp, 0xc
add dword [edi + 0x16c0], esi
pop esi
pop ebp
pop ebx
ret
Function at 0x41e40b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x478138]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x41e448
push 0x464c80
push 4
push eax
call fcn.0044016b
push eax
call section..text
add esp, 0x10
jmp 0x41e45a
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41e4c5
push edi
call fcn.0043ff4c
mov edi, dword [eax]
call fcn.0043ff4c
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.004401f3
add esp, 0x18
mov ebx, eax
call fcn.0043ff4c
cmp dword [eax], 0
je 0x41e4a5
call fcn.0043ff4c
push dword [eax]
call fcn.0041de69
pop ecx
jmp 0x41e4ac
call fcn.0043ff4c
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x41e4c5
cmp ebx, esi
jae 0x41e4c5
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x41e4c7
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b0c4
leave
ret
Function at 0x420b1a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x45b053
call fcn.0043b106
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.004225e2
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x420b65
call fcn.004225e2
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x420b76
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x420b83
or eax, 0xffffffff
jmp 0x420cdf
mov ecx, esi
call fcn.00420661
mov dword [ebp - 0x14], eax
call fcn.00424dfa
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x420c01
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x420c01
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x420c01
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0041e3f8
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x420c01
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x420c01
mov ecx, ebx
call fcn.00427ad3
test eax, eax
je 0x420c01
push 0
mov ecx, ebx
call fcn.00427aee
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0042675f
push dword [ebp - 0x14]
call fcn.00424d52
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00420922
xor edi, edi
cmp eax, edi
je 0x420c5e
test byte [esi + 0x3c], 0x10
je 0x420c48
push 4
pop edi
mov ecx, esi
call fcn.004279ba
test ax, 0x100
je 0x420c3e
push 5
pop edi
push edi
mov ecx, esi
call fcn.004248e8
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x420c5e
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00427c8e
or dword [ebp - 4], 0xffffffff
jmp 0x420c89
cmp dword [ebp - 0x28], edi
je 0x420c97
push 1
mov ecx, ebx
call fcn.00427aee
cmp dword [ebp - 0x2c], edi
je 0x420ca7
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x420cc0
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x420cc0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0042069b
cmp dword [esi + 0x58], edi
je 0x420cdc
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0043b1ab
ret
Function at 0x4213c8
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 0x42140e
call fcn.004225e2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42140e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x421451
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 0x42143a
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 0x42143a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42144e
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 0x427879
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 0x4278bc
call fcn.004225e2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4278bc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4278d7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00427433
test ebx, ebx
mov esi, eax
je 0x4278d5
test edi, edi
je 0x4278d5
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x429323
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x42932c
xor eax, eax
jmp 0x429395
cmp dword [esp + 8], 0
jne 0x429338
call fcn.0041dc1b
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0043f601
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x429373
push dword [esi + 0x10]
call fcn.0043ef45
test eax, eax
pop ecx
jne 0x429373
mov esi, dword [esi + 0xc]
call fcn.0043ff5f
push esi
push dword [eax]
push 1
call fcn.0042b109
push dword [esi + 0x10]
call fcn.0043ef74
test eax, eax
pop ecx
je 0x429392
push dword [esi + 0x10]
call fcn.00441235
push eax
call section..text
pop ecx
pop ecx
jmp 0x429361
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x42939e
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x4293a8
call fcn.0041dc1b
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0043e076
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4293d5
mov esi, dword [esi + 0xc]
call fcn.0043ff5f
push esi
push dword [eax]
push 1
call fcn.0042b109
pop esi
ret 8
Function at 0x42a288
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 0x42a2b1
call fcn.004225e2
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_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x42a2d4
push eax
push dword [esi + 4]
call fcn.0042a213
push esi
push eax
mov ecx, 0x47b5b4
call fcn.00429ec2
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x42ab79
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x45b4d3
call fcn.0043b0d3
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.0042ab3b
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401d2b
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_InternetConnectW]
test eax, eax
mov dword [esi + 4], eax
jne 0x42abdf
push eax
push dword [esi + 8]
call fcn.0042a213
push dword [esi + 0xc]
mov ecx, 0x47b5b4
push eax
call fcn.00429ec2
mov eax, esi
call fcn.0043b1ab
ret 0x18

Function at 0x42c1a1
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 0x42c1cf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42c1ed
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042c10b
jmp 0x42c1ed
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42c1ed
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042c10b
test edi, edi
mov eax, edi
jne 0x42c1d7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x47b5f0]
test ecx, ecx
je 0x42c2b0
jmp 0x42c1a0
ret 8

Function at 0x43b0c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x478138]
jne 0x43b0ce
repz ret
jmp fcn.00445aac
Function at 0x43f365
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x43f3a2
cmp dword [ebp + 0x14], edi
je 0x43f3a2
cmp ecx, edi
jne 0x43f3a9
call fcn.0043ff4c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043b877
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43f3bd
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43f3de
cmp ebx, 0xffffffff
je 0x43f3cd
push ebx
push edi
push ecx
call fcn.0043b390
add esp, 0xc
cmp esi, edi
je 0x43f38a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43f38a
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43f3fa
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43f401
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43f4f2
test word [esi + 0xc], 0x10c
je 0x43f455
mov eax, dword [esi + 4]
test eax, eax
je 0x43f455
jl 0x43f553
cmp ebx, eax
mov edi, ebx
jb 0x43f426
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43f4fa
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0043aa05
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x43f4ea
cmp ebx, dword [ebp - 0xc]
jb 0x43f4c2
cmp dword [ebp - 0xc], 0
je 0x43f47f
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43f474
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43f47b
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43f48a
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43f48a
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43f526
push eax
push dword [ebp - 8]
push esi
call fcn.00441082
pop ecx
push eax
call fcn.0044e3a9
add esp, 0xc
test eax, eax
je 0x43f565
cmp eax, 0xffffffff
je 0x43f553
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43f4ea
push esi
call fcn.0044dcc8
cmp eax, 0xffffffff
pop ecx
je 0x43f557
cmp dword [ebp - 4], 0
je 0x43f526
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x43f409
mov eax, dword [ebp + 0x14]
jmp 0x43f3a4
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43f511
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043b390
add esp, 0xc
call fcn.0043ff4c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43f39a
cmp dword [ebp + 0xc], 0xffffffff
je 0x43f53c
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043b390
add esp, 0xc
call fcn.0043ff4c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43f39a
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43f3a4
or dword [esi + 0xc], 0x10
jmp 0x43f557
Function at 0x442406
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 + 0x478330]
je 0x442421
inc edi
cmp edi, 0x17
jb 0x442412
cmp edi, 0x17
jae 0x4425a1
push ebp
push 3
call fcn.00450315
cmp eax, 1
pop ecx
je 0x44256d
push 3
call fcn.00450315
test eax, eax
pop ecx
jne 0x442455
cmp dword [0x478118], 1
je 0x44256d
cmp ebx, 0xfc
je 0x4425a0
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x47b960
push ebp
call fcn.00446938
add esp, 0xc
test eax, eax
je 0x44248b
push esi
push esi
push esi
push esi
push esi
call fcn.0043b77b
add esp, 0x14
push 0x104
mov esi, 0x47b979
push esi
push 0
mov byte [0x47ba7d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4424cf
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00446938
add esp, 0xc
test eax, eax
je 0x4424cf
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043b77b
add esp, 0x14
push esi
call fcn.0043b4e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x442514
push esi
call fcn.0043b4e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x47bc74
push 0x468308
sub ecx, eax
push ecx
push eax
call fcn.0044ea00
add esp, 0x14
test eax, eax
je 0x442514
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043b77b
add esp, 0x14
jmp 0x442516
xor esi, esi
push 0x45ef50
push ebx
push ebp
call fcn.004502a4
add esp, 0xc
test eax, eax
je 0x442536
push esi
push esi
push esi
push esi
push esi
call fcn.0043b77b
add esp, 0x14
push dword [edi*8 + 0x478334]
push ebx
push ebp
call fcn.004502a4
add esp, 0xc
test eax, eax
je 0x442558
push esi
push esi
push esi
push esi
push esi
call fcn.0043b77b
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004500e7
add esp, 0xc
jmp 0x4425a0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4425a0
cmp ebp, 0xffffffff
je 0x4425a0
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x478334]
push dword [esi]
call fcn.0043b4e0
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 0x4500e7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00442fca
xor ebx, ebx
cmp dword [0x47c468], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4501bd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45029d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x45029d
push eax
call fcn.00442f5c
mov dword [esp], 0x468a58
push edi
mov dword [0x47c468], eax
call esi
push eax
call fcn.00442f5c
mov dword [esp], 0x468a44
push edi
mov dword [0x47c46c], eax
call esi
push eax
call fcn.00442f5c
mov dword [0x47c470], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004402bb
test eax, eax
pop ecx
pop ecx
je 0x45018b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043b77b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4501bd
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00442f5c
cmp eax, ebx
pop ecx
mov dword [0x47c478], eax
je 0x4501bd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00442f5c
pop ecx
mov dword [0x47c474], eax
mov eax, dword [0x47c474]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x450242
cmp dword [0x47c478], ecx
je 0x450242
push eax
call fcn.00442fd3
push dword [0x47c478]
mov esi, eax
call fcn.00442fd3
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x450242
cmp edi, ebx
je 0x450242
call esi
cmp eax, ebx
je 0x45020f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45020f
test byte [ebp - 0x18], 1
jne 0x450242
lea eax, [ebp - 0x10]
push eax
call fcn.004402f2
test eax, eax
pop ecx
je 0x45022a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043b77b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x450239
or dword [ebp + 0x10], 0x200000
jmp 0x45027d
or dword [ebp + 0x10], 0x40000
jmp 0x45027d
mov eax, dword [0x47c46c]
cmp eax, dword [ebp - 8]
je 0x45027d
push eax
call fcn.00442fd3
cmp eax, ebx
pop ecx
je 0x45027d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45027d
mov eax, dword [0x47c470]
cmp eax, dword [ebp - 8]
je 0x45027d
push eax
call fcn.00442fd3
cmp eax, ebx
pop ecx
je 0x45027d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47c468]
call fcn.00442fd3
cmp eax, ebx
pop ecx
je 0x45029d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45029f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4580e4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x478138]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00458079
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.0043b390
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 0x458133
cmp dword [ebp - 0x1c], 5
jb 0x45814b
jmp 0x458147
cmp dword [ebp - 0x10], 1
jne 0x45814b
cmp dword [ebp - 0x1c], 4
ja 0x458147
jne 0x45814b
cmp dword [ebp - 0x18], 0
jbe 0x45814b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x46ac24
call fcn.00457f4d
test eax, eax
jge 0x45816c
mov byte [0x4798ac], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043b0c4
add ebp, 0x78
leave
ret