joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e1c14
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400d602c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400e1cb5
cmp ebx, dword [rsp + 0x30]
je 0x1400e1cae
test esi, esi
je 0x1400e1cae
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400e1c89
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400e1c96
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400e1c73
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400e1c9a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400e1cb7
mov eax, 1
jmp 0x1400e1cb7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400e224c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400e226c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400c49e0
or eax, 0xffffffff
jmp 0x1400e226e
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400e4bf4
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14012df00]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400e4c3e
call fcn.1400c4a4c
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400c4a6c
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400c4e24
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b5ad0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400e4c49
lea eax, [rbx + 1]
jmp 0x1400e4c2b
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400e4c29
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400e4c2b
Function at 0x1400e4ee8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400bbfb0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400e4f72
cmp byte [rbp - 0x21], r15b
je 0x1400e4f6d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400e4fa8
call fcn.1400d85c4
test eax, eax
jne 0x1400e4f94
cmp byte [rbp - 0x21], r15b
je 0x1400e4f8c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400e4fa8
cmp byte [rbp - 0x21], r15b
je 0x1400e4fa5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400c5a70
test eax, eax
jne 0x1400e5048
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400bbfb0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400e4fe7
cmp byte [rbp - 0x21], r15b
je 0x1400e501c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400e501c
call fcn.1400d85c4
test eax, eax
jne 0x1400e5008
cmp byte [rbp - 0x21], r15b
je 0x1400e5001
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400e501c
cmp byte [rbp - 0x21], r15b
je 0x1400e5019
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400c5a70
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400e5048
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400e504b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400e5059
mov rcx, rdi
call fcn.1400d6478
cmp byte [rbp + 0x3f], r15b
je 0x1400e5068
mov rcx, qword [rbp + 0x27]
call fcn.1400d6478
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400e66b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400e66d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400e66d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002584
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x1400025de
mov r11b, 0x23
lea rbx, [0x14003ad70]
movzx edi, byte [r10]
dec rdx
inc r10
cmp dil, r11b
jne 0x1400025c8
cmp rdx, 2
jb 0x1400025c8
cmp byte [r10], r11b
jne 0x1400025c8
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rdi
shr r9d, 8
xor r9d, dword [rbx + rcx*4]
test rdx, rdx
jne 0x1400025a6
jmp 0x14000261f
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x14000261f
mov r11b, 0x23
lea rbx, [0x14003ad70]
cmp dl, r11b
jne 0x140002603
cmp byte [r10], r11b
jne 0x140002603
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rbx + rcx*4]
test dl, dl
jne 0x1400025f1
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x140002754
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
test r8, r8
je 0x140002774
and qword [r8], 0
lea rdx, [0x14003a7e8]
call fcn.140002630
mov rbx, rax
test rax, rax
je 0x140002865
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14000285c
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000285c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000285c
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000285c
mov rbp, rdi
cmp rdi, 0xffffffffffffffff
je 0x14000285c
mov rax, qword [0x140084940]
test rax, rax
je 0x1400027f9
inc dword [rax + 0x3b0]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14000285c
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x140002849
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140084940]
test rax, rax
je 0x14000283e
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002865
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140002857
mov qword [rsi], rbp
mov rax, rdi
jmp 0x140002867
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004658
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x28
movsxd rdx, dword [rcx + 0x108]
mov r9d, 4
mov rax, qword [rcx + 0x110]
mov r8d, dword [rax + rdx*4 - 4]
lea rdx, [rsp + 0x38]
not r8d
movzx eax, byte [rdx]
inc rdx
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x14003ad70]
xor r8d, dword [rax + rcx*4]
sub r9, 1
jne 0x140004681
not r8d
mov ecx, r8d
call fcn.1400047b8
mov eax, r8d
add rsp, 0x28
ret

Function at 0x14000e600
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140084040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [0x140084940]
mov r10d, 4
mov dword [rsp + 0x20], ecx
mov r9, qword [rax + 0x1b90]
movsxd rcx, dword [r9 + 0x108]
mov rax, qword [r9 + 0x110]
mov r8d, dword [rax + rcx*4 - 4]
lea rcx, [rsp + 0x20]
not r8d
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x14003ad70]
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x14000e646
not r8d
lea rdx, [rsp + 0x20]
lea rcx, [r9 + 0x108]
mov dword [rsp + 0x20], r8d
call fcn.14001c6d0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140037b20
add rsp, 0x38
ret

Function at 0x1400132d4
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, qword [0x140084940]
cmp byte [rbx + 0x3000], 0
je 0x140013395
cmp qword [rbx + 0x3008], 0
lea rbp, [rax + 0x10]
lea rdi, [rbx + 0x3010]
je 0x140013387
mov r9d, dword [rdi + 4]
test r9d, r9d
jns 0x14001333f
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001ca10
mov rcx, qword [rsp + 0x40]
and dword [rdi], 0
mov rdx, rcx
mov rcx, rdi
mov r8, rbp
call fcn.140002e90
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x3008]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x140084938]
movsxd r8, eax
mov rax, qword [rbx + 0x3018]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140013395
mov rdx, rcx
mov r8, rbp
mov rcx, rdi
call fcn.140002e90
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret

Function at 0x1400139f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x140084940]
mov rbx, rcx
and dword [rax + 0x2fbc], 0
test rcx, rcx
je 0x140013a59
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.140013a64
lea rdx, [0x14003a7ec]
mov rcx, rbx
mov rdi, rax
call fcn.140002630
mov rbx, rax
test rax, rax
je 0x140013a59
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400388b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140038902
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140038902
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140038902
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140038902
cmp dword [rcx + 0x84], 0xe
jbe 0x140038902
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140038904
xor al, al
add rsp, 0x28
ret
Function at 0x140014bf0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140014c18
add rsp, 0x20
pop r15
pop rdi
pop rbx
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 + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140014c3e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140014c40
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140014c99
test ecx, ecx
jle 0x140014c79
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140014c99
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140014c99
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140014cc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140014cf1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x140014d0f
mov rbp, qword [rsp + 0x40]
mov rsi, 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__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140014d2b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140014d2d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140014d69
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140014dfe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140014da4
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140014dde
nop dword [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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140014dfe
cmp rbx, rax
ja 0x140014db0
test rbx, rbx
je 0x140014dfe
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140015220
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400cc040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001524d
xor eax, eax
jmp 0x1400153b9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140015287
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140015287
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400153b9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400153ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400152ca
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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 0x1400152f5
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 0x1400153b1
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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
je 0x140015364
sub eax, 1
je 0x140015364
cmp eax, 2
jne 0x1400153ac
movsx ecx, byte [rsp + 0x40]
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 0x1400153b1
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140015392
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 0x1400153ac
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400153b1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400a5440
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140016cd0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400cc040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140016da3
cmp byte [rcx + 0x71], 0
je 0x140016da3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140016d9f
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 0x140016d64
sub eax, 1
je 0x140016d68
cmp eax, 2
jne 0x140016d9f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a5440
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140016d96
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 0x140016d9f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140016d4c
xor al, al
jmp 0x140016d4c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a5440
add rsp, 0x60
pop rbx
ret
Function at 0x140032ef0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x78], rcx
mov rax, qword [rdx]
mov qword [rcx], rax
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0xc], eax
mov eax, dword [rdx + 0x10]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 0x14]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0x1c]
mov dword [rcx + 0x1c], eax
mov rax, qword [rdx + 0x20]
mov qword [rcx + 0x20], rax
mov eax, dword [rdx + 0x28]
mov dword [rcx + 0x28], eax
add rcx, 0x30
add rdx, 0x30
call fcn.140008400
nop
lea r15, [r14 + 0x50]
xor eax, eax
mov qword [r15], rax
mov qword [r15 + 8], rax
mov qword [r15 + 0x10], rax
mov rdx, qword [rsi + 0x58]
sub rdx, qword [rsi + 0x50]
sar rdx, 5
test rdx, rdx
je 0x140032fd1
mov rcx, r15
call fcn.14001eef0
mov qword [rsp + 0x80], r15
mov rbx, qword [r15]
mov rbp, qword [rsi + 0x58]
mov rdi, qword [rsi + 0x50]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], r15
cmp rdi, rbp
je 0x140032fcd
nop word [rax + rax]
mov rdx, rdi
mov rcx, rbx
call fcn.140008400
add rbx, 0x20
mov qword [rsp + 0x28], rbx
add rdi, 0x20
cmp rdi, rbp
jne 0x140032fb0
mov qword [r15 + 8], rbx
lea rbx, [r14 + 0x68]
mov qword [rsp + 0x78], rbx
mov rax, qword [rsi + 0x68]
mov qword [rbx], rax
lea rcx, [rbx + 8]
lea rdx, [rsi + 0x70]
call fcn.140033120
nop
movsd xmm0, qword [rsi + 0x90]
movsd qword [rbx + 0x28], xmm0
movsd xmm0, qword [rsi + 0x98]
movsd qword [rbx + 0x30], xmm0
mov eax, dword [rsi + 0xa0]
mov dword [rbx + 0x38], eax
movsd xmm0, qword [rsi + 0xa4]
movsd qword [rbx + 0x3c], xmm0
movsd xmm0, qword [rsi + 0xac]
movsd qword [rbx + 0x44], xmm0
mov eax, dword [rsi + 0xb4]
mov dword [rbx + 0x4c], eax
mov eax, dword [rsi + 0xb8]
mov dword [rbx + 0x50], eax
lea rcx, [rbx + 0x58]
lea rdx, [rsi + 0xc0]
call fcn.140008400
mov eax, dword [rsi + 0xe0]
mov dword [rbx + 0x78], eax
movsd xmm0, qword [rsi + 0xe4]
movsd qword [rbx + 0x7c], xmm0
movups xmm0, xmmword [rsi + 0xf0]
movups xmmword [rbx + 0x88], xmm0
mov eax, dword [rsi + 0x100]
mov dword [rbx + 0x98], eax
mov eax, dword [rsi + 0x104]
mov dword [rbx + 0x9c], eax
mov eax, dword [rsi + 0x108]
mov dword [rbx + 0xa0], eax
mov eax, dword [rsi + 0x10c]
mov dword [rbx + 0xa4], eax
mov eax, dword [rsi + 0x110]
mov dword [rbx + 0xa8], eax
mov eax, dword [rsi + 0x114]
mov dword [rbx + 0xac], eax
mov rax, qword [rsi + 0x118]
mov qword [rbx + 0xb0], rax
mov eax, dword [rsi + 0x120]
mov dword [rbx + 0xb8], eax
mov eax, dword [rsi + 0x124]
mov dword [rbx + 0xbc], eax
movzx eax, byte [rsi + 0x128]
mov byte [rbx + 0xc0], al
movss xmm0, dword [rsi + 0x130]
movss dword [r14 + 0x130], xmm0
mov rax, r14
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400336b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x190
movaps xmmword [rsp + 0x180], xmm6
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rsi, rax
cmp byte [0x1400cc0e1], 0
je 0x140033785
mov rcx, rbx
call fcn.140024820
cmp byte [0x14013940b], 0
jne 0x14003370a
mov ecx, dword [0x140102038]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140033755
mov rcx, qword [rdi + 8]
sub rcx, qword [rdi]
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140033755
movsd xmm0, qword [rbx + 0xac]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [rbx + 0xb4]
mov dword [rsp + 0x38], eax
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400367e0
cmp byte [0x140139238], 0
je 0x140033785
mov ecx, dword [0x140102038]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140033785
cmp esi, 0xc8
jb 0x140033785
cmp byte [0x14013940b], 0
sete byte [0x14013940b]
cmp byte [0x14013940c], 0
jne 0x140033924
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140032ef0
mov rbx, rax
cmp byte [0x140139250], 0
je 0x1400338fc
mov eax, 8
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov ecx, dword [rax + rcx]
cmp dword [0x140139864], ecx
jle 0x1400337f7
lea rcx, [0x140139864]
call fcn.1400a5508
cmp dword [0x140139864], 0xffffffff
jne 0x1400337f7
mov qword [0x140139868], 0
lea rcx, [0x140139864]
call fcn.1400a549c
cmp dword [rbx + 0xe0], 1
jbe 0x1400338f1
cmp byte [0x14013940c], 0
je 0x1400338f1
movss xmm5, dword [rbx + 0x90]
movss xmm4, dword [rbx + 0x94]
movss xmm1, dword [rbx + 0xe8]
movss xmm6, dword [0x1400b940c]
mulss xmm1, xmm6
movss xmm0, dword [rbx + 0xe4]
mulss xmm0, xmm6
movss xmm2, dword [0x14013986c]
subss xmm2, xmm1
movss xmm3, dword [0x140139868]
subss xmm3, xmm0
addss xmm2, xmm4
addss xmm3, xmm5
subss xmm4, xmm2
movss xmm0, dword [rbx + 0x130]
mulss xmm0, dword [0x1400b93a4]
divss xmm4, xmm0
mulss xmm4, dword [0x140136fc0]
cvttss2si ebp, xmm4
subss xmm5, xmm3
divss xmm5, xmm0
mulss xmm5, dword [0x140136fc4]
cvttss2si esi, xmm5
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1400338c7
neg esi
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, esi
mov edx, ebp
mov ecx, 1
call qword [sym.imp.USER32.dll_mouse_event]
movss xmm1, dword [rbx + 0xe8]
mulss xmm1, xmm6
movss xmm0, dword [rbx + 0xe4]
mulss xmm0, xmm6
movss dword [0x140139868], xmm0
movss dword [0x14013986c], xmm1
jmp 0x1400338fc
mov qword [0x140139868], 0
lea rcx, [rbx + 0xc0]
call fcn.140008790
lea rcx, [rbx + 0x78]
call fcn.140034760
lea rcx, [rbx + 0x50]
call fcn.140008690
lea rcx, [rbx + 0x30]
call fcn.140008790
nop
mov rcx, rdi
mov rbx, qword [rsp + 0x1b0]
movaps xmm6, xmmword [rsp + 0x180]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
jmp fcn.1400346e0