joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5df29ecc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x5df29f25
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x5df29ecc
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x5df29edb
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x5e32fb7e
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x5df29f2c
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.5df10da2
cmp eax, dword [ebp + 0xc]
pop eax
je 0x5df29fcb
add edi, 4
add eax, 2
dec ecx
jne 0x5df29f11
call 0x5df29f78
loope 0x5df29f6e
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x5df29fc8
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x5df29fd9
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x5df29f8c
cmp eax, ecx
ja 0x5df29f8c
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x5df2a016
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x5df2a00c
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.5df11281
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x5df29edb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x5df29f25
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x5df29ecc
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x5df29edb
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x5e32fb7e
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x5df29f2c
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.5df10da2
cmp eax, dword [ebp + 0xc]
pop eax
je 0x5df29fcb
add edi, 4
add eax, 2
dec ecx
jne 0x5df29f11
call 0x5df29f78
loope 0x5df29f6e
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x5df29fc8
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x5df29fd9
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x5df29f8c
cmp eax, ecx
ja 0x5df29f8c
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x5df2a016
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x5df2a00c
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.5df11281
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401850
Capabilities:
Check mutex on windows
Hide graphical window
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x4f2758
push 0x67
push edi
call esi
push 0x64
push 0x4f2690
push 0x6d
push edi
call esi
push 0x401690
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
js 0x4018dc
push str.game_tools_instance_xbewe2024
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4f268c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4018f0
push str.game_tools_hMutex_has_exists..._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [0x4f268c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4f268c], 0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push 0
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 0x401a40
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], edi
call esi
push 0x7f00
push 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f00
push 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 6
mov dword [ebp - 0x10], 0x6d
mov dword [ebp - 0xc], 0x4f2690
call esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push edi
push 0
push 0
push 0x1f4
push 0x258
push 0
push connect
push 0xcf0000
push 0x4f2758
push 0x4f2690
push 0
mov dword [0x4f2688], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x4018dc
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
call fcn.00402b80
add esp, 4
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x50]
push 0
push eax
call esi
test eax, eax
je 0x401a13
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x401a02
lea eax, [ebp - 0x50]
push eax
call edi
lea eax, [ebp - 0x50]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
call esi
test eax, eax
jne 0x4019e2
pop ebx
call fcn.00402ae0
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
xor ecx, ebp
pop edi
pop esi
call fcn.0040219c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4029b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453e58
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x474565], 0
mov esi, dword [ebp + 8]
je 0x4029fb
mov ecx, dword [0x474578]
test ecx, ecx
je 0x4029fb
push esi
call fcn.0041ce90
jmp 0x402ac2
push str.Cef_mt_join_isRunInSubProccess
call fcn.004046d0
add esp, 4
push 0x45a7fc
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
cmp eax, 0xb7
jne 0x402abc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x45aa70
lea ecx, [ebp - 0x28]
call fcn.004025f0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x402aa3
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x34], 1
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x30], ecx
jb 0x402a79
mov esi, dword [esi]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x2c], esi
push ecx
push 0
push 0x4a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x402a96
push str.Cef_mt_join_Failed_to_send_message.
jmp 0x402a9b
push str.Cef_mt_join_success_send_message.
call fcn.004046d0
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x402ac2
push 2
inc eax
push eax
push dword [ebp - 0x28]
call fcn.004035c0
add esp, 0xc
jmp 0x402ac2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.0040219c
mov esp, ebp
pop ebp
ret
Function at 0x402b80
Capabilities:
Check mutex on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453e9f
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x474565], 0
mov edi, dword [ebp + 8]
jne 0x402d9d
push 0xb
push str.Cef_mt_init
lea ecx, [ebp - 0x28]
mov byte [0x474565], 1
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00403d00
push 1
push 0x45a9e8
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004038a0
push 5
push str.602wd
lea ecx, [ebp - 0x28]
call fcn.004038a0
push 1
push 0x45a9e8
lea ecx, [ebp - 0x28]
call fcn.004038a0
push 5
push str.win32
lea ecx, [ebp - 0x28]
call fcn.004038a0
push 1
push 0x45a9e8
lea ecx, [ebp - 0x28]
call fcn.004038a0
push 5
push str.1.1.0
lea ecx, [ebp - 0x28]
call fcn.004038a0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x45aa04
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.libcef_dll_mt
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x474560], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402d46
push str.Cef_mt_init_hMutex_has_exists...
call fcn.004046d0
add esp, 4
push dword [0x474560]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2c]
mov dword [0x474560], 0
push 0x402f70
push eax
call fcn.004025b0
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
call fcn.00402400
mov eax, dword [ebp - 0x2c]
add esp, 0x10
mov byte [ebp - 4], 0
test eax, eax
je 0x402cdd
push 4
push eax
call fcn.0040400e
add esp, 8
cmp dword [0x474580], 0
je 0x402cec
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov dword [0x47457c], ecx
mov dword [0x474580], eax
test eax, eax
jne 0x402d17
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, dword [0x474580]
add esp, 4
mov ecx, dword [0x47457c]
push eax
push ecx
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
add esp, 8
test eax, eax
je 0x402d30
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
add esp, 4
mov dword [0x47457c], 0
mov dword [0x474580], 0
jmp 0x402d86
push 0x60
call fcn.00403fdb
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x402d74
push 0x60
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esi
push edi
call fcn.00412150
jmp 0x402d76
xor eax, eax
mov ecx, eax
mov byte [ebp - 4], 0
mov dword [0x474578], eax
call fcn.0041c050
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x402d9d
push 1
inc eax
push eax
push dword [ebp - 0x28]
call fcn.004035c0
add esp, 0xc
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.0040219c
mov esp, ebp
pop ebp
ret
Function at 0x402dc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x54]
mov esi, dword [ebp + 0xc]
push 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
sub esp, 0xc
mov dword [ebp - 0x54], 0x44
mov ecx, esp
mov dword [ebp - 0x58], esp
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x402e2a
mov eax, dword [ecx]
jmp 0x402e2c
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push esi
mov word [eax], dx
call fcn.00401e20
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x402e5e
mov eax, dword [ecx]
jmp 0x402e60
mov eax, ecx
push 0x12
xor edx, edx
push str.StartMySubProcess:
mov word [eax], dx
call fcn.00403e00
mov dword [ebp - 4], 0xffffffff
call fcn.00404730
add esp, 0x30
cmp dword [esi + 0x14], 8
jb 0x402e88
mov esi, dword [esi]
push edi
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402eb5
push str.Failed_to_create_subprocess
call fcn.004046d0
jmp 0x402ec6
push str.Subprocess_started_successfully
call fcn.004046d0
mov byte [0x474567], 1
add esp, 4
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.0040219c
mov esp, ebp
pop ebp
ret

Function at 0x402ef0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x402580
test eax, eax
jne 0x402f2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_terminate_subprocess._Error:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.004021b0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
jmp 0x402f41
push str.Subprocess_terminated_successfully.
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004021b0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
ret
Function at 0x4077d0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
cmp dword [esi + 0x14], 0x10
jb 0x4077fb
mov eax, dword [esi]
jmp 0x4077fd
mov eax, esi
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 1
push 0
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x407856
push 0x402580
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_calculating_decoded_size:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.004021b0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 8]
call fcn.00423d44
add esp, 4
mov edi, eax
cmp dword [esi + 0x14], 0x10
jb 0x40786c
mov esi, dword [esi]
push 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push 1
push 0
push esi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x4078ce
push 0x402580
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_decoding_Base64:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.004021b0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push edi
call fcn.00423d4d
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040219c
mov esp, ebp
pop ebp
ret
Function at 0x4088a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454901
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0
call fcn.00408a90
add esp, 4
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 1
mov dword [esi + 0x10], 0
jb 0x408916
mov eax, dword [esi]
jmp 0x408918
mov eax, esi
xor ecx, ecx
push 0xffffffffffffffff
mov word [eax], cx
lea eax, [ebp - 0x28]
push ecx
push eax
mov ecx, esi
call fcn.00401e20
push 0xa
push str.Microsoft
mov ecx, esi
mov dword [ebp - 0x2c], 1
call fcn.00403ac0
cmp dword [esi + 0x14], 8
jb 0x40894a
mov eax, dword [esi]
jmp 0x40894c
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x408966
push str.create_Microsoft_Dir_success_n
call fcn.004046d0
add esp, 4
push 1
push 0x45a8d4
mov ecx, esi
call fcn.00403ac0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x40898b
push 2
inc ecx
push ecx
push dword [ebp - 0x28]
call fcn.004035c0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret

Function at 0x4089b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454951
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x472008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x10], 0
call fcn.004088a0
mov esi, dword [ebp + 8]
push str.WindowsMt
push eax
push esi
mov dword [ebp - 4], 1
call fcn.00404ed0
add esp, 0x10
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x408a28
push 2
inc eax
push eax
push dword [ebp - 0x28]
call fcn.004035c0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x408a46
mov eax, dword [esi]
jmp 0x408a48
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x408a62
push str.create_WindowsMt_Dir_success_n
call fcn.004046d0
add esp, 4
push 1
push 0x45a8d4
mov ecx, esi
call fcn.00403ac0
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 0x408a90
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0
push 0x1c
push eax
push 0
mov dword [ebp - 0x210], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x408ae4
xor ecx, ecx
jmp 0x408aff
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408af0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00403e00
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040219c
mov esp, ebp
pop ebp
ret

Function at 0x408b20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x408b2e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408b42
test al, 0x10
je 0x408b42
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x408b50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x408b5e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408b72
test al, 0x10
jne 0x408b72
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x408e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4546a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x472008]
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, ecx
cmp dword [ebx + 0x38], 0
je 0x408f54
cmp byte [ebx + 0x3e], 0
je 0x408f54
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
sete al
test al, al
je 0x408e64
xor al, al
jmp 0x408f56
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 0x40]
nop word [eax + eax]
cmp esi, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
push edi
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x408edc
sub eax, 1
je 0x408ee0
mov esi, dword [ebp - 0x14]
sub eax, 2
je 0x408f38
xor bl, bl
jmp 0x408f3a
mov byte [ebx + 0x3e], 0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edi, dword [ebp - 0x2c]
cmovae eax, ecx
sub edi, eax
je 0x408f16
push dword [ebx + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov esi, dword [ebp - 0x14]
add esp, 0x10
cmp edi, eax
jne 0x408ed8
cmp byte [ebx + 0x3e], 0
je 0x408f38
test edi, edi
lea edi, [ebx + 0x40]
jne 0x408ea0
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00409660
jmp 0x408e94
mov bl, 1
cmp esi, 0x10
jb 0x408f50
push 1
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x28]
call fcn.004035c0
add esp, 0xc
mov al, bl
jmp 0x408f56
mov al, 1
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.0040219c
mov esp, ebp
pop ebp
ret