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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1800d0040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1800902bd
xor eax, eax
jmp 0x180090429
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800902f7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1800902f7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x180090429
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18009041c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18009033a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x180090365
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180090421
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1800903d4
sub eax, 1
je 0x1800903d4
cmp eax, 2
jne 0x18009041c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180090421
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180090402
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x18009041c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180090421
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800a9410
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180092360
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800d0040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180092433
cmp byte [rcx + 0x71], 0
je 0x180092433
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18009242f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1800923f4
sub eax, 1
je 0x1800923f8
cmp eax, 2
jne 0x18009242f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800a9410
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180092426
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x18009242f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1800923dc
xor al, al
jmp 0x1800923dc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800a9410
add rsp, 0x60
pop rbx
ret
Function at 0x1800a01d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rax, qword [0x1801fe4c0]
mov rbp, rdx
mov r14, rcx
mov rdx, rcx
mov rbx, qword [rax + 0x4040]
mov rcx, rbx
call fcn.18002e690
add rbx, 0x108
mov edi, eax
mov ecx, dword [rbx]
mov r8d, dword [rbx + 4]
cmp ecx, r8d
jne 0x1800a023d
inc ecx
test r8d, r8d
je 0x1800a0229
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x1800a022e
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.18003c760
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rax, qword [0x1801fe4c0]
mov rcx, qword [rax + 0x4040]
mov rdi, qword [rcx + 0x1b8]
call fcn.18002eb20
xor r8d, r8d
mov edx, eax
mov rcx, rdi
mov esi, eax
call fcn.1800203b0
test eax, eax
jne 0x1800a02a6
movsxd rdx, dword [r14]
lea rcx, [0x1800b8390]
mov rcx, qword [rcx + rdx*8]
mov rdx, rbp
call fcn.180058560
test al, al
je 0x1800a0312
mov r8d, 1
mov edx, esi
mov rcx, rdi
call fcn.1800204c0
jmp 0x1800a0312
mov rdx, rbp
mov qword [rsp + 0x40], r15
lea rcx, [0x1800b2330]
call fcn.180058560
xor r15d, r15d
lea rbx, [0x1800b80f0]
lea rbp, [0x1800b8388]
nop dword [rax + rax]
mov ecx, 0x1b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1800a02e5
mov dword [r14], r15d
jmp 0x1800a02f7
mov ecx, dword [rbx]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1800a0304
mov eax, dword [rbx]
mov dword [r14], eax
xor r8d, r8d
mov edx, esi
mov rcx, rdi
call fcn.1800204c0
add rbx, 4
cmp rbx, rbp
jne 0x1800a02d0
mov r15, qword [rsp + 0x40]
mov rax, qword [0x1801fe4c0]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rcx, qword [rax + 0x4040]
dec dword [rcx + 0x108]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1800aa5b0
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 0x1800aa5ea
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800aa5ef
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 0x1800aa638
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800b1a80]
cmp byte [rcx + rax], 0
je 0x1800aa638
dec r8
sub rdx, 1
jne 0x1800aa61e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001090
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x120
call fcn.1400018ac
lea rcx, [rsp + 0x148]
mov qword [rsp + 0x148], 5
mov rbx, rax
call fcn.140001280
call fcn.1400018ac
movsd xmm0, qword [0x1400204f0]
sub rax, rbx
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm1, qword [0x1400204f8]
comisd xmm0, xmm1
jae 0x140001271
xor ebx, ebx
mov qword [rsp + 0x130], rsi
lea rsi, [0x1400014b0]
mov qword [rsp + 0x138], rdi
lea r9, [rsp + 0x140]
mov dword [rsp + 0x140], ebx
mov edx, 0x2af
mov rcx, rsi
lea r8d, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001136
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error:__d
call fcn.140001030
mov eax, ebx
lea rcx, [rsp + 0x20]
nop dword [rax]
mov byte [rcx], al
lea rcx, [rcx + 1]
inc eax
cmp eax, 0x100
jl 0x140001140
xor r8b, r8b
lea r10, [rsp + 0x20]
mov r9d, ebx
lea rdi, str.xobvrE_x11mb
nop dword [rax]
nop word [rax + rax]
movzx r11d, byte [r10]
mov eax, 0xaaaaaaab
mul r9d
movzx r8d, r8b
mov eax, r9d
shr edx, 3
lea ecx, [rdx + rdx*2]
shl ecx, 2
sub eax, ecx
movsxd rcx, eax
movsx edx, byte [rcx + rdi]
add edx, r11d
add r8d, edx
and r8d, 0x800000ff
jge 0x1400011b1
dec r8d
or r8d, 0xffffff00
inc r8d
movzx ecx, r8b
inc r9d
movzx eax, byte [rsp + rcx + 0x20]
mov byte [r10], al
inc r10
mov byte [rsp + rcx + 0x20], r11b
cmp r9d, 0x100
jl 0x140001170
xor dil, dil
mov r11, rbx
nop word [rax + rax]
lea eax, [rbx + 1]
and eax, 0x800000ff
jge 0x1400011f3
dec eax
or eax, 0xffffff00
inc eax
movsxd rbx, eax
movzx r8d, byte [rsp + rbx + 0x20]
add dil, r8b
movzx ecx, dil
movzx eax, byte [rsp + rcx + 0x20]
mov byte [rsp + rbx + 0x20], al
mov byte [rsp + rcx + 0x20], r8b
movzx eax, byte [rsp + rbx + 0x20]
add r8, rax
movzx eax, r8b
movzx r8d, byte [rsp + rax + 0x20]
xor byte [r11 + rsi], r8b
inc r11
cmp r11, 0x2af
jl 0x1400011e0
mov r8d, dword [rsp + 0x140]
lea r9, [rsp + 0x140]
mov rdi, qword [rsp + 0x138]
mov edx, 0x2af
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call 0x1400014b0
mov rsi, qword [rsp + 0x130]
xor eax, eax
add rsp, 0x120
pop rbx
ret
xor ecx, ecx
call fcn.140006228
int3

Function at 0x140002230
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140006093
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006093
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006093
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006093
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006093
cmp dword [rcx + 0x84], 0xe
jbe 0x140006093
cmp dword [rcx + 0xf8], 0
je 0x140006093
mov ecx, ebx
call fcn.140006144
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140005f20
nop
cmp dword [rbp + 0x20], 0
je 0x1400060e1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400060ec
int3
xor r8d, r8d
xor edx, edx
jmp 0x140006024

Function at 0x14000c9b8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14000c9ce
mov al, 1
jmp 0x14000ca2e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14000c9df
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14000ca2c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000f05c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000ca2c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14000ca2c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000ca2c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14000ca2e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14000e858
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 0x14000e888
xor eax, eax
jmp 0x14000e94b
mov rbp, rbx
cmp word [rax], si
je 0x14000e8ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000e894
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000e890
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.14000e778
movsxd r14, eax
test eax, eax
jne 0x14000e8eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000e881
mov rcx, r14
call fcn.14000aad0
mov rdi, rax
test rax, rax
jne 0x14000e904
xor ecx, ecx
call fcn.140009e58
jmp 0x14000e8e0
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.14000e778
test eax, eax
jne 0x14000e935
mov rcx, rdi
call fcn.140009e58
jmp 0x14000e93f
xor ecx, ecx
call fcn.140009e58
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 0x140013980
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.14000d848
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140013a0a
cmp byte [rbp - 0x21], r15b
je 0x140013a05
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140013a40
call fcn.14000a0a8
test eax, eax
jne 0x140013a2c
cmp byte [rbp - 0x21], r15b
je 0x140013a24
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140013a40
cmp byte [rbp - 0x21], r15b
je 0x140013a3d
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.14000ce28
test eax, eax
jne 0x140013ae0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000d848
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140013a7f
cmp byte [rbp - 0x21], r15b
je 0x140013ab4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140013ab4
call fcn.14000a0a8
test eax, eax
jne 0x140013aa0
cmp byte [rbp - 0x21], r15b
je 0x140013a99
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140013ab4
cmp byte [rbp - 0x21], r15b
je 0x140013ab1
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.14000ce28
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140013ae0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140013ae3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140013af1
mov rcx, rdi
call fcn.140009e58
cmp byte [rbp + 0x3f], r15b
je 0x140013b00
mov rcx, qword [rbp + 0x27]
call fcn.140009e58
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 0x140015dd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015df8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015df8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140006754
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400059a0
xor ebx, ebx
mov rdi, rax
cmp qword [0x14000ee00], rbx
jne 0x14000685a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14000692f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000692f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14000ee00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14000ee08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14000ee10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14000ee20], rax
test rax, rax
je 0x140006851
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14000ee18], rax
jmp 0x140006861
mov rax, qword [0x14000ee18]
jmp 0x140006868
mov rax, qword [0x14000ee18]
mov r11, qword [0x14000ee20]
cmp rax, rdi
je 0x1400068d0
cmp r11, rdi
je 0x1400068d0
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14000ee20]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1400068d0
test rax, rax
je 0x1400068d0
call rsi
test rax, rax
je 0x1400068ca
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400068ca
test byte [rsp + 0x38], 1
jne 0x1400068d0
bts ebp, 0x15
jmp 0x14000690e
mov rcx, qword [0x14000ee08]
cmp rcx, rdi
je 0x14000690e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000690e
call rax
mov rbx, rax
test rax, rax
je 0x14000690e
mov rcx, qword [0x14000ee10]
cmp rcx, rdi
je 0x14000690e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000690e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14000ee00]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000692f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140006931
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140004c80
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140028040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140004d3e
mov qword [rsp + 0x170], rbx
lea rcx, [rsp + 0x4c]
mov r8, rsi
sub r8, rcx
nop dword [rax]
movzx edx, byte [rcx]
movzx eax, byte [rcx + r8]
sub edx, eax
jne 0x140004cf3
inc rcx
test eax, eax
jne 0x140004ce0
test edx, edx
jne 0x140004d24
mov r8d, dword [rsp + 0x28]
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140004d24
mov edx, 9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140004cd2
mov rbx, qword [rsp + 0x170]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14001ada0
mov rsi, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
Function at 0x140005480
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x140028040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
mov rsi, rdx
mov ecx, 0x68
call fcn.14001b064
mov r14, rax
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [r14], 0x68
lea rdi, [rsp + 0x50]
mov ecx, 0x18
xor r9d, r9d
rep stosb byte [rdi], al
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rdx, rsi
xor eax, eax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140005522
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x50]
jmp 0x140005540
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.__X__Failed_to_create_process._n
call fcn.140011850
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001ada0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret
Function at 0x140005be0
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140028040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebx, ecx
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor edi, edi
mov word [rsp + 0x22], bx
mov word [rsp + 0x20], di
mov rcx, rax
mov ebx, dword [rsp + 0x20]
mov rsi, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea rdx, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx ebp, word [rsp + 0x30]
mov eax, 0xfff0
movzx edx, bp
mov rcx, rsi
and dx, ax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp di, word [rsp + 0x36]
jge 0x140005c7e
nop dword [rax]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x14001ed00]
call fcn.140011850
movsx eax, word [rsp + 0x36]
inc edi
cmp edi, eax
jl 0x140005c60
movzx edx, bp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001ada0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x14000aaf0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14000ab11
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000ab3e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000ab40
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000ab99
test ecx, ecx
jle 0x14000ab79
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000ab99
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000ab99
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
xlatb
invalid