joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140033090
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x1401550a0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x14019ace0]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400332ae
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400332ae
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x14019ace0]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x140033164
movsx rdx, word [r8 + 0x6058]
lea rax, [r8 + 0x605c]
mov r9d, dword [r8 + 0x3f70]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x140033159
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6058], cx
movsx rax, cx
lea rax, [rax*8 + 0x605c]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x6050]
test rdi, rdi
je 0x140033181
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x140033184
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x14011ac08]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x1400331c7
mov rsi, qword [r8 + 0x90]
jmp 0x1400331ca
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1400331f5
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x14019ace0]
mov rcx, qword [rax + 0x4ae0]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14003326e
inc rbx
cmp rbx, 5
jl 0x140033250
jmp 0x14003329a
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x1400332b0
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400fe240
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x140035a10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14019ace0]
mov rcx, qword [rax + 0x4db8]
mov r9, qword [rax + 0x4018]
movups xmm0, xmmword [r9 + 0x248]
movups xmmword [rcx + 0x170], xmm0
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rcx + 0x150]
movss xmm4, dword [rcx + 0x150]
movss xmm3, dword [rcx + 0x154]
movss xmm2, dword [rcx + 0x158]
movss xmm1, dword [rcx + 0x15c]
movups xmmword [r9 + 0x248], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x232]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x2a8]
add rsp, 0x38
jmp fcn.14002c060

Function at 0x140035af0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14019ace0]
mov rcx, qword [rax + 0x4db8]
mov r10, qword [rax + 0x4018]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x170]
movss xmm4, dword [rcx + 0x170]
movss xmm3, dword [rcx + 0x174]
movss xmm2, dword [rcx + 0x178]
movss xmm1, dword [rcx + 0x17c]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2a8]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x248], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2a8]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp fcn.14002c060
Function at 0x14004f0f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1401550a0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x2c]
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14004f1b5
movabs rax, 0xc3c3c3c3c3c3c3c3
mov byte [rbx], al
mov edx, dword [rsp + 0x2c]
lea r9, [rsp + 0x58]
mov r8d, 0x140
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14004f1b5
call rbx
nop
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400fe240
add rsp, 0x70
pop rbx
ret
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400fe240
add rsp, 0x70
pop rbx
ret

Function at 0x14004f270
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x10]
mov eax, dword [rdx + 0x30]
add eax, 0x100000
mov dword [rdx + 0x40], eax
ret

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

Disassembly:
push rdi
cmp dword [0x14019b0f0], 0
lea rdi, [0x14019acf0]
mov r10d, edx
mov r9, rcx
jne 0x14004f37f
mov qword [rsp + 0x10], rbx
xor r11d, r11d
mov rbx, rdi
nop word [rax + rax]
mov r8d, r11d
lea rbx, [rbx + 4]
shr r8d, 1
mov ecx, r8d
xor ecx, 0xedb88320
test r11b, 1
cmove ecx, r8d
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov r8d, eax
xor r8d, 0xedb88320
test dl, 1
cmove r8d, eax
mov ecx, r8d
shr ecx, 1
mov eax, ecx
xor eax, 0xedb88320
test r8b, 1
cmove eax, ecx
inc r11d
mov dword [rbx - 4], eax
cmp r11d, 0x100
jl 0x14004f2c0
mov rbx, qword [rsp + 0x10]
mov dword [0x14019b0f0], 1
mov eax, 0xffffffff
test r10d, r10d
je 0x14004f3ac
mov r8, r10
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov ecx, eax
shr eax, 8
xor rdx, rcx
movzx ecx, dl
xor eax, dword [rdi + rcx*4]
sub r8, 1
jne 0x14004f390
not eax
pop rdi
ret
Function at 0x140058940
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rdi, rdx
mov rsi, rcx
lea rdx, [rbp - 0x39]
call fcn.140059120
nop
mov rcx, rax
call fcn.140051e40
movzx ebx, al
lea rcx, [rbp - 0x39]
call fcn.14005e080
test bl, bl
jne 0x1400589b7
lea rdx, [rbp - 0x39]
call fcn.140059120
mov rbx, rax
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x14005899d
mov rcx, qword [rax]
call fcn.1400ff878
shr rax, 0x20
test eax, eax
jne 0x140058ad3
lea rcx, [rbp - 0x39]
call fcn.14005e080
lea rdx, [rbp + 0x37]
mov rcx, rdi
call fcn.1400517a0
mov rbx, rax
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rbp + 0x77], rax
lea rax, [0x14011c448]
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], reloc.WS2_32.dll_socket
lea rax, [rbp + 0x77]
mov qword [rbp + 0x17], rax
lea rax, [0x14006e0a0]
mov qword [rbp + 0x1f], rax
movabs rax, 0xd000000000000000
mov qword [rbp + 7], rax
mov qword [rbp + 0x27], rbx
lea rax, [0x14006dea0]
mov qword [rbp + 0x2f], rax
movabs rax, 0xd000000000000010
mov qword [rbp + 0xf], rax
mov qword [rbp - 0x19], 2
lea rax, [rbp + 7]
mov qword [rbp - 0x11], rax
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x19], xmm0
movaps xmm1, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm1
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x39]
call fcn.140069440
nop
mov rdi, qword [rbp - 0x29]
lea rbx, [rbp - 0x39]
cmp qword [rbp - 0x21], 0x10
cmovae rbx, qword [rbp - 0x39]
call fcn.1400ff618
mov qword [rbp - 0x49], rbx
mov qword [rbp - 0x41], rdi
lea r8, [rbp - 0x49]
mov edx, eax
lea rcx, [rbp - 0x19]
call fcn.140051560
lea rdx, [rbp - 0x19]
mov rcx, rsi
call fcn.14005be80
lea rcx, [rbp - 0x19]
call fcn.14005e080
nop
lea rcx, [rbp - 0x39]
call fcn.1400372e0
nop
lea rcx, [rbp + 0x37]
call fcn.1400372e0
mov rcx, rsi
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
jmp fcn.140058ba0
mov r8, rbx
mov edx, eax
lea rcx, str.create_directory
call fcn.140051d70
int3
Function at 0x140059120
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x90
mov rsi, rdx
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rsp + 0xa8], rax
lea rax, str.HavenMistconfigs
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], reloc.WS2_32.dll_sendto
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x58], rax
lea rax, [0x14006e0a0]
mov qword [rsp + 0x60], rax
movabs rax, 0xd000000000000000
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140069440
nop
mov rdi, qword [rsp + 0x78]
lea rbx, [rsp + 0x68]
cmp qword [rsp + 0x80], 0x10
cmovae rbx, qword [rsp + 0x68]
call fcn.1400ff618
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
lea r8, [rsp + 0x40]
mov edx, eax
mov rcx, rsi
call fcn.140051560
nop
lea rcx, [rsp + 0x68]
call fcn.1400372e0
mov rax, rsi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140059c30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x90
mov rsi, rdx
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rsp + 0xa8], rax
lea rax, str.HavenMist_system
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], reloc.WS2_32.dll_send
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x58], rax
lea rax, [0x14006e0a0]
mov qword [rsp + 0x60], rax
movabs rax, 0xd000000000000000
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140069440
nop
mov rdi, qword [rsp + 0x78]
lea rbx, [rsp + 0x68]
cmp qword [rsp + 0x80], 0x10
cmovae rbx, qword [rsp + 0x68]
call fcn.1400ff618
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
lea r8, [rsp + 0x40]
mov edx, eax
mov rcx, rsi
call fcn.140051560
nop
lea rcx, [rsp + 0x68]
call fcn.1400372e0
mov rax, rsi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14005ad20
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 0x14005ad48
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 0x14005ad6e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14005ad70
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14005adc9
test ecx, ecx
jle 0x14005ada9
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 0x14005adc9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14005adc9
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 0x14005adf0
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 0x14005ae12
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14005ae28
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 + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14005ae44
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14005ae46
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14005ae82
mov qword [rsp + 0x20], 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 + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14005af1e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14005aebd
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 0x14005aefe
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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14005af1e
cmp rbx, rax
ja 0x14005aed0
test rbx, rbx
je 0x14005af1e
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
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x14005b330
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1401550a0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14005b35d
xor eax, eax
jmp 0x14005b4ba
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x14005b388
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x14005b388
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 0x14005b4ba
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14005b4ad
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14005b3cb
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 0x14005b3f6
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 0x14005b4b2
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
je 0x14005b465
sub eax, 1
je 0x14005b465
cmp eax, 2
jne 0x14005b4ad
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 0x14005b4b2
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14005b493
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 0x14005b4ad
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14005b4b2
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400fe240
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14005d480
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1401550a0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14005d553
cmp byte [rcx + 0x71], 0
je 0x14005d553
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14005d54f
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 0x14005d514
sub eax, 1
je 0x14005d518
cmp eax, 2
jne 0x14005d54f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400fe240
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14005d546
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 0x14005d54f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14005d4fc
xor al, al
jmp 0x14005d4fc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400fe240
add rsp, 0x60
pop rbx
ret
Function at 0x1400984f0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1401550a0]
xor rax, rsp
mov qword [rsp + 0x60], 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_PeekMessageA]
test eax, eax
je 0x140098559
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x140098524
mov rax, qword [0x14019ace0]
xor ebx, ebx
test rax, rax
je 0x140098570
mov rcx, qword [rax + 0x98]
jmp 0x140098573
mov rcx, rbx
cmp qword [rcx + 0x48], rbx
jne 0x14009857e
call fcn.140032860
call fcn.140033a90
call fcn.14000a480
mov ecx, reloc.WLDAP32.dll_Ordinal_45
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400985d5
cmp byte [0x14019b4bd], bl
mov edx, 0xffffffec
mov rcx, qword [0x14019b128]
sete al
mov byte [0x14019b4bd], al
test al, al
je 0x1400985be
mov r8d, 0xa8
jmp 0x1400985cf
xorps xmm0, xmm0
mov r8d, 0x800a8
movss dword [0x14019b7a8], xmm0
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, reloc.WLDAP32.dll_Ordinal_46
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
movzx eax, byte [0x14019b4be]
cmovne eax, ebx
mov byte [0x14019b4be], al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400fe240
add rsp, 0x70
pop rbx
ret

Function at 0x1400993b0
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x3f
syscall
ret

Function at 0x1400993bb
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, Ordinal_60
syscall
ret

Function at 0x1400998f0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
cmp byte [r8 + 6], sil
je 0x140099924
mov eax, esi
lea ecx, [rax - 0x30]
xor byte [r8 + rax], cl
inc rax
cmp rax, 5
jb 0x140099910
mov byte [r8 + 6], sil
lea rax, [r8 + 5]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], sil
cmp r9, rax
je 0x140099959
mov r8d, 5
mov rdx, r9
lea rcx, [rsp + 0x28]
call fcn.14004e7d0
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140099967
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140068370
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1400999de
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400999d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400999d9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fe4fc
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret