joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180036b80
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18006c4fc]
mov ebx, edi
test ecx, ecx
je 0x180036cbb
mov rax, qword [0x18006c4f0]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180036bd8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180036bb0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180036cbb
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180036820
mov r8d, dword [0x18006c4fc]
cmp ebx, r8d
jae 0x180036c48
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18006c4f0]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180036c41
mov edx, esi
mov ecx, ebx
call fcn.180036a50
mov edi, eax
test eax, eax
jne 0x180036c48
mov r8d, dword [0x18006c4fc]
inc ebx
cmp ebx, r8d
jb 0x180036c10
cmp qword [rsp + 0x20], 0
je 0x180036cbb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180036ca7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180036c98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180036c70
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18006c170]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180038fe0
Capabilities:
Enumerate process modules

Disassembly:
push rbx
mov eax, 0x2050
call fcn.180056d20
sub rsp, rax
mov rax, qword [0x18006b010]
xor rax, rsp
mov qword [rsp + 0x2040], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x20]
mov r8d, 0x2000
mov rcx, rax
lea rdx, [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
mov rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x28]
mov r9d, 0x18
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [rsp + 0x30]
add rax, rcx
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.1800551c0
add rsp, 0x2050
pop rbx
ret
Function at 0x1800418e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
mov rbx, rcx
mov r11d, eax
mov r9d, eax
and r11d, 7
je 0x180041914
cmp eax, r11d
jge 0x180041905
call fcn.180040e70
mov eax, dword [rbx + 0x10]
mov ecx, r11d
shr dword [rbx + 0x14], cl
sub eax, r11d
mov dword [rbx + 0x10], eax
mov r9d, eax
xor r8d, r8d
test eax, eax
jle 0x180041944
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx eax, byte [rbx + 0x14]
inc r8d
mov byte [rdx], al
lea rdx, [rdx + 1]
lea eax, [r9 - 8]
shr ecx, 8
mov dword [rbx + 0x14], ecx
mov r9d, eax
test eax, eax
jg 0x180041923
mov dword [rbx + 0x10], eax
jns 0x180041971
mov edx, dword [0x18006c0f0]
mov rax, qword gs:[0x58]
mov ecx, 0x20
mov rax, qword [rax + rdx*8]
lea rdx, str.zlib_corrupt
mov qword [rcx + rax], rdx
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x1800419a0
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x18004198a
xor dl, dl
jmp 0x180041993
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x180041981
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x180041946
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x180041a15
mov edx, dword [0x18006c0f0]
mov rax, qword gs:[0x58]
mov ecx, 0x20
mov rax, qword [rax + rdx*8]
lea rdx, str.read_past_buffer
mov qword [rcx + rax], rdx
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x180041a2f
mov rcx, rbx
call fcn.180040fc0
test eax, eax
je 0x180041a08
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x18004ac00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov r11, qword [0x18006c320]
movabs rdi, 0xcf3cf3cf3cf3cf3d
mov r8, qword [0x18006c318]
mov rax, r11
sub rax, r8
movaps xmmword [rsp + 0x30], xmm6
sar rax, 4
xor r9d, r9d
imul rax, rdi
movaps xmmword [rsp + 0x20], xmm7
movaps xmm6, xmm3
movaps xmm7, xmm2
mov rbx, rdx
mov r10d, ecx
test rax, rax
je 0x18004ad53
xor edx, edx
cmp dword [rdx + r8 + 0x48], r10d
je 0x18004ac80
inc r9d
mov rcx, r11
sub rcx, r8
movsxd rax, r9d
sar rcx, 4
add rdx, 0x150
imul rcx, rdi
cmp rax, rcx
jb 0x18004ac54
jmp 0x18004ad53
movsxd rax, r9d
imul rdi, rax, 0x150
lea rcx, [rdi + r8]
cmp rcx, rbx
je 0x18004acb0
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x18004aca0
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
call fcn.180034c10
mov r8, qword [0x18006c318]
mov ecx, dword [rsp + 0x78]
movss xmm0, dword [rsp + 0x70]
movss dword [rdi + r8 + 0x20], xmm7
mov rax, qword [0x18006c318]
movss dword [rdi + rax + 0x24], xmm6
mov rax, qword [0x18006c318]
movss dword [rdi + rax + 0x28], xmm0
mov rax, qword [0x18006c318]
mov dword [rdi + rax + 0x2c], ecx
mov rax, qword [0x18006c318]
mov ecx, dword [rsp + 0x80]
mov dword [rdi + rax + 0x30], ecx
mov rax, qword [0x18006c318]
mov ecx, dword [rsp + 0x88]
mov dword [rdi + rax + 0x34], ecx
mov rax, qword [0x18006c318]
mov ecx, dword [rsp + 0x90]
mov dword [rdi + rax + 0x38], ecx
mov rax, qword [0x18006c318]
mov ecx, dword [rsp + 0x98]
mov dword [rdi + rax + 0x3c], ecx
mov rax, qword [0x18006c318]
mov ecx, dword [rsp + 0xa0]
mov dword [rdi + rax + 0x40], ecx
mov rax, qword [0x18006c318]
movzx ecx, byte [rsp + 0xa8]
mov byte [rdi + rax + 0x44], cl
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18004ad89
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x18004ad84
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18004adb1
mov rcx, r8
call fcn.1800551e4
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x180050020
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x28
call fcn.180001a30
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.1800020b0
lea rdx, [0x18004f920]
lea rcx, [0x18006c1e0]
call fcn.180002540
lea rdx, [0x18004f9a0]
lea rcx, [0x18006c1d0]
call fcn.180002540
call fcn.180001b10
cmp byte [0x18006c204], 0
je 0x180050214
mov ecx, 0x3e8
mov qword [rsp + 0x38], rsi
mov byte [0x18006c206], 0
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x18006c280]
mov edx, 0xfffffffc
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov rcx, qword [0x18006c3d0]
mov byte [0x18006c205], 1
test rcx, rcx
je 0x1800500ba
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
mov dword [0x18006b2e0], 9
mov qword [0x18006c3d0], rsi
mov qword [0x18006c3d8], rsi
mov qword [0x18006c3e0], rsi
mov qword [0x18006c3e8], rsi
mov qword [0x18006c3f0], rsi
mov qword [0x18006c3f8], rsi
mov byte [0x18006c3c8], sil
mov byte [0x18006b2dc], 1
call fcn.180006180
mov rcx, qword [0x18006c3b8]
call fcn.1800551e4
mov rcx, qword [0x18006c258]
mov qword [0x18006c3b8], rsi
mov qword [0x18006c3b0], rsi
mov qword [0x18006c388], rsi
mov qword [0x18006c3a0], rsi
mov dword [0x18006c3ac], esi
mov dword [0x18006b2d8], 0xffffffff
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x18006c218]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x18006c220]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x18006c240]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x18006c248]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x18006c238]
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp dword [0x18006c428], esi
je 0x18005020f
mov qword [rsp + 0x30], rbx
xor eax, eax
mov qword [rsp + 0x20], rdi
mov ebx, esi
mov edi, 1
lock cmpxchg dword [0x18006c15c], edi
je 0x1800501d3
cmp rbx, 0x20
jae 0x1800501bc
xor ecx, ecx
jmp 0x1800501be
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18006c15c], edi
jne 0x1800501b2
cmp qword [0x18006c170], rsi
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
je 0x1800501ed
xor ecx, ecx
call fcn.180036b80
mov eax, esi
xchg dword [0x18006c15c], eax
mov rcx, qword [0x18006c420]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [0x18006c420], rsi
mov dword [0x18006c428], esi
mov rsi, qword [rsp + 0x38]
cmp byte [0x18006c159], 0
je 0x180050235
mov rcx, qword [0x18006c268]
test rcx, rcx
je 0x180050235
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov rcx, qword [0x18006c270]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x18006c270]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]

Function at 0x180050f20
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180050f4f
xor eax, eax
lea r8, [0x180050260]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x18006c270], rax
mov eax, 1
add rsp, 0x38
ret
Function at 0x180051400
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x180051437
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x180051458
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18005145a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1800514b3
test ecx, ecx
jle 0x18005148e
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r14, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1800514b3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1800514b3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1800514e0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180051502
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180051518
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x20], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180051534
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180051536
xor ecx, ecx
mov qword [rsp + 0x28], rbx
movsxd rax, ecx
test ecx, ecx
je 0x180051570
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rdi, rbx
add r14, rbx
mov r8, rdi
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x180051617
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x1800515ab
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rbx, r8
cmp r8, 0xfff
jbe 0x1800515f1
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x180051630
cmp rdi, rax
ja 0x1800515c0
mov r8, rbx
test rbx, rbx
je 0x180051617
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rbx
sub r8, rax
sub rbp, r8
mov rbx, qword [rsp + 0x28]
mov rax, rbp
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rdi
jmp 0x18005161a
Function at 0x180051af0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18006b010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180051b1d
xor eax, eax
jmp 0x180051c72
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x180051b48
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x180051b48
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x180051c72
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x180051c65
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x180051b8b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x180051bb6
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180051c6a
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
js 0x180051c65
cmp eax, 1
jle 0x180051c25
cmp eax, 3
jne 0x180051c65
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180051c6a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180051c53
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x180051c65
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x180051c6a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800551c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180052560
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18006b010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180052632
cmp byte [rcx + 0x71], 0
je 0x180052632
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call fcn.180051af0
cmp eax, 0xffffffff
je 0x18005262e
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1800525f3
sub eax, 1
je 0x1800525f7
cmp eax, 2
jne 0x18005262e
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800551c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180052625
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x18005262e
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1800525db
xor al, al
jmp 0x1800525db
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800551c0
add rsp, 0x60
pop rbx
ret
Function at 0x14000bbf0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov r15, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
cmp qword [rdx + 8], 0
je 0x14000bcb0
mov rdi, rdx
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov r12, rax
xor esi, esi
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
mov dword [rsp + 0x2c], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
jle 0x14000bca0
xor esi, esi
mov ebp, 0x40000000
lea r14, [rsp + 0x2c]
nop word cs:[rax + rax]
mov r8d, ebx
sub r8d, esi
cmp r8d, 0x40000000
cmovge r8d, ebp
mov rdx, qword [rdi]
add rdx, rsi
mov qword [rsp + 0x20], 0
mov rcx, r12
mov r9, r14
call sub.KERNEL32.dll_WriteFile
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
je 0x14000bcb7
test al, 1
je 0x14000bcb7
add rsi, rcx
cmp rsi, rbx
jl 0x14000bc60
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 0
jmp 0x14000bcc8
movaps xmmword [rsp + 0x30], xmm0
jmp 0x14000bcc8
call sub.KERNEL32.dll_GetLastError
mov eax, eax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x30]
mov qword [r15], rax
mov rax, qword [rsp + 0x38]
mov qword [r15 + 8], rax
mov rax, r15
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14003f240
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x14025c090], 0
jne 0x14003f255
xor edx, edx
mov ecx, 0x10001
jmp fcn.14003e610
jmp 0x140044110
push rbx
sub rsp, 0xa0
mov rax, qword [0x14024f078]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400441aa
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x140044175
mov rbx, qword [0x14025c480]
test rbx, rbx
je 0x14004418b
mov rcx, rbx
call fcn.14003ebb0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140044163
jmp 0x14004418b
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140044150
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1400442a7
lea rdx, str.GLFW
mov qword [rsp + 0xc0], rdi
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rdi, rax
test rax, rax
je 0x14004429f
movdqa xmm0, xmmword [0x14023ef30]
xor ebx, ebx
movdqa xmm1, xmmword [0x14023ef40]
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
lea r15, [0x14025db68]
movdqu xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
nop word [rax + rax]
movsxd rbp, dword [rsp + rbx*8 + 0x64]
mov ecx, dword [rsp + rbx*8 + 0x60]
movsx r14d, word [r15 + rbp*2]
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x14004426e
cmp byte [rbp + rdi + 0x88], 1
jne 0x14004426e
call fcn.140045460
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1400408b0
inc rbx
cmp rbx, 4
jl 0x140044230
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov r12, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [0x14025e508]
test rbx, rbx
je 0x14004432c
mov rcx, qword [rbx + 0x350]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
cmp dword [rbx + 0x388], eax
jne 0x1400442ee
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x14004432c
mov rcx, qword [rbx + 0x350]
mov eax, r8d
cdq
mov dword [rsp + 0x60], r9d
sub eax, edx
mov dword [rbx + 0x388], r9d
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14004a3c0
add rsp, 0xa0
pop rbx
ret
Function at 0x140041d80
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x14024f078]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x100
call fcn.14004ae50
xor edx, edx
lea rcx, [0x14025de22]
mov r8d, 0x6d1
call fcn.14004ae50
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1e0], rdi
sub r14, 0x480
lea r15, [0x14025dba8]
xor r13d, r13d
lea r12, [0x14025dec2]
mov ebx, 0x20
movsx esi, word [r15]
cmp esi, 0xffffffff
je 0x140041f25
cmp ebx, 0x140
jb 0x140041ea0
cmp ebx, 0x14e
ja 0x140041ea0
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], 0x68
mov dword [rsp + 0x64], 0x69
mov dword [rsp + 0x68], 0x6e
mov dword [rsp + 0x6c], 0x6f
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], 0x6d
mov dword [rsp + 0x78], 0x6b
mov edi, dword [r14]
jmp 0x140041eaf
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x140041ef2
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x140041f25
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x80]
mov qword [rsp + 0x30], r13
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r12, 5
add r14, 4
add r15, 2
cmp ebx, 0x15c
jle 0x140041e02
mov rdi, qword [rsp + 0x1e0]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14004a3c0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret