joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400600a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov eax, 0x35
movaps xmmword [rsp + 0x30], xmm7
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm8
mov rbx, rcx
movsd xmm8, qword [0x14006c010]
cvtsi2sd xmm6, rax
test rax, rax
jns 0x1400600d9
addsd xmm6, xmm8
movaps xmm0, xmm8
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_log2]
divsd xmm6, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
movsd xmm6, qword [0x1400da3b8]
mov ecx, 1
cvttsd2si eax, xmm0
xorps xmm7, xmm7
cmp eax, ecx
cmovl eax, ecx
test eax, eax
jle 0x140060213
mov qword [rsp + 0x60], rbp
movabs rbp, 0x38eb3ffff6d3
mov qword [rsp + 0x68], rsi
movabs rsi, 0xb5026f5aa96619e9
mov qword [rsp + 0x70], rdi
mov edi, eax
mov eax, dword [rbx]
cmp eax, 0x138
jne 0x14006018c
lea r8, [rbx + 0x10]
mov r9d, eax
nop word [rax + rax]
mov edx, dword [r8 - 8]
xor edx, dword [r8]
lea r8, [r8 + 8]
btr edx, 0x1f
xor rdx, qword [r8 - 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rsi
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x140060150
jmp 0x14006019b
cmp eax, 0x270
jb 0x14006019b
mov rcx, rbx
call fcn.1400617f0
mov eax, dword [rbx]
xorps xmm1, xmm1
mov rcx, qword [rbx + rax*8 + 8]
inc eax
mov dword [rbx], eax
mov rax, rcx
shr rax, 0x1d
and rax, qword [rbx + 0x1388]
xor rcx, rax
mov rax, rcx
and rax, rbp
shl rax, 0x11
xor rcx, rax
mov rax, rcx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rcx, rax
mov rax, rcx
shr rax, 0x2b
xor rax, rcx
cvtsi2sd xmm1, rax
jns 0x1400601ed
addsd xmm1, xmm8
mulsd xmm1, xmm6
mulsd xmm6, xmm8
addsd xmm7, xmm1
sub rdi, 1
jne 0x140060135
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
movaps xmm8, xmmword [rsp + 0x20]
divsd xmm7, xmm6
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm0, xmm7
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x50
pop rbx
ret

Function at 0x1400617f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov r10, rcx
lea r9, [rcx + 0x9c8]
movabs rbx, 0xb5026f5aa96619e9
mov r11d, 0x9c
nop
mov edx, dword [r9]
xor edx, dword [r9 + 8]
lea r9, [r9 + 8]
btr edx, 0x1f
xor rdx, qword [r9 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
xor rcx, qword [r9 + 0x4d8]
xor rcx, rdx
mov qword [r9 - 0x9c8], rcx
sub r11, 1
jne 0x140061810
lea r9, [r10 + 0xea8]
mov r11d, 0x9b
nop word [rax + rax]
mov edx, dword [r9]
xor edx, dword [r9 + 8]
lea r9, [r9 + 8]
btr edx, 0x1f
xor rdx, qword [r9 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
xor rcx, qword [r9 - 0xea8]
xor rcx, rdx
mov qword [r9 - 0x9c8], rcx
sub r11, 1
jne 0x140061860
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 8]
btr edx, 0x1f
xor rdx, qword [r10 + 0x1380]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
mov rbx, qword [rsp + 8]
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
mov dword [r10], r11d
ret
Function at 0x1400622d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0xae0
mov rax, qword [0x1400e9400]
xor rax, rsp
mov qword [rsp + 0xad0], rax
mov rbx, rdx
mov dword [rsp + 0x28], 0x20
lea rax, [rsp + 0x80]
mov r8, rcx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
or r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0x20
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareValveSteam
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14006237f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error_opening_Steam_key_n
jmp 0x140062447
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.SteamExe
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x30], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140062435
mov ecx, dword [rsp + 0x30]
cmp ecx, 1
jb 0x140062435
shr ecx, 1
je 0x1400623f3
lea rax, [rsp + 0xc0]
lea edx, [rbx + 0x5c]
nop
cmp word [rax], 0x2f
jne 0x1400623e9
mov word [rax], dx
add rax, 2
sub rcx, 1
jne 0x1400623e0
lea rax, [rsp + 0x40]
mov edx, 0x800
lea r9, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r8, str.__s__steam:__rungameid__s
lea rcx, [rsp + 0x2d0]
call fcn.140062160
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x80]
call fcn.140061dc0
jmp 0x14006244f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error_reading_SteamExe_key_n
mov rcx, rax
call fcn.140062470
mov rcx, qword [rsp + 0xad0]
xor rcx, rsp
call fcn.140067c40
add rsp, 0xae0
pop rbx
ret
Function at 0x140062510
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400e9400]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov eax, dword [0x14006c260]
xor edi, edi
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov dword [rsp + 0x68], eax
mov rbx, rcx
movzx eax, word [0x14006c264]
lea rcx, [rsp + 0x40]
movups xmm1, xmmword [0x14006c248]
mov word [rsp + 0x6c], ax
mov eax, 0x30
movups xmmword [rsp + 0x40], xmm0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
movsd xmm0, qword [0x14006c258]
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov edx, 0xc0000000
movsd qword [rsp + 0x60], xmm0
mov word [rsp + 0x6a], ax
movups xmmword [rsp + 0x50], xmm1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x140062614
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400625c8
movzx eax, word [rsp + 0x6a]
cmp ax, 0x39
jae 0x140062637
inc ax
mov word [rsp + 0x6a], ax
jmp 0x1400625e3
cmp eax, 0xe7
jne 0x140062637
mov edx, 0x2710
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x140062637
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1400625a8
mov byte [rbx], 1
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140067c40
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
xor al, al
jmp 0x140062619

Function at 0x140062640
Capabilities:
Read file on windows
Read pipe

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x140062660
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
test rbx, rbx
je 0x140062656
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x140062656
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rbp
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], ebp
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1400626eb
mov eax, dword [rsp + 0x58]
cmp rax, rdi
jb 0x140062700
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x68]
mov r8d, edi
mov dword [rsp + 0x68], ebp
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x1400626d4
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, rbx
call fcn.1400624c0
mov rbp, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
mov byte [rbx], bpl
xor al, al
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140062710
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r8
test r8, r8
jne 0x140062726
mov al, 1
add rsp, 0x30
pop rdi
ret
test rcx, rcx
jne 0x140062733
xor al, al
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x14006272b
test rdx, rdx
je 0x14006272b
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x50]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x14006276a
cmp dword [rsp + 0x50], edi
jne 0x14006276a
mov ebx, eax
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140067fc4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006800e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006800e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006800e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006800e
cmp dword [rcx + 0x84], 0xe
jbe 0x14006800e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140068010
xor al, al
add rsp, 0x28
ret

Function at 0x1400687ec
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140068826
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14006882b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140068874
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14006d2d0]
cmp byte [rcx + rax], 0
je 0x140068874
dec r8
sub rdx, 1
jne 0x14006885a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x180644058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1806441df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180644089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18064406f
add dl, dl
jne 0x180644096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806440f6
xor eax, eax
add dl, dl
jne 0x1806440a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806441ad
add dl, dl
jne 0x1806440b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806440c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806440d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806440dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1806440ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18064407e
mov eax, 1
add dl, dl
jne 0x180644106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180644113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806440fb
sub eax, ebx
mov ebx, 1
jne 0x18064414c
mov ecx, 1
add dl, dl
jne 0x18064412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18064413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180644123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18064407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180644168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180644175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18064415d
cmp eax, 0x7d00
jae 0x18064419b
cmp eax, 0x500
jb 0x180644196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18064407e
cmp eax, 0x7f
ja 0x18064419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18064407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1806441d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18064407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000c200
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rbx, rcx
mov rdi, qword [rdx]
mov rsi, qword [rdx + 8]
xor r15d, r15d
cmp rdi, rsi
je 0x14000c2ae
mov ecx, 0x50
call fcn.14008c194
mov qword [rsp + 0x70], rax
mov rdx, qword [rbx + 8]
sub rdx, qword [rbx]
sar rdx, 3
mov rcx, qword [rbx + 0x18]
mov r8, qword [rcx + 8]
mov qword [rax], rdx
movups xmm0, xmmword [rdi]
movups xmmword [rax + 8], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rax + 0x18], xmm1
movsd xmm0, qword [rdi + 0x20]
movsd qword [rax + 0x28], xmm0
mov qword [rax + 0x30], r8
mov qword [rax + 0x38], r15
xorps xmm0, xmm0
movups xmmword [rax + 0x40], xmm0
mov qword [rsp + 0x70], rax
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x14000c298
mov qword [rdx], rax
add qword [rbx + 8], 8
jmp 0x14000c2a5
lea r8, [rsp + 0x70]
mov rcx, rbx
call fcn.1400046a0
add rdi, 0x28
cmp rdi, rsi
jne 0x14000c232
mov ecx, 0x28
call fcn.14008c194
mov r14, rax
mov qword [rsp + 0x70], rax
mov rbp, qword [rbx + 8]
sub rbp, qword [rbx]
sar rbp, 3
mov qword [rax], r15
mov qword [rax + 8], rbp
mov eax, 8
mul rbp
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.14008c6bc
mov qword [r14 + 0x18], rax
mov eax, 8
mul rbp
cmovo rax, rdi
mov rcx, rax
call fcn.14008c6bc
mov qword [r14 + 0x20], rax
mov eax, 4
mul rbp
cmovo rax, rdi
mov rcx, rax
call fcn.14008c6bc
mov qword [r14 + 0x10], rax
mov rdi, r15
test rbp, rbp
je 0x14000c39e
nop dword [rax]
mov ecx, 0x8000
call fcn.14008c6bc
mov rsi, rax
test rax, rax
je 0x14000c354
xor edx, edx
mov r8d, 0x8000
mov rcx, rax
call fcn.1400aaf50
jmp 0x14000c357
mov rsi, r15
mov rax, qword [r14 + 0x18]
mov qword [rax + rdi*8], rsi
mov ecx, 0x8000
call fcn.14008c6bc
mov rsi, rax
test rax, rax
je 0x14000c383
xor edx, edx
mov r8d, 0x8000
mov rcx, rax
call fcn.1400aaf50
jmp 0x14000c386
mov rsi, r15
mov rax, qword [r14 + 0x20]
mov qword [rax + rdi*8], rsi
mov rax, qword [r14 + 0x10]
mov dword [rax + rdi*4], r15d
inc rdi
cmp rdi, rbp
jb 0x14000c330
mov rax, qword [rbx + 0x18]
mov qword [rax], r14
mov rdi, qword [rbx]
mov rsi, qword [rbx + 8]
cmp rdi, rsi
je 0x14000c426
lea rbp, [0x14000c580]
nop dword [rax + rax]
mov rbx, qword [rdi]
mov ecx, 0x10
call fcn.14008c194
mov qword [rax], rbx
mov qword [rax + 8], rbp
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x14000c5f0]
xor edx, edx
xor ecx, ecx
call fcn.1400b2f2c
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000c446
cmp dword [rbx + 0x48], 0
jne 0x14000c440
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
movups xmmword [rbx + 0x40], xmm1
add rdi, 8
cmp rdi, rsi
jne 0x14000c3c0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.1400b300c
nop
mov dword [rsp + 0x48], r15d
mov ecx, 6
call fcn.14008a1bc
int3
Function at 0x140011b90
Capabilities:
Allocate or change rwx memory

Disassembly:
cmp qword [rcx + 0x50], 0
lea r10, [rcx + 0x50]
mov rdx, rcx
jne 0x140011c04
mov eax, dword [rcx + 0x38]
xor r8d, r8d
cmp eax, 0xffffffff
je 0x140011bb6
test eax, eax
js 0x140011bb6
lea ecx, [r8 + 1]
cmp eax, 0xb
jle 0x140011bb9
mov ecx, r8d
sub ecx, 1
je 0x140011be5
sub ecx, 1
je 0x140011bdd
sub ecx, 1
je 0x140011bd5
cmp ecx, 1
jne 0x140011beb
mov r8d, 0x40000
jmp 0x140011beb
mov r8d, 0x400000
jmp 0x140011beb
mov r8d, 0x100000
jmp 0x140011beb
mov r8d, 0x200000
mov rdx, qword [rdx + 0x118]
mov r9d, 5
mov rcx, r10
mov rdx, qword [rdx + 0x10]
jmp 0x1400f2e80
ret
Function at 0x140064e30
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x14014a1f8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov ecx, dword [rcx + 0x58]
btr ecx, 0xc
mov eax, ecx
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], ecx
jne 0x140064e7b
test cl, 1
jne 0x140064e7b
test cl, 4
je 0x140064e7b
and eax, 0xfffffffb
mov dword [rbx + 0x58], eax
test al, 8
je 0x140064e7b
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov eax, dword [rbx + 0x58]
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0x88], rdi
bt eax, 0x10
jae 0x140065024
bt eax, 0x19
jae 0x140064ee1
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x40]
xor eax, eax
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x70], eax
xorps xmm0, xmm0
mov eax, 0x10
movups xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x60], ax
lea r8d, [rax - 0xf]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleInputW]
test eax, eax
jne 0x140065024
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x140065026
bt eax, 0x15
jb 0x140065024
mov rcx, qword [0x140150988]
mov edx, 0xffffffff
xor edi, edi
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x14006504c
mov eax, 2
xchg dword [0x140150968], eax
cmp eax, 1
je 0x140064f37
mov rcx, qword [0x140150988]
lea edx, [rdi + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_ReleaseSemaphore]
test eax, eax
je 0x14006504c
jmp 0x14006501d
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0xa8], rbp
lea rcx, str.conout_
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov qword [rsp + 0x80], r14
lea r8d, [r9 + 3]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140064f9a
lea rdx, [0x140150970]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetConsoleScreenBufferInfo]
test eax, eax
je 0x140064f9a
lock or dword [0x14015096c], 1
mov esi, 1
mov dword [rsp + 0x50], 0xd0001
mov r14d, 0xd
mov word [rsp + 0x48], si
mov ecx, r14d
mov dword [rsp + 0x4c], esi
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x44]
mov r8d, esi
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x56], r14w
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.DLL_WriteConsoleInputW]
mov r14, qword [rsp + 0x80]
test eax, eax
jne 0x140064ffe
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
cmp rbp, 0xffffffffffffffff
je 0x14006500d
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbp, qword [rsp + 0xa8]
test edi, edi
je 0x14006501d
mov eax, edi
jmp 0x140065026
or dword [rbx + 0x58], 0x200000
xor eax, eax
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14008c170
add rsp, 0x90
pop rbx
ret
call fcn.1400b4fc0
int3
Function at 0x140067760
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x40
test dword [rcx + 0x58], 0x8000
mov rbx, rdx
jne 0x14006777d
mov eax, 0xfffff031
add rsp, 0x40
pop rbx
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x140067828
cmp eax, 0xc
je 0x1400677d8
cmp eax, 0xe
je 0x14006779e
mov eax, 0xfffff02a
add rsp, 0x40
pop rbx
ret
cmp dword [rcx + 0x100], 0
ja 0x140067828
lea r9, [rsp + 0x50]
mov r8d, 1
call fcn.140065ab0
test eax, eax
je 0x1400677d0
mov ecx, dword [rsp + 0x50]
add rsp, 0x40
pop rbx
jmp fcn.14006ef30
mov eax, dword [rbx]
add rsp, 0x40
pop rbx
ret
cmp dword [rcx + 0x100], 0
ja 0x140067828
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x50]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
lea r8d, [rax + 1]
call qword [0x140113678]
cmp eax, 0xffffffff
jne 0x14006781e
call qword [0x140113638]
mov ecx, eax
add rsp, 0x40
pop rbx
jmp fcn.14006ef30
mov eax, dword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
mov eax, 0xfffff008
add rsp, 0x40
pop rbx
ret
Function at 0x140069890
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
xorps xmm0, xmm0
lea rbx, [rdx + 0x80]
movups xmmword [rbx + 0x40], xmm0
lea r14, [rbx + 0x40]
xor ebp, ebp
movups xmmword [r14 + 0x10], xmm0
or dword [rdx + 0x58], 0x40000
lea rax, [0x140150987]
movups xmmword [r14], xmm0
mov rdi, rdx
mov rsi, rcx
movups xmmword [r14 + 0x10], xmm0
test dword [rdx + 0x58], 0x80000
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], ebp
je 0x1400698f6
mov rax, qword [rbx + 0x70]
or rax, 1
mov qword [rbx + 0x58], rax
mov rcx, qword [rdi + 0x110]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x40]
mov r8d, 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], ebp
call qword [0x140113698]
test eax, eax
jne 0x140069981
mov eax, dword [rdi + 0x58]
bt eax, 0x11
jae 0x1400699e9
bts eax, 0x10
mov dword [rdi + 0x58], eax
mov eax, dword [rsp + 0x78]
mov qword [rbx + 0x48], rax
inc dword [rdi + 0x78]
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x140069974
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x140069a5f
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x140069a5f
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x1400699e9
call qword [0x140113638]
test eax, eax
jg 0x1400699a0
call qword [0x140113638]
jmp 0x1400699ae
call qword [0x140113638]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [r14], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x1400699dc
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x140069a5f
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x140069a5f
or dword [rdi + 0x58], 0x10000
inc dword [rdi + 0x78]
test dword [rdi + 0x58], 0x80000
je 0x140069a5f
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x140069a5f
mov rdx, qword [rbx + 0x70]
lea r8, [0x1400695a0]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
test eax, eax
jne 0x140069a5f
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x140069a41
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x140069a4f
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov rdx, rbx
mov rcx, rsi
mov qword [r14], rax
call fcn.140069020
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret