joyce8/EMBER2024-capa huggingface dataset:
Function at 0x568810
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x5688bc
mov ecx, dword [esi + 0x48]
test cl, 2
je 0x5688bc
test cl, 8
je 0x56887c
push 2
lea ecx, [esp + 0x10]
xorps xmm0, xmm0
push ecx
push 0
push eax
movlpd qword [esp + 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x56886f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x56886b
lea eax, [esi + 0x50]
push eax
call fcn.00565550
add esp, 4
mov eax, dword [esp + 8]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x68]
push 0
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push dword [esp + 0x20]
push dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5688aa
lea eax, [esi + 0x50]
push eax
call fcn.00565550
add esp, 4
mov eax, dword [esp + 4]
add dword [esi + 0x70], eax
adc dword [esi + 0x74], 0
pop esi
add esp, 0xc
ret 0xc
or eax, 0xffffffff
pop esi
add esp, 0xc
ret 0xc

Function at 0x568b30
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 0x1c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
pop esi
ret

Function at 0x571ab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab2c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
mov dword [ebp - 0x10], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push 0
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x571b9e
xor ecx, ecx
mov dword [ebp - 0x20], edi
mov edx, 2
mov dword [ebp - 0x1c], edi
mul edx
mov byte [ebp - 0x14], 1
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055f4af
mov ebx, eax
add esp, 4
mov dword [ebp - 0x18], ebx
push ebx
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x571b92
cmp eax, edi
ja 0x571b92
push esi
push ebx
call fcn.0054c150
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x571b61
mov eax, dword [esi]
cmp byte [eax + ecx - 1], 0x5c
je 0x571b76
push 1
push 0x5cb198
mov ecx, esi
call fcn.00455880
push ebx
call fcn.0055f493
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00570b60
push str.Cannot_get_current_directory
lea ecx, [ebp - 0x28]
call fcn.00407760
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x54]
call fcn.00538380
push 0x61af54
lea eax, [ebp - 0x54]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x571e30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab328
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
xor eax, eax
mov dword [ebp - 0x24], 0
push edi
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.0054b870
push 0xfffe
mov dword [ebp - 0x1c], 0x7fff
mov dword [ebp - 0x18], 0x7fff
mov byte [ebp - 0x10], 1
call fcn.0055f4af
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
push 0x7fff
cmovae ecx, dword [ebp - 0x34]
push edi
push ecx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x571f83
cmp eax, 0x7ffe
jae 0x571f83
lea esi, [eax + 1]
cmp esi, 0x7fff
jb 0x571ee8
push 0
push 0x130
push str.e:xhsundcode_remote_trunk_rhinopcinfrastructure_thirdpartypoco_src_foundationincludepoco_buffer.h
push str.index____used
call fcn.0053bb60
add esp, 0x10
xor eax, eax
mov word [edi + esi*2], ax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], al
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 2
push eax
push edi
call fcn.0054c150
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x4c]
movups xmm0, xmmword [ebp - 0x4c]
add esp, 8
mov byte [ebp - 0x4c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x3c]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
call fcn.00404440
push edi
call fcn.0055f493
mov edx, dword [ebp - 0x20]
add esp, 4
cmp edx, 8
jb 0x571f9a
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x571f90
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x571f90
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004077a0
jmp 0x571f48
push edx
push ecx
call fcn.0055e874
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x573f40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab571
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push esi
mov dword [ebp - 0x10], 0
push edi
push 0xfffe
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x7fff
mov dword [ebp - 0x1c], 0x7fff
mov byte [ebp - 0x14], 1
call fcn.0055f4af
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
push 0x7fff
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x574019
push 0x7fff
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x57402c
mov esi, dword [ebp + 8]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push esi
push edi
mov dword [ebp - 0x10], 1
call fcn.0054c150
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x573fe9
mov eax, dword [esi]
cmp byte [eax + ecx - 1], 0x5c
je 0x573ffe
push 1
push 0x5cb198
mov ecx, esi
call fcn.00455880
push edi
call fcn.0055f493
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.Cannot_get_temporary_directory_path
lea ecx, [ebp - 0x38]
call fcn.00407760
mov byte [ebp - 4], 3
jmp 0x57403d
push str.Cannot_get_system_directory_long_path_name
lea ecx, [ebp - 0x38]
call fcn.00407760
mov byte [ebp - 4], 2
push 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x64]
call fcn.00538380
push 0x61af54
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x5740c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab5b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push esi
mov dword [ebp - 0x10], 0
push edi
push 0xfffe
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x7fff
mov dword [ebp - 0x1c], 0x7fff
mov byte [ebp - 0x14], 1
call fcn.0055f4af
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
push edi
push 0x7fff
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x574199
push 0x7fff
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x5741ac
mov esi, dword [ebp + 8]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push esi
push edi
mov dword [ebp - 0x10], 1
call fcn.0054c150
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x574169
mov eax, dword [esi]
cmp byte [eax + ecx - 1], 0x5c
je 0x57417e
push 1
push 0x5cb198
mov ecx, esi
call fcn.00455880
push edi
call fcn.0055f493
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.Cannot_get_temporary_directory_path
lea ecx, [ebp - 0x38]
call fcn.00407760
mov byte [ebp - 4], 3
jmp 0x5741bd
push str.Cannot_get_temporary_directory_long_path_name
lea ecx, [ebp - 0x38]
call fcn.00407760
mov byte [ebp - 4], 2
push 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x64]
call fcn.00538380
push 0x61af54
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x577b60
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x2c
push esi
mov esi, dword [esp + 0x38]
mov eax, esi
push edi
cmp dword [esi + 0x14], 0x10
jb 0x577b73
mov eax, dword [esi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test edi, edi
je 0x577be4
push ebx
push edi
call fcn.0055f4af
add esp, 4
mov ebx, eax
cmp dword [esi + 0x14], 0x10
jb 0x577b98
mov esi, dword [esi]
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, dword [esp + 0x3c]
mov ecx, ebx
mov dword [esi + 0x10], 0
lea edx, [ecx + 1]
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x577bc0
sub ecx, edx
push ecx
push ebx
mov ecx, esi
call fcn.00407e80
push ebx
call fcn.0055f493
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
add esp, 0x2c
ret
push 0
push esi
lea ecx, [esp + 0x10]
call fcn.005375b0
push 0x6150cc
lea eax, [esp + 0xc]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x4014ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x154
mov dword [ebp - 0x134], 0
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x118], 6
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push ebx
push ebx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x11c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push edx
push edx
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x134]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
lea ebx, [ebp - 0x10c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 4]
leave
sub eax, 3
ret

Function at 0x4015de
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 0
call fcn.004014ca
test eax, eax
jne 0x401678
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x40210e
sub eax, 0x4016ac
mov dword [esp], 0x4016ac
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401678
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.004013c4
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.00401454
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b600
mov dword [esp], 0x40300c
call fcn.00401e11
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x401e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x401e2c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x401e54
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x401e5a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x401ec2
jg 0x401e71
test esi, esi
je 0x401ec2
test ecx, ecx
jl 0x401ebd
jg 0x401e7b
test eax, eax
je 0x401ebd
cmp edi, ecx
jg 0x401e8f
jl 0x401e85
cmp esi, eax
jae 0x401e8f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x401ec5
mov ecx, dword [ebp + 8]
jmp 0x401ecf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x401ee9
jg 0x401ecf
test esi, esi
je 0x401ee9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x401ee9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401f00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x401f2c
jl 0x401f20
test ecx, ecx
jne 0x401f2c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x401f45
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x401f93
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x401f99
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x401f99
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x402006
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x401fc2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x401ff4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x402006
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x401fd0
test edi, edi
je 0x402006
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x408008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4023b0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004032a7
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4023e0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x4023e0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004032a7
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x4024b8
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x402409
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x402415
movsx eax, bl
jmp 0x40244d
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x402477
sub eax, 1
je 0x402477
sub eax, 2
jne 0x4024b8
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004032a7
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402495
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4024b8
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004032a7
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004032a7
mov esp, ebp
pop ebp
ret 4
Function at 0x4027d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x408008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40288c
cmp byte [esi + 0x3d], 0
je 0x40288c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40287a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x402841
sub eax, 1
je 0x402845
sub eax, 2
jne 0x40287a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004032a7
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402863
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40287a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004032a7
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004032a7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004032a7
mov esp, ebp
pop ebp
ret

Function at 0x403ac5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403b04
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403b04
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403b04
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403b04
cmp dword [ecx + 0x74], 0xe
jbe 0x403b04
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408e10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push 0x3c6cc0
xor ebx, ebx
push ebx
push 0x4711c8
call fcn.0043b170
add esp, 0xc
call fcn.004062b0
fldz
push ecx
fst dword [esi + 0x514]
mov ecx, esp
fstp dword [esi + 0x5d4]
mov dword [ebp - 8], esp
push 0x45e870
mov dword [esi + 0x50c], ebx
mov dword [esi + 0x510], ebx
mov dword [esi + 0x5c8], ebx
mov dword [esi + 0x5d0], ebx
mov dword [esi + 0x5cc], ebx
mov dword [esi + 0x7dc], ebx
mov byte [esi + 0x7e1], bl
mov dword [ebp - 4], ebx
call fcn.00403280
lea ecx, [esi + 0x134c]
call fcn.00412a90
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x408ce0
push ebx
push ebx
call fcn.004388ab
add esp, 0x18
mov byte [esi + 0x534], 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b4b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x46c6a0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0043b170
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [0x457370]
lea edx, [ebp - 0x108]
push 0x45eb04
push edx
call fcn.004386fb
mov edi, eax
add esp, 8
test edi, edi
je 0x40b583
push 2
push 0xfffff9bc
push edi
call fcn.0043a5cf
push edi
push 0x644
lea eax, [esi + 0x14f8]
push 1
push eax
call fcn.0043902c
add esp, 0x1c
lea eax, [esi + 0x14f9]
mov edx, 0x191
mov edi, edi
mov cl, byte [eax - 1]
test cl, cl
je 0x40b54d
xor cl, 0xe8
mov byte [eax - 1], cl
mov cl, byte [eax]
test cl, cl
je 0x40b558
xor cl, 0xe8
mov byte [eax], cl
mov cl, byte [eax + 1]
test cl, cl
je 0x40b565
xor cl, 0xe8
mov byte [eax + 1], cl
mov cl, byte [eax + 2]
test cl, cl
je 0x40b572
xor cl, 0xe8
mov byte [eax + 2], cl
add eax, 4
sub edx, 1
jne 0x40b540
push edi
call fcn.0043a6cb
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00435339
mov esp, ebp
pop ebp
ret
Function at 0x40dda0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455f02
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x46c6a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x45eea0
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.0040ef50
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.0040fe40
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
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], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x850534]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
push 1
mov ecx, str.__zone.dat
mov byte [ebp - 4], 2
call fcn.0040f520
test eax, eax
jne 0x40de95
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x40de8e
or eax, 4
push ebx
push eax
call fcn.00404ce0
mov eax, edi
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