joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430400
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r13, rcx
mov rbp, rdx
mov rsi, r8
mov rdi, r9
call fcn.0042eb70
test rax, rax
mov rbx, rax
je 0x430611
test r13, r13
je 0x43043b
mov rax, qword [rax + 0x1d8]
mov qword [r13], rax
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rbx + 8], rdi
mov rdi, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
mov esi, 1
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0x44], 1
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r12
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call rdi
test rax, rax
mov qword [rbx + 0x30], rax
jne 0x4304b0
cmp esi, 1
je 0x4304a1
mov ecx, 0x14
call r14
cmp esi, 5
je 0x4304b0
add esi, 1
jmp 0x430472
xor ecx, ecx
call r12
jmp 0x43049c
lea rdi, [rbx + 0x68]
mov qword [rbx + 0x38], 0xffffffffffffffff
mov rcx, rdi
call fcn.0042ec30
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x4305f2
test rbp, rbp
je 0x430660
mov eax, dword [rbp]
mov rsi, qword [rbp + 0x10]
test al, 8
mov dword [rbx + 0x44], eax
jne 0x430640
mov eax, dword [rbp + 0x18]
mov edx, esi
mov dword [rbx + 0xc0], eax
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, rbx
lea r8, [0x0042f1f0]
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x4305c2
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jl 0x430572
cmp eax, 0xffffffff
mov edx, 0xfffffffe
jl 0x430572
cmp eax, 0xe
mov edx, 0xf
jg 0x430572
cmp eax, 2
mov edx, 2
cmovle edx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
je 0x430625
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x4305d1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call fcn.0042e4d0
mov rcx, rdi
call fcn.0042ec30
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x28], 0
test r13, r13
je 0x4305ff
mov qword [r13], 0
cmp qword [rbx + 0x1d0], 0
jne 0x430611
mov rcx, rbx
call fcn.0042ea10
mov eax, 0xb
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x4305a9
call fcn.0042ed80
mov eax, dword [rax + 0xc0]
mov edx, esi
mov dword [rbx + 0xc0], eax
jmp 0x43050f
xor edx, edx
jmp 0x43050f
Function at 0x432fe0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x0044daa4]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x433100
mov rax, qword [0x0044daa8]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x43302c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x4330e6
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x433010
mov rcx, rsi
call fcn.00433c20
test rax, rax
mov r12, rax
je 0x433138
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x0044daa8]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.00433d70
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x0044daa8]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x43311b
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4330df
sub eax, 0x40
and eax, 0xffffffbf
je 0x4330df
add rbx, qword [0x0044daa8]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x433107
add dword [0x0044daa4], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebx, ebx
jmp 0x433037
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00432f70
mov rax, qword [0x0044daa8]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.00432f70
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.00432f70
nop
nop dword [rax + rax]

Function at 0x433890
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0044dd80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0044dd60]
test rbx, rbx
je 0x4338e4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4338db
test rsi, rsi
je 0x4338db
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4338c0
lea rcx, [0x0044dd80]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x433c20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00443b30]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x433c40
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.00433b00
test eax, eax
je 0x433c38
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x433c9d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x433c94
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x433c38
add rdx, 0x28
cmp rdx, r9
jne 0x433c80
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x4340a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sub.msvcrt.dll__errno
test rbx, rbx
mov dword [rax], 0
je 0x43422c
cmp byte [rbx], 0
je 0x4341f4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x434210
test al, 0x10
je 0x4341f4
lea rdi, [rsp + 0x20]
mov r8d, 0x104
mov rdx, rbx
mov rcx, rdi
mov rsi, rdi
call sub.msvcrt.dll__fullpath
mov edx, dword [rsi]
add rsi, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x4340fe
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [rsi + 2]
mov ecx, eax
cmove rsi, rdx
add cl, al
sbb rsi, 3
sub rsi, rdi
lea rcx, [rsi + 0x24b]
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x43421f
lea r9, [rax + 0x244]
lea rbp, [rsi + 1]
mov rdx, rdi
mov rcx, r9
mov r8, rbp
call sub.msvcrt.dll_memcpy
cmp byte [rbx + 0x244], 0
mov r9, rax
je 0x434190
movzx eax, byte [rbx + rsi + 0x243]
cmp al, 0x2f
je 0x434190
cmp al, 0x5c
je 0x434190
mov r8d, 0x5c
mov word [r9 + rsi], r8w
mov rsi, rbp
mov eax, 0x2a
xor edx, edx
xor ecx, ecx
mov word [r9 + rsi], ax
mov word [rbx + 0x12c], dx
lea rdx, [rbx + 0x130]
mov word [rbx + 0x12e], cx
xor eax, eax
mov ecx, 0x20
mov rdi, rdx
mov qword [rbx + 0x238], 0xffffffffffffffff
mov dword [rbx + 0x240], 0
mov dword [rbx + 0x128], 0
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
call sub.msvcrt.dll__errno
mov dword [rax], 0x14
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x4341e5
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x4341e5
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
jmp 0x4341e5
Function at 0x140982058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409821df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140982089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14098206f
add dl, dl
jne 0x140982096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409820f6
xor eax, eax
add dl, dl
jne 0x1409820a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409821ad
add dl, dl
jne 0x1409820b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409820c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409820d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409820dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409820ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14098207e
mov eax, 1
add dl, dl
jne 0x140982106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140982113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409820fb
sub eax, ebx
mov ebx, 1
jne 0x14098214c
mov ecx, 1
add dl, dl
jne 0x14098212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14098213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140982123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14098207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140982168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140982175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14098215d
cmp eax, 0x7d00
jae 0x14098219b
cmp eax, 0x500
jb 0x140982196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14098207e
cmp eax, 0x7f
ja 0x14098219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14098207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409821d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14098207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001046
Capabilities:
Set socket configuration

Disassembly:
jmp 0x180090040
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rdi, r8
mov rcx, qword [r8 + 0x70]
mov rbx, rdx
cmp rcx, 0xffffffffffffffff
jne 0x1800900c5
mov eax, dword [rdx + 0x58]
bt eax, 0xb
jae 0x180090140
mov ecx, eax
btr ecx, 0xb
sub dword [rdx + 0x7c], 1
mov dword [rdx + 0x58], ecx
jne 0x18009009a
test cl, 1
jne 0x18009009a
test al, 0x40
je 0x18009009a
and eax, 0xfffff7bf
mov dword [rdx + 0x58], eax
test al, 0x20
je 0x18009009a
mov rax, qword [rdx + 8]
dec dword [rax + 8]
cmp qword [rdx + 0x100], 0
je 0x180090140
mov ecx, dword [r8 + 0x40]
call fcn.180004205
mov ecx, eax
call fcn.180001f37
mov edx, eax
mov rcx, rbx
call qword [rbx + 0x100]
jmp 0x180090140
cmp dword [r8 + 0x40], 0
jl 0x18009011a
lea r9, [rdx + 0x110]
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x700b
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x18009011a
mov rax, qword [rbx + 0x130]
mov qword [rdi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rdi
test rax, rax
je 0x180090140
xor edx, edx
mov rcx, rbx
call rax
jmp 0x180090140
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x70], 0xffffffffffffffff
test dword [rbx + 0x58], 0x800
je 0x180090140
mov rdx, rdi
mov rcx, rbx
call fcn.180091920
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x180090169
test ecx, ecx
jne 0x180090169
test al, 8
jne 0x180090169
or eax, 8
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1800012ad
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1800b4e20
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x1800b4e47
sub r10, rcx
nop
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
xor dl, al
or r9b, dl
sub r8, 1
jne 0x1800b4e30
movzx eax, r9b
dec eax
sar eax, 8
and eax, 1
dec eax
ret

Function at 0x1800012f8
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1800b4620
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov qword [0x18012d858], rax
cmp rax, 0x10
jb 0x1800b4658
mov edx, select
lea rcx, [0x18012d860]
call fcn.18000179e
xor eax, eax
add rsp, 0x58
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3

Function at 0x180001398
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x180096ef0
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
mov edx, 0xfffff027
cmp eax, 0xffffffff
mov dword [rbx], eax
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x1800017b2
Capabilities:
Create pipe

Disassembly:
jmp 0x18009cee0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12, qword [rsp + 0x90]
mov rsi, rdx
mov r15d, r8d
mov r14, rdx
mov r13, rcx
mov r8, r12
mov rcx, rsi
mov rdx, r9
mov rbp, r9
call fcn.18009d070
xor eax, eax
or r15d, 0x40080000
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], eax
mov edx, r15d
mov dword [rsp + 0x28], 0x10000
mov rcx, rbp
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18009cfbc
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xe7
je 0x18009cf74
cmp eax, 5
jne 0x18009cfdc
inc rsi
mov r8, r12
mov rcx, rsi
mov rdx, rbp
call fcn.18009d070
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov edx, r15d
mov dword [rsp + 0x30], eax
mov rcx, rbp
mov dword [rsp + 0x28], 0x10000
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18009cf60
mov rdx, qword [r13 + 0x38]
xor r9d, r9d
mov r8, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
jne 0x18009cfef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rdi, 0xffffffffffffffff
je 0x18009cfeb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x18009d000
mov rcx, r14
call fcn.18009aa40
xor eax, eax
mov qword [r14 + 0x118], rdi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800017f8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1800b5230
lea rax, [rdx + 4]
sub rcx, rdx
mov edx, 2
xorps xmm4, xmm4
xorps xmm3, xmm3
movd xmm2, dword [rcx + rax - 4]
xorps xmm0, xmm0
movd xmm1, dword [rax - 4]
lea rax, [rax + 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [rax - 8]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [rcx + rax - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
sub rdx, 1
jne 0x1800b5242
por xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd eax, xmm3
dec eax
shr eax, 8
and eax, 1
dec eax
ret

Function at 0x180001cc1
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x180096fa0
sub rsp, 0x28
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x180096fb7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
add rsp, 0x28
ret

Function at 0x180001dfc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1800cb9b0
lea rax, [rdx + 4]
sub rcx, rdx
mov edx, 4
xorps xmm4, xmm4
xorps xmm3, xmm3
movd xmm2, dword [rcx + rax - 4]
xorps xmm0, xmm0
movd xmm1, dword [rax - 4]
lea rax, [rax + 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [rax - 8]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [rcx + rax - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
sub rdx, 1
jne 0x1800cb9c2
por xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd eax, xmm3
dec eax
shr eax, 8
and eax, 1
dec eax
ret

Function at 0x180002225
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x1800cc9b0
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x1800cca3d
movsxd rcx, dword [0x18000003c]
lea rdx, [0x180000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1800cca3d
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800cca3d
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1800cca24
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1800cca1e
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1800cca26
add rdx, 0x28
jmp 0x1800cca03
xor edx, edx
test rdx, rdx
jne 0x1800cca2f
xor al, al
jmp 0x1800cca43
cmp dword [rdx + 0x24], 0
jge 0x1800cca39
xor al, al
jmp 0x1800cca43
mov al, 1
jmp 0x1800cca43
xor al, al
jmp 0x1800cca43
add rsp, 0x18
ret

Function at 0x1800022de
Capabilities:
Write file on windows

Disassembly:
jmp 0x18009b980
cmp dword [r8 + 0x110], 0
jne 0x18009b990
mov eax, 0x2726
ret
jmp fcn.18009b9a0
Function at 0x1800026df
Capabilities:
Read file on windows

Disassembly:
jmp 0x1800a7260
push rbx
push rbp
sub rsp, 0x58
mov rbx, rcx
mov ecx, dword [rcx + 0x150]
mov rbp, qword [rbx + 0x180]
cmp ecx, 0xffffffff
jne 0x1800a7298
mov dword [rbx + 0x14c], 6
mov qword [rbx + 0x88], 0xfffffffffffff00d
add rsp, 0x58
pop rbp
pop rbx
ret
mov qword [rsp + 0x50], r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x1800a72d4
lea ecx, [rax + 7]
mov dword [rbx + 0x14c], 6
call fcn.180001f37
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
mov r15, qword [rsp + 0x50]
add rsp, 0x58
pop rbp
pop rbx
ret
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rdi
xor edi, edi
mov qword [rsp + 0x88], r14
cmp rbp, 0xffffffffffffffff
je 0x1800a7305
xorps xmm0, xmm0
lea r14, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
jmp 0x1800a7308
mov r14, rdi
mov esi, edi
nop word [rax + rax]
cmp rbp, 0xffffffffffffffff
je 0x1800a7327
mov eax, esi
add rax, rbp
mov dword [rsp + 0x40], eax
shr rax, 0x20
mov dword [rsp + 0x44], eax
mov rax, qword [rbx + 0x178]
lea r9, [rsp + 0x70]
mov ecx, edi
add rcx, rcx
mov qword [rsp + 0x20], r14
mov r8d, dword [rax + rcx*8]
mov rdx, qword [rax + rcx*8 + 8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
add esi, dword [rsp + 0x70]
inc edi
test eax, eax
je 0x1800a738b
cmp edi, dword [rbx + 0x170]
jb 0x1800a7310
mov eax, esi
mov qword [rbx + 0x88], rax
mov r14, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov r15, qword [rsp + 0x50]
add rsp, 0x58
pop rbp
pop rbx
ret
test esi, esi
jne 0x1800a7361
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x1800a7361
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.180001f37
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
jmp 0x1800a736a

Function at 0x180002798
Capabilities:
Enumerate processes

Disassembly:
jmp 0x1800949b0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x180118258]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov esi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rsi + 3]
mov edi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x180094a24
cmp dword [rsp + 0x28], edi
je 0x180094a20
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x180094a07
jmp 0x180094a24
mov esi, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180002752
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x180002982
Capabilities:
Terminate process

Disassembly:
jmp 0x1800a55d0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor eax, eax
mov rsi, rdx
mov qword [rsp + 0x30], rax
mov edi, ecx
mov dword [rsp + 0x28], eax
mov r8d, ecx
mov qword [rsp + 0x58], rax
mov r9d, 0x400
lea rax, [rsp + 0x58]
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rax, qword [rsp + 0x58]
lea rbx, str.Unknown_error
test rax, rax
mov ecx, 2
cmovne rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
test rsi, rsi
je 0x1800a5653
mov r9d, edi
mov qword [rsp + 0x20], rbx
mov r8, rsi
lea rdx, str._s:___d___s
call fcn.180003b43
jmp 0x1800a5665
mov r9, rbx
lea rdx, str.__d___s
mov r8d, edi
call fcn.180003b43
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1800a5675
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x180002b2b
Capabilities:
Terminate process

Disassembly:
jmp 0x1800cd484
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x180002c3e
Capabilities:
Get common file path
Get session user name

Disassembly:
jmp 0x180092eb0
push rbx
sub rsp, 0x460
mov rax, qword [0x180118258]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
test rcx, rcx
jne 0x180092edd
mov eax, 0xfffff019
jmp 0x180093007
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x28]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x180092f0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180001f37
jmp 0x180093007
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x240]
mov dword [rsp + 0x20], 0x208
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x180092f54
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x28]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x7a
je 0x180092f8a
mov ecx, ebx
call fcn.180001f37
jmp 0x180093007
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x202
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x180092f91
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180092f00
mov eax, 0xfffff027
jmp 0x180093007
lea rdx, [rbx + 0x18]
mov qword [rsp + 0x480], rdi
lea rcx, [rsp + 0x240]
mov qword [rbx + 0x18], 0
call fcn.1800029d2
test eax, eax
jne 0x180092fff
mov rdx, rbx
mov qword [rsp + 0x478], rsi
lea rcx, [rsp + 0x30]
mov qword [rbx], 0
call fcn.1800029d2
mov esi, eax
test eax, eax
je 0x180092fe5
mov rcx, qword [rbx + 0x18]
call fcn.180003bf2
mov eax, esi
jmp 0x180092ff7
mov qword [rbx + 0x10], 0
xor eax, eax
mov qword [rbx + 8], 0xffffffffffffffff
mov rsi, qword [rsp + 0x478]
mov rdi, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.180002752
add rsp, 0x460
pop rbx
ret