joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c444
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40c4e1
push ebx
push esi
call fcn.0040c40d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040c3a1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c48e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c4e0
push edi
push eax
call fcn.0040d061
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40c4ae
call fcn.0040af01
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c4df
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040c3a1
add esp, 0x20
test eax, eax
jne 0x40c4cd
push edi
call fcn.0040af01
jmp 0x40c4d5
push ebx
call fcn.0040af01
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40d7de
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e868
push 0x43e860
push str.FlsAlloc
push 0x1f
call fcn.0040d69d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d812
push dword [ebp + 8]
mov ecx, esi
call dword [0x417174]
call esi
jmp 0x40d818
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d85c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e878
push 0x43e870
push str.FlsGetValue
push 0x21
call fcn.0040d69d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d893
push dword [ebp + 8]
mov ecx, esi
call dword [0x417174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40d89b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e880
push 0x43e878
push str.FlsSetValue
push 0x22
call fcn.0040d69d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d8d5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x417174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x412d30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x412d5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412d5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4a1f30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.SERKO1
lea edi, [esi - 0x64000]
push edi
or ebp, 0xffffffff
jmp 0x4a1f52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a1f59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a1f48
mov eax, 1
add ebx, ebx
jne 0x4a1f6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a1f7c
jne 0x4a1f9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a1f9b
dec eax
add ebx, ebx
jne 0x4a1f88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4a1f60
add ebx, ebx
jne 0x4a1f97
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4a1fed
xor ecx, ecx
sub eax, 3
jb 0x4a1fb3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a2022
sar eax, 1
mov ebp, eax
jmp 0x4a1fbe
add ebx, ebx
jne 0x4a1fbe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a1f8c
inc ecx
add ebx, ebx
jne 0x4a1fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a1f8c
add ebx, ebx
jne 0x4a1fd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a1fce
jne 0x4a1fea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a1fce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a200c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a1ffe
jmp 0x4a1f4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a200c
add edi, ecx
jmp 0x4a1f4e
pop esi
mov edi, esi
mov ecx, 0x4a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4a202a
cmp byte [edi], 6
jne 0x4a202a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4a202f
lea edi, [esi + 0x9f000]
mov eax, dword [edi]
or eax, eax
je 0x4a20a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa75c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa75fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a205c
mov ecx, edi
jns 0x4a208b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa7600]
or eax, eax
je 0x4a20a1
mov dword [ebx], eax
add ebx, 4
jmp 0x4a2079
call dword [esi + 0xa7610]
mov ebp, dword [esi + 0xa7604]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4a20db
sub esp, 0xffffff80
jmp 0x4016e8
Function at 0x100534e0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1033bbac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
test ebx, ebx
jne 0x10053524
push 0x62
push str.C:UsersAdminDesktopMEGA_2.5.4MEGA_2.5.4dsoundDiscord_SDK_srcconnection_win.cpp
push 0x1031de1c
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.1022fc6a
mov esp, ebp
pop ebp
ret 8
test esi, esi
jne 0x10053551
push 0x67
push str.C:UsersAdminDesktopMEGA_2.5.4MEGA_2.5.4dsoundDiscord_SDK_srcconnection_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.1022fc6a
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
push edi
cmp eax, 0xffffffff
je 0x100535e3
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 0x100535d0
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 8], edi
jb 0x100535e3
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 0x100535d0
cmp edi, dword [ebp - 0xc]
je 0x100535bb
push 0x74
push str.C:UsersAdminDesktopMEGA_2.5.4MEGA_2.5.4dsoundDiscord_SDK_srcconnection_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.1022fc6a
mov esp, ebp
pop ebp
ret 8
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi], 0
mov dword [esi + 4], 0xffffffff
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1022fc6a
mov esp, ebp
pop ebp
ret 8
Function at 0x100545a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1033bbac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x102a7980
push 0x64
mov esi, edx
call fcn.102301fe
mov edi, eax
add esp, 8
test edi, edi
je 0x10054760
push 0x63
lea ecx, [edi + 1]
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [edi], 1
lea eax, [edi + 4]
push 2
push eax
call dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea eax, [edi + 0x34]
push eax
call dword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
add esp, 0xc
mov dword [0x1048afe4], edi
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
movq qword [edi + 0x5c], xmm0
push 0x20
push eax
push 0xffffffffffffffff
push 0x1031fae8
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea ecx, [ebp - 0x48]
call fcn.100536b0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x10459558
mov dword [0x1048f104], eax
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x1005464f
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
test esi, esi
je 0x10054664
movups xmm0, xmmword [esi]
movups xmmword [0x1048aec8], xmm0
movq xmm0, qword [esi + 0x10]
jmp 0x1005466e
xorps xmm0, xmm0
movups xmmword [0x1048aec8], xmm0
movq qword [0x1048aed8], xmm0
xorps xmm0, xmm0
push 0x10459558
movups xmmword [0x1048b0e8], xmm0
movq qword [0x1048b0f8], xmm0
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
cmp dword [0x1048f20c], 0
jne 0x1005476a
mov eax, 0x1031fae8
mov dword [0x1047a5f8], 0x104509c8
mov esi, 1
mov edx, 0x1047a608
sub esi, eax
nop
lea ecx, [eax + esi]
cmp ecx, 0x40
jae 0x100546d3
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp byte [eax], 0
jne 0x100546c0
mov esi, dword [0x1048afe4]
mov al, 1
mov byte [edx], 0
mov dword [0x1048f20c], 0x1047a5f8
mov dword [0x1047a600], 0x10054ab0
mov dword [0x1047a604], 0x10054ac0
xchg byte [esi], al
push 4
call fcn.1022fe7a
add esp, 4
lea ecx, [ebp - 0x4c]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x10054fb0
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 - 0x50], ecx
test ecx, ecx
je 0x10054751
cmp dword [esi + 0x60], 0
je 0x10054738
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1022fc6a
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x4c], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov dword [0x1048afe4], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1022fc6a
mov esp, ebp
pop ebp
ret
Function at 0x100556e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1033bbac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x1048f20c]
push esi
push eax
mov dword [edi + 0x154], 1
lea eax, [edi + 0x15c]
lea ebx, [edi + 0x154]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi + 0x158], esi
add esi, 8
je 0x100557e0
mov eax, dword [edi]
test eax, eax
jne 0x1005574c
push 0x4f
push str.C:UsersAdminDesktopMEGA_2.5.4MEGA_2.5.4dsoundDiscord_SDK_srcconnection_win.cpp
push str.self
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
jmp 0x1005578f
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x1005578f
test ebx, ebx
jne 0x1005576f
push 0x56
push str.C:UsersAdminDesktopMEGA_2.5.4MEGA_2.5.4dsoundDiscord_SDK_srcconnection_win.cpp
push 0x1031de1c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
jmp 0x1005578f
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1005578f
cmp dword [ebp - 8], esi
je 0x100557e0
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x100557af
mov eax, dword [edi + 4]
cmp eax, 3
je 0x100557a3
cmp eax, 1
jne 0x100557af
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
mov byte [esi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1022fc6a
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1022fc6a
mov esp, ebp
pop ebp
ret 8
Function at 0x1005c680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10233fe0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1033bbac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CryptoPP::FilterWithBufferedInput.0
mov dword [esi + 4], vtable.CryptoPP::FilterWithBufferedInput.1.0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
mov edx, dword [esi + 0x34]
mov edi, edx
cmovb ecx, eax
xor al, al
rep stosb byte es:[edi], al
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x1005c6e4
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x1005c6f5
push 0x48
push esi
call fcn.102301c4
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1005d940
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x1005d962
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax + 0x49]
inc eax
xor byte [edx], cl
cmp eax, 3
jb 0x1005d950
mov byte [esi + 4], 0
mov eax, esi
pop esi
ret
Function at 0x1005e700
Capabilities:
Create thread
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1033bbac]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
push edi
mov edi, dword [ebp + 8]
jne 0x1005e85d
push esi
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x103200c0
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x103200cc
push eax
mov dword [0x1048f310], eax
call esi
push 0x103200e0
push dword [0x1048f310]
mov dword [0x10458f50], eax
call esi
push 0x103200f8
push dword [0x1048f310]
mov dword [0x10458f38], eax
call esi
push 0x10320110
push dword [0x1048f310]
mov dword [0x10458f30], eax
call esi
push 0x10320120
push dword [0x1048f310]
mov dword [0x10458f48], eax
call esi
push 0x10320134
push dword [0x1048f310]
mov dword [0x10458f4c], eax
call esi
push 0x10320150
push dword [0x1048f310]
mov dword [0x10458f34], eax
call esi
push 0x10320170
push dword [0x1048f310]
mov dword [0x10458f24], eax
call esi
push 0x10320190
push dword [0x1048f310]
mov dword [0x10458f28], eax
call esi
push 0x1032019c
push dword [0x1048f310]
mov dword [0x10458f2c], eax
call esi
push 0x103201b8
push dword [0x1048f310]
mov dword [0x10458f58], eax
call esi
push 0x103201cc
push dword [0x1048f310]
mov dword [0x10458f40], eax
call esi
push 0
push 0
push 0
push 0x1005e4e0
push 0
push 0
mov dword [0x10458f54], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
pop esi
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop edi
call fcn.1022fc6a
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1005edb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0xb], 0
je 0x1005edd2
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax + 0x49]
inc eax
xor byte [edx], cl
cmp eax, 0xa
jb 0x1005edc0
mov byte [esi + 0xb], 0
push ecx
mov ecx, dword [ebp + 8]
lea eax, [esi + 0xa]
push eax
push esi
call fcn.10051720
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1005edf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x1005ee12
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax + 0x49]
inc eax
xor byte [edx], cl
cmp eax, 3
jb 0x1005ee00
mov byte [esi + 4], 0
push ecx
mov ecx, dword [ebp + 8]
lea eax, [esi + 3]
push eax
push esi
call fcn.10051720
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1005fdd0
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 0x1005fdfc
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 0x1005fe24
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1005fe2a
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 0x1005fe92
jg 0x1005fe41
test esi, esi
je 0x1005fe92
test ecx, ecx
jl 0x1005fe8d
jg 0x1005fe4b
test eax, eax
je 0x1005fe8d
cmp edi, ecx
jg 0x1005fe5f
jl 0x1005fe55
cmp esi, eax
jae 0x1005fe5f
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 0x1005fe95
mov ecx, dword [ebp + 8]
jmp 0x1005fe9f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x1005feb9
jg 0x1005fe9f
test esi, esi
je 0x1005feb9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1005feb9
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 0x1005fed0
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 0x1005fefc
jl 0x1005fef0
test ecx, ecx
jne 0x1005fefc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1005ff15
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 0x1005ff63
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x1005ff69
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 0x1005ff69
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x1005ffd6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1005ff92
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 0x1005ffc4
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 0x1005ffd6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1005ffa0
test edi, edi
je 0x1005ffd6
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 0x10060350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1033bbac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10060380
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1022fc6a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x100603b0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x100603b0
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.1022fc6a
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10060488
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100603d9
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 0x100603e5
movsx eax, bl
jmp 0x1006041d
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 0x10060447
sub eax, 1
je 0x10060447
sub eax, 2
jne 0x10060488
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1022fc6a
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10060465
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 0x10060488
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.1022fc6a
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.1022fc6a
mov esp, ebp
pop ebp
ret 4