joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433e21
Capabilities:
Initialize winhttp library
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0c
mov eax, dword [0x67e2d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
jne 0x433edf
push 0x401
lea eax, [ebp - 0x408]
mov dword [ebp - 0xc0c], 0x400
push ebx
push eax
call fcn.0056b050
add esp, 0xc
lea eax, [ebp - 0xc0c]
push eax
lea eax, [ebp - 0x408]
push eax
push ebx
call sub.urlmon.dll_ObtainUserAgentString
push 0x800
lea eax, [ebp - 0xc08]
push ebx
push eax
call fcn.0056b050
lea eax, [ebp - 0x408]
push eax
call fcn.00588700
add esp, 0x10
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x433eaa
mov eax, ebx
jmp 0x433ec4
lea eax, [esi + esi]
call fcn.00507810
mov eax, esp
lea ecx, [ebp - 0x408]
push 3
push esi
push ecx
push eax
call fcn.0042e532
push eax
lea eax, [ebp - 0xc08]
push 0x5f1ce0
push eax
call fcn.00436927
add esp, 0xc
lea ecx, [ebp - 0xc08]
push ebx
xor eax, eax
test edi, edi
push ebx
push ebx
sete al
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
lea esp, [ebp - 0xc18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00506d7f
mov esp, ebp
pop ebp
ret

Function at 0x434305
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x43437a
mov eax, dword [ebp - 4]
xor ecx, ecx
push esi
push 2
shr eax, 1
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00506f2d
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0x10]
shr ecx, 1
push ecx
push ebx
push eax
mov dword [esi], eax
call fcn.0056b050
add esp, 0x10
lea eax, [ebp - 4]
push ebx
push eax
push dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
pop esi
test eax, eax
je 0x43437a
xor eax, eax
inc eax
jmp 0x43437c
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x434452
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
xor esi, esi
cmp dword [ebx + 0xc], esi
je 0x4344a7
cmp dword [ebp + 8], esi
je 0x4344a7
cmp dword [ebp + 0xc], esi
jbe 0x4344a7
push edi
lea edi, [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [ebx + 0x34]
push esi
push esi
push esi
push dword [ebx + 0xc]
call fcn.005979ff
push dword [ebx + 0xc]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.005885cb
add esp, 0x20
mov esi, eax
dec dword [ebx + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
jmp 0x4344aa
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4346a7
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xb4
mov eax, 0x5c50ba
call fcn.00506dfb
mov edi, dword [ebp + 8]
and dword [ebp - 0xc0], 0
mov esi, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
push 0x5f1b08
mov dword [ebp - 4], 2
call fcn.0042e677
test eax, eax
jne 0x4347b7
lea eax, [ebp - 0xb8]
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4347b7
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xbc], 0x208
push eax
lea eax, [ebp - 0xb0]
push eax
push 0
push 0
push ebx
push dword [ebp - 0xb8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xb8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4347b7
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0xb4]
call fcn.00413f09
mov eax, dword [ebp - 0xb4]
mov byte [ebp - 4], 3
cmp dword [eax - 0xc], esi
jle 0x43479b
add eax, 0xfffffff0
push eax
call fcn.00412393
pop ecx
mov ecx, dword [ebp - 0xb4]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00412ac4
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
jmp 0x4347df
push 0x5f1b30
mov ecx, edi
call fcn.00413f09
mov ecx, dword [ebp - 0xb4]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
jmp 0x4347c3
push 0x5f1b30
mov ecx, edi
call fcn.00413f09
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov eax, edi
call fcn.00506da5
ret

Function at 0x4347ec
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x5c50f2
call fcn.00506dc7
push 4
pop eax
xor esi, esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], esi
call fcn.00430f47
test eax, eax
mov edx, 0x100
mov ecx, esi
lea eax, [ebp - 0x10]
push eax
cmovne ecx, edx
or ecx, 0x20019
push ecx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43485f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00412ac4
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00412ac4
mov eax, esi
call fcn.00506d90
ret
Function at 0x434880
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x814
mov eax, 0x5c511d
call fcn.00506dfb
mov ebx, ecx
mov edi, dword [ebp + 8]
and dword [ebp - 0x820], 0
xor eax, eax
mov dword [ebp - 0x81c], 0x400
inc eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x818], eax
xor eax, eax
push ecx
mov esi, esp
mov word [ebp - 0x810], ax
mov dword [ebp - 0x814], esi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00412393
pop ecx
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.0042ed06
xor esi, esi
mov dword [ebp - 0x818], eax
inc esi
cmp eax, esi
je 0x434917
cmp eax, 2
je 0x434917
cmp eax, 7
je 0x434917
mov esi, dword [ebp + 0x10]
add esi, 0xfffffff0
push esi
call fcn.00412393
pop ecx
mov ecx, dword [ebp + 0xc]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, esi
jmp 0x43499d
lea eax, [ebp - 0x814]
push eax
mov eax, dword [ebx + 4]
or eax, 0x20019
push eax
push 0
push dword [ebx + 0x10]
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebx], eax
test eax, eax
jne 0x4348f3
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x818]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x814]
xor ecx, ecx
mov dword [ebx], eax
test eax, eax
cmovne esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4348f3
lea eax, [ebp - 0x810]
mov ecx, edi
push eax
call fcn.00413f09
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov eax, edi
call fcn.00506da5
ret 0xc

Function at 0x435318
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x67e2d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.0056b050
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x43539f
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jbe 0x43536b
push ecx
push eax
lea eax, [ebp - 0x20c]
push str.Range:_bytes_d__d
push eax
call fcn.00436927
add esp, 0x10
jmp 0x435384
test ecx, ecx
jne 0x43539b
push eax
lea eax, [ebp - 0x20c]
push str.Range:_bytes_d_
push eax
call fcn.00436927
add esp, 0xc
push 0xa0000000
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
jmp 0x4353a2
xor eax, eax
jmp 0x4353a2
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00506d7f
mov esp, ebp
pop ebp
ret
Function at 0x4356ab
Capabilities:
Get system information on windows
Log keystrokes via polling

Disassembly:
push 0x4c
mov eax, 0x5c52d9
call fcn.00506dc7
mov dword [ebp - 0x14], ecx
xor esi, esi
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], esi
call fcn.0042ca82
push ecx
xor ebx, ebx
mov ecx, esp
push dword [ebp + 0x10]
inc ebx
mov byte [ebp - 4], bl
call fcn.00413f09
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
call fcn.0042fedd
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.0042e706
pop ecx
mov ecx, dword [0x682eb4]
call fcn.0042f94f
test eax, eax
je 0x43572c
mov ecx, dword [0x682bb4]
lea eax, [ebp - 0x1c]
push eax
call fcn.004308b2
push 0x5ef0d4
mov ecx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], ebx
call fcn.0042e677
mov edi, ebx
test eax, eax
je 0x43572e
mov edi, esi
test byte [ebp - 0x10], 1
mov dword [ebp - 4], 2
je 0x435746
mov eax, dword [ebp - 0x1c]
lea ecx, [eax - 0x10]
call fcn.00412ac4
mov dword [ebp - 0x10], ebx
test edi, edi
je 0x43575d
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x10], eax
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov edi, dword [ebp - 0x14]
test eax, 0x8000
push dword [ebp + 8]
cmove ebx, dword [ebp - 0x10]
lea ecx, [edi + 8]
call fcn.005031d2
test eax, eax
je 0x43578c
mov ecx, eax
call fcn.00434cde
jmp 0x435821
push 0x2610
call fcn.00506ecd
pop ecx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x4357ab
mov ecx, eax
call fcn.0042c8ab
mov esi, eax
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
mov byte [ebp - 4], 2
call dword [eax + 4]
push dword [ebp + 0x100]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 4]
mov ecx, esi
mov dword [esi + 0x208], eax
mov dword [esi + 0x24b4], 0x811
mov dword [esi + 0x24b0], ebx
mov dword [esi + 0x2354], ebx
push dword [ebp + 0xc8]
push dword [ebp + 0xfc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004354e6
sub esp, 0xe4
lea eax, [ebp + 0x18]
mov ecx, esp
push eax
call fcn.0042cb10
mov ecx, esi
call fcn.004353e1
push esi
lea ecx, [edi + 8]
call fcn.00502fd2
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
lea ecx, [ebp - 0x34]
call fcn.0042e60b
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
lea ecx, [ebp + 0x18]
call fcn.0042d806
call fcn.00506d90
ret 0xfc

Function at 0x435f22
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x435f37
xor eax, eax
jmp 0x435f74
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push eax
call fcn.00435ed1
pop ecx
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test esi, esi
je 0x435f61
push dword [ebp - 4]
call fcn.00435f78
pop ecx
cmp ebx, 0xffffffff
je 0x435f70
test bl, 0x10
jne 0x435f70
xor eax, eax
inc eax
jmp 0x435f72
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435fc9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 0
je 0x436032
cmp dword [ebp + 0xc], 0
je 0x436032
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x436032
push ebx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
inc dword [esi + 0x34]
push 0
cdq
push edx
push eax
push dword [esi + 0xc]
call fcn.005979ff
push dword [esi + 0xc]
push 1
push edi
push dword [ebp + 0xc]
call fcn.00598306
add esp, 0x20
mov dword [ebp + 0xc], eax
cmp byte [esi + 8], 0
jne 0x436022
add dword [esi + 0x10], edi
adc dword [esi + 0x14], 0
dec dword [esi + 0x34]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0xc]
pop ebx
jmp 0x436035
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x43603b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 0
je 0x4360a4
cmp dword [ebp + 8], 0
je 0x4360a4
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4360a4
push ebx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 0x34]
push 0
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0xc]
call fcn.005979ff
push dword [esi + 0xc]
push 1
push edi
push dword [ebp + 8]
call fcn.00598306
add esp, 0x20
mov dword [ebp + 8], eax
cmp byte [esi + 8], 0
jne 0x436094
add dword [esi + 0x10], edi
adc dword [esi + 0x14], 0
dec dword [esi + 0x34]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
pop ebx
jmp 0x4360a7
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret 8
Function at 0x437b0b
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi]
cmp dword [eax], ebx
jne 0x437b33
push str.Invalid_PE_file_handle_n
push 2
call fcn.0059c991
pop ecx
push eax
call fcn.00417253
pop ecx
pop ecx
xor al, al
jmp 0x437c38
cmp dword [eax + 0x5c], ebx
jne 0x437b41
call fcn.00437d41
test al, al
je 0x437b2c
push edi
push 0x14
call fcn.0059b115
mov edi, eax
pop ecx
test edi, edi
jne 0x437b57
push str.Failed_to_allocate_memory_for_COFF_header_n
jmp 0x437b95
push 0x14
push ebx
push edi
call fcn.0056b050
mov eax, dword [esi]
push ebx
push dword [eax + 0x5c]
push dword [eax]
call fcn.00597a35
add esp, 0x18
test eax, eax
je 0x437b7b
push str.Failed_to_seek_to_COFF_header_n
jmp 0x437b95
mov eax, dword [esi]
push dword [eax]
push 1
push 0x14
push edi
call fcn.005885cb
add esp, 0x10
test eax, eax
jne 0x437b9c
push str.Failed_to_read_COFF_header_n
push 2
jmp 0x437c23
mov eax, dword [esi]
movzx ecx, word [edi + 2]
mov dword [eax + 0x38], ecx
mov eax, dword [esi]
push dword [eax]
call fcn.0059806b
pop ecx
mov ecx, dword [esi]
push 2
mov dword [ecx + 0x58], eax
mov ecx, 0x2000
mov eax, dword [esi]
mov dword [eax + 0x74], edi
movzx eax, word [edi + 0x12]
pop edi
cmp ax, cx
jne 0x437bd2
mov eax, dword [esi]
mov byte [eax + 9], 1
jmp 0x437be7
cmp ax, di
mov eax, dword [esi]
jne 0x437be4
mov byte [eax + 0xa], 1
mov eax, dword [esi]
mov byte [eax + 9], bl
jmp 0x437bec
mov byte [eax + 9], bl
mov eax, dword [esi]
mov byte [eax + 0xa], bl
mov eax, dword [esi]
push dword [eax]
add eax, 0x18
push 1
push edi
push eax
call fcn.005885cb
add esp, 0x10
test eax, eax
jne 0x437c0a
push str.Failed_to_read_architecture_value_n
jmp 0x437c22
mov eax, dword [esi]
cmp dword [eax + 0x38], ebx
jne 0x437c18
push str.Failed_to_determine_the_number_of_sections_n
jmp 0x437c22
cmp dword [eax + 0x58], ebx
jne 0x437c35
push str.Failed_to_determine_the_address_of_the_OPTIONAL_header_n
push edi
call fcn.0059c991
pop ecx
push eax
call fcn.00417253
pop ecx
pop ecx
xor al, al
jmp 0x437c37
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x437c3b
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi]
cmp dword [eax + 0x84], edi
je 0x437c52
mov al, 1
jmp 0x437d3e
cmp dword [eax + 0x4c], edi
jne 0x437c67
call fcn.00437dcf
test al, al
jne 0x437c67
xor al, al
jmp 0x437d3e
mov eax, dword [esi]
push edi
push dword [eax + 0x4c]
push dword [eax]
call fcn.00597a35
add esp, 0xc
test eax, eax
je 0x437c92
push str.Failed_to_seek_to_DATA_DIRECTORIES_address_n
push 2
call fcn.0059c991
pop ecx
push eax
call fcn.00417253
pop ecx
pop ecx
jmp 0x437c60
mov eax, dword [esi]
push ebx
mov eax, dword [eax + 0x3c]
shl eax, 2
push eax
call fcn.0059b115
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x437caf
push str.Failed_to_allocate_space_for_the_DATA_DIRECTORIES_array_n
jmp 0x437d06
mov eax, dword [esi]
cmp dword [eax + 0x3c], edi
jbe 0x437ce2
push 8
call fcn.0059b115
mov dword [ebx + edi*4], eax
pop ecx
test eax, eax
je 0x437d22
mov ecx, dword [esi]
push dword [ecx]
push 1
push 8
push eax
call fcn.005885cb
add esp, 0x10
test eax, eax
je 0x437d1a
mov eax, dword [esi]
inc edi
cmp edi, dword [eax + 0x3c]
jb 0x437cb6
mov eax, dword [esi]
push dword [eax]
call fcn.0059806b
pop ecx
mov ecx, dword [esi]
mov dword [ecx + 0x48], eax
mov eax, dword [esi]
mov dword [eax + 0x84], ebx
mov eax, dword [esi]
cmp dword [eax + 0x48], 0
jne 0x437d3b
push str.Failed_to_determine_sections_adresses_n
push 2
call fcn.0059c991
pop ecx
push eax
call fcn.00417253
pop ecx
pop ecx
xor al, al
jmp 0x437d3d
push edi
push str.Failed_to_read_in_DATA_DIRECTORY_number__d_n
jmp 0x437d28
push edi
push str.Failed_to_allocate_space_for_DATA_DIRECTORY_number__d_n
push 2
call fcn.0059c991
pop ecx
push eax
call fcn.00417253
add esp, 0xc
jmp 0x437d16
mov al, 1
pop ebx
pop edi
pop esi
ret

Function at 0x437d41
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi]
mov eax, dword [eax]
test eax, eax
jne 0x437d65
push 0x5f2784
push 2
call fcn.0059c991
pop ecx
push eax
call fcn.00417253
pop ecx
pop ecx
xor al, al
pop edi
ret
push esi
push eax
call fcn.0059ea9a
push 0x40
call fcn.0059b115
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x437d82
push str.Failed_to_allocate_space_for_IMAGE_DOS_HEADER_n
jmp 0x437da6
push 0x40
push 0
push esi
call fcn.0056b050
mov eax, dword [edi]
push dword [eax]
push 1
push 0x40
push esi
call fcn.005885cb
add esp, 0x1c
test eax, eax
jne 0x437dba
push str.Failed_to_read_in_the_DOS_header_n
push 2
call fcn.0059c991
pop ecx
push eax
call fcn.00417253
pop ecx
pop ecx
xor al, al
jmp 0x437dcc
mov ecx, dword [edi]
mov al, 1
mov dword [ecx + 0x70], esi
mov edx, dword [esi + 0x3c]
mov ecx, dword [edi]
add edx, 4
mov dword [ecx + 0x5c], edx
pop esi
pop edi
ret
Function at 0x437dcf
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi]
cmp dword [eax + 0x78], ebx
je 0x437de3
mov al, 1
jmp 0x437f40
cmp dword [eax + 0x58], ebx
jne 0x437df8
call fcn.00437b0b
test al, al
jne 0x437df8
xor al, al
jmp 0x437f40
mov eax, dword [esi]
push ebx
push dword [eax + 0x58]
push dword [eax]
call fcn.00597a35
add esp, 0xc
test eax, eax
je 0x437e23
push str.Failed_to_seek_to_OPTIONAL_header_position_n
push 2
call fcn.0059c991
pop ecx
push eax
call fcn.00417253
pop ecx
pop ecx
jmp 0x437df1
push edi
push 8
call fcn.0059b115
mov edi, eax
pop ecx
test edi, edi
jne 0x437e3c
push str.Failed_to_allocate_space_for_optional_header_n
jmp 0x437f29
mov eax, dword [esi]
movzx eax, word [eax + 0x18]
cmp eax, 0x10b
je 0x437eae
cmp eax, 0x20b
jne 0x437efd
push 0xf0
call fcn.0059b115
mov dword [edi + 4], eax
mov ecx, dword [esi]
push dword [ecx]
push 1
push 0x70
push eax
call fcn.005885cb
add esp, 0x14
test eax, eax
jne 0x437e80
push str.Failed_to_read_64_bit_OPTIONAL_header_n
jmp 0x437f29
mov eax, dword [edi + 4]
mov ecx, dword [esi]
mov eax, dword [eax + 0x6c]
mov dword [ecx + 0x3c], eax
mov eax, dword [edi + 4]
mov ecx, dword [esi]
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], ebx
mov ecx, dword [edi + 4]
mov edx, dword [esi]
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x28], eax
mov eax, dword [ecx + 0x1c]
mov dword [edx + 0x2c], eax
mov dword [edi], ebx
jmp 0x437efd
push 0xe0
call fcn.0059b115
mov dword [edi], eax
mov ecx, dword [esi]
push dword [ecx]
push 1
push 0x60
push eax
call fcn.005885cb
add esp, 0x14
test eax, eax
jne 0x437ed6
push str.Failed_to_read_32_bit_OPTIONAL_header_n
jmp 0x437f29
mov eax, dword [edi]
mov ecx, dword [esi]
mov eax, dword [eax + 0x5c]
mov dword [ecx + 0x3c], eax
mov eax, dword [edi]
mov ecx, dword [esi]
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], ebx
mov eax, dword [edi]
mov ecx, dword [esi]
mov eax, dword [eax + 0x1c]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], ebx
mov dword [edi + 4], ebx
mov eax, dword [esi]
mov dword [eax + 0x78], edi
mov eax, dword [esi]
push dword [eax]
call fcn.0059806b
pop ecx
mov ecx, dword [esi]
mov dword [ecx + 0x4c], eax
mov eax, dword [esi]
cmp dword [eax + 0x3c], ebx
jne 0x437f1f
push str.Failed_to_get_number_of_data_directories_n
jmp 0x437f29
cmp dword [eax + 0x4c], ebx
jne 0x437f3d
push str.Failed_to_read_DATA_DIRECTORIES_location_n
push 2
call fcn.0059c991
pop ecx
push eax
call fcn.00417253
pop ecx
pop ecx
xor al, al
jmp 0x437f3f
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x437f43
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi]
cmp dword [eax + 0x80], ebx
jne 0x437f78
call fcn.00438026
test al, al
jne 0x437f78
push str.Failed_to_get_Data_directories_n
push 2
call fcn.0059c991
pop ecx
push eax
call fcn.00417253
pop ecx
pop ecx
xor al, al
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi]
mov eax, dword [eax + 0x84]
mov eax, dword [eax + 8]
cmp dword [eax + 4], ebx
jbe 0x437f72
push str..rsrc
mov ecx, esi
call fcn.00437a17
mov edx, eax
test edx, edx
jne 0x437fa1
push str.Failed_to_find_resource_section_by_name
jmp 0x437f62
mov ecx, dword [esi]
mov eax, dword [edx + 0x14]
push ebx
mov dword [ecx + 0x50], eax
mov eax, dword [esi]
push dword [edx + 0x14]
push dword [eax]
call fcn.00597a35
add esp, 0xc
test eax, eax
je 0x437fda
mov eax, dword [esi]
push dword [eax + 0x50]
push str.Failed_to_seek_to_address__0x_n
push 2
call fcn.0059c991
pop ecx
push eax
call fcn.00417253
add esp, 0xc
jmp 0x437f72
push 0x10
call fcn.0059b115
push 0x10
mov edi, eax
push ebx
push edi
call fcn.0056b050
mov ecx, dword [esi]
push dword [ecx]
push 1
push 0x10
push edi
call fcn.005885cb
add esp, 0x20
test eax, eax
jne 0x43800b
push str.Failed_to_read_Resource_Directory_n
jmp 0x437f62
movzx ecx, word [edi + 0xc]
mov al, 1
movzx edx, word [edi + 0xe]
add edx, ecx
mov ecx, dword [esi]
mov dword [ecx + 0x40], edx
mov ecx, dword [esi]
mov dword [ecx + 0x7c], edi
jmp 0x437f74

Function at 0x438026
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, ecx
xor esi, esi
mov eax, dword [edi]
cmp dword [eax + 0x80], esi
je 0x43803d
mov al, 1
jmp 0x4380dc
cmp dword [eax + 0x48], esi
je 0x438047
cmp dword [eax + 0x38], esi
jne 0x438057
call fcn.00437c3b
test al, al
jne 0x438057
xor al, al
jmp 0x4380dc
mov eax, dword [edi]
push esi
push dword [eax + 0x48]
push dword [eax]
call fcn.00597a35
add esp, 0xc
test eax, eax
je 0x438082
push str.Failed_to_seek_to_first_section_n
push 2
call fcn.0059c991
pop ecx
push eax
call fcn.00417253
pop ecx
pop ecx
jmp 0x438050
mov eax, dword [edi]
push ebx
mov eax, dword [eax + 0x38]
shl eax, 2
push eax
call fcn.0059b115
pop ecx
mov ecx, dword [edi]
mov ebx, eax
cmp dword [ecx + 0x38], esi
jbe 0x4380c7
push 0x28
call fcn.0059b115
mov dword [ebx + esi*4], eax
pop ecx
test eax, eax
je 0x4380fa
mov ecx, dword [edi]
push dword [ecx]
push 1
push 0x28
push eax
call fcn.005885cb
add esp, 0x10
test eax, eax
je 0x4380df
mov eax, dword [edi]
inc esi
cmp esi, dword [eax + 0x38]
jb 0x43809b
mov ecx, dword [edi]
mov dword [ecx + 0x80], ebx
mov ecx, dword [edi]
push dword [ecx]
call fcn.0059ea9a
pop ecx
mov al, 1
pop ebx
pop edi
pop esi
ret
push esi
push str.Failed_to_read_in_section_number__d_n
push 2
call fcn.0059c991
pop ecx
push eax
call fcn.00417253
add esp, 0xc
xor al, al
jmp 0x4380db
push esi
push str.Failed_to_allocate_memory_for_section_number__d_n
jmp 0x4380e5