joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409190
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x204
mov eax, dword [0x452528]
xor eax, esp
mov dword [esp + 0x200], eax
mov eax, ecx
push esi
mov byte [esp + 4], 5
mov byte [esp + 5], 1
mov byte [esp + 6], 0
mov byte [esp + 7], 3
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4091c0
sub eax, esi
mov byte [esp + 8], al
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4091d4
sub eax, esi
push eax
push ecx
lea eax, [esp + 0x11]
push eax
call fcn.0042edb0
movzx esi, byte [esp + 0x14]
mov ecx, dword [esp + 0x218]
add esp, 0xc
push ecx
add esi, 5
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + esi + 4], ax
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x409236
push 0
add esi, 2
push esi
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x409236
add dword [edi + 0x80], 0x1a00
jmp 0x409349
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x409255
push 0
push 0x200
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x409264
add dword [edi + 0x80], 0x1b00
jmp 0x409349
cmp eax, 0xa
jge 0x409278
mov dword [edi + 0x80], 0xf00
jmp 0x409349
cmp byte [esp + 4], 5
jne 0x40933f
cmp byte [esp + 6], 0
jne 0x40933f
mov al, byte [esp + 5]
test al, al
jne 0x4092b0
mov al, 1
pop esi
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00426fe7
add esp, 0x204
ret 4
cmp al, 1
jne 0x4092c3
mov dword [edi + 0x80], 0x1100
jmp 0x409349
cmp al, 2
jne 0x4092d3
mov dword [edi + 0x80], 0x1200
jmp 0x409349
cmp al, 3
jne 0x4092e3
mov dword [edi + 0x80], 0x1300
jmp 0x409349
cmp al, 4
jne 0x4092f3
mov dword [edi + 0x80], 0x1400
jmp 0x409349
cmp al, 5
jne 0x409303
mov dword [edi + 0x80], 0x1500
jmp 0x409349
cmp al, 6
jne 0x409313
mov dword [edi + 0x80], 0x1600
jmp 0x409349
cmp al, 7
jne 0x409323
mov dword [edi + 0x80], 0x1700
jmp 0x409349
cmp al, 8
jne 0x409333
mov dword [edi + 0x80], 0x1800
jmp 0x409349
mov dword [edi + 0x80], 0x1900
jmp 0x409349
mov dword [edi + 0x80], 0x1000
mov ecx, dword [esp + 0x204]
pop esi
xor ecx, esp
xor al, al
call fcn.00426fe7
add esp, 0x204
ret 4
Function at 0x409370
Capabilities:
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x452528]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x108]
push esi
push edi
push eax
mov esi, ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x4093c1
mov dword [esi + 0x80], 2
xor al, al
mov ecx, dword [esp + 0x108]
pop edi
pop esi
xor ecx, esp
call fcn.00426fe7
add esp, 0x104
ret 8
cmp word [edi + 8], 2
je 0x4093d4
mov dword [esi + 0x80], 3
jmp 0x4093a6
mov eax, dword [esp + 0x114]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [esi + 0x60], 0x10
movzx eax, ax
mov byte [esp + 8], 4
mov byte [esp + 9], 1
mov word [esp + 0xa], ax
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov edi, dword [esi + 0x5c]
mov dword [esp + 0xc], eax
jb 0x40940d
mov eax, dword [esi + 0x4c]
jmp 0x409410
lea eax, [esi + 0x4c]
push edi
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0042edb0
mov eax, dword [esi + 8]
add esp, 0xc
cmp eax, 0xffffffff
mov byte [esp + edi + 0x10], 0
je 0x409446
push 0
add edi, 9
push edi
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
je 0x4093a6
mov esi, dword [esi + 8]
cmp esi, 0xffffffff
je 0x4093a6
push 0
push 0x100
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 8
jne 0x4093a6
cmp byte [esp + 8], 0
jne 0x4093a6
mov al, byte [esp + 9]
cmp al, 0x5a
jne 0x4093a6
mov al, 1
jmp 0x4093a8
Function at 0x409490
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x452528]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x10c]
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push edi
push eax
mov byte [esp + 0x10], 4
mov byte [esp + 0x11], 1
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp + 0x5c]
xor ebx, ebx
cmp dword [ebp + 0x60], 0x10
mov word [esp + 0xe], ax
mov byte [esp + 0x12], bl
mov byte [esp + 0x11], bl
mov byte [esp + 0x10], bl
mov byte [esp + 0x13], 1
jb 0x4094ec
mov eax, dword [ebp + 0x4c]
jmp 0x4094ef
lea eax, [ebp + 0x4c]
push edi
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0042edb0
mov eax, esi
add esp, 0xc
mov byte [esp + edi + 0x14], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409507
sub eax, edx
push eax
lea edx, [esp + edi + 0x19]
push esi
push edx
call fcn.0042edb0
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409526
sub eax, edx
add eax, edi
mov byte [esp + eax + 0x15], bl
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409540
mov ecx, dword [ebp + 8]
sub eax, edx
cmp ecx, 0xffffffff
je 0x409569
push ebx
lea edx, [eax + edi + 0xa]
push edx
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, ebx
je 0x40959a
mov ebp, dword [ebp + 8]
cmp ebp, 0xffffffff
je 0x40959a
push ebx
push 0x100
lea ecx, [esp + 0x14]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 8
jne 0x40959a
cmp byte [esp + 0xc], bl
jne 0x40959a
mov al, byte [esp + 0xd]
cmp al, 0x5a
jne 0x40959a
mov al, 1
jmp 0x40959c
xor al, al
mov ecx, dword [esp + 0x10c]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00426fe7
add esp, 0x104
ret 8
Function at 0x4098b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esi + 4]
push ebx
push ebp
xor ebp, ebp
cmp ecx, ebp
je 0x4098c6
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 4], ebp
mov eax, dword [esi]
cmp eax, ebp
je 0x4098de
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi], ebp
mov ecx, dword [esp + 0xc]
push 0x447414
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
cmp ebx, ebp
jne 0x4098fc
pop ebp
xor al, al
pop ebx
ret 4
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebp
je 0x4099c3
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, ebp
je 0x4099c3
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebp
mov dword [esi], eax
je 0x4099c3
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebp
je 0x4099b8
push edi
push ebx
push eax
call fcn.0042edb0
mov eax, dword [esi]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push ebp
push eax
mov dword [esp + 0x1c], ebp
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4099af
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00409a30
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
add esp, 4
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x4099af
mov ecx, dword [eax + 8]
cmp ecx, ebp
mov dword [eax + 8], ebp
jne 0x40999d
pop edi
pop ebp
mov al, 1
pop ebx
ret 4
mov ecx, dword [esi + 4]
cmp ecx, ebp
je 0x4099ac
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 4], ebp
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi], ebp
pop edi
pop ebp
xor al, al
pop ebx
ret 4

Function at 0x40d300
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40d339
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.0040d29b
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040c140
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x40eec6
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 0x40ef09
call fcn.00415594
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40ef09
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40ef24
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040ea7d
test ebx, ebx
mov esi, eax
je 0x40ef22
test edi, edi
je 0x40ef22
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x411a62
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x452528]
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 - 0x11c]
jne 0x411aa2
push 0x442c10
push 4
push eax
call fcn.00429656
push eax
call fcn.00408e00
add esp, 0x10
jmp 0x411ab4
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x411b22
push edi
call fcn.0042aada
mov edi, dword [eax]
call fcn.0042aada
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004280df
add esp, 0x18
mov ebx, eax
call fcn.0042aada
cmp dword [eax], 0
je 0x411b02
call fcn.0042aada
push dword [eax]
call fcn.00409b57
pop ecx
jmp 0x411b09
call fcn.0042aada
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x411b22
cmp ebx, esi
jae 0x411b22
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x411b24
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00426fe7
leave
ret
Function at 0x412e05
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 0x412e4b
call fcn.00415594
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x412e4b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x412e8e
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 0x412e77
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 0x412e77
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x412e8b
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 0x414673
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x43e304
call fcn.0042a6c7
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.00415594
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4146be
call fcn.00415594
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x4146cf
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x4146dc
or eax, 0xffffffff
jmp 0x414838
mov ecx, esi
call fcn.004141a3
mov dword [ebp - 0x14], eax
call fcn.0040c2ef
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x41475a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41475a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41475a
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0040ae8b
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x41475a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x41475a
mov ecx, ebx
call fcn.004102ee
test eax, eax
je 0x41475a
push 0
mov ecx, ebx
call fcn.00410309
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040dd84
push dword [ebp - 0x14]
call fcn.0040c247
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041447b
xor edi, edi
cmp eax, edi
je 0x4147b7
test byte [esi + 0x3c], 0x10
je 0x4147a1
push 4
pop edi
mov ecx, esi
call fcn.004101ab
test ax, 0x100
je 0x414797
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040bdb8
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4147b7
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004104dc
or dword [ebp - 4], 0xffffffff
jmp 0x4147e2
cmp dword [ebp - 0x28], edi
je 0x4147f0
push 1
mov ecx, ebx
call fcn.00410309
cmp dword [ebp - 0x2c], edi
je 0x414800
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x414819
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x414819
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.004141dd
cmp dword [esi + 0x58], edi
je 0x414835
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0042a76c
ret
Function at 0x41618a
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 0x4161b3
call fcn.00415594
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 0x4161d6
push eax
push dword [esi + 4]
call fcn.004160fb
push esi
push eax
mov ecx, 0x4557d0
call fcn.00415db1
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x416a16
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x43e4e2
call fcn.0042a694
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.004169d8
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401fa0
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 0x416a7c
push eax
push dword [esi + 8]
call fcn.004160fb
push dword [esi + 0xc]
mov ecx, 0x4557d0
push eax
call fcn.00415db1
mov eax, esi
call fcn.0042a76c
ret 0x18

Function at 0x4172e8
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 0x417316
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x417334
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00417252
jmp 0x417334
mov eax, dword [esi + 0x14]
test eax, eax
je 0x417334
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00417252
test edi, edi
mov eax, edi
jne 0x41731e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x455810]
test ecx, ecx
je 0x4173f7
jmp 0x4172e7
ret 8

Function at 0x4231a6
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x4231af
xor eax, eax
jmp 0x423218
cmp dword [esp + 8], 0
jne 0x4231bb
call fcn.004112af
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.00427ac3
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4231f6
push dword [esi + 0x10]
call fcn.004275c7
test eax, eax
pop ecx
jne 0x4231f6
mov esi, dword [esi + 0xc]
call fcn.0042aaed
push esi
push dword [eax]
push 1
call fcn.004241fb
push dword [esi + 0x10]
call fcn.004275f6
test eax, eax
pop ecx
je 0x423215
push dword [esi + 0x10]
call fcn.0042d9d0
push eax
call fcn.00408e00
pop ecx
pop ecx
jmp 0x4231e4
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x423221
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x42322b
call fcn.004112af
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00427c3d
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x423258
mov esi, dword [esi + 0xc]
call fcn.0042aaed
push esi
push dword [eax]
push 1
call fcn.004241fb
pop esi
ret 8

Function at 0x426fe7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x452528]
jne 0x426ff1
repz ret
jmp fcn.0042e288
Function at 0x427827
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 0x427864
cmp dword [ebp + 0x14], edi
je 0x427864
cmp ecx, edi
jne 0x42786b
call fcn.0042aada
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00428772
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x42787f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4278a0
cmp ebx, 0xffffffff
je 0x42788f
push ebx
push edi
push ecx
call fcn.0042a1a0
add esp, 0xc
cmp esi, edi
je 0x42784c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x42784c
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4278bc
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4278c3
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4279b4
test word [esi + 0xc], 0x10c
je 0x427917
mov eax, dword [esi + 4]
test eax, eax
je 0x427917
jl 0x427a15
cmp ebx, eax
mov edi, ebx
jb 0x4278e8
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4279bc
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042719e
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 0x4279ac
cmp ebx, dword [ebp - 0xc]
jb 0x427984
cmp dword [ebp - 0xc], 0
je 0x427941
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x427936
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x42793d
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x42794c
mov eax, SysReAllocString
cmp ebx, eax
ja 0x42794c
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4279e8
push eax
push dword [ebp - 8]
push esi
call fcn.00427274
pop ecx
push eax
call fcn.0042f6d6
add esp, 0xc
test eax, eax
je 0x427a27
cmp eax, 0xffffffff
je 0x427a15
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4279ac
push esi
call fcn.00430400
cmp eax, 0xffffffff
pop ecx
je 0x427a19
cmp dword [ebp - 4], 0
je 0x4279e8
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 0x4278cb
mov eax, dword [ebp + 0x14]
jmp 0x427866
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4279d3
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0042a1a0
add esp, 0xc
call fcn.0042aada
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x42785c
cmp dword [ebp + 0xc], 0xffffffff
je 0x4279fe
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0042a1a0
add esp, 0xc
call fcn.0042aada
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x42785c
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x427866
or dword [esi + 0xc], 0x10
jmp 0x427a19
Function at 0x433648
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 + 0x453250]
je 0x433663
inc edi
cmp edi, 0x17
jb 0x433654
cmp edi, 0x17
jae 0x4337e3
push ebp
push 3
call fcn.0043a28f
cmp eax, 1
pop ecx
je 0x4337af
push 3
call fcn.0043a28f
test eax, eax
pop ecx
jne 0x433697
cmp dword [0x452524], 1
je 0x4337af
cmp ebx, 0xfc
je 0x4337e2
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x456050
push ebp
call fcn.00429656
add esp, 0xc
test eax, eax
je 0x4336cd
push esi
push esi
push esi
push esi
push esi
call fcn.00428676
add esp, 0x14
push 0x104
mov esi, 0x456069
push esi
push 0
mov byte [0x45616d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x433711
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00429656
add esp, 0xc
test eax, eax
je 0x433711
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00428676
add esp, 0x14
push esi
call fcn.0042a9a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x433756
push esi
call fcn.0042a9a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x456364
push 0x4452dc
sub ecx, eax
push ecx
push eax
call fcn.0042a21a
add esp, 0x14
test eax, eax
je 0x433756
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00428676
add esp, 0x14
jmp 0x433758
xor esi, esi
push 0x4452d8
push ebx
push ebp
call fcn.0042c2f3
add esp, 0xc
test eax, eax
je 0x433778
push esi
push esi
push esi
push esi
push esi
call fcn.00428676
add esp, 0x14
push dword [edi*8 + 0x453254]
push ebx
push ebp
call fcn.0042c2f3
add esp, 0xc
test eax, eax
je 0x43379a
push esi
push esi
push esi
push esi
push esi
call fcn.00428676
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043a0d2
add esp, 0xc
jmp 0x4337e2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4337e2
cmp ebp, 0xffffffff
je 0x4337e2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x453254]
push dword [esi]
call fcn.0042a9a0
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