joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009e70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa94
mov eax, dword [0x10079a30]
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 0x10009ee4
push str.Error_opening_Steam_key_n
jmp 0x10009fa4
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 0x10009f9f
mov ecx, dword [ebp - 0xa90]
cmp ecx, 1
jb 0x10009f9f
shr ecx, 1
mov eax, esi
je 0x10009f58
lea edx, [esi + 0x5c]
nop word [eax + eax]
cmp word [ebp + eax*2 - 0x28c], 0x2f
jne 0x10009f53
mov word [ebp + eax*2 - 0x28c], dx
inc eax
cmp eax, ecx
jb 0x10009f40
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.10009d80
lea eax, [ebp - 0xa8c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.10009a90
add esp, 0x1c
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059f15
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.10009fe0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.10059f15
mov esp, ebp
pop ebp
ret
Function at 0x1000bbd0
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 0x10070b64
push 0x64
call fcn.10059f46
mov edi, eax
add esp, 8
test edi, edi
je 0x1000bd3f
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 [0x1009fec0], edi
cmp dword [ebp + 0x10], 0
xorps xmm0, xmm0
movq qword [edi + 0x5c], xmm0
je 0x1000bc50
test esi, esi
je 0x1000bc45
cmp byte [esi], 0
je 0x1000bc45
push esi
push ebx
call fcn.10009e70
jmp 0x1000bc4d
push 0
push ebx
call fcn.10009df0
add esp, 8
call sub.KERNEL32.dll_GetCurrentProcessId
push 0x1007a7d0
mov dword [0x1009fcbc], eax
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x1000bd50
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000bc87
movups xmm0, xmmword [eax]
movups xmmword [0x1009b874], xmm0
movq xmm0, qword [eax + 0x10]
jmp 0x1000bc91
xorps xmm0, xmm0
movups xmmword [0x1009b874], xmm0
movq qword [0x1009b884], xmm0
xorps xmm0, xmm0
push 0x1007a7d0
movups xmmword [0x1009b88c], xmm0
movq qword [0x1009b89c], xmm0
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
cmp dword [0x1009b870], 0
jne 0x1000bd49
push ebx
call fcn.1000d7d0
mov dword [0x1009b870], eax
mov dword [eax + 8], 0x1000a010
mov eax, dword [0x1009b870]
mov dword [eax + 0xc], 0x1000a030
mov al, 1
mov esi, dword [0x1009fec0]
xchg byte [esi], al
push 4
call fcn.100599b4
add esp, 8
test eax, eax
je 0x1000bcff
mov dword [eax], esi
jmp 0x1000bd01
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push 0x1000a0d0
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 0x1000bd56
cmp dword [esi + 0x60], 0
je 0x1000bd2f
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 [0x1009fec0], 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 0x1001e1a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c501
mov eax, dword fs:[0]
push eax
mov eax, dword [0x10079a30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100b17b8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100b09ac]
cmp eax, dword [ecx + 4]
jg 0x1001e24d
mov ecx, dword [0x100b09a8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
cmp eax, 1
je 0x1001e23e
cmp dword [0x100b16ac], 0
je 0x1001e23e
call fcn.100046c0
cmp byte [eax + 0x28], 0
je 0x1001e23e
call fcn.100046c0
mov eax, dword [eax + 0x6c]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x1001e23e
mov ecx, dword [0x100b16ac]
call fcn.10018620
cmp eax, 9
je 0x1001e23e
test byte [ebp + 0xc], 1
jne 0x1001e23e
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x30]
test al, 2
je 0x1001e23e
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 0x100b09ac
call fcn.10059e3f
add esp, 4
cmp dword [0x100b09ac], 0xffffffff
jne 0x1001e1de
mov ecx, dword [0x100b0040]
push str.sv_autobunnyhopping
mov dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 0x44]
push 0x100b09ac
mov dword [0x100b09a8], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10059df5
add esp, 4
jmp 0x1001e1de
Function at 0x10028b80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005be70
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x10079a30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x1007a690]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [0x100b0034]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
call edx
mov edi, eax
test edi, edi
je 0x10028cd5
mov edx, dword [0x100b0a8c]
test edx, edx
jne 0x10028c06
push 0xe80c2f78
push 0x10066549
call fcn.10012910
push 0xc10bf213
push 0x10064da5
mov esi, eax
call fcn.10012910
push esi
push eax
call fcn.10056f00
mov edx, eax
add esp, 0x18
mov dword [0x100b0a8c], edx
mov ecx, dword [0x100b0034]
push dword [edx + edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov edi, eax
test edi, edi
je 0x10028cd5
mov eax, dword [0x100b0a90]
test eax, eax
jne 0x10028c58
push 0xe80c2f78
push 0x10066569
call fcn.10012910
push 0xc10bf213
push 0x1006628d
mov esi, eax
call fcn.10012910
push esi
push eax
call fcn.10056f00
add esp, 0x18
mov dword [0x100b0a90], eax
mov edx, dword [eax + edi]
test edx, edx
je 0x10028cd5
mov ecx, dword [0x100b0034]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp eax, dword [ebp + 8]
jne 0x10028cd5
mov ecx, dword [0x100b003c]
push dword [ebp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ebx, eax
mov eax, dword [0x100b0a60]
test eax, eax
jne 0x10028cbc
push 0xe80c2f78
push 0x1006627d
call fcn.10012910
push 0xc10bf213
push 0x1006628d
mov esi, eax
call fcn.10012910
push esi
push eax
call fcn.10056f00
add esp, 0x18
mov dword [0x100b0a60], 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 0x10030980
Capabilities:
Enumerate gui resources
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005d3ad
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x10079a30]
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 0x10030a10
mov byte [ebp - 0x249], al
jmp 0x10030b31
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 0x10030a37
sub eax, edx
lea ecx, [ebp - 0x268]
sar eax, 1
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.1002eac0
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 0x10030a95
push 0xb
push str.Spotify.exe
push eax
call fcn.1002ef60
add esp, 0xc
mov byte [ebp - 0x249], 1
test eax, eax
je 0x10030a9c
mov byte [ebp - 0x249], 0
cmp edi, 8
jb 0x10030ad0
lea ecx, [edi*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x10030ac6
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10030b5a
push ecx
push esi
call fcn.100599e4
add esp, 8
cmp byte [ebp - 0x249], 0
je 0x10030aff
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x14]
je 0x10030aef
mov eax, dword [ebp - 0x240]
mov dword [ecx], eax
add dword [ebp - 0x18], 4
jmp 0x10030aff
lea eax, [ebp - 0x240]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.1002eb70
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x250]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10030a10
lea eax, [ebp - 0x1c]
push eax
push 0x1002f5f0
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
setne byte [ebp - 0x249]
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x10030b6a
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10030b60
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10030b60
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100599e4
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.10059f15
mov esp, ebp
pop ebp
ret
Function at 0x10037f10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005db8c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10079a30]
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 0x10037fc4
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.10038590
cmp byte [edi + 0x68], 1
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jne 0x10038002
cmp dword [edi + 0x70], 0
jne 0x10038002
push 0x4268
push str.C:100_0_.exeMC1immunecoremenujson.h
push str.m_type___value_t::object_or_m_value.object___nullptr
call ebx
add esp, 0xc
cmp byte [edi + 0x68], 2
jne 0x10038022
cmp dword [edi + 0x70], 0
jne 0x10038022
push 0x4269
push str.C:100_0_.exeMC1immunecoremenujson.h
push str.m_type___value_t::array_or_m_value.array___nullptr
call ebx
add esp, 0xc
cmp byte [edi + 0x68], 3
jne 0x10038042
cmp dword [edi + 0x70], 0
jne 0x10038042
push 0x426a
push str.C:100_0_.exeMC1immunecoremenujson.h
push str.m_type___value_t::string_or_m_value.string___nullptr
call ebx
add esp, 0xc
cmp byte [edi + 0x68], 8
jne 0x10038062
cmp dword [edi + 0x70], 0
jne 0x10038062
push 0x426b
push str.C:100_0_.exeMC1immunecoremenujson.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 0x10038095
mov eax, ecx
neg eax
cmp ebx, eax
jae 0x10038095
add ecx, ebx
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x1003809f
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.1003a2a0
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x100380ce
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 0x10039e80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10079a30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10039f3c
cmp byte [esi + 0x3d], 0
je 0x10039f3c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10039f2a
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 0x10039ef1
sub eax, 1
je 0x10039ef5
sub eax, 2
jne 0x10039f2a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059f15
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10039f13
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 0x10039f2a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059f15
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059f15
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10059f15
mov esp, ebp
pop ebp
ret
Function at 0x10040d80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10079a30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10040db0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059f15
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10040de0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10040de0
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.10059f15
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10040edd
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10040e09
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 0x10040e3d
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.10059f15
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 0x10040e9c
sub eax, 1
je 0x10040e9c
sub eax, 2
jne 0x10040edd
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10032070
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.10059f15
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10040eba
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 0x10040edd
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.10059f15
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.10059f15
mov esp, ebp
pop ebp
ret 4
Function at 0x10048da0
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 0x10048dcc
jl 0x10048dc0
test ecx, ecx
jne 0x10048dcc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10048de5
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 0x10048e2d
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10048e33
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 0x10048e33
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x10048ea6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10048e5c
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 0x10048e94
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 0x10048ea6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10048e70
test edi, edi
je 0x10048ea6
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 0x10048ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10048ee5
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 ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x10048f0b
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10048f10
xor ecx, ecx
mov dword [ebp - 8], eax
mov eax, ecx
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x10048f70
jg 0x10048f25
test esi, esi
je 0x10048f70
test ecx, ecx
jl 0x10048f6b
jg 0x10048f2f
test eax, eax
je 0x10048f6b
cmp edi, ecx
jg 0x10048f41
jl 0x10048f39
cmp esi, eax
jae 0x10048f41
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 4]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10048f73
mov ecx, dword [ebp + 8]
jmp 0x10048f7d
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10048f97
jg 0x10048f7d
test esi, esi
je 0x10048f97
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10048f97
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 [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004f300
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10079a30]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100b142a], 0
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
jne 0x1004f480
cmp byte [0x100b142b], 0
jne 0x1004f480
cmp byte [0x100b142c], 0
jne 0x1004f480
cmp byte [0x100b142d], 0
jne 0x1004f480
mov ecx, dword [0x1007a690]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov eax, dword [0x100b1078]
cmp eax, 2
je 0x1004f480
cmp eax, 4
je 0x1004f480
cmp eax, 3
je 0x1004f480
cmp eax, 6
je 0x1004f480
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movss xmm1, dword [0x1007942c]
test ax, ax
jns 0x1004f438
cmp byte [0x100b0ef8], 0
je 0x1004f438
mov ecx, dword [edi]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x1004f438
mov eax, dword [ebp + 0x10]
add eax, ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x1004f438
mov ecx, dword [ebx]
movss xmm2, dword [0x10079430]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
comiss xmm2, xmm0
jbe 0x1004f438
mov eax, dword [ebp + 0x14]
add eax, ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm2
jbe 0x1004f438
cmp byte [0x100b1429], 0
mov byte [0x100b1428], 1
jne 0x1004f441
movd xmm0, dword [edi]
movaps xmm3, xmm1
cvtdq2ps xmm0, xmm0
subss xmm3, xmm0
movss dword [0x10079434], xmm3
movd xmm0, dword [ebx]
cvtdq2ps xmm0, xmm0
mov byte [0x100b1429], 1
subss xmm2, xmm0
movss dword [0x10079438], xmm2
jmp 0x1004f449
cmp byte [0x100b1428], 0
je 0x1004f469
movss xmm3, dword [0x10079434]
subss xmm1, xmm3
cvttss2si eax, xmm1
mov dword [edi], eax
movss xmm0, dword [0x10079430]
subss xmm0, dword [0x10079438]
cvttss2si eax, xmm0
mov dword [ebx], eax
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x1004f480
mov byte [0x100b1428], al
mov byte [0x100b1429], al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10059f15
mov esp, ebp
pop ebp
ret
Function at 0x10050d00
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor esi, esi
nop word [eax + eax]
mov al, byte [esi + 0x100b1438]
push esi
mov byte [esi + 0x100b1538], al
call edi
test ax, ax
setne al
mov byte [esi + 0x100b1438], al
inc esi
cmp esi, 0x100
jl 0x10050d10
pop edi
pop esi
ret