joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009ea0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007ea30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
test ebx, ebx
jne 0x10009ee4
push 0x62
push str.D:_aodioodiocorediscord_rpcSourceFilesconnection_win.cpp
push 0x1006723c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e305
mov esp, ebp
pop ebp
ret 8
test esi, esi
jne 0x10009f11
push 0x67
push str.D:_aodioodiocorediscord_rpcSourceFilesconnection_win.cpp
push str.self
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e305
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
push edi
cmp eax, 0xffffffff
je 0x10009fac
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x10009f99
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 8], edi
jb 0x10009fac
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x10009f90
cmp edi, dword [ebp - 0xc]
je 0x10009f7b
push 0x74
push str.D:_aodioodiocorediscord_rpcSourceFilesconnection_win.cpp
push str.bytesToRead__bytesRead
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e305
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.10009d30
jmp 0x10009fac
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
mov byte [esi], 0
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005e305
mov esp, ebp
pop ebp
ret 8

Function at 0x10009fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1007ea30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1000a061
test ecx, ecx
jne 0x1000a027
push 0x4f
push str.D:_aodioodiocorediscord_rpcSourceFilesconnection_win.cpp
push str.self
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e305
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ecx + 4]
cmp ecx, 0xffffffff
je 0x1000a014
test eax, eax
jne 0x1000a041
push 0x56
push str.D:_aodioodiocorediscord_rpcSourceFilesconnection_win.cpp
push 0x1006723c
jmp 0x1000a00b
push 0
lea edx, [ebp - 8]
mov dword [ebp - 8], 0
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1000a014
cmp dword [ebp - 8], esi
jne 0x1000a014
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1005e305
mov esp, ebp
pop ebp
ret 8
Function at 0x1000a460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa94
mov eax, dword [0x1007ea30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x84]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
mov edi, dword [ebp + 0xc]
push 0x20
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
lea eax, [ebp - 0xa94]
push eax
push 0x20019
push 0
push str.SoftwareValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000a4d4
push str.Error_opening_Steam_key_n
jmp 0x1000a594
lea eax, [ebp - 0xa90]
mov dword [ebp - 0xa90], 0x208
push eax
lea eax, [ebp - 0x28c]
push eax
push 0
push 0
push str.SteamExe
push dword [ebp - 0xa94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xa94]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1000a58f
mov ecx, dword [ebp - 0xa90]
cmp ecx, 1
jb 0x1000a58f
shr ecx, 1
mov eax, esi
je 0x1000a548
lea edx, [esi + 0x5c]
nop word [eax + eax]
cmp word [ebp + eax*2 - 0x28c], 0x2f
jne 0x1000a543
mov word [ebp + eax*2 - 0x28c], dx
inc eax
cmp eax, ecx
jb 0x1000a530
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28c]
push eax
push str.__s__steam:__rungameid__s
lea eax, [ebp - 0xa8c]
push 0x800
push eax
call fcn.1000a370
lea eax, [ebp - 0xa8c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.1000a080
add esp, 0x1c
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e305
mov esp, ebp
pop ebp
ret
push str.Error_reading_SteamExe_key_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.1000a5d0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.1005e305
mov esp, ebp
pop ebp
ret
Function at 0x1000c1c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0x10074f8c
push 0x64
call fcn.1005e336
mov edi, eax
add esp, 8
test edi, edi
je 0x1000c32f
push 0x63
lea ecx, [edi + 1]
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
lea eax, [edi + 4]
mov byte [edi], 1
push 2
push eax
call sub.MSVCP140.dll__Mtx_init_in_situ
lea eax, [edi + 0x34]
push eax
call sub.MSVCP140.dll__Cnd_init_in_situ
add esp, 0x18
mov dword [0x100a4ef0], edi
cmp dword [ebp + 0x10], 0
xorps xmm0, xmm0
movq qword [edi + 0x5c], xmm0
je 0x1000c240
test esi, esi
je 0x1000c235
cmp byte [esi], 0
je 0x1000c235
push esi
push ebx
call fcn.1000a460
jmp 0x1000c23d
push 0
push ebx
call fcn.1000a3e0
add esp, 8
call sub.KERNEL32.dll_GetCurrentProcessId
push 0x1007f800
mov dword [0x100a4cec], eax
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x1000c340
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000c277
movups xmm0, xmmword [eax]
movups xmmword [0x100a08a4], xmm0
movq xmm0, qword [eax + 0x10]
jmp 0x1000c281
xorps xmm0, xmm0
movups xmmword [0x100a08a4], xmm0
movq qword [0x100a08b4], xmm0
xorps xmm0, xmm0
push 0x1007f800
movups xmmword [0x100a08bc], xmm0
movq qword [0x100a08cc], xmm0
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
cmp dword [0x100a08a0], 0
jne 0x1000c339
push ebx
call fcn.1000ddc0
mov dword [0x100a08a0], eax
mov dword [eax + 8], 0x1000a600
mov eax, dword [0x100a08a0]
mov dword [eax + 0xc], 0x1000a620
mov al, 1
mov esi, dword [0x100a4ef0]
xchg byte [esi], al
push 4
call fcn.1005dda4
add esp, 8
test eax, eax
je 0x1000c2ef
mov dword [eax], esi
jmp 0x1000c2f1
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push 0x1000a6c0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x1000c346
cmp dword [esi + 0x60], 0
je 0x1000c31f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 4]
pop edi
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [0x100a4ef0], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
push 6
mov dword [ebp - 4], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x1001f5e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060961
mov eax, dword fs:[0]
push eax
mov eax, dword [0x1007ea30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100b6848]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100b59e0]
cmp eax, dword [ecx + 4]
jg 0x1001f68d
mov ecx, dword [0x100b59dc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
cmp eax, 1
je 0x1001f67e
cmp dword [0x100b6738], 0
je 0x1001f67e
call fcn.10004a90
cmp byte [eax + 0x28], 0
je 0x1001f67e
call fcn.10004a90
mov eax, dword [eax + 0x6c]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x1001f67e
mov ecx, dword [0x100b6738]
call fcn.10019880
cmp eax, 9
je 0x1001f67e
test byte [ebp + 0xc], 1
jne 0x1001f67e
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x30]
test al, 2
je 0x1001f67e
and eax, 0xfffffffd
mov dword [ecx + 0x30], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 0x100b59e0
call fcn.1005e22f
add esp, 4
cmp dword [0x100b59e0], 0xffffffff
jne 0x1001f61e
mov ecx, dword [0x100b5070]
push str.sv_autobunnyhopping
mov dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 0x44]
push 0x100b59e0
mov dword [0x100b59dc], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1005e1e5
add esp, 4
jmp 0x1001f61e
Function at 0x1002b520
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100602d0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1007ea30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x1007f6c0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [0x100b5064]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
call edx
mov edi, eax
test edi, edi
je 0x1002b675
mov edx, dword [0x100b5ae8]
test edx, edx
jne 0x1002b5a6
push 0xe80c2f78
push 0x1006a6e5
call fcn.10012f20
push 0xc10bf213
push 0x10068db5
mov esi, eax
call fcn.10012f20
push esi
push eax
call fcn.1005b2a0
mov edx, eax
add esp, 0x18
mov dword [0x100b5ae8], edx
mov ecx, dword [0x100b5064]
push dword [edx + edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov edi, eax
test edi, edi
je 0x1002b675
mov eax, dword [0x100b5aec]
test eax, eax
jne 0x1002b5f8
push 0xe80c2f78
push 0x1006a705
call fcn.10012f20
push 0xc10bf213
push 0x1006a37d
mov esi, eax
call fcn.10012f20
push esi
push eax
call fcn.1005b2a0
add esp, 0x18
mov dword [0x100b5aec], eax
mov edx, dword [eax + edi]
test edx, edx
je 0x1002b675
mov ecx, dword [0x100b5064]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp eax, dword [ebp + 8]
jne 0x1002b675
mov ecx, dword [0x100b506c]
push dword [ebp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ebx, eax
mov eax, dword [0x100b5abc]
test eax, eax
jne 0x1002b65c
push 0xe80c2f78
push 0x1006a36d
call fcn.10012f20
push 0xc10bf213
push 0x1006a37d
mov esi, eax
call fcn.10012f20
push esi
push eax
call fcn.1005b2a0
add esp, 0x18
mov dword [0x100b5abc], eax
mov dword [eax + edi], ebx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10033ad0
Capabilities:
Enumerate gui resources
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006197d
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x1007ea30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
push 2
mov dword [ebp - 4], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x250], eax
push ecx
push eax
mov dword [ebp - 0x248], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x10033b60
mov byte [ebp - 0x249], al
jmp 0x10033c81
xorps xmm0, xmm0
mov dword [ebp - 0x258], 0
lea eax, [ebp - 0x224]
mov dword [ebp - 0x254], 0
movups xmmword [ebp - 0x268], xmm0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10033b87
sub eax, edx
lea ecx, [ebp - 0x268]
sar eax, 1
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.10031ba0
mov edi, dword [ebp - 0x254]
lea eax, [ebp - 0x268]
mov esi, dword [ebp - 0x268]
cmp edi, 8
cmovae eax, esi
cmp dword [ebp - 0x258], 0xb
jne 0x10033be5
push 0xb
push str.Spotify.exe
push eax
call fcn.10032040
add esp, 0xc
mov byte [ebp - 0x249], 1
test eax, eax
je 0x10033bec
mov byte [ebp - 0x249], 0
cmp edi, 8
jb 0x10033c20
lea ecx, [edi*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x10033c16
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10033caa
push ecx
push esi
call fcn.1005ddd4
add esp, 8
cmp byte [ebp - 0x249], 0
je 0x10033c4f
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x14]
je 0x10033c3f
mov eax, dword [ebp - 0x240]
mov dword [ecx], eax
add dword [ebp - 0x18], 4
jmp 0x10033c4f
lea eax, [ebp - 0x240]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10031c50
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x250]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10033b60
lea eax, [ebp - 0x1c]
push eax
push 0x10032740
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
setne byte [ebp - 0x249]
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x10033cba
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10033cb0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10033cb0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005ddd4
add esp, 8
mov al, byte [ebp - 0x249]
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.1005e305
mov esp, ebp
pop ebp
ret
Function at 0x1003b060
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006215c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1007ea30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea esi, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov ecx, dword [ebp + 0x30]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x1003b114
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov al, byte [ebp + 0x34]
lea ecx, [edi + 0x70]
mov byte [edi + 0x60], al
push 9
mov byte [ebp - 4], 5
mov byte [edi + 0x68], 9
call fcn.1003b6e0
cmp byte [edi + 0x68], 1
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jne 0x1003b152
cmp dword [edi + 0x70], 0
jne 0x1003b152
push 0x4268
push str.D:_aodioodiocoremenujson.h
push str.m_type___value_t::object_or_m_value.object___nullptr
call ebx
add esp, 0xc
cmp byte [edi + 0x68], 2
jne 0x1003b172
cmp dword [edi + 0x70], 0
jne 0x1003b172
push 0x4269
push str.D:_aodioodiocoremenujson.h
push str.m_type___value_t::array_or_m_value.array___nullptr
call ebx
add esp, 0xc
cmp byte [edi + 0x68], 3
jne 0x1003b192
cmp dword [edi + 0x70], 0
jne 0x1003b192
push 0x426a
push str.D:_aodioodiocoremenujson.h
push str.m_type___value_t::string_or_m_value.string___nullptr
call ebx
add esp, 0xc
cmp byte [edi + 0x68], 8
jne 0x1003b1b2
cmp dword [edi + 0x70], 0
jne 0x1003b1b2
push 0x426b
push str.D:_aodioodiocoremenujson.h
push str.m_type___value_t::binary_or_m_value.binary___nullptr
call ebx
add esp, 0xc
mov ecx, dword [edi + 0x1c]
xor ebx, ebx
mov edx, dword [edi + 0x10]
mov byte [ebp - 4], 6
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], edx
test ecx, ecx
jns 0x1003b1e5
mov eax, ecx
neg eax
cmp ebx, eax
jae 0x1003b1e5
add ecx, ebx
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x1003b1ef
add ecx, ebx
mov eax, ecx
shr eax, 5
lea edx, [edx + eax*4]
lea eax, [ebp - 0xd]
and ecx, 0x1f
push eax
push 1
push ecx
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x10]
call fcn.1003d3f0
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x1003b21e
mov esi, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
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 0x30
Function at 0x1003cfd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1007ea30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1003d08c
cmp byte [esi + 0x3d], 0
je 0x1003d08c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1003d07a
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 0x1003d041
sub eax, 1
je 0x1003d045
sub eax, 2
jne 0x1003d07a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e305
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1003d063
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 0x1003d07a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e305
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e305
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1005e305
mov esp, ebp
pop ebp
ret
Function at 0x10043ee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1007ea30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10043f10
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e305
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10043f40
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10043f40
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.1005e305
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1004403d
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10043f69
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 0x10043f9d
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.1005e305
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
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 [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 0x10043ffc
sub eax, 1
je 0x10043ffc
sub eax, 2
jne 0x1004403d
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.100351c0
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.1005e305
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1004401a
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 0x1004403d
lea ecx, [ebp - 0x28]
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.1005e305
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.1005e305
mov esp, ebp
pop ebp
ret 4
Function at 0x1004c4c0
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 0x1004c4ec
jl 0x1004c4e0
test ecx, ecx
jne 0x1004c4ec
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1004c505
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 0x1004c54d
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x1004c553
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x1004c553
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x1004c5c6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1004c57c
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 0x1004c5b4
nop dword [eax]
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 0x1004c5c6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1004c590
test edi, edi
je 0x1004c5c6
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