joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443b60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x4b5930]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp edi, 0xffffffff
mov eax, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x2c]
mov dword [eax], 0
push esi
mov dword [ebx], 0
mov dword [esp + 0x14], eax
mov esi, ecx
mov dword [esp + 0x10], 0
mov dword [ebp], 0
jne 0x443bb4
mov eax, 6
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0046da06
add esp, 0x24
ret
push 0
lea eax, [esp + 0x14]
push eax
push 8
lea ecx, [esp + 0x28]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 8
je 0x443be7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0046da06
add esp, 0x24
ret
mov edx, dword [esi + 0x8c]
mov eax, dword [esi + 0x98]
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], eax
call dword [esi + 0xa4]
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x9c]
push ecx
mov ecx, dword [esi + 0x88]
push edx
push ecx
push eax
mov eax, dword [esp + 0x28]
push 8
lea edx, [esp + 0x30]
push edx
push eax
call dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
add esp, 0x1c
test eax, eax
mov dword [ebp], ecx
je 0x443cd3
push eax
mov dword [esp + 0x10], eax
call fcn.0046e07b
mov edx, dword [esp + 0x10]
add esp, 4
test edx, edx
mov ecx, eax
je 0x443c5f
mov byte [ecx], 0
add ecx, 1
sub edx, 1
jne 0x443c54
mov ecx, dword [esp + 0x20]
push 0
lea edx, [esp + 0x14]
push edx
push ecx
push eax
push edi
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x10], eax
je 0x443cbd
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp], 0
mov edx, dword [ebx]
push edx
call fcn.0046dd15
mov eax, dword [esp + 0x10]
add esp, 4
mov dword [ebx], 0
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0046da06
add esp, 0x24
ret
push eax
mov eax, dword [ebx]
push eax
call fcn.00447ee0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
add esp, 8
mov dword [edx], ecx
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [esp + 0x24]
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0046da06
add esp, 0x24
ret
Function at 0x446ab0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
push ebx
mov dword [edi + 8], 0
push esi
mov dword [edi], vtable.CTlsRef_struct_Tcl_Interp__.0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 4
mov dword [edi + 4], eax
call fcn.0044ccf7
add esp, 4
test eax, eax
je 0x446adf
mov dword [eax], 0
jmp 0x446ae1
xor eax, eax
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ecx
call esi
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
je 0x446b20
test eax, eax
jne 0x446b08
mov dword [edi + 8], ebx
mov edx, dword [0x4bb470]
push edx
call esi
mov dword [esp + 8], ebx
lea ebx, [esp + 8]
mov esi, eax
call fcn.00440840
pop esi
mov eax, edi
pop ebx
pop ecx
ret

Function at 0x446b50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
mov eax, dword [edi + 4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call ebp
test eax, eax
jne 0x446bbd
mov eax, dword [edi + 8]
test eax, eax
jne 0x446bc3
push 4
call fcn.0044ccf7
add esp, 4
test eax, eax
je 0x446b7f
mov dword [eax], 0
jmp 0x446b81
xor eax, eax
mov ecx, dword [edi + 4]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [edi + 4]
push edx
call ebp
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
je 0x446bbc
test eax, eax
jne 0x446ba3
mov dword [edi + 8], ebx
mov eax, dword [0x4bb470]
push esi
push eax
call ebp
mov dword [esp + 0xc], ebx
lea ebx, [esp + 0xc]
mov esi, eax
call fcn.00440840
pop esi
pop ebx
mov ecx, dword [edi + 4]
push ecx
call ebp
pop ebp
pop ecx
ret

Function at 0x446bd0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
push ebx
mov dword [edi + 8], 0
push esi
mov dword [edi], vtable.CTlsRef_void__.0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 4
mov dword [edi + 4], eax
call fcn.0044ccf7
add esp, 4
test eax, eax
je 0x446bff
mov dword [eax], 0
jmp 0x446c01
xor eax, eax
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ecx
call esi
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
je 0x446c40
test eax, eax
jne 0x446c28
mov dword [edi + 8], ebx
mov edx, dword [0x4bb470]
push edx
call esi
mov dword [esp + 8], ebx
lea ebx, [esp + 8]
mov esi, eax
call fcn.00440840
pop esi
mov eax, edi
pop ebx
pop ecx
ret
Function at 0x446c70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [edi + 4]
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
push eax
call ebp
test eax, eax
jne 0x446cdd
mov eax, dword [edi + 8]
test eax, eax
jne 0x446ce3
push 4
call fcn.0044ccf7
add esp, 4
test eax, eax
je 0x446ca3
mov dword [eax], 0
jmp 0x446ca5
xor eax, eax
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [edi + 4]
push edx
call ebp
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
je 0x446cdd
test eax, eax
jne 0x446cc6
mov dword [edi + 8], ebx
mov eax, dword [0x4bb470]
push eax
call ebp
mov dword [esp + 0x10], ebx
lea ebx, [esp + 0x10]
mov esi, eax
call fcn.00440840
mov ecx, dword [edi + 4]
push ecx
call ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x446cf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
mov eax, dword [edi + 4]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
push eax
call ebp
test eax, eax
jne 0x446d54
push 4
call fcn.0044ccf7
add esp, 4
test eax, eax
je 0x446d1a
mov dword [eax], 0
jmp 0x446d1c
xor eax, eax
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [edi + 4]
push edx
call ebp
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
je 0x446d54
test eax, eax
jne 0x446d3d
mov dword [edi + 8], ebx
mov eax, dword [0x4bb470]
push eax
call ebp
mov dword [esp + 0xc], ebx
lea ebx, [esp + 0xc]
mov esi, eax
call fcn.00440840
mov ecx, dword [edi + 4]
push ecx
call ebp
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
pop ecx
ret 4

Function at 0x446d70
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
push ebx
mov dword [edi + 8], 0
push esi
mov dword [edi], vtable.CTlsRef_struct_CRYPT_STREAM__.0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 4
mov dword [edi + 4], eax
call fcn.0044ccf7
add esp, 4
test eax, eax
je 0x446d9f
mov dword [eax], 0
jmp 0x446da1
xor eax, eax
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ecx
call esi
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, eax
je 0x446de0
test eax, eax
jne 0x446dc8
mov dword [edi + 8], ebx
mov edx, dword [0x4bb470]
push edx
call esi
mov dword [esp + 8], ebx
lea ebx, [esp + 8]
mov esi, eax
call fcn.00440840
pop esi
mov eax, edi
pop ebx
pop ecx
ret
Function at 0x44c920
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x28
mov eax, dword [0x4b5930]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ecx, ecx
jmp 0x44c930
xor eax, eax
movsx edi, byte [eax + 0x4b6dd8]
sub edi, 1
cmp edi, ecx
je 0x44c94a
add eax, 1
cmp eax, 0x20
jl 0x44c932
jmp 0x44c94e
mov byte [esp + ecx + 0x14], al
add ecx, 1
cmp ecx, 0x20
jl 0x44c930
shl edx, 0xb
lea edi, [esp + 0x15]
mov ebp, 0x4b6bd8
lea eax, [edx + esi + 0x180]
lea esp, [esp]
xor esi, esi
mov dword [esp + 0x10], eax
mov eax, esi
sar eax, 1
mov ecx, esi
and ecx, 1
and eax, 0xf
shl ecx, 4
or eax, ecx
mov ecx, esi
and ecx, 0x20
or eax, ecx
movsx eax, byte [eax + ebp]
xor edx, edx
test al, 8
je 0x44c9aa
movzx edx, byte [edi - 1]
mov ecx, 0x1f
sub ecx, edx
mov edx, 1
shl edx, cl
test al, 4
je 0x44c9c1
movzx ebx, byte [edi]
mov ecx, 0x1f
sub ecx, ebx
mov ebx, 1
shl ebx, cl
or edx, ebx
test al, 2
je 0x44c9d9
movzx ebx, byte [edi + 1]
mov ecx, 0x1f
sub ecx, ebx
mov ebx, 1
shl ebx, cl
or edx, ebx
test al, 1
je 0x44c9f1
movzx eax, byte [edi + 2]
mov ecx, 0x1f
sub ecx, eax
mov eax, 1
shl eax, cl
or edx, eax
mov eax, dword [esp + 0x10]
mov dword [eax], edx
add esi, 1
add eax, 4
cmp esi, 0x40
mov dword [esp + 0x10], eax
jl 0x44c976
add ebp, 0x40
add edi, 4
cmp ebp, 0x4b6dd8
jl 0x44c970
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046da06
add esp, 0x28
ret

Function at 0x44d7b2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4b5930]
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 0x44d7f2
push 0x492bb8
push 4
push eax
call fcn.0046d9a1
push eax
call fcn.00404ff0
add esp, 0x10
jmp 0x44d804
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x44d872
push edi
call fcn.004734e6
mov edi, dword [eax]
call fcn.004734e6
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.00470c4e
add esp, 0x18
mov ebx, eax
call fcn.004734e6
cmp dword [eax], 0
je 0x44d852
call fcn.004734e6
push dword [eax]
call fcn.0044d746
pop ecx
jmp 0x44d859
call fcn.004734e6
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x44d872
cmp ebx, esi
jae 0x44d872
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x44d874
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0046da06
leave
ret
Function at 0x4550da
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x455113
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.0040f630
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040f5e0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x456750
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x49adb9
mov ecx, edi
call fcn.0040b190
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x4567a3
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4567b6
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0040f630
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040f5e0
jmp 0x4567b6
mov ecx, esi
call fcn.0044e2d3
test eax, eax
je 0x4567b6
push edi
mov ecx, eax
call fcn.004550da
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x456d9a
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 0x456ddd
call fcn.0044f60f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x456ddd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x456df8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00456951
test ebx, ebx
mov esi, eax
je 0x456df6
test edi, edi
je 0x456df6
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x457739
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x48979f
call fcn.00473340
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.0044f60f
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x457784
call fcn.0044f60f
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 0x457795
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x4577a2
or eax, 0xffffffff
jmp 0x4578fe
mov ecx, esi
call fcn.0045728b
mov dword [ebp - 0x14], eax
call fcn.00454112
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x457820
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x457820
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x457820
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0041bbc0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x457820
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x457820
mov ecx, ebx
call fcn.0044e4ae
test eax, eax
je 0x457820
push 0
mov ecx, ebx
call fcn.0044e4c9
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00455b0a
push dword [ebp - 0x14]
call fcn.0045406a
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00457541
xor edi, edi
cmp eax, edi
je 0x45787d
test byte [esi + 0x3c], 0x10
je 0x457867
push 4
pop edi
mov ecx, esi
call fcn.0044e372
test ax, 0x100
je 0x45785d
push 5
pop edi
push edi
mov ecx, esi
call fcn.00453d1d
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x45787d
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0044e6b1
or dword [ebp - 4], 0xffffffff
jmp 0x4578a8
cmp dword [ebp - 0x28], edi
je 0x4578b6
push 1
mov ecx, ebx
call fcn.0044e4c9
cmp dword [ebp - 0x2c], edi
je 0x4578c6
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4578df
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4578df
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.004572c5
cmp dword [esi + 0x58], edi
je 0x4578fb
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.004733e5
ret
Function at 0x45a1f1
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 0x45a21a
call fcn.0044f60f
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 0x45a23d
push eax
push dword [esi + 4]
call fcn.0045a17c
push esi
push eax
mov ecx, 0x4b9e44
call fcn.00459e56
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x460a8f
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x460a98
xor eax, eax
jmp 0x460b01
cmp dword [esp + 8], 0
jne 0x460aa4
call fcn.004518b7
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.004757ed
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x460adf
push dword [esi + 0x10]
call fcn.004754f3
test eax, eax
pop ecx
jne 0x460adf
mov esi, dword [esi + 0xc]
call fcn.004734f9
push esi
push dword [eax]
push 1
call fcn.004598b7
push dword [esi + 0x10]
call fcn.00475522
test eax, eax
pop ecx
je 0x460afe
push dword [esi + 0x10]
call fcn.00475447
push eax
call fcn.00404ff0
pop ecx
pop ecx
jmp 0x460acd
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x460b0a
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x460b14
call fcn.004518b7
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00475967
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x460b41
mov esi, dword [esi + 0xc]
call fcn.004734f9
push esi
push dword [eax]
push 1
call fcn.004598b7
pop esi
ret 8

Function at 0x468c58
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 0x468c9e
call fcn.0044f60f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x468c9e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x468ce1
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 0x468cca
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 0x468cca
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x468cde
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 0x46da06
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b5930]
jne 0x46da10
repz ret
jmp fcn.00476a18
Function at 0x475551
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 0x47558e
cmp dword [ebp + 0x14], edi
je 0x47558e
cmp ecx, edi
jne 0x475595
call fcn.004734e6
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0046ec99
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4755a9
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4755ca
cmp ebx, 0xffffffff
je 0x4755b9
push ebx
push edi
push ecx
call fcn.00473530
add esp, 0xc
cmp esi, edi
je 0x475576
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x475576
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4755e6
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4755ed
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4756de
test word [esi + 0xc], 0x10c
je 0x475641
mov eax, dword [esi + 4]
test eax, eax
je 0x475641
jl 0x47573f
cmp ebx, eax
mov edi, ebx
jb 0x475612
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4756e6
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0046ee26
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 0x4756d6
cmp ebx, dword [ebp - 0xc]
jb 0x4756ae
cmp dword [ebp - 0xc], 0
je 0x47566b
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x475660
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x475667
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x475676
mov eax, SysReAllocString
cmp ebx, eax
ja 0x475676
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x475712
push eax
push dword [ebp - 8]
push esi
call fcn.0047541a
pop ecx
push eax
call fcn.00481517
add esp, 0xc
test eax, eax
je 0x475751
cmp eax, 0xffffffff
je 0x47573f
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4756d6
push esi
call fcn.00480e36
cmp eax, 0xffffffff
pop ecx
je 0x475743
cmp dword [ebp - 4], 0
je 0x475712
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 0x4755f5
mov eax, dword [ebp + 0x14]
jmp 0x475590
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4756fd
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00473530
add esp, 0xc
call fcn.004734e6
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x475586
cmp dword [ebp + 0xc], 0xffffffff
je 0x475728
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00473530
add esp, 0xc
call fcn.004734e6
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x475586
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x475590
or dword [esi + 0xc], 0x10
jmp 0x475743
Function at 0x477c15
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 + 0x4b5c00]
je 0x477c30
inc edi
cmp edi, 0x17
jb 0x477c21
cmp edi, 0x17
jae 0x477db0
push ebp
push 3
call fcn.00481b47
cmp eax, 1
pop ecx
je 0x477d7c
push 3
call fcn.00481b47
test eax, eax
pop ecx
jne 0x477c64
cmp dword [0x4b5590], 1
je 0x477d7c
cmp ebx, 0xfc
je 0x477daf
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4ba6a8
push ebp
call fcn.0046d9a1
add esp, 0xc
test eax, eax
je 0x477c9a
push esi
push esi
push esi
push esi
push esi
call fcn.0046eb9d
add esp, 0x14
push 0x104
mov esi, 0x4ba6c1
push esi
push 0
mov byte [0x4ba7c5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x477cde
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0046d9a1
add esp, 0xc
test eax, eax
je 0x477cde
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0046eb9d
add esp, 0x14
push esi
call fcn.00473420
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x477d23
push esi
call fcn.00473420
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4ba9bc
push 0x49fe90
sub ecx, eax
push ecx
push eax
call fcn.00470dad
add esp, 0x14
test eax, eax
je 0x477d23
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0046eb9d
add esp, 0x14
jmp 0x477d25
xor esi, esi
push 0x497560
push ebx
push ebp
call fcn.00472593
add esp, 0xc
test eax, eax
je 0x477d45
push esi
push esi
push esi
push esi
push esi
call fcn.0046eb9d
add esp, 0x14
push dword [edi*8 + 0x4b5c04]
push ebx
push ebp
call fcn.00472593
add esp, 0xc
test eax, eax
je 0x477d67
push esi
push esi
push esi
push esi
push esi
call fcn.0046eb9d
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0048198a
add esp, 0xc
jmp 0x477daf
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x477daf
cmp ebp, 0xffffffff
je 0x477daf
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4b5c04]
push dword [esi]
call fcn.00473420
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