joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7dacc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x7daf3c
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rcx
xor edx, edx
xor esi, esi
xor edi, edi
xor r8d, r8d
jmp 0x7dacf4
lea rdx, [r12 + 1]
mov rcx, r13
cmp rbx, rdx
jle 0x7daef8
mov qword [rsp + 0x20], rdx
mov byte [rsp + 0x1f], r8b
mov byte [rsp + 0x1e], dil
mov qword [rsp + 0x28], rsi
movzx r9d, byte [rax + rdx]
test r8b, r8b
je 0x7dade0
nop
cmp r9b, 0x3e
jne 0x7dadd0
mov r9, qword [0x00b41e48]
mov r10, rdx
sub rdx, r9
lea r11, [rdx + 1]
nop dword [rax + rax]
test r11, r11
jl 0x7dadc5
lea r12, [r10 + 1]
cmp r12, r11
jb 0x7daf30
mov r12, r10
sub r10, rdx
mov r13, rcx
sub rcx, rdx
lea r15, [rcx - 1]
neg r15
sar r15, 0x3f
and r15, r11
lea r11, [rax + r15]
cmp r9, r10
je 0x7dad7d
xor ecx, ecx
jmp 0x7dadb5
mov rbx, qword [0x00b41e40]
mov rax, r11
mov rcx, r10
call fcn.006c77e0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x28]
movzx edi, byte [rsp + 0x1e]
movzx r8d, byte [rsp + 0x1f]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x50]
mov ecx, eax
mov rax, qword [rsp + 0x40]
test cl, cl
je 0x7dacec
xor r8d, r8d
jmp 0x7dacec
mov r12, r10
mov r13, rcx
jmp 0x7dacec
mov r12, rdx
mov r13, rcx
jmp 0x7dacec
test dil, dil
je 0x7dadf7
cmp dil, r9b
jne 0x7dadec
xor edi, edi
mov r12, rdx
mov r13, rcx
jmp 0x7dacec
cmp r9b, 0x27
je 0x7dae06
nop dword [rax]
cmp r9b, 0x22
jne 0x7dae14
mov r12, rdx
mov r13, rcx
mov edi, r9d
jmp 0x7dacec
cmp r9b, 0x3c
jne 0x7daec7
mov r9, qword [0x00b41e28]
lea r10, [rdx + r9]
cmp rbx, r10
jle 0x7daeb9
cmp rcx, r10
jb 0x7daf25
nop dword [rax + rax]
cmp rdx, r10
ja 0x7daf17
mov rbx, qword [0x00b41e20]
mov rsi, rdx
sub rdx, rcx
sar rdx, 0x3f
and rdx, rsi
add rdx, rax
mov rax, rdx
mov rcx, r9
call fcn.006c77e0
test al, al
je 0x7dae95
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x48]
movzx edi, byte [rsp + 0x1e]
mov rsi, qword [rsp + 0x28]
mov r8d, 1
jmp 0x7daebc
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x28]
movzx edi, byte [rsp + 0x1e]
movzx r8d, byte [rsp + 0x1f]
inc rsi
mov r12, rdx
mov r13, rcx
jmp 0x7dacec
cmp r9b, 0x3e
jne 0x7daee5
test rsi, rsi
je 0x7daef0
dec rsi
mov r12, rdx
mov r13, rcx
nop dword [rax + rax]
jmp 0x7dacec
mov r12, rdx
mov r13, rcx
jmp 0x7dacec
xor eax, eax
add rsp, 0x30
pop rbp
ret
test rsi, rsi
jne 0x7daf0b
nop dword [rax]
test dil, dil
jne 0x7daf0b
xor r8d, 1
jmp 0x7daf0e
xor r8d, r8d
mov eax, r8d
add rsp, 0x30
pop rbp
ret
mov rax, rdx
mov rcx, r10
nop dword [rax]
call fcn.00727be0
mov rdx, rcx
mov rcx, r10
call fcn.00727ba0
mov rax, r11
mov rcx, r12
call fcn.00727be0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.007258a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
nop
jmp fcn.007dacc0
Function at 0x140005510
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140005544
cmp word [rcx], 0x5a4d
jne 0x140005544
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140005544
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005544
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140005450
test eax, eax
jne 0x140005560
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400054c0
test rax, rax
je 0x140005555
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140005d12
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140005c10
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005bb0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140006074
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140994ed8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140994ed4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400060c2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400060ba
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400061a9
inc ebx
add rax, 0x28
jmp 0x14000609a
mov rcx, r12
call fcn.1400068a1
mov rbp, rax
test rax, rax
jne 0x1400060e1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140006010
movsxd rbx, ebx
mov rax, qword [0x140994ed8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000694f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140994ed8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140006143
mov rax, qword [0x140994ed8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140006010
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400061a3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400061a3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140994ed8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400061a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140006010
inc dword [0x140994ed4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400065d0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140994f40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140994f20]
test rbx, rbx
je 0x14000661c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140006616
test eax, eax
jne 0x140006616
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x1400065ee
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400067d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400067f3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1400067f3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400067f4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000682e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140006825
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140006830
inc r8d
add rax, 0x28
jmp 0x14000680c
xor eax, eax
ret

Function at 0x1400068a1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14098b9d0]
mov r8, rcx
mov rcx, r9
call fcn.1400067d0
test eax, eax
je 0x1400068cd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.1400067f4
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000acc8
Capabilities:
Parse pe header

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

Function at 0x140016568
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140016364

Function at 0x140019898
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400198ae
mov al, 1
jmp 0x14001990e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400198bf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001990c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140022a78
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001990c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001990c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001990c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001990e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001c6a4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000a6c0
sub rsp, rax
mov rax, qword [0x14003c020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001967c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001c6f3
mov rax, rbp
jmp 0x14001c7fb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3e490]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001d5f0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3e490]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001c7f7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001c7f7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001d5f0
test rax, rax
js 0x14001c7f7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001c7f7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001c7e9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001c7e9
cmp byte [rcx], 0xd
jne 0x14001c7cf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001c7de
cmp byte [rcx + 1], 0xa
jne 0x14001c7de
inc rcx
jmp 0x14001c7de
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3c410]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001c7b1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001c7fb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000a050
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001c990
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14003e490]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001c9e7
cmp word [rdx], r13w
jne 0x14001c9e7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001c9ec
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001cb11
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001cb32
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001ca25
mov rdx, r9
mov word [rbx], cx
jmp 0x14001ca4c
cmp r9, r8
jae 0x14001ca5c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001ca06
jmp 0x14001cb11
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001cb06
cmp dword [rsp + 0x80], esi
je 0x14001cb06
lea r8, [0x14003e490]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001cade
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001caae
mov word [rbx], r13w
jmp 0x14001cb0e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001cabb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001cb0e
cmp word [rsp + 0x70], r13w
jne 0x14001caeb
cmp rbx, r14
je 0x14001caa8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001d5f8
cmp word [rsp + 0x70], r13w
je 0x14001cb11
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14003e490]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001cb0b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001cb11
Function at 0x140021fc4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002204b
mov rsi, rbx
cmp word [rax], bp
je 0x14002200a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140021ff4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140021ff0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001d69c
mov rdi, rax
test rax, rax
je 0x140022038
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000bf10
mov rbp, rdi
xor ecx, ecx
call fcn.14001b148
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140024fcc
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.140019e24
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 0x14002506d
cmp ebx, dword [rsp + 0x30]
je 0x140025066
test esi, esi
je 0x140025066
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140025041
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002504e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002502b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140025052
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002506f
mov eax, 1
jmp 0x14002506f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140011410
Capabilities:
Terminate process

Disassembly:
jmp 0x14001b060
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001150a
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001bb90
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001bbb0
xor al, al
jmp 0x14001bc31
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001bbc3
xor al, al
jmp 0x14001bc31
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001bbed
xor al, al
jmp 0x14001bc31
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001bc01
xor al, al
jmp 0x14001bc31
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001bc13
xor al, al
jmp 0x14001bc31
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001bc2f
xor al, al
jmp 0x14001bc31
mov al, 1
add rsp, 0x38
ret
Function at 0x140009070
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
mov rbx, rcx
cmp rax, qword [rcx + 0x18]
jae 0x140009090
inc rax
mov qword [rcx + 0x20], rax
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0x38], 0
jne 0x1400090dc
mov rax, qword [rcx + 0x28]
mov edx, 1
add qword [rcx + 0x30], rax
mov r9, qword [rcx]
mov r8, qword [rcx + 0x10]
mov rcx, qword [rcx + 8]
call fcn.1400334a0
mov rdx, qword [rbx + 8]
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x20], rdx
lea rcx, [rdx - 1]
add rcx, rax
mov qword [rbx + 0x18], rcx
cmp rax, qword [rbx + 0x10]
jae 0x1400090dc
mov byte [rdx + rax], 0
inc qword [rbx + 0x18]
mov byte [rbx + 0x38], 1
add rsp, 0x20
pop rbx
ret

Function at 0x14000c220
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rbx, rcx
mov rdi, r8
mov ecx, 0x18
mov rsi, rdx
call qword [fcn.14002e1e4]
mov r14, rax
test rax, rax
jne 0x14000c25b
mov eax, 0xfffff027
jmp 0x14000c2e4
mov qword [rax + 8], rdi
lea r8, [0x14000c130]
xor edi, edi
mov qword [rax], rsi
mov qword [rsp + 0x28], rdi
mov r9, r14
xor edx, edx
mov dword [rsp + 0x20], 4
xor ecx, ecx
call fcn.1400339d4
test rax, rax
jne 0x14000c2d2
call fcn.14002dfd0
mov esi, dword [rax]
call fcn.14002dfd0
mov rcx, r14
mov ebx, dword [rax]
call qword [fcn.14002dff0]
call fcn.14002dfd0
mov dword [rax], ebx
test esi, esi
je 0x14000c2e2
cmp esi, 0xb
je 0x14000c2cb
cmp esi, 0xd
je 0x14000c2c4
cmp esi, 0x16
setne dil
lea eax, [rdi - 0xfe7]
jmp 0x14000c2e4
mov eax, 0xfffff004
jmp 0x14000c2e4
mov eax, 0xfffff008
jmp 0x14000c2e4
mov qword [rbx], rax
mov rcx, rax
mov qword [r14 + 0x10], rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x140010f40
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x140088008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov ecx, dword [rcx + 0x58]
btr ecx, 8
mov eax, ecx
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], ecx
jne 0x140010f8b
test cl, 1
jne 0x140010f8b
test cl, 0x40
je 0x140010f8b
and eax, 0xffffffbf
mov dword [rbx + 0x58], eax
test al, 0x20
je 0x140010f8b
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov eax, dword [rbx + 0x58]
bt eax, 0x11
jb 0x140010f98
xor eax, eax
jmp 0x14001113f
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0x88], rdi
bt eax, 0x19
jae 0x140010fec
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x40]
xor eax, eax
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], eax
lea r8d, [rax + 1]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x14001112d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001112f
bt eax, 0x16
jb 0x14001112d
mov rcx, qword [0x140096730]
or edx, 0xffffffff
xor edi, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140011155
mov eax, 2
xchg dword [0x140096428], eax
cmp eax, 1
je 0x140011040
mov rcx, qword [0x140096730]
lea edx, [rdi + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x14001115b
jmp 0x140011126
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 0x1400110a3
lea rdx, [0x140096718]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1400110a3
lock or dword [0x140096714], 1
mov esi, 1
mov dword [rsp + 0x50], 0xd0001
mov r14d, reloc.WS2_32.dll_listen
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 0x140011107
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbp, 0xffffffffffffffff
je 0x140011116
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0xa8]
test edi, edi
je 0x140011126
mov eax, edi
jmp 0x14001112f
or dword [rbx + 0x58], 0x400000
xor eax, eax
mov rsi, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140028de0
add rsp, 0x90
pop rbx
ret
call fcn.140033840
int3
call fcn.140033840
int3
Function at 0x1400112c0
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140088008]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0xb8]
mov esi, r9d
movzx ebp, r8b
mov edi, edx
mov rbx, rcx
cmp dword [r14], 0
je 0x1400112fc
or eax, 0xffffffff
jmp 0x140011423
mov qword [rsp + 0x58], r12
xor r12d, r12d
mov qword [rsp + 0x50], r15
movzx r15d, byte [rsp + 0xb0]
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x140011331
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
movsx eax, word [rsp + 0x34]
mov edx, edi
movsx r8d, word [rsp + 0x38]
movsx r11d, word [rsp + 0x28]
sub r8d, eax
mov eax, dword [0x140088d2c]
inc r8d
movsx r9d, word [rsp + 0x2e]
mov dword [0x140088d14], r11d
mov dword [0x140088d28], r8d
cmp eax, 0xffffffff
jne 0x14001136e
mov eax, r9d
jmp 0x14001137b
mov ecx, r9d
sub ecx, r8d
inc ecx
cmp eax, ecx
cmovl eax, ecx
movsx r10d, word [rsp + 0x2a]
lea ecx, [r8 + rax]
cmp ecx, r10d
jle 0x140011390
mov eax, r10d
sub eax, r8d
test eax, eax
lea ecx, [r9 + rsi]
cmovs eax, r12d
mov dword [0x140088d2c], eax
test r15b, r15b
jne 0x1400113a8
lea ecx, [rax + rsi]
cmp ecx, eax
jge 0x1400113b0
mov ecx, eax
jmp 0x1400113bd
lea r9d, [r8 + rax]
cmp ecx, r9d
jl 0x1400113bd
lea ecx, [r9 - 1]
test bpl, bpl
je 0x1400113c9
movsx edx, word [rsp + 0x2c]
add edx, edi
test edx, edx
jns 0x1400113d2
mov edx, r12d
jmp 0x1400113db
cmp edx, r11d
jl 0x1400113db
lea edx, [r11 - 1]
mov word [rsp + 0x22], cx
mov rcx, qword [rbx + 0x110]
mov word [rsp + 0x20], dx
mov edx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x140011417
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x140011312
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
or eax, 0xffffffff
jmp 0x140011419
xor eax, eax
mov r12, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140028de0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret