joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003b060
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov dword [rsp + 0x70], 0
lea rax, [rsp + 0x68]
mov word [rsp + 0x74], 0x500
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x14003b0f8
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x60]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
cmp eax, 1
sete al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14003d350
add rsp, 0x80
pop rbx
ret
Function at 0x14003b340
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rsi
sub rsp, 0x288
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x14003b373
mov al, 1
jmp 0x14003b501
lea rax, [rsp + 0x48]
mov r9d, 0x20219
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14003b39e
cmp eax, 2
jmp 0x14003b4fe
mov rcx, rsi
mov qword [rsp + 0x280], rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov byte [rsp + 0x40], 0
lea rdi, [rsi + rcx*2]
xor ecx, ecx
cmp rdi, rsi
jbe 0x14003b3dd
cmp word [rdi - 2], 0x5c
je 0x14003b3dd
mov eax, 0x5c
mov byte [rsp + 0x40], 1
mov word [rdi], ax
add rdi, 2
mov word [rdi], cx
lea rax, [rsp + 0x50]
mov dword [rsp + 0x44], 0x104
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
mov qword [rsp + 0x30], rcx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
xor edx, edx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14003b4cb
mov qword [rsp + 0x2b0], rbx
lea rbx, [rsp + 0x60]
sub rbx, rdi
nop dword [rax]
mov edx, 0x208
mov rax, rdi
nop dword [rax + rax]
lea rcx, [rdx + 0x7ffffdf6]
test rcx, rcx
je 0x14003b462
movzx ecx, word [rbx + rax]
test cx, cx
je 0x14003b462
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x14003b440
test rdx, rdx
lea rcx, [rax - 2]
mov rdx, rsi
cmovne rcx, rax
xor eax, eax
mov word [rcx], ax
mov rcx, rbp
call fcn.14003b340
test al, al
je 0x14003b4c3
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
xor eax, eax
mov dword [rsp + 0x44], 0x104
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14003b430
mov rbx, qword [rsp + 0x2b0]
cmp byte [rsp + 0x40], 0
lea rax, [rdi - 2]
cmove rax, rdi
xor ecx, ecx
mov word [rax], cx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rdi, qword [rsp + 0x280]
test eax, eax
sete al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14003d350
add rsp, 0x288
pop rsi
pop rbp
ret
Function at 0x14003d1f0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx], 0
mov rbx, rcx
jne 0x14003d256
mov qword [rcx + 0x58], 0
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0x50], rax
test rax, rax
je 0x14003d256
mov qword [rsp + 0x28], 0
lea r8, [0x14003cda0]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0x3e8
mov qword [rbx], rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.KERNEL32.dll_Sleep]
add rsp, 0x30
pop rbx
ret

Function at 0x14004934c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140049120
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140049120
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140049120
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140049120
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140049120
cmp dword [rcx + 0x84], 0xe
jbe 0x140049120
cmp dword [rcx + 0xf8], esi
je 0x140049120
mov ecx, r14d
call fcn.140049268
mov ecx, 2
call fcn.14004ae44
nop
cmp byte [0x14009b570], 0
jne 0x1400491ea
mov r15d, 1
mov eax, r15d
xchg dword [0x14009b564], eax
test ebx, ebx
jne 0x140049193
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14009b568]
cmp rcx, rax
je 0x14004918a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400020d0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14009b580]
jmp 0x14004919f
cmp ebx, r15d
jne 0x1400491a5
lea rcx, [0x14009b598]
call fcn.14004abdc
nop
test ebx, ebx
jne 0x1400491bc
lea rdx, [0x1400736d8]
lea rcx, [0x1400736b0]
call fcn.140048fe0
lea rdx, [0x1400736e8]
lea rcx, [0x1400736e0]
call fcn.140048fe0
movzx eax, byte [0x14009b570]
test esi, esi
cmove eax, r15d
mov byte [0x14009b570], al
jmp 0x1400491ea
mov ecx, 2
call fcn.14004ae98
test esi, esi
jne 0x140049201
mov ecx, r14d
call fcn.14004921c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400490b0
Function at 0x1400632a0
Capabilities:
Encode data using xor

Disassembly:
movsx r9d, byte [0x140099aa8]
xor r8d, r8d
movd xmm2, r9d
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
test edx, edx
je 0x140063320
cmp edx, 0x20
jb 0x140063303
mov r10d, edx
and r10d, 0xffffffe0
nop dword [rax]
movdqu xmm0, xmmword [r8 + rcx]
lea eax, [r8 + 0x10]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [r8 + rcx], xmm1
add r8d, 0x20
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax + rcx]
pxor xmm1, xmm0
movdqu xmmword [rax + rcx], xmm1
cmp r8d, r10d
jb 0x1400632d0
cmp r8d, edx
jae 0x140063320
mov eax, r8d
add rax, rcx
sub edx, r8d
mov ecx, edx
xor byte [rax], r9b
lea rax, [rax + 1]
sub rcx, 1
jne 0x140063313
ret
Function at 0x14006988c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14006972c
call fcn.14004bf14
mov dword [rax], 0x16
call fcn.140046bf0
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140069714
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140069714
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14006975e
lock or dword [rax + 0x14], 0x10
jmp 0x140069714
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14006977b
mov rcx, qword [rbp + 0x10]
call fcn.140062238
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14005558c
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140069dc4
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1400697d2
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140069714
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14006983e
mov rcx, qword [rbp + 0x10]
call fcn.14005558c
cmp eax, 0xffffffff
je 0x140069825
mov rcx, qword [rbp + 0x10]
call fcn.14005558c
cmp eax, 0xfffffffe
je 0x140069825
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14005558c
movsxd rdi, eax
lea rsi, [0x14009b800]
mov rcx, rbx
sar rdi, 6
call fcn.14005558c
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14006982c
lea rax, [0x140099450]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14006983e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140069874
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140069870
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140069870
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x140069717
jmp 0x1400696e4

Function at 0x14006a44c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14006a46c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004bea4
or eax, 0xffffffff
jmp 0x14006a46e
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001b00
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
lea rbp, [rcx + 2]
mov qword [rsp + 0x20], 4
mov qword [rsp + 0x18], rbp
nop word [rax + rax]
movzx r9d, byte [rbp - 1]
movzx edx, byte [rbp - 2]
movzx ebx, r9b
movzx r8d, byte [rbp]
movzx eax, dl
shr al, 7
movzx r10d, r8b
movzx eax, al
add r10b, r10b
imul eax, eax, 0x1b
add bl, bl
movzx ecx, byte [rbp + 1]
mov byte [rsp], dl
add dl, dl
mov byte [rsp + 0x80], r9b
mov byte [rsp + 0x88], r8b
xor dl, al
mov dword [rsp + 8], eax
movzx eax, dl
movzx esi, dl
shr al, 7
add sil, sil
movzx eax, al
imul eax, eax, 0x1b
xor sil, al
mov dword [rsp + 4], eax
movzx eax, r9b
shr al, 7
movzx eax, al
imul r14d, eax, 0x1b
xor bl, r14b
movzx eax, bl
movzx r9d, bl
shr al, 7
add r9b, r9b
movzx eax, al
imul eax, eax, 0x1b
xor r9b, al
mov dword [rsp + 0xc], eax
movzx eax, r8b
shr al, 7
movzx eax, al
imul r12d, eax, 0x1b
xor r10b, r12b
movzx eax, r10b
movzx r8d, r10b
shr al, 7
xor r10b, dl
movzx eax, al
add r8b, r8b
imul ebp, eax, 0x1b
movzx eax, cl
shr al, 7
add cl, cl
movzx eax, al
imul r13d, eax, 0x1b
xor r8b, bpl
xor cl, r13b
mov dword [rsp + 0x10], r13d
movzx eax, cl
shr al, 7
movzx eax, al
imul r15d, eax, 0x1b
movzx eax, cl
add al, al
xor al, r15b
xor r10b, al
mov byte [rsp + 0x78], al
shr al, 7
xor r10b, r8b
movzx eax, al
xor r10b, r9b
imul edi, eax, 0x1b
xor r10b, sil
movzx eax, r8b
mov byte [rsp + 1], r10b
shr al, 7
movzx eax, al
imul r11d, eax, 0x1b
movzx eax, r9b
shr al, 7
movzx eax, al
imul r10d, eax, 0x1b
movzx eax, sil
xor byte [rsp + 0x78], cl
shr al, 7
movzx eax, al
imul edx, eax, 0x1b
mov r13, qword [rsp + 0x18]
movzx eax, byte [rsp + 1]
xor al, byte [rsp + 0x80]
xor al, byte [rsp]
add al, al
movzx ecx, byte [rsp + 0x78]
xor al, dl
xor cl, r8b
xor al, r10b
mov r8d, dword [rsp + 0xc]
xor al, r11b
xor cl, r9b
xor al, dil
movzx r9d, byte [r13 + 1]
xor al, bpl
xor cl, bl
xor al, r14b
movzx ebx, byte [rsp + 0x88]
xor al, byte [rsp + 4]
xor cl, sil
xor al, byte [rsp + 8]
xor al, byte [r13 + 1]
xor al, byte [rsp + 0x88]
xor al, byte [rsp + 0x80]
movzx esi, byte [rsp + 0x80]
mov byte [r13 - 2], al
movzx eax, cl
xor al, bl
xor cl, r9b
xor al, sil
add al, al
xor al, dl
xor al, r10b
xor al, r11b
xor al, dil
xor al, r15b
xor al, r12b
xor al, r8b
xor al, r14b
mov r14, r13
movzx r14d, byte [rsp]
xor al, r9b
xor al, bl
xor cl, r14b
xor al, r14b
add cl, cl
mov byte [r13 - 1], al
xor cl, dl
mov r13d, dword [rsp + 0x10]
xor cl, r10b
movzx eax, byte [rsp + 1]
xor cl, r11b
xor al, r9b
xor cl, dil
xor al, bl
xor cl, r15b
add al, al
xor cl, r13b
xor al, dl
xor cl, r8b
xor cl, byte [rsp + 8]
xor al, r10b
xor al, r11b
xor al, dil
xor al, r13b
xor al, bpl
mov rbp, qword [rsp + 0x18]
xor al, r12b
xor al, byte [rsp + 4]
xor al, r9b
xor al, sil
xor al, r14b
mov byte [rbp], al
xor cl, bl
xor cl, sil
xor cl, r14b
mov byte [rbp + 1], cl
add rbp, 4
sub qword [rsp + 0x20], 1
mov qword [rsp + 0x18], rbp
jne 0x140001b30
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001d90
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 0x140001dd0
sub r11, 1
jne 0x140001dc0
mov dil, 9
lea rbp, [0x140078050]
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 0x140001e70
inc r8
sub r9, 1
jne 0x140001e60
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 0x140001ec0
sub r9, 1
jne 0x140001eb0
test dil, dil
je 0x140001eec
mov rcx, rbx
call fcn.140001b00
add dil, 0xff
jmp 0x140001df5
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001f10
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 [0x1400c13e0], 0
jne 0x14000210e
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 0x14000211a
nop word [rax + rax]
mov r11, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + r11 + 0x88]
test ecx, ecx
je 0x140001f8d
lea rdx, [r11 + rcx]
mov ecx, dword [r11 + rcx + 0xc]
mov eax, dword [rcx + r11]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x140001f8d
mov eax, dword [rcx + r11 + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x140001f99
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
jne 0x140001f50
test rdx, rdx
je 0x14000211a
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, [0x1400c13e0]
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 0x140002053
mov r9d, r12d
mov r8d, 0xe3ce326b
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 0x140002010
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, 0x1f4
je 0x140002057
test ebx, ebx
jne 0x140001ff0
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 [0x1400c13e0], edx
test eax, eax
je 0x140002100
nop
mov ecx, edx
mov eax, r12d
sub ecx, r8d
cmp ecx, 1
je 0x1400020f5
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 0x1400020e6
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 [0x1400c13e0]
mov ecx, edx
mov eax, r11d
sub ecx, r8d
dec ecx
cmp r11d, ecx
jb 0x140002090
inc r8d
lea eax, [rdx - 1]
cmp r8d, eax
jb 0x140002080
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 0x140005180
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x40af0c5a
call fcn.140002130
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140005500
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xfda9cf03
call fcn.140002130
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140015c00
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400156e0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140015c3f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14005d318]
jmp 0x140015c49
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x140038410
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x14162b058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14162b1df
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 0x14162b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14162b06f
add dl, dl
jne 0x14162b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14162b0f6
xor eax, eax
add dl, dl
jne 0x14162b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14162b1ad
add dl, dl
jne 0x14162b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14162b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14162b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14162b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14162b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14162b07e
mov eax, 1
add dl, dl
jne 0x14162b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14162b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14162b0fb
sub eax, ebx
mov ebx, 1
jne 0x14162b14c
mov ecx, 1
add dl, dl
jne 0x14162b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14162b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14162b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14162b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14162b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14162b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14162b15d
cmp eax, 0x7d00
jae 0x14162b19b
cmp eax, 0x500
jb 0x14162b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14162b07e
cmp eax, 0x7f
ja 0x14162b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14162b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14162b1d2
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 0x14162b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004bc7
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140011fb0
mov r15, qword [0x14001f45c]
cmp r15, 1
jne 0x140004c96
push qword [0x14001f54c]
pop rcx
call fcn.14000d17c
mov r15, rax
and r15, r15
jle 0x140004c2c
mov rcx, qword [0x14001f54c]
call fcn.14000d184
mov rcx, qword [0x14001f54c]
call fcn.14000d198
or rax, rax
je 0x140004c2c
mov rbp, qword [0x14001f554]
push qword [rbp + 0x10]
pop rcx
call fcn.14000d58c
jmp 0x140004c09
push qword [0x14001f53c]
pop rcx
call fcn.14000d17c
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004c96
push 5
push 0
push 1
push qword [0x14001f53c]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140008c40
mov rcx, qword [0x14001f53c]
call fcn.14000d184
mov rcx, qword [0x14001f53c]
call fcn.14000d198
or rax, rax
je 0x140004c96
mov rbp, qword [0x14001f544]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004c73
mov rax, 1
jmp 0x140004ca2
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006178
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001e180]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140020140]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001f588]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x14001f588]
call fcn.140011838
lea rcx, [0x140020140]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 0xb6b5bdff
invalid
invalid
in al, 0xff
out dx, eax
in eax, 0xe5
invalid
in eax, dx
out 0xe6, al
invalid
out 0xff, eax
in al, dx
out 0xe7, eax
invalid
in eax, 0xff
out dx, al
in eax, 0xe5
invalid
in eax, 0xff
out dx, eax
in eax, 0xe5
invalid
in eax, 0xe5
push rax
in eax, 0xff
invalid
in eax, 0xe5
push rdx
in al, 0xe4
in al, 0xe4
push rdx
in al, 0xe4
in al, 0xe4
push rbx
jrcxz 0x14003d63a
jrcxz 0x14003d63a
push rsp
loop 0x14003d63d
push rbp
cmc
loop 0x14003d641
push rsi
loop 0x14003d645
push rsi
loop 0x14003d649
invalid
push rdi
loope 0x14003d64c
mul ecx
loope 0x14003d66b
push rdi
loope 0x14003d650
mul ecx
loope 0x14003d66f
invalid
clc
loope 0x14003d654
invalid