joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017424
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1001748f
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x1001746d
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x1001746b
push 0
push 0xab3
call dword [sym.imp.GDI32.dll_CreateHatchBrush]
jmp 0x1001748d
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1001748d
push 0
push 0xa7a
push 0x93f
push 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1001750a
lea eax, [ebp + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x100174f5
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x100174d9
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 1
jge 0x100174f3
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x30]
call fcn.1002a8d8
or dword [eax], 0xffffffff
jmp 0x100174ce
jmp 0x1001750a
push 0
push 0x2c2
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esp, ebp
pop ebp
ret

Function at 0x100191b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100191ea
lea eax, [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x100191d9
push 0
push 0
call dword [sym.imp.GDI32.dll_RectInRegion]
jmp 0x100191e8
push 0x1874
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x10019207
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp - 8]
push 0x1446
push 0x2eed
push 0
call fcn.1000bd72
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x1001920b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1001923f
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x5624
push 0
call fcn.100211eb
add esp, 0x10
jmp 0x100192cc
lea eax, [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x100192a8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x10019289
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 2
jge 0x100192a6
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x28]
call fcn.1002a8d8
mov dword [eax], 1
jmp 0x1001927e
jmp 0x100192cc
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100192cc
push 0x48
push 0
push 0x236c
push 0x218e
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret

Function at 0x1001970c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1001977c
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10019765
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
lea eax, [eax*4 + 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push dword [eax + 8]
call fcn.100544e6
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [ecx + 8], eax
jmp 0x1001977a
push 0
push 0x2c2
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x100197a7
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
push 0x92b
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0
push 0x6d99
push 0x73a8
call fcn.10017e2e
add esp, 0x18
mov esp, ebp
pop ebp
ret

Function at 0x10019f0f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10019f65
lea eax, [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x10019f5b
push 0x15a6
push 0
push 0x24ac
push 0x7da
push 0x1900
push 0
push 0x20ed
push 0x250d
push 0x22ec
call dword [sym.imp.USER32.dll_DrawIconEx]
jmp 0x10019f63
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x10019f77
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push 1
push dword [ebp - 8]
call fcn.1000bcb2
pop ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10022262
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10022305
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x100222b8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x100222b6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x10022303
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x100222e6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 4
jge 0x10022303
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x28]
call fcn.1002a8d8
mov dword [eax], 0x77fc7df3
jmp 0x100222db
jmp 0x10022321
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 1
call fcn.1000b042
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x10022a68
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10022b12
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x10022aaa
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10022aa8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
jmp 0x10022b10
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
push 4
push 0x2000
mov eax, dword [ebp - 8]
push dword [eax + 0x50]
mov eax, dword [ebp - 8]
push dword [eax + 0x34]
push 0x11638
push 0x11cd7
call fcn.1004ae86
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x10022b10
push 4
push 0x2000
mov eax, dword [ebp - 8]
push dword [eax + 0x50]
push 0
push 0x11638
push 0x11cd7
call fcn.1004ae86
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
jmp 0x10022b33
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
push 0x6635
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0
call fcn.10017327
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x10024895
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x100248cf
lea eax, [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x100248c5
push 0x13c4
push 0x491
push 0
call dword [sym.imp.USER32.dll_InflateRect]
jmp 0x100248cd
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x100248dd
push 0x26cf
push 0
call fcn.10017036
pop ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x100664b5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10070750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10057ef8
mov dword [ebp - 0x14], eax
cmp dword [0x1065dd80], esi
jne 0x100665a8
push 0x800
push esi
push 0x100076a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10066535
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10066688
push esi
push esi
push 0x100076a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10066688
push 0x100076b8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10066688
push eax
call ebx
push 0x100076c4
push edi
mov dword [0x1065dd80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100076d4
push edi
mov dword [0x1065dd84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100076e8
push edi
mov dword [0x1065dd88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065dd90], eax
test eax, eax
je 0x100665a5
push 0x10007704
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065dd8c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100665cd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100665c0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x100665e2
push 4
pop eax
jmp 0x1006668a
cmp dword [ebp - 0x14], esi
je 0x100665e2
push dword [0x1065dd80]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x100665c7
mov eax, dword [0x1065dd8c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10066640
cmp dword [0x1065dd90], edi
je 0x10066640
push eax
call ebx
push dword [0x1065dd90]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10066640
test eax, eax
je 0x10066640
call ecx
test eax, eax
je 0x10066635
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10066635
test byte [ebp - 8], 1
jne 0x10066640
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10066670
mov eax, dword [0x1065dd84]
cmp eax, edi
je 0x1006666d
push eax
call ebx
test eax, eax
je 0x1006666d
call eax
mov esi, eax
test esi, esi
je 0x1006666d
mov eax, dword [0x1065dd88]
cmp eax, edi
je 0x1006666d
push eax
call ebx
test eax, eax
je 0x1006666d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1065dd80]
call ebx
test eax, eax
je 0x10066688
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1006668a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100555f3
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
xor edx, edx
push edi
xor eax, eax
test dl, 1
je 0x401010
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x40101c
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x401026
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x401030
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x40103a
or eax, 8
shr ecx, 1
test cl, 1
je 0x401044
or eax, 4
shr ecx, 1
test cl, 1
je 0x40104e
or eax, 2
test cl, 2
je 0x401056
or eax, 1
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
xor edi, edi
mov dword [esi + edx*4], ecx
mov eax, ecx
lea ecx, [edi + 0x1f]
jmp 0x401110
test al, 1
je 0x40111d
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x401110
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x401004
pop edi
pop ebx
ret

Function at 0x401140
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x42904c
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call fcn.0041064d
add esp, 0xc
test eax, eax
je 0x401171
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call fcn.00410694
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x40119d
mov edx, dword [ebp - 4]
push edx
call fcn.00410795
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call fcn.00410a53
add esp, 0x10
test eax, eax
je 0x4011fa
push ebx
mov ecx, eax
mov edx, edi
test eax, eax
je 0x4011e1
mov edi, edi
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x4011c0
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call fcn.00410a53
add esp, 0x10
test eax, eax
jne 0x4011b6
pop ebx
push edi
call fcn.00410a70
mov edx, dword [ebp - 4]
push edx
call fcn.00410795
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x40a520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x42f664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x40a55c
xor eax, eax
jmp 0x40a6e1
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x40a585
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x40a585
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x40a6e1
cmp dword [edi + 0x54], 0
je 0x40a6de
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x40a5ad
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x40a5d3
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.00411109
add esp, 8
cmp eax, 0xffffffff
je 0x40a6de
mov eax, ebx
jmp 0x40a6e1
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.0040adf0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x40a5f0
mov edx, eax
cmp ebx, 0x10
jae 0x40a5fc
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x2d]
push edx
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
js 0x40a6d6
cmp eax, 1
jg 0x40a690
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40a63c
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x40a665
cmp ebx, 0x10
jae 0x40a64b
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0041135c
add esp, 0x10
cmp esi, eax
jne 0x40a6d6
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], edx
jne 0x40a6c9
test esi, esi
jne 0x40a5f0
cmp dword [ebp - 0x1c], 0x20
jae 0x40a6d6
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.0040ae50
jmp 0x40a5e5
cmp eax, 3
jne 0x40a6d6
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.00411109
add esp, 8
cmp eax, 0xffffffff
je 0x40a6ba
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.0040e330
mov eax, esi
jmp 0x40a6e1
lea ecx, [ebp - 0x2c]
or esi, 0xffffffff
call fcn.0040e330
mov eax, esi
jmp 0x40a6e1
lea ecx, [ebp - 0x2c]
call fcn.0040e330
mov eax, dword [ebp + 8]
jmp 0x40a6e1
lea ecx, [ebp - 0x2c]
call fcn.0040e330
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410582
mov esp, ebp
pop ebp
ret 4
Function at 0x40b140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424e58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42f664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x40b2d1
cmp byte [ebx + 0x49], 0
je 0x40b2d1
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x40b2c5
lea esi, [ebp - 0x2c]
call fcn.0040adf0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40b1b3
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40b1ec
dec eax
je 0x40b1f0
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x40b2cc
call fcn.0040e330
xor al, al
jmp 0x40b2d3
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40b200
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40b22d
cmp edi, 0x10
jae 0x40b20f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0041135c
add esp, 0x10
cmp esi, eax
jne 0x40b2bd
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x40b2c9
test esi, esi
jne 0x40b1a7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40b2ee
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40b2ee
cmp edi, esi
jae 0x40b2a6
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040e130
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x40b1a7
mov ecx, eax
cmp edi, 0x10
jae 0x40b282
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40b29d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x40b1a1
test esi, esi
jne 0x40b278
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x40b2b5
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x40b1a1
lea ecx, [ebp - 0x2c]
call fcn.0040e330
xor al, al
jmp 0x40b2d3
lea ecx, [ebp - 0x2c]
call fcn.0040e330
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410582
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0040fd09
int3
Function at 0x40bde0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4247bb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42f664]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040fb62
push 4
mov dword [ebp - 4], 0
call fcn.00410bef
mov edi, eax
add esp, 4
test edi, edi
je 0x40be5c
call fcn.00410163
mov dword [edi], eax
call fcn.0040ff22
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0040fca8
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40be52
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0040fcd0
jmp 0x40be5e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ee60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push eax
mov esi, ecx
lea ebx, [esi + 0xc]
push 0x100
push ebx
call fcn.00410d2c
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40eeb7
push ebx
push str.__s__Could_not_open_file_n
add esi, 0x218
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x40eeda
push eax
call fcn.00412019
add esp, 4
mov dword [esi + 4], 0
mov ecx, dword [esi + 8]
push ecx
call fcn.00410487
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x40ef13
push ebx
push str.__s__Could_not_alloc_file_buffer_n
add esi, 0x218
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
push 0
lea edx, [ebp - 4]
push edx
push ecx
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ef38
push ebx
push str.__s__Could_not_read_file_n
jmp 0x40eef3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [esi + 0x214], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret