joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001b90
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400f79e0]
mov dword [rax], 1
mov rax, qword [0x1400f79f0]
mov dword [rax], 1
mov rax, qword [0x1400f7a00]
mov dword [rax], 1
mov rax, qword [0x1400f7900]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140053820
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400d1280
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x1400538ed
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop word cs:[rax + rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400e2514
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400538ce
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400538c0
test rsi, rsi
je 0x1400e2514
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140053880
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14005391c
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140053930
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x1400539ed
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400e251a
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400539ce
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400539c0
test rsi, rsi
je 0x1400e251a
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140053980
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140053a20
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor edx, edx
movzx eax, byte [rcx]
mov word [rsp + 0x30], dx
mov rbp, rcx
lea r15, [rsp + 0x30]
test al, al
je 0x140053add
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop word cs:[rax + rax]
nop
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400e2520
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140053abe
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140053ab0
test rsi, rsi
je 0x1400e2520
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140053a70
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400897e0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.140053820
test rax, rax
je 0x1400898f0
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x30]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x30], cx
mov r13, rax
lea rbp, [rsp + 0x2a]
mov eax, 0x4e
lea rdi, [rsp + 0x2c]
nop word cs:[rax + rax]
nop dword [rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x2a], al
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400e25b0
cmp word [r15], 0
movzx edx, word [rsp + 0x2c]
mov rax, r15
je 0x14008989e
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140089890
test rbx, rbx
je 0x1400e25b0
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x140089850
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rdx, r13
mov rcx, rax
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140089660
mov rax, qword [0x14010b108]
lea rsi, [0x14010b108]
test bl, bl
je 0x140089910
mov rax, qword [0x14010b110]
lea rsi, [0x14010b110]
test rax, rax
je 0x140089929
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [0x14010b342], 0
je 0x140089959
mov rdx, 0xffffffffffffffff
lea rcx, [0x14010b140]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140089963
mov edx, dword [rax]
add edx, 1
je 0x140089915
mov dword [rax], edx
jmp 0x140089915
movzx ecx, bl
call fcn.140054190
jmp 0x140089932
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
Function at 0x140089970
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x14010b100]
mov rsi, rcx
test rbx, rbx
je 0x1400899f0
mov rax, qword [0x1400f7b30]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x1400899e0
mov rdx, qword [0x14010b348]
test rdx, rdx
je 0x140089ae0
mov rcx, rbx
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
jmp 0x1400899c1
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.140053820
test rax, rax
je 0x140089b00
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400e25b6
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x140089a8e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140089a80
test rbx, rbx
je 0x1400e25b6
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x140089a40
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.140089660
mov rbx, rax
mov qword [0x14010b100], rbx
jmp 0x140089992
lea rcx, [0x1400f3d02]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x14010b348], rax
mov rdx, rax
jmp 0x1400899b2
mov rbx, qword [0x14010b110]
test rbx, rbx
jne 0x140089ad1
cmp byte [0x14010b342], 0
je 0x140089b43
mov rdx, 0xffffffffffffffff
lea rcx, [0x14010b140]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x14010b110], rax
mov rbx, rax
test rax, rax
je 0x140089b4f
mov eax, dword [rax]
add eax, 1
je 0x140089ad1
mov dword [rbx], eax
jmp 0x140089ad1
mov ecx, 1
call fcn.140054190
jmp 0x140089b15
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
Function at 0x1400cd930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x14010b0e9], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x1400cd9d8
lea rdx, [0x1400f35da]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400cda40
mov rbx, qword [0x14010af80]
jmp 0x1400cd975
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1400cd970
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x1400cd9c7
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.1400c3390
mov r8, rax
cmp rdi, rbx
jne 0x1400cd9b0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x14010af80], rax
mov ebx, dword [rax]
mov qword [0x14010af80], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x14010af80], rdx
call fcn.1400cca20
cmp eax, ebx
jne 0x1400cdaa8
mov byte [0x14010b0e9], 1
jmp 0x1400cd950
cmp byte [0x14010b0e8], 0
jne 0x1400cd967
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x14010bca8], rax
call rbx
mov qword [0x14010bca0], rax
call rbx
mov qword [0x14010bc98], rax
call rbx
mov qword [0x14010bc90], rax
call rbx
mov qword [0x14010bc88], rax
call rbx
mov qword [0x14010bc80], rax
call rbx
mov qword [0x14010bc78], rax
call rbx
mov byte [0x14010b0e8], 1
mov qword [0x14010bc70], rax
jmp 0x1400cd967
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400cff60
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400e1520
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400e1520
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1400d0c32
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14010c168]
test eax, eax
je 0x1400d0cca
lea rax, [0x14010c140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14010c170]
mov qword [rbp - 8], rax
jmp 0x1400d0cae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400d0ca2
cmp qword [rbp - 0x10], 0
je 0x1400d0ca2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400d0c68
lea rax, [0x14010c140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400d0ccb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400d0dd0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400d0df8
mov eax, 0
jmp 0x1400d0e46
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400d0e21
mov eax, 0
jmp 0x1400d0e46
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400d0e41
mov eax, 0
jmp 0x1400d0e46
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400d0e4c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400d0eca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400d0ec1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400d0ec1
mov rax, qword [rbp - 8]
jmp 0x1400d0edf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400d0e94
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1800010a0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800010c8
xor eax, eax
lea r8, section..text
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x1400110e1
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001a110
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140038060]
call fcn.140011974
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001a168
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14001a27a
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14001a213
cmp qword [rbp + 0x28], 0
jle 0x14001a213
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001a1b1
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1400118f2
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x14001a269
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001a269
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400114b0
Capabilities:
Log keystrokes via application hook

Disassembly:
jmp 0x14001bdb0
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x140038151]
call fcn.140011974
nop
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140011415]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140030720], rax
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x140011550
Capabilities:
Terminate process

Disassembly:
jmp 0x140021260
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]
nop
add rsp, 0x28
ret
Function at 0x14001169a
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400220e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140022100
xor al, al
jmp 0x140022181
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140022113
xor al, al
jmp 0x140022181
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 0x14002213d
xor al, al
jmp 0x140022181
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140022151
xor al, al
jmp 0x140022181
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140022163
xor al, al
jmp 0x140022181
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002217f
xor al, al
jmp 0x140022181
mov al, 1
add rsp, 0x38
ret
Function at 0x1400116e0
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x14001ce60
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x438
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xa2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x458]
mov rax, qword [0x140030040]
xor rax, rbp
mov qword [rbp + 0x3f0], rax
lea rcx, [0x140038255]
call fcn.140011974
nop
call fcn.1400114b0
nop
xor eax, eax
cmp eax, 1
je 0x14001cf29
mov ecx, 0x1b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14001cedd
jmp 0x14001cf29
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 8]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14001cf1b
lea rcx, [rbp + 8]
call qword [sym.imp.USER32.dll_TranslateMessage]
nop
lea rcx, [rbp + 8]
call qword [sym.imp.USER32.dll_DispatchMessageW]
nop
cmp dword [rbp + 0x10], 0x12
jne 0x14001cf19
jmp 0x14001cf1b
jmp 0x14001cedd
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x14001cebf
call fcn.1400118b1
nop
mov edx, 0x20
lea rcx, [rbp + 0x58]
call fcn.14001156e
lea rcx, [rbp + 0x58]
call fcn.1400110e6
nop
lea rcx, [rbp + 0x98]
call fcn.140011960
nop
lea rax, [rbp + 0x58]
mov qword [rbp + 0xd8], rax
mov rcx, qword [rbp + 0xd8]
call fcn.140011a8c
mov qword [rbp + 0xf8], rax
mov rcx, qword [rbp + 0xd8]
call fcn.140011a91
mov qword [rbp + 0x118], rax
jmp 0x14001cf99
mov rax, qword [rbp + 0xf8]
add rax, 4
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 0x118]
cmp qword [rbp + 0xf8], rax
je 0x14001d003
mov rax, qword [rbp + 0xf8]
mov eax, dword [rax]
mov dword [rbp + 0x134], eax
movzx r8d, byte [rbp + 0x134]
mov edx, 1
lea rcx, [rbp + 0x2d8]
call fcn.140011aa5
mov rdx, rax
lea rcx, [rbp + 0x98]
call fcn.1400113fc
lea rcx, [rbp + 0x2d8]
call fcn.1400111a9
nop
lea rdx, [0x14002b1f8]
lea rcx, [rbp + 0x98]
call fcn.1400113bb
nop
jmp 0x14001cf87
lea rax, [rbp + 0x318]
mov qword [rbp + 0x358], rax
lea rax, [rbp + 0x378]
mov qword [rbp + 0x3b8], rax
lea rdx, str.Keys.txt
mov rcx, qword [rbp + 0x358]
call fcn.14001141a
mov qword [rbp + 0x3e8], rax
lea rdx, [rbp + 0x98]
mov rcx, qword [rbp + 0x3b8]
call fcn.14001114a
mov rcx, qword [rbp + 0x3e8]
mov rdx, rcx
mov rcx, rax
call fcn.140011168
nop
mov dword [rbp + 0x3d4], 0
lea rcx, [rbp + 0x98]
call fcn.1400111a9
lea rcx, [rbp + 0x58]
call fcn.140011578
mov eax, dword [rbp + 0x3d4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002ab70]
call fcn.1400117e9
mov eax, edi
mov rcx, qword [rbp + 0x3f0]
xor rcx, rbp
call fcn.140011488
lea rsp, [rbp + 0x408]
pop rdi
pop rbp
ret