joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013240
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140030fd8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140013284
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400132ea
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140013321
test eax, eax
js 0x1400132fb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140013314
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14000bf50
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140004380
mov ecx, 7
int 0x29
ud2
Function at 0x140015f70
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1400160c3
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x140015fa7
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140016088
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1400160a6
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140016009
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x14001603b
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x14001603f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x140016043
cmp eax, 0x6d
jne 0x14001606e
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x140016048
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x140016074
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.140003d80
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x14001607e
cmp rax, 1
je 0x140015ff2
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x140015ffc
mov r8d, 0x10
mov rcx, rbx
call fcn.14002c8d0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x140015fb4
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.14002c8d0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x140015fb4
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14002c7c0
int3
Function at 0x14001ae20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.14001d220

Function at 0x14001bd60
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 0x14001bda3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.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, [0x14000a320]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syspalwindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14002d2a0
ud2
Function at 0x14002ab90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14002ac0a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14002ac00
cmp r11, r10
ja 0x14002ac95
cmp r10, rdx
ja 0x14002aca7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14002ac02
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14002abe0
jmp 0x14002ac77
ja 0x14002ac0a
mov r11, r10
cmp rax, r8
jne 0x14002abb2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14002ac7b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14002ac50
mov r8, r10
sub ecx, r9d
jns 0x14002ac6e
jmp 0x14002ac7d
cmp r10, rdx
je 0x14002ac89
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002ac7d
xor al, 1
cmp r8, rdx
jne 0x14002ac30
jmp 0x14002ac7d
xor eax, eax
jmp 0x14002ac7d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14002d210
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14002d840
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14002d7c0
int3

Function at 0x14002c240
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140017850], eax
call fcn.14000d7d0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140017850], 0
jne case.default.0x14000dada
mov ecx, 1
call fcn.14000d7d0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
adc ecx, dword [rdi + rbx*2 - 0x28247432]
invalid
Function at 0x1400012e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x180
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], dil
jne 0x140001320
xor r9d, r9d
mov rcx, qword [0x14002ad88]
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [0x140025670]
mov rcx, qword [0x14002ad88]
call qword [sym.imp.WS2_32.dll_send]
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x60]
call fcn.14001b610
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], send
mov byte [rsi], dil
mov dword [rsp + 0x30], 1
lea rdx, [0x140025674]
mov rcx, rbx
call fcn.140009384
mov rbp, rax
test rax, rax
je 0x140001470
mov rcx, rax
call fcn.14000b534
test eax, eax
jne 0x140001442
nop
mov r8, rbp
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.14000b52c
test rax, rax
je 0x140001432
lea rax, [rsp + 0x60]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400013d3
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rbx, rax
ja 0x14000141d
lea rax, [rcx + rbx]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0xf
jbe 0x140001403
mov rax, qword [rsi]
lea rdi, [rax + rcx]
mov r8, rbx
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.14001b9d0
mov byte [rdi + rbx], 0
jmp 0x140001432
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x60]
mov rdx, rbx
mov rcx, rsi
call fcn.140002000
mov rcx, rbp
call fcn.14000b534
test eax, eax
je 0x1400013b0
mov rcx, rbp
call fcn.1400092ac
mov rax, rsi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400022b0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x180
pop rdi
pop rsi
pop rbp
ret
lea rdx, str._popen___failed_
lea rcx, [rsp + 0x40]
call fcn.140001230
lea rdx, [0x140027ca8]
lea rcx, [rsp + 0x40]
call fcn.140003ef4
int3
Function at 0x140002d28
Capabilities:
Parse pe header

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

Function at 0x14000c720
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000c51c
Function at 0x140012b90
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140012bc0
xor eax, eax
jmp 0x140012c83
mov rbp, rbx
cmp word [rax], si
je 0x140012be5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140012bcc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140012bc8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140012ab0
movsxd r14, eax
test eax, eax
jne 0x140012c23
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140012bb9
mov rcx, r14
call fcn.14000f510
mov rdi, rax
test rax, rax
jne 0x140012c3c
xor ecx, ecx
call fcn.14000d1d8
jmp 0x140012c18
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140012ab0
test eax, eax
jne 0x140012c6d
mov rcx, rdi
call fcn.14000d1d8
jmp 0x140012c77
xor ecx, ecx
call fcn.14000d1d8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400172dc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400172f2
mov al, 1
jmp 0x140017352
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140017303
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140017350
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400135f8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140017350
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140017350
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140017350
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140017352
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400183d8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000e3ec
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140018462
cmp byte [rbp - 0x21], r15b
je 0x14001845d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140018498
call fcn.14000d428
test eax, eax
jne 0x140018484
cmp byte [rbp - 0x21], r15b
je 0x14001847c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140018498
cmp byte [rbp - 0x21], r15b
je 0x140018495
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000e270
test eax, eax
jne 0x140018538
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000e3ec
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400184d7
cmp byte [rbp - 0x21], r15b
je 0x14001850c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001850c
call fcn.14000d428
test eax, eax
jne 0x1400184f8
cmp byte [rbp - 0x21], r15b
je 0x1400184f1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001850c
cmp byte [rbp - 0x21], r15b
je 0x140018509
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000e270
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140018538
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001853b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140018549
mov rcx, rdi
call fcn.14000d1d8
cmp byte [rbp + 0x3f], r15b
je 0x140018558
mov rcx, qword [rbp + 0x27]
call fcn.14000d1d8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400188c0
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, [0x14002a6b0]
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 0x140018917
cmp word [rdx], r13w
jne 0x140018917
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001891c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140018a41
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140018a62
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140018955
mov rdx, r9
mov word [rbx], cx
jmp 0x14001897c
cmp r9, r8
jae 0x14001898c
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 0x140018936
jmp 0x140018a41
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 0x140018a36
cmp dword [rsp + 0x80], esi
je 0x140018a36
lea r8, [0x14002a6b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140018a0e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400189de
mov word [rbx], r13w
jmp 0x140018a3e
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 0x1400189eb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140018a3e
cmp word [rsp + 0x70], r13w
jne 0x140018a1b
cmp rbx, r14
je 0x1400189d8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400187e0
cmp word [rsp + 0x70], r13w
je 0x140018a41
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, [0x14002a6b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140018a3b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140018a41
Function at 0x14001b170
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001b198
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001b198
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003d14
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 0x140003d4e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140003d53
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 0x140003d9c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140006440]
cmp byte [rcx + rax], 0
je 0x140003d9c
dec r8
sub rdx, 1
jne 0x140003d82
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140004c3c
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x1400bdc1d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400bdc2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400bdc15
lea eax, [rcx + 1]
jmp 0x1400bdc3b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400bdc4e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400bdc34
sub eax, 3
jb 0x1400bdc6e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400bdcbd
sar eax, 1
movsxd rbp, eax
jb 0x1400bdca4
jmp 0x1400bdc7c
add ebx, ebx
jne 0x1400bdc7a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400bdca4
inc ecx
add ebx, ebx
jne 0x1400bdc8a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400bdca4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400bdc9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400bdc8c
add ecx, 2
jmp 0x1400bdca9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400bdbd2
jmp 0x1400bdc1d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x29c00
mov dl, 9
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400bdd09
cmp rsi, rcx
jae 0x1400bdd11
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400bdcf0
cmp al, 0x8f
ja 0x1400bdcf0
cmp byte [rsi - 2], 0xf
je 0x1400bdcf6
sub al, 0xe8
cmp al, 1
ja 0x1400bdcda
cmp rsi, rcx
jae 0x1400bdd11
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400bdce0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400bdd11
lodsb al, byte [rsi]
jmp 0x1400bdcf0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xba000]
mov eax, dword [rdi]
or eax, eax
je 0x1400bdd7a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xca7a0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400bdd1e
jns 0x1400bdd53
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1400bdd5d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400bdd74
mov qword [rbx], rax
add rbx, 8
jmp 0x1400bdd3e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400bddb4
cmp al, 0xef
ja 0x1400bdda6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400bdd86
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400bdd95
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400bde08
sub rsp, 0xffffffffffffff80
jmp 0x1400234e4
Function at 0x140004e88
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rbx, rcx
xor edi, edi
lea r8, [rbp + 0x30]
lea rdx, [rbp + 0x28]
call fcn.140001184
mov r14d, dword [rbp + 0x30]
cmp dword [rbp + 0x28], r14d
je 0x140005004
and qword [rbp + 0x38], rdi
and qword [rbp + 0x30], rdi
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
lea r8, [rbp + 0x38]
lea rdx, [0x1400b6a08]
mov rax, qword [rax]
call qword [str._E_t_]
test eax, eax
jne 0x140005015
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
lea r9, [rbp + 0x30]
mov r8d, r14d
mov edx, dword [rbp + 0x28]
mov rax, qword [rax + 0xc0]
call qword [str._E_t_]
test eax, eax
jne 0x140005015
lea edx, [rdi + 4]
mov rcx, qword [rbp + 0x30]
call fcn.140061474
test eax, eax
je 0x140004fd6
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x140004f3f
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
and qword [rbp + 0x30], 0
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
lea r9, [rbp + 0x30]
mov r8d, r14d
mov edx, dword [rbp + 0x28]
mov rax, qword [rax + 0xc0]
call qword [str._E_t_]
test eax, eax
jne 0x140005015
lea rdx, [0x14003e1e0]
mov rcx, qword [rbp + 0x30]
call fcn.14006139c
test eax, eax
je 0x140004fd6
mov rcx, qword [rbp + 0x38]
mov qword [rbp - 0x10], rcx
test rcx, rcx
je 0x140004f98
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_t_]
mov r9d, r14d
mov r8d, dword [rbp + 0x28]
lea rdx, [rbp - 0x10]
mov rcx, rbx
call fcn.140004afc
test eax, eax
jne 0x140004fd6
lea ecx, [rax + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
nop dword [rax + rax]
shr eax, 0xf
not al
mov edi, 1
and al, dil
mov dl, al
mov rcx, rbx
call fcn.140005734
nop
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x140004fed
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
nop
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140005004
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
nop
mov rax, rdi
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x14000502c
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
nop
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140005043
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
nop
xor eax, eax
jmp 0x140005007