joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4160f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47c289
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x49d7b0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov esi, 1
push 0x48d439
mov ecx, edi
mov dword [esp + 0x3c], esi
call fcn.00402310
sub esp, 0x1c
lea eax, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x2c], esp
mov dword [esp + 0x24], esi
push eax
lea esi, [esp + 0x7c]
call fcn.00401d70
mov ecx, esi
lea esi, [esp + 0x30]
call fcn.004161a0
add esp, 0x1c
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov byte [esp + 0x44], 2
call fcn.00401f30
mov ecx, esi
call fcn.00401db0
lea ecx, [esp + 0x40]
call fcn.00401db0
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret

Function at 0x416c10
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
test esi, esi
je 0x416c72
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
mov dword [edi], 0
lea esp, [esp]
cmp esi, 0x400000
mov eax, 0x400000
ja 0x416c3f
mov eax, esi
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x416c77
test ecx, ecx
je 0x416c70
test esi, esi
ja 0x416c30
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebp
pop ebx
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x416c90
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
test esi, esi
je 0x416cf2
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
mov dword [edi], 0
lea esp, [esp]
cmp esi, 0x400000
mov eax, 0x400000
ja 0x416cbf
mov eax, esi
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x416cf7
test ecx, ecx
je 0x416cf0
test esi, esi
ja 0x416cb0
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebp
pop ebx
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x4195b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x4a2700], ecx
add edx, 1
cmp edx, 0x100
jl 0x4195b2
cmp edx, 0x800
jae 0x41969b
mov edi, edi
mov eax, dword [edx*4 + 0x4a2300]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4a2700]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x4a26fc], eax
jb 0x419670
mov dword [0x49f420], 0x41a330
call fcn.0041a500
test eax, eax
jne 0x4196b8
mov dword [0x49f420], 0x41a3e0
ret
Function at 0x41d710
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x41d729
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x41d750
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x41d76f
jmp 0x41d760
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41d76f
add edi, 1
cmp edi, edx
jb 0x41d760
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x41d885
cmp ecx, 3
jbe 0x41d7a5
xor ebp, ebp
mov cl, byte [edi + 4]
test cl, cl
mov dword [esp + 0x1c], eax
je 0x41d7e3
cmp cl, 0xff
je 0x41d7e3
and ebp, 3
add ebp, ebp
or ebp, 1
add eax, 1
jmp 0x41d750
add ecx, 0xffffffff
shl ebp, cl
and ebp, 7
je 0x41d788
movzx ecx, byte [ebp + 0x47e944]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x47e93c], 0
mov cl, byte [ebx + 4]
je 0x41d7cf
test cl, cl
je 0x41d7cf
cmp cl, 0xff
jne 0x41d788
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
add eax, 1
jmp 0x41d750
xor edx, edx
mov dh, cl
movzx ecx, byte [edi + 2]
mov dl, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x41d80e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x41d814
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x41d856
movzx esi, byte [ebp + 0x47e944]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x41d839
cmp dl, 0xff
jne 0x41d852
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, ebx
jmp 0x41d800
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
sub dl, 1
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x41d750
cmp ecx, 3
pop edi
pop esi
pop ebx
jbe 0x41d898
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
add ecx, 0xffffffff
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret

Function at 0x423012
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 0x423055
call fcn.00428773
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x423055
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x423070
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00422bcc
test ebx, ebx
mov esi, eax
je 0x42306e
test edi, edi
je 0x42306e
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4260ec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x478e2b
call fcn.00442abe
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.00428773
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x426137
call fcn.00428773
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 0x426148
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x426155
or eax, 0xffffffff
jmp 0x4262b1
mov ecx, esi
call fcn.00425c3e
mov dword [ebp - 0x14], eax
call fcn.004204c3
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4261d3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4261d3
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4261d3
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0041f084
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4261d3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4261d3
mov ecx, ebx
call fcn.004247db
test eax, eax
je 0x4261d3
push 0
mov ecx, ebx
call fcn.004247f6
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00421ef8
push dword [ebp - 0x14]
call fcn.0042041b
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00425ef4
xor edi, edi
cmp eax, edi
je 0x426230
test byte [esi + 0x3c], 0x10
je 0x42621a
push 4
pop edi
mov ecx, esi
call fcn.00424698
test ax, 0x100
je 0x426210
push 5
pop edi
push edi
mov ecx, esi
call fcn.0041ffb1
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x426230
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004249c9
or dword [ebp - 4], 0xffffffff
jmp 0x42625b
cmp dword [ebp - 0x28], edi
je 0x426269
push 1
mov ecx, ebx
call fcn.004247f6
cmp dword [ebp - 0x2c], edi
je 0x426279
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x426292
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x426292
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.00425c78
cmp dword [esi + 0x58], edi
je 0x4262ae
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00442b63
ret
Function at 0x42631b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x42633b
cmp dword [edi + 0x54], 0
jne 0x42633b
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00428773
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004262e2
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x427685
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x49d7b0]
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 0x4276c2
push 0x480388
push 4
push eax
call fcn.0043e86f
push eax
call fcn.00403de0
add esp, 0x10
jmp 0x4276d4
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42773f
push edi
call fcn.00441d61
mov edi, dword [eax]
call fcn.00441d61
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.00442dfc
add esp, 0x18
mov ebx, eax
call fcn.00441d61
cmp dword [eax], 0
je 0x42771f
call fcn.00441d61
push dword [eax]
call fcn.0041dd58
pop ecx
jmp 0x427726
call fcn.00441d61
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x42773f
cmp ebx, esi
jae 0x42773f
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x427741
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043bced
leave
ret
Function at 0x428c76
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 0x428cbc
call fcn.00428773
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x428cbc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x428cff
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 0x428ce8
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 0x428ce8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x428cfc
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 0x42a50b
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x42a514
xor eax, eax
jmp 0x42a57d
cmp dword [esp + 8], 0
jne 0x42a520
call fcn.00425298
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0044508d
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x42a55b
push dword [esi + 0x10]
call fcn.00444d93
test eax, eax
pop ecx
jne 0x42a55b
mov esi, dword [esi + 0xc]
call fcn.00441d74
push esi
push dword [eax]
push 1
call fcn.0042f630
push dword [esi + 0x10]
call fcn.00444dc2
test eax, eax
pop ecx
je 0x42a57a
push dword [esi + 0x10]
call fcn.00444ce7
push eax
call fcn.00403de0
pop ecx
pop ecx
jmp 0x42a549
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x42a586
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x42a590
call fcn.00425298
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0043f6b1
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x42a5bd
mov esi, dword [esi + 0xc]
call fcn.00441d74
push esi
push dword [eax]
push 1
call fcn.0042f630
pop esi
ret 8

Function at 0x42b358
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 0x42b381
call fcn.00428773
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 0x42b3a4
push eax
push dword [esi + 4]
call fcn.0042b2e3
push esi
push eax
mov ecx, 0x4a1058
call fcn.0042afb6
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x42ca14
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 0x42ca42
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42ca60
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042c97e
jmp 0x42ca60
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42ca60
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042c97e
test edi, edi
mov eax, edi
jne 0x42ca4a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4a1094]
test ecx, ecx
je 0x42cb23
jmp 0x42ca13
ret 8

Function at 0x43bced
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49d7b0]
jne 0x43bcf7
repz ret
jmp fcn.00448acc
Function at 0x444df1
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 0x444e2e
cmp dword [ebp + 0x14], edi
je 0x444e2e
cmp ecx, edi
jne 0x444e35
call fcn.00441d61
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043c1aa
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x444e49
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x444e6a
cmp ebx, 0xffffffff
je 0x444e59
push ebx
push edi
push ecx
call fcn.0043bdc0
add esp, 0xc
cmp esi, edi
je 0x444e16
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x444e16
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x444e86
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x444e8d
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x444f7e
test word [esi + 0xc], 0x10c
je 0x444ee1
mov eax, dword [esi + 4]
test eax, eax
je 0x444ee1
jl 0x444fdf
cmp ebx, eax
mov edi, ebx
jb 0x444eb2
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x444f86
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0043bd41
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 0x444f76
cmp ebx, dword [ebp - 0xc]
jb 0x444f4e
cmp dword [ebp - 0xc], 0
je 0x444f0b
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x444f00
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x444f07
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x444f16
mov eax, SysReAllocString
cmp ebx, eax
ja 0x444f16
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x444fb2
push eax
push dword [ebp - 8]
push esi
call fcn.00444b34
pop ecx
push eax
call fcn.00441bd4
add esp, 0xc
test eax, eax
je 0x444ff1
cmp eax, 0xffffffff
je 0x444fdf
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x444f76
push esi
call fcn.0044f1bb
cmp eax, 0xffffffff
pop ecx
je 0x444fe3
cmp dword [ebp - 4], 0
je 0x444fb2
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 0x444e95
mov eax, dword [ebp + 0x14]
jmp 0x444e30
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x444f9d
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043bdc0
add esp, 0xc
call fcn.00441d61
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x444e26
cmp dword [ebp + 0xc], 0xffffffff
je 0x444fc8
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043bdc0
add esp, 0xc
call fcn.00441d61
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x444e26
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x444e30
or dword [esi + 0xc], 0x10
jmp 0x444fe3
Function at 0x4464cc
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 + 0x49db50]
je 0x4464e7
inc edi
cmp edi, 0x17
jb 0x4464d8
cmp edi, 0x17
jae 0x446667
push ebp
push 3
call fcn.00453d04
cmp eax, 1
pop ecx
je 0x446633
push 3
call fcn.00453d04
test eax, eax
pop ecx
jne 0x44651b
cmp dword [0x49d760], 1
je 0x446633
cmp ebx, 0xfc
je 0x446666
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4a14c0
push ebp
call fcn.00449744
add esp, 0xc
test eax, eax
je 0x446551
push esi
push esi
push esi
push esi
push esi
call fcn.0043c0ae
add esp, 0x14
push 0x104
mov esi, 0x4a14d9
push esi
push 0
mov byte [0x4a15dd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x446595
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00449744
add esp, 0xc
test eax, eax
je 0x446595
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043c0ae
add esp, 0x14
push esi
call fcn.0043c350
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4465da
push esi
call fcn.0043c350
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4a17d4
push 0x482c3c
sub ecx, eax
push ecx
push eax
call fcn.0044cc70
add esp, 0x14
test eax, eax
je 0x4465da
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043c0ae
add esp, 0x14
jmp 0x4465dc
xor esi, esi
push 0x482c38
push ebx
push ebp
call fcn.0044cbff
add esp, 0xc
test eax, eax
je 0x4465fc
push esi
push esi
push esi
push esi
push esi
call fcn.0043c0ae
add esp, 0x14
push dword [edi*8 + 0x49db54]
push ebx
push ebp
call fcn.0044cbff
add esp, 0xc
test eax, eax
je 0x44661e
push esi
push esi
push esi
push esi
push esi
call fcn.0043c0ae
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00453b47
add esp, 0xc
jmp 0x446666
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x446666
cmp ebp, 0xffffffff
je 0x446666
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x49db54]
push dword [esi]
call fcn.0043c350
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 0x453b47
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0044707c
xor ebx, ebx
cmp dword [0x4a1f08], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x453c1d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x453cfd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x453cfd
push eax
call fcn.0044700e
mov dword [esp], 0x483f30
push edi
mov dword [0x4a1f08], eax
call esi
push eax
call fcn.0044700e
mov dword [esp], 0x483f1c
push edi
mov dword [0x4a1f0c], eax
call esi
push eax
call fcn.0044700e
mov dword [0x4a1f10], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043c6fc
test eax, eax
pop ecx
pop ecx
je 0x453beb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043c0ae
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x453c1d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0044700e
cmp eax, ebx
pop ecx
mov dword [0x4a1f18], eax
je 0x453c1d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044700e
pop ecx
mov dword [0x4a1f14], eax
mov eax, dword [0x4a1f14]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x453ca2
cmp dword [0x4a1f18], ecx
je 0x453ca2
push eax
call fcn.00447085
push dword [0x4a1f18]
mov esi, eax
call fcn.00447085
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x453ca2
cmp edi, ebx
je 0x453ca2
call esi
cmp eax, ebx
je 0x453c6f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x453c6f
test byte [ebp - 0x18], 1
jne 0x453ca2
lea eax, [ebp - 0x10]
push eax
call fcn.0043c733
test eax, eax
pop ecx
je 0x453c8a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043c0ae
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x453c99
or dword [ebp + 0x10], 0x200000
jmp 0x453cdd
or dword [ebp + 0x10], 0x40000
jmp 0x453cdd
mov eax, dword [0x4a1f0c]
cmp eax, dword [ebp - 8]
je 0x453cdd
push eax
call fcn.00447085
cmp eax, ebx
pop ecx
je 0x453cdd
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x453cdd
mov eax, dword [0x4a1f10]
cmp eax, dword [ebp - 8]
je 0x453cdd
push eax
call fcn.00447085
cmp eax, ebx
pop ecx
je 0x453cdd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a1f08]
call fcn.00447085
cmp eax, ebx
pop ecx
je 0x453cfd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x453cff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x459ac2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x49d7b0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00459a57
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.0043bdc0
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 0x459b11
cmp dword [ebp - 0x1c], 5
jb 0x459b29
jmp 0x459b25
cmp dword [ebp - 0x10], 1
jne 0x459b29
cmp dword [ebp - 0x1c], 4
ja 0x459b25
jne 0x459b29
cmp dword [ebp - 0x18], 0
jbe 0x459b29
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x484f78
call fcn.00459948
test eax, eax
jge 0x459b4a
mov byte [0x4a26c8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043bced
add ebp, 0x78
leave
ret