joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4215e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x421639
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x421639
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x42162a
cmp esi, edx
jae 0x421639
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x421618
cmp esi, edx
jae 0x421639
cmp word [esi], 0
je 0x421639
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x424720
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56649b
mov eax, dword fs:[0]
push eax
sub esp, 0x810
mov eax, dword [0x5bc324]
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 dword [ebp - 0x814], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
push 0x400
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x81c], eax
lea eax, [ebp - 0x810]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x814]
add esp, 0xc
push dword [eax + 4]
lea eax, [ebp - 0x810]
push 0x400
push eax
push dword [esi]
push dword [edi]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.00422040
mov ecx, eax
test ecx, ecx
je 0x424830
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x42483a
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
mov ebx, dword [ebp - 0x818]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.00429f10
test al, al
jne 0x424810
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4247f2
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0042b160
mov eax, ebx
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.00523a6a
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.004213b0
call edx
jmp 0x4247c5
Function at 0x424840
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5664db
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x5bc324]
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 [ecx + 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x14]
push 0x400
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x410]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test ebx, ebx
je 0x424904
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4248b4
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x424904
lea eax, [ecx + ecx]
mov dword [ebp - 0x41c], eax
call fcn.00523b90
mov esi, esp
test esi, esi
je 0x424904
push 0
push 0
push dword [ebp - 0x41c]
mov byte [esi], 0
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x424906
xor esi, esi
push esi
lea ecx, [ebp - 0x414]
call fcn.004288b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x410]
push dword [ebp - 0x414]
push 0x400
push eax
mov eax, dword [ebp - 0x420]
push dword [eax]
mov eax, dword [ebp - 0x424]
push dword [eax]
mov eax, dword [ebp - 0x418]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.004288b0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x414]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42499e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4249c6
mov eax, dword [ecx + 4]
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
cmp ecx, vtable.ATL::CWin32Heap.0
jne 0x4249c4
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
lea esp, [ebp - 0x434]
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.00523a6a
mov esp, ebp
pop ebp
ret 0x10
mov ecx, eax
call esi
jmp 0x42499e

Function at 0x424b00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x5bc324]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x400
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x808], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x804]
push dword [esi + 4]
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
push eax
lea eax, [ebp - 0x804]
push eax
push edi
call fcn.00425300
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00523a6a
mov esp, ebp
pop ebp
ret 4
Function at 0x424b70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x5bc324]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x804]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x400
push 0
push eax
mov edi, ecx
mov dword [ebp - 0x808], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x804]
push dword [edi + 4]
push 0x400
push eax
push 0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
lea eax, [ebp - 0x804]
push eax
push ebx
call fcn.00425300
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00523a6a
mov esp, ebp
pop ebp
ret 8

Function at 0x424bf0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56651b
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x5bc324]
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 [ecx + 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push 0x400
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x410]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test ebx, ebx
je 0x424ca2
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424c52
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x424ca2
lea eax, [ecx + ecx]
mov dword [ebp - 0x41c], eax
call fcn.00523b90
mov esi, esp
test esi, esi
je 0x424ca2
push 0
push 0
push dword [ebp - 0x41c]
mov byte [esi], 0
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x424ca4
xor esi, esi
push esi
lea ecx, [ebp - 0x414]
call fcn.004288b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x410]
push dword [ebp - 0x414]
push 0x400
push eax
mov eax, dword [ebp - 0x418]
push 0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea eax, [ebp - 0x410]
push eax
push edi
call fcn.00425530
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x414]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424d30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x424d58
mov eax, dword [ecx + 4]
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
cmp ecx, vtable.ATL::CWin32Heap.0
jne 0x424d56
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
lea esp, [ebp - 0x42c]
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.00523a6a
mov esp, ebp
pop ebp
ret 8
mov ecx, eax
call esi
jmp 0x424d30
Function at 0x425b70
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566780
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5bc324]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 4]
lea esi, [ebx + 4]
cmp dword [eax - 0xc], 0
je 0x425bbe
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x425bb6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
mov ecx, ebx
call fcn.00422980
mov edx, dword [ebx + 0xc]
push ecx
mov ecx, dword [ebx + 8]
call fcn.0042e010
mov eax, dword [ebx + 8]
add esp, 4
mov dword [ebx + 0xc], eax
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x14]
mov esi, dword [ebx + 0x14]
push dword [esi + 4]
call fcn.00429a10
mov eax, dword [ebx + 0x14]
mov dword [eax + 4], esi
mov eax, dword [ebx + 0x14]
mov dword [eax], esi
mov eax, dword [ebx + 0x14]
mov dword [eax + 8], esi
mov dword [ebx + 0x18], 0
mov dword [ebp - 4], 1
lea ecx, [ebx + 0x24]
mov esi, dword [ebx + 0x24]
push dword [esi + 4]
call fcn.00429660
mov eax, dword [ebx + 0x24]
mov dword [eax + 4], esi
mov eax, dword [ebx + 0x24]
mov dword [eax], esi
mov eax, dword [ebx + 0x24]
mov dword [eax + 8], esi
mov dword [ebx + 0x28], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
push 0
push 0
push 0
mov dword [edi], vtable.CTrayIcon.0
lea esi, [edi + 8]
mov dword [edi + 4], 0
push 0
mov dword [esi], vtable.CTrayPos.0
mov dword [esi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x10], eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x432310
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0xc], eax
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x3bc
lea eax, [edi + 0x54]
mov dword [esi], vtable.CMsgTrayPos.0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
push 0
push eax
mov dword [edi + 0x410], 0
mov dword [edi + 0x418], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
push str.TaskbarCreated
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [edi + 0x410], eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4342f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call ebx
mov esi, eax
mov dword [ebp - 4], esi
call ebx
sub eax, esi
cmp eax, dword [ebp + 8]
ja 0x434368
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
je 0x434359
lea eax, [ebp - 0x20]
push eax
call edi
lea eax, [ebp - 0x20]
push eax
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x434333
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jbe 0x434321
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4343a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4343f6
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x4343e9
cmp byte [ebp + 0x14], 0
je 0x4343e9
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop edi
pop ebp
ret
mov al, 1
pop edi
pop ebp
ret
Function at 0x435eb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x435edb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004367a0
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 + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x435efd
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x435eff
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x435f84
jg 0x435f14
test esi, esi
je 0x435f84
test ecx, ecx
jl 0x435f5d
jg 0x435f1e
test eax, eax
je 0x435f5d
cmp edi, ecx
jg 0x435f32
jl 0x435f28
cmp esi, eax
jae 0x435f32
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x435f60
mov edx, dword [ebp + 8]
test edi, edi
jl 0x435f84
jg 0x435f6a
test esi, esi
je 0x435f84
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x435f84
push eax
push esi
push 1
push edx
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 + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x435fa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x435fcb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00436880
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x435fed
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x435fef
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x43608f
jg 0x43600c
test esi, esi
je 0x43608f
test ecx, ecx
jl 0x436059
jg 0x436016
test eax, eax
je 0x436059
cmp ebx, ecx
jg 0x43602a
jl 0x436020
cmp esi, eax
jae 0x43602a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x436060
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x43608f
jg 0x43606a
test esi, esi
je 0x43608f
cmp dword [edi + 0x4c], 0
je 0x43608f
mov ecx, edi
call fcn.00437df0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x436490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5bc324]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4364c0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4364fc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4364fc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4365ca
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x436524
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 0x436558
push dword [esi + 0x4c]
movsx eax, bl
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.00523a6a
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
cmp edx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x4365e0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], eax
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0043cf60
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4365ba
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 0x4365ca
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4364e7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00523a6a
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x4365ca
cmp eax, 1
jle 0x43659c
cmp eax, 3
jne 0x4365ca
jmp 0x436571
Function at 0x437500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5bc324]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x437620
cmp byte [ebx + 0x3e], 0
je 0x437620
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x4375d6
mov edx, dword [ebx + 0x38]
lea ecx, [ebx + 0x40]
mov eax, dword [edx]
mov esi, dword [eax + 0x20]
cmp eax, vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
jne 0x437633
lea eax, [ebp - 0x2c]
xor edi, edi
mov dword [ebp - 0x30], eax
mov eax, dword [ecx]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x38], eax
lea eax, [edx + 8]
push eax
push ecx
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.00529920
mov esi, dword [ebp - 0x30]
mov ecx, eax
add esp, 0x10
test ecx, ecx
jg 0x43758c
mov edi, 2
jmp 0x4375c7
lea eax, [ebp - 0xc]
dec ecx
sub eax, esi
mov dword [ebp - 0x3c], ecx
cmp eax, ecx
jge 0x4375ac
mov eax, dword [ebp - 0x34]
mov edi, 1
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x44], eax
jmp 0x4375c7
test ecx, ecx
jle 0x4375c7
push ecx
lea eax, [ebp - 0xc]
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
mov esi, dword [ebp - 0x30]
add esp, 0xc
add esi, dword [ebp - 0x3c]
mov dword [ebp - 0x30], esi
sub edi, 0
je 0x4375e9
sub edi, 1
je 0x4375ed
sub edi, 2
je 0x437620
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x3e], 0
lea eax, [ebp - 0x2c]
sub esi, eax
je 0x437608
push dword [ebx + 0x4c]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x4375d6
cmp byte [ebx + 0x3e], 0
pop edi
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
push ecx
mov ecx, edx
call esi
mov esi, dword [ebp - 0x30]
mov edi, eax
jmp 0x4375c7
Function at 0x437e60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5bc324]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x437ef8
cmp byte [esi + 0x3d], 0
je 0x437ef8
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x437eb0
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
cmp edx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x437f0a
lea edi, [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x28], edi
sub eax, 0
je 0x437ec2
sub eax, 1
je 0x437ec6
sub eax, 2
je 0x437ef8
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
lea eax, [ebp - 0x24]
sub edi, eax
je 0x437ee1
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 0x437eb0
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
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 [edx + 0x20]
mov edi, dword [ebp - 0x28]
jmp 0x437ea1

Function at 0x438800
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567900
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5bc324]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0052362a
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00529e85
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret