joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100093d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.10009320
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
xor edi, edi
call edx
test eax, eax
jle 0x100094a9
push ebp
mov ebp, dword [esp + 0x10]
movzx eax, byte [esi + 0x1514]
add eax, 1
and eax, 0x800000ff
jns 0x10009409
dec eax
or eax, 0xffffff00
inc eax
movzx edx, byte [esi + 0x1515]
mov byte [esi + 0x1514], al
movzx eax, al
lea ecx, [eax + esi + 0x1414]
movzx eax, byte [ecx]
add eax, edx
and eax, 0x800000ff
jns 0x10009433
dec eax
or eax, 0xffffff00
inc eax
mov byte [esi + 0x1515], al
mov dl, byte [ecx]
movzx eax, al
mov al, byte [eax + esi + 0x1414]
mov byte [ecx], al
movzx ecx, byte [esi + 0x1515]
mov byte [ecx + esi + 0x1414], dl
movzx edx, byte [esi + 0x1514]
movzx ecx, byte [esi + 0x1515]
movzx eax, byte [edx + esi + 0x1414]
movzx edx, byte [ecx + esi + 0x1414]
add eax, edx
and eax, 0x800000ff
jns 0x10009483
dec eax
or eax, 0xffffff00
inc eax
movzx eax, al
mov cl, byte [eax + esi + 0x1414]
xor cl, byte [edi + ebp]
add edi, 1
mov byte [esi + edi + 3], cl
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
cmp edi, eax
jl 0x100093f1
pop ebp
pop edi
lea eax, [esi + 4]
pop esi
ret 4

Function at 0x1000b8b6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001c7a0]
jne 0x1000b8c0
repz ret
jmp fcn.1000e42b
Function at 0x1000de13
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 + 0x1001c928]
je 0x1000de2e
inc edi
cmp edi, 0x17
jb 0x1000de1f
cmp edi, 0x17
jae 0x1000dfae
push ebp
push 3
call fcn.10011148
cmp eax, 1
pop ecx
je 0x1000df7a
push 3
call fcn.10011148
test eax, eax
pop ecx
jne 0x1000de62
cmp dword [0x1001dd58], 1
je 0x1000df7a
cmp ebx, 0xfc
je 0x1000dfad
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1001df08
push ebp
call fcn.10010a55
add esp, 0xc
test eax, eax
je 0x1000de98
push esi
push esi
push esi
push esi
push esi
call fcn.1000e070
add esp, 0x14
push 0x104
mov esi, 0x1001df21
push esi
push 0
mov byte [0x1001e025], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000dedc
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10010a55
add esp, 0xc
test eax, eax
je 0x1000dedc
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1000e070
add esp, 0x14
push esi
call fcn.10010ac0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000df21
push esi
call fcn.10010ac0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1001e21c
push 0x100173a4
sub ecx, eax
push ecx
push eax
call fcn.10011095
add esp, 0x14
test eax, eax
je 0x1000df21
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1000e070
add esp, 0x14
jmp 0x1000df23
xor esi, esi
push 0x100173a0
push ebx
push ebp
call fcn.10011024
add esp, 0xc
test eax, eax
je 0x1000df43
push esi
push esi
push esi
push esi
push esi
call fcn.1000e070
add esp, 0x14
push dword [edi*8 + 0x1001c92c]
push ebx
push ebp
call fcn.10011024
add esp, 0xc
test eax, eax
je 0x1000df65
push esi
push esi
push esi
push esi
push esi
call fcn.1000e070
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10010e67
add esp, 0xc
jmp 0x1000dfad
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1000dfad
cmp ebp, 0xffffffff
je 0x1000dfad
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1001c92c]
push dword [esi]
call fcn.10010ac0
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
Function at 0x10010e67
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000f4b4
xor ebx, ebx
cmp dword [0x1001e6d8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10010f3d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1001101d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1001101d
push eax
call fcn.1000f446
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001e6d8], eax
call esi
push eax
call fcn.1000f446
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001e6dc], eax
call esi
push eax
call fcn.1000f446
mov dword [0x1001e6e0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000dbc0
test eax, eax
pop ecx
pop ecx
je 0x10010f0b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000e070
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10010f3d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000f446
cmp eax, ebx
pop ecx
mov dword [0x1001e6e8], eax
je 0x10010f3d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000f446
pop ecx
mov dword [0x1001e6e4], eax
mov eax, dword [0x1001e6e4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10010fc2
cmp dword [0x1001e6e8], ecx
je 0x10010fc2
push eax
call fcn.1000f4bd
push dword [0x1001e6e8]
mov esi, eax
call fcn.1000f4bd
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10010fc2
cmp edi, ebx
je 0x10010fc2
call esi
cmp eax, ebx
je 0x10010f8f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10010f8f
test byte [ebp - 0x18], 1
jne 0x10010fc2
lea eax, [ebp - 0x10]
push eax
call fcn.1000dbf7
test eax, eax
pop ecx
je 0x10010faa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000e070
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10010fb9
or dword [ebp + 0x10], 0x200000
jmp 0x10010ffd
or dword [ebp + 0x10], 0x40000
jmp 0x10010ffd
mov eax, dword [0x1001e6dc]
cmp eax, dword [ebp - 8]
je 0x10010ffd
push eax
call fcn.1000f4bd
cmp eax, ebx
pop ecx
je 0x10010ffd
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10010ffd
mov eax, dword [0x1001e6e0]
cmp eax, dword [ebp - 8]
je 0x10010ffd
push eax
call fcn.1000f4bd
cmp eax, ebx
pop ecx
je 0x10010ffd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1001e6d8]
call fcn.1000f4bd
cmp eax, ebx
pop ecx
je 0x1001101d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001101f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422e6f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040da25
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x422ea7
xor eax, eax
jmp 0x422ed3
cmp esi, dword [ebp - 4]
je 0x422ed0
cmp dword [ebp + 0xc], 0
je 0x422ed0
push dword [edi + 0x9c]
call fcn.00422a7d
push dword [edi + 0x9c]
mov esi, eax
call fcn.0040c061
pop ecx
pop ecx
cmp esi, eax
je 0x422ea3
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402b80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4a826c], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x402c3a
xor ebx, ebx
nop dword [eax]
mov edx, ebx
mov eax, ebx
shr eax, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, eax
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [ebx*4 + 0x4a8268], eax
inc ebx
cmp ebx, 0x100
jb 0x402ba0
mov ebx, dword [ebp + 8]
not ebx
mov eax, ebx
test edi, edi
jle 0x402c66
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4a8268]
sub edi, 1
jne 0x402c45
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x402c98
nop dword [eax]
cmp cl, 0x23
jne 0x402c7f
cmp byte [esi], cl
jne 0x402c7f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x4a8268]
test cl, cl
jne 0x402c70
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x402de0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x402df2
mov dword [edi], 0
mov edx, 0x483ccc
call fcn.00402ca0
mov esi, eax
test esi, esi
jne 0x402e06
pop edi
pop esi
pop ebp
ret
push ebx
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x402ebe
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x402ebe
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x402ebe
mov eax, dword [0x4a8670]
test eax, eax
je 0x402e56
inc dword [eax + 0x394]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402ebe
push esi
push dword [ebp + 8]
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x402ea5
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x4a8670]
add esp, 4
test eax, eax
je 0x402e94
dec dword [eax + 0x394]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x402eb7
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x412290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [0x4a8670]
mov eax, ecx
mov dword [ebp - 8], eax
mov dword [edi + 0x2c2c], 0
test eax, eax
je 0x412383
push esi
lea esi, [edi + 0x2c30]
mov dword [edi + 0x2c2c], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x4122e4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00413050
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x4122f9
push 8
mov ecx, esi
call fcn.00413050
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push ebx
mov dword [ebp - 4], 0
mov byte [ecx + eax], 0
inc dword [esi]
cmp dword [edi + 0x2c3c], 0
jle 0x41233c
xor ebx, ebx
mov eax, dword [edi + 0x2c44]
add eax, ebx
push esi
push eax
push edi
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
add ebx, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [edi + 0x2c3c]
jl 0x412317
cmp dword [esi + 8], 0
je 0x412347
mov esi, dword [esi]
dec esi
jmp 0x412349
xor esi, esi
mov eax, dword [edi + 0x2c38]
mov ebx, 0x4a866c
mov ecx, dword [ebp - 8]
test eax, eax
mov edx, 0x483cd0
cmovne ebx, eax
call fcn.00402ca0
mov edi, eax
test edi, edi
je 0x412381
push edi
push esi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41f6c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4782d6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x497080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 2
mov eax, 0x3f
mov dword [esi + 4], 0x3f800000
mov word [esi + 0x3c], ax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.0041f810
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43bd90
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 0x43bdbc
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 0x43bde4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x43bdea
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 0x43be52
jg 0x43be01
test esi, esi
je 0x43be52
test ecx, ecx
jl 0x43be4d
jg 0x43be0b
test eax, eax
je 0x43be4d
cmp edi, ecx
jg 0x43be1f
jl 0x43be15
cmp esi, eax
jae 0x43be1f
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 0x43be55
mov ecx, dword [ebp + 8]
jmp 0x43be5f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x43be79
jg 0x43be5f
test esi, esi
je 0x43be79
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x43be79
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 0x43be90
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 0x43bebc
jl 0x43beb0
test ecx, ecx
jne 0x43bebc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x43bed5
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 0x43bf23
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x43bf29
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 0x43bf29
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x43bf96
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x43bf52
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 0x43bf84
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 0x43bf96
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x43bf60
test edi, edi
je 0x43bf96
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 0x43c310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x497080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x43c340
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00476194
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x43c37c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x43c37c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00476194
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x43c453
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x43c3a4
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 0x43c3b0
movsx eax, bl
jmp 0x43c3e8
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 0x43c412
sub eax, 1
je 0x43c412
sub eax, 2
jne 0x43c453
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
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00476194
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x43c430
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 0x43c453
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.00476194
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.00476194
mov esp, ebp
pop ebp
ret 4
Function at 0x43d580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x497080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x43d63c
cmp byte [esi + 0x3d], 0
je 0x43d63c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x43d62a
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 0x43d5f1
sub eax, 1
je 0x43d5f5
sub eax, 2
jne 0x43d62a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00476194
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x43d613
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 0x43d62a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00476194
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00476194
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00476194
mov esp, ebp
pop ebp
ret

Function at 0x43e5c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47888d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x497080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 4
call fcn.0047678c
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov dword [ecx], eax
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push ecx
push 0x43fd00
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x43e642
mov eax, esi
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.00476194
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3