joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001cfb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001d02a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001d020
cmp r11, r10
ja 0x14001d0c3
cmp r10, rdx
ja 0x14001d0d7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001d022
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001d000
jmp 0x14001d097
ja 0x14001d02a
mov r11, r10
cmp rax, r8
jne 0x14001cfd2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001d09b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001d070
mov r8, r10
sub ecx, r9d
jns 0x14001d08e
jmp 0x14001d09d
cmp r10, rdx
je 0x14001d0a9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001d09d
xor al, 1
cmp r8, rdx
jne 0x14001d050
jmp 0x14001d09d
xor eax, eax
jmp 0x14001d09d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001ff90
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140020460
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400203e0
ud2

Function at 0x14001ee20
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001ee6a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001ee6a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001ee6a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001ee6a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001ee6a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001ee6c
xor al, al
add rsp, 0x28
ret
Function at 0x401980
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call sub.msvcrt.dll_getenv
test rax, rax
je 0x4019a2
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.00401840
add rsp, 0x20
pop rbx
ret
Function at 0x4033cc
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x180
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x110], rcx
mov qword [rbp + 0x118], rdx
mov qword [rbp + 0x120], r8
mov dword [rbp + 0x128], r9d
mov qword [rbp + 0xf8], 0xffffffffffffffff
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
mov dword [rbp + 0xe4], eax
mov edx, 0
mov rcx, qword [rbp + 0x110]
mov rax, qword [sym.imp.msvcrt.dll__open]
call rax
mov dword [rbp + 0xe0], eax
cmp dword [rbp + 0xe0], 0
js 0x403665
lea rdx, [rbp - 0x40]
mov eax, dword [rbp + 0xe0]
mov r8d, 0x108
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__read]
call rax
mov dword [rbp + 0xdc], eax
mov eax, dword [rbp + 0xe0]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__close]
call rax
cmp dword [rbp + 0xdc], 3
jle 0x403665
mov eax, dword [rbp + 0xdc]
cdqe
mov byte [rbp + rax - 0x40], 0
lea rax, [rbp - 0x40]
mov edx, 0xa
mov rcx, rax
call sub.msvcrt.dll_strchr
mov qword [rbp + 0xf0], rax
cmp qword [rbp + 0xf0], 0
je 0x403665
lea rax, [rbp - 0x40]
mov r8d, 2
lea rdx, [0x0040e3b5]
mov rcx, rax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x403665
mov rax, qword [rbp + 0xf0]
mov byte [rax], 0
sub qword [rbp + 0xf0], 1
mov rax, qword [rbp + 0xf0]
movzx eax, byte [rax]
cmp al, 0xd
je 0x4034cf
mov rax, qword [rbp + 0xf0]
movzx eax, byte [rax]
cmp al, 0x20
je 0x4034cf
mov rax, qword [rbp + 0xf0]
movzx eax, byte [rax]
cmp al, 9
je 0x4034cf
lea rax, [rbp - 0x40]
add rax, 2
mov qword [rbp + 0xe8], rax
jmp 0x403524
add qword [rbp + 0xe8], 1
mov rax, qword [rbp + 0xe8]
movzx eax, byte [rax]
cmp al, 0x20
je 0x40351c
mov rax, qword [rbp + 0xe8]
movzx eax, byte [rax]
cmp al, 9
je 0x40351c
mov rax, qword [rbp + 0xe8]
mov rcx, rax
call fcn.00402800
mov rax, qword [rbp + 0x118]
mov rcx, rax
call fcn.0040291d
add eax, 1
mov dword [rbp + 0xd8], eax
mov eax, dword [rbp + 0xd8]
add eax, 1
cdqe
shl rax, 3
mov rcx, rax
call fcn.00404136
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp + 0xd0]
mov rdx, qword [rbp + 0xe8]
mov qword [rax], rdx
mov eax, dword [rbp + 0xd8]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0xd0]
lea rcx, [rax + 8]
mov rax, qword [rbp + 0x118]
mov r8, rdx
mov rdx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0xe8]
mov edx, 0x5c
mov rcx, rax
call sub.msvcrt.dll_strrchr
add rax, 1
mov qword [rbp + 0x110], rax
cmp qword [rbp + 0x110], 0
jne 0x403608
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x110], rax
mov rcx, qword [rbp + 0x120]
mov rdx, qword [rbp + 0x118]
mov rax, qword [rbp + 0x138]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x130]
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0x128]
mov dword [rsp + 0x20], eax
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, qword [rbp + 0x110]
call fcn.00403126
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sub.msvcrt.dll_free
cmp qword [rbp + 0xf8], 0xffffffffffffffff
jne 0x403683
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov rdx, rax
mov eax, dword [rbp + 0xe4]
mov dword [rdx], eax
mov rax, qword [rbp + 0xf8]
add rsp, 0x180
pop rbp
ret
Function at 0x4054a8
Capabilities:
Delete file

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x18]
test eax, eax
js 0x4054e6
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x18]
test eax, eax
je 0x4054e6
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x80]
mov rax, qword [rax + 0x18]
mov rdx, qword [rbp + 0x10]
mov edx, dword [rdx + 0x18]
mov rcx, qword [rbp + 0x10]
call rax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x2c]
test eax, eax
js 0x405518
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x2c]
test eax, eax
je 0x405518
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x80]
mov rax, qword [rax + 0x18]
mov rdx, qword [rbp + 0x10]
mov edx, dword [rdx + 0x2c]
mov rcx, qword [rbp + 0x10]
call rax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x60]
test rax, rax
je 0x405535
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x60]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x68]
test rax, rax
je 0x405552
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x68]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x40558c
mov rax, qword [rbp + 0x10]
mov eax, dword [rax]
and eax, 0xfffffffe
mov edx, eax
mov rax, qword [rbp + 0x10]
mov dword [rax], edx
lea rdx, [rbp - 0x14]
lea rax, [rbp - 0x10]
mov r9, rdx
mov r8, rax
mov edx, 1
mov rcx, qword [rbp + 0x10]
call fcn.0040518f
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x28]
test eax, eax
je 0x4055a7
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x20]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x38]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x40]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x48]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x70]
test eax, eax
jle 0x40564b
mov dword [rbp - 4], 0
jmp 0x40562f
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x78]
mov edx, dword [rbp - 4]
movsxd rdx, edx
shl rdx, 3
add rax, rdx
mov rax, qword [rax]
mov rcx, rax
call sub.msvcrt.dll_remove
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x78]
mov edx, dword [rbp - 4]
movsxd rdx, edx
shl rdx, 3
add rax, rdx
mov rax, qword [rax]
mov rcx, rax
call sub.msvcrt.dll_free
add dword [rbp - 4], 1
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x70]
cmp dword [rbp - 4], eax
jl 0x4055eb
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x78]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x80]
mov rax, qword [rax + 0x40]
test rax, rax
je 0x405674
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x80]
mov rax, qword [rax + 0x40]
mov rcx, qword [rbp + 0x10]
call rax
mov rcx, qword [rbp + 0x10]
call sub.msvcrt.dll_free
nop
add rsp, 0x40
pop rbp
ret
Function at 0x405a50
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [0x00412110]
test rax, rax
jne 0x405ae8
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x405ac9
mov eax, dword [rbp - 4]
mov rcx, rax
call fcn.00404136
mov qword [0x00412110], rax
mov rdx, qword [0x00412110]
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
test eax, eax
jne 0x405ac9
mov rax, qword [0x00412110]
mov rcx, rax
call sub.msvcrt.dll_free
mov qword [0x00412110], 0
mov rax, qword [0x00412110]
test rax, rax
jne 0x405ae8
lea rcx, [0x0040eb40]
call fcn.00404250
mov qword [0x00412110], rax
mov rax, qword [0x00412110]
add rsp, 0x30
pop rbp
ret

Function at 0x4062e0
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 [0x00412724]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x406400
mov rax, qword [0x00412728]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x40632c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x4063e6
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x406310
mov rcx, rsi
call fcn.00406f20
test rax, rax
mov r12, rax
je 0x406438
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x00412728]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.00407070
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x00412728]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40641b
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4063df
sub eax, 0x40
and eax, 0xffffffbf
je 0x4063df
add rbx, qword [0x00412728]
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 0x406407
add dword [0x00412724], 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 0x406337
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00406270
mov rax, qword [0x00412728]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.00406270
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.00406270
nop
nop dword [rax + rax]
Function at 0x406b90
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00412a00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004129e0]
test rbx, rbx
je 0x406be4
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 0x406bdb
test rsi, rsi
je 0x406bdb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x406bc0
lea rcx, [0x00412a00]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x406f20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x0040f240]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x406f40
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.00406e00
test eax, eax
je 0x406f38
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 0x406f9d
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 0x406f94
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x406f38
add rdx, 0x28
cmp rdx, r9
jne 0x406f80
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x408080
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12d, 1
sub r8d, 1
mov edi, ecx
mov ecx, 0x66666667
mov eax, r8d
mov rbp, rdx
movsxd rsi, r8d
imul ecx
sar r8d, 0x1f
mov rbx, r9
mov ecx, edx
sar ecx, 2
sub ecx, r8d
je 0x4080d5
mov r8d, 0x66666667
nop dword [rax]
mov eax, ecx
sar ecx, 0x1f
add r12d, 1
imul r8d
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x4080c0
mov edx, dword [rbx + 0x2c]
cmp edx, 0xffffffff
je 0x408150
mov ecx, dword [rbx + 0xc]
cmp r12d, edx
mov r9, rbx
cmovl r12d, edx
mov r8d, 1
lea edx, [r12 + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, edi
mov rdx, rbp
mov dword [rbx + 0xc], eax
add r12d, 1
call fcn.00407940
mov ecx, dword [rbx + 8]
mov eax, dword [rbx + 0x2c]
mov rdx, rbx
mov dword [rbx + 0x10], eax
mov eax, ecx
and ecx, 0x20
or eax, 0x1c0
or ecx, 0x45
mov dword [rbx + 8], eax
call fcn.004074f0
add dword [rbx + 0xc], r12d
mov rdx, rbx
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.00407db0
mov eax, dword [0x0040d070]
cmp eax, 0xffffffff
je 0x40817c
test eax, eax
je 0x40816c
mov edx, 2
mov dword [rbx + 0x2c], edx
jmp 0x4080dd
call fcn.0040c3c0
test al, 1
mov edx, 3
jne 0x40815f
jmp 0x408164
lea rcx, str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test rax, rax
je 0x4081a4
movsx eax, byte [rax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [0x0040d070], eax
jmp 0x40815b
xor eax, eax
jmp 0x408199
Function at 0x140002f90
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
xor r8, r8
push r8
push rax
pushfq
push r8
push rdx
sub rsp, 0xa8
push r8
push r15
push r14
push r13
push r12
push rbx
push r8
push rsi
push rdi
push rbp
push rax
push rdx
sub rsp, 0x290
movdqa xmmword [rsp + 0x2f0], xmm6
movdqa xmmword [rsp + 0x300], xmm7
movdqa xmmword [rsp + 0x310], xmm8
movdqa xmmword [rsp + 0x320], xmm9
movdqa xmmword [rsp + 0x330], xmm10
movdqa xmmword [rsp + 0x340], xmm11
movdqa xmmword [rsp + 0x350], xmm12
movdqa xmmword [rsp + 0x360], xmm13
movdqa xmmword [rsp + 0x370], xmm14
movdqa xmmword [rsp + 0x380], xmm15
mov eax, dword [0x14022f408]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x30
add rax, rbx
lea rdx, [rsp + 0x20]
xor r8, r8
mov qword [rdx + 0x10], r8
mov byte [rdx + 0x19], 1
mov dword [rdx + 0x1c], 0xffffffff
mov byte [rdx + 0x18], 2
mov r8, qword [rax + 0x80]
mov qword [rdx], r8
mov qword [rax + 0x80], rdx
lea r8, [rsp + 0x290]
mov qword [rdx + 8], r8
call fcn.1400d6890
int3
push r15
push r14
push r13
push r12
push rbx
push rsi
push rdi
push rbp
sub rsp, 0xd8
movdqa xmmword [rsp + 0x20], xmm6
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm9
movdqa xmmword [rsp + 0x60], xmm10
movdqa xmmword [rsp + 0x70], xmm11
movdqa xmmword [rsp + 0x80], xmm12
movdqa xmmword [rsp + 0x90], xmm13
movdqa xmmword [rsp + 0xa0], xmm14
movdqa xmmword [rsp + 0xb0], xmm15
mov qword [rsp + 0x120], rcx
mov qword [rsp + 0x128], rdx
mov qword [rsp + 0x130], r8
mov qword [rsp + 0x138], r9
mov eax, dword [0x14022f408]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x30
add rax, rbx
mov qword [rsp + 0xc0], rax
cmp rcx, qword [rax + 0x88]
sete byte [rsp + 0xd0]
lock and dword [rax + 0x38], 0xffffffef
mov rax, qword [r8 + 0x18]
mov rbx, qword [rax]
mov rax, qword [r8 + 0x20]
mov rbp, qword [rax]
mov rax, qword [r8 + 0x28]
mov rsi, qword [rax]
mov rax, qword [r8 + 0x30]
mov rdi, qword [rax]
mov rax, qword [r8 + 0x58]
mov r12, qword [rax]
mov rax, qword [r8 + 0x60]
mov r13, qword [rax]
mov rax, qword [r8 + 0x68]
mov r14, qword [rax]
mov rax, qword [r8 + 0x70]
mov r15, qword [rax]
movdqa xmm6, xmmword [r8 + 0x90]
movdqa xmm7, xmmword [r8 + 0xa0]
movdqa xmm8, xmmword [r8 + 0xb0]
movdqa xmm9, xmmword [r8 + 0xc0]
movdqa xmm10, xmmword [r8 + 0xd0]
movdqa xmm11, xmmword [r8 + 0xe0]
movdqa xmm12, xmmword [r8 + 0xf0]
movdqa xmm13, xmmword [r8 + 0x100]
movdqa xmm14, xmmword [r8 + 0x110]
movdqa xmm15, xmmword [r8 + 0x120]
mov rcx, qword [r8 + 0x78]
mov rdx, qword [rsp + 0x120]
call qword [rsp + 0x128]
mov r8, qword [rsp + 0x130]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rdx + 0x70]
cmp rcx, 0
je 0x140003120
mov r9, qword [rdx + 0x68]
mov qword [r9], rcx
mov qword [rdx + 0x68], 0
mov qword [rdx + 0x70], 0
mov rcx, qword [rsp + 0x138]
mov r8, qword [r8 + 0x78]
xor r9d, r9d
mov rcx, qword [rcx]
cmp rcx, r9
je 0x14000313c
cmp rcx, r8
jl 0x14000312f
mov qword [rdx + 0x80], rcx
test dword [0x140228cd0], 1
je 0x14000316b
cmp byte [rsp + 0xd0], 0
je 0x14000316b
mov rcx, 0x43
mov rdx, rax
mov rsp, r8
jmp 0x140002c90
mov rsp, r8
jmp rax
Function at 0x140003170
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rbx
push rsi
push rdi
push rbp
sub rsp, 0xc8
movdqa xmmword [rsp + 0x20], xmm6
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm9
movdqa xmmword [rsp + 0x60], xmm10
movdqa xmmword [rsp + 0x70], xmm11
movdqa xmmword [rsp + 0x80], xmm12
movdqa xmmword [rsp + 0x90], xmm13
movdqa xmmword [rsp + 0xa0], xmm14
movdqa xmmword [rsp + 0xb0], xmm15
mov qword [rsp + 0x110], rcx
mov qword [rsp + 0x118], rdx
mov eax, dword [0x14022f408]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x30
add rax, rbx
mov qword [rsp + 0xc0], rax
lock and dword [rax + 0x38], 0xffffffef
mov rax, qword [rdx + 0x18]
mov rbx, qword [rax]
mov rax, qword [rdx + 0x20]
mov rbp, qword [rax]
mov rax, qword [rdx + 0x28]
mov rsi, qword [rax]
mov rax, qword [rdx + 0x30]
mov rdi, qword [rax]
mov rax, qword [rdx + 0x58]
mov r12, qword [rax]
mov rax, qword [rdx + 0x60]
mov r13, qword [rax]
mov rax, qword [rdx + 0x68]
mov r14, qword [rax]
mov rax, qword [rdx + 0x70]
mov r15, qword [rax]
movdqa xmm6, xmmword [rdx + 0x90]
movdqa xmm7, xmmword [rdx + 0xa0]
movdqa xmm8, xmmword [rdx + 0xb0]
movdqa xmm9, xmmword [rdx + 0xc0]
movdqa xmm10, xmmword [rdx + 0xd0]
movdqa xmm11, xmmword [rdx + 0xe0]
movdqa xmm12, xmmword [rdx + 0xf0]
movdqa xmm13, xmmword [rdx + 0x100]
movdqa xmm14, xmmword [rdx + 0x110]
movdqa xmm15, xmmword [rdx + 0x120]
mov rcx, qword [rdx + 0x78]
call qword [rsp + 0x110]
mov rdx, qword [rsp + 0x118]
mov rax, qword [rdx + 0x18]
mov qword [rax], rbx
mov rax, qword [rdx + 0x20]
mov qword [rax], rbp
mov rax, qword [rdx + 0x28]
mov qword [rax], rsi
mov rax, qword [rdx + 0x30]
mov qword [rax], rdi
mov rax, qword [rdx + 0x58]
mov qword [rax], r12
mov rax, qword [rdx + 0x60]
mov qword [rax], r13
mov rax, qword [rdx + 0x68]
mov qword [rax], r14
mov rax, qword [rdx + 0x70]
mov qword [rax], r15
movdqa xmmword [rdx + 0x90], xmm6
movdqa xmmword [rdx + 0xa0], xmm7
movdqa xmmword [rdx + 0xb0], xmm8
movdqa xmmword [rdx + 0xc0], xmm9
movdqa xmmword [rdx + 0xd0], xmm10
movdqa xmmword [rdx + 0xe0], xmm11
movdqa xmmword [rdx + 0xf0], xmm12
movdqa xmmword [rdx + 0x100], xmm13
movdqa xmmword [rdx + 0x110], xmm14
movdqa xmmword [rdx + 0x120], xmm15
mov rax, qword [rsp + 0xc0]
lock or dword [rax + 0x38], 0x10
movdqa xmm6, xmmword [rsp + 0x20]
movdqa xmm7, xmmword [rsp + 0x30]
movdqa xmm8, xmmword [rsp + 0x40]
movdqa xmm9, xmmword [rsp + 0x50]
movdqa xmm10, xmmword [rsp + 0x60]
movdqa xmm11, xmmword [rsp + 0x70]
movdqa xmm12, xmmword [rsp + 0x80]
movdqa xmm13, xmmword [rsp + 0x90]
movdqa xmm14, xmmword [rsp + 0xa0]
movdqa xmm15, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbp
pop rdi
pop rsi
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000bf00
Capabilities:
Resume thread
Suspend thread

Disassembly:
cmp qword [rcx + 0x60], 0xffffffffffffffff
je 0x140004da7
mov eax, dword [rcx + 0x38]
shr eax, 5
test al, 1
jne 0x140004da7
mov eax, dword [rcx + 0x38]
shr eax, 7
test al, 1
jne 0x140004da7
mov rdx, rcx
mov rcx, qword [rcx + 0x60]
jmp 0x14000bf00
ret
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x500
mov rax, qword [0x140221a00]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rax, qword [0x140220eb8]
mov rbx, rdx
mov rdi, rcx
cmp rax, 0xffffffffffffffff
jne 0x14000bf5e
xor edx, edx
lea rcx, str.kernel32
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
lea rdx, str.QueueUserAPC2
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140220eb8], rax
test rax, rax
je 0x14000bfba
mov rcx, rbx
call fcn.1400050a0
test al, al
jne 0x14000c008
mov dl, 1
mov rcx, rbx
call fcn.140005120
mov r9d, 0x10001
lea rcx, [0x14000bb70]
mov r8, rbx
mov rdx, rdi
call qword [0x140220eb8]
test eax, eax
jne 0x14000c008
xor edx, edx
mov rcx, rbx
call fcn.140005120
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x14000c008
mov qword [0x140220eb8], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x14000c008
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x50], 0x40100003
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x14000bfff
mov eax, dword [rsp + 0x50]
test eax, eax
jns 0x14000bfff
test eax, 0x18000000
jne 0x14000bfff
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [0x140228dc8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.14006b6d0
mov rbx, qword [rsp + 0x520]
add rsp, 0x500
pop rdi
ret

Function at 0x14000c190
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x14000c1a4
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000c250
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x14000c279
add rsp, 0x38
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x38
ret

Function at 0x14000c290
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov r9, rdx
mov qword [rsp + 0x28], 0
mov r8, rcx
mov dword [rsp + 0x20], 4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x14000c2c5
add rsp, 0x30
pop rbx
ret
mov edx, 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x14000d750
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xe0
mov rax, qword [0x140221a00]
xor rax, rsp
mov qword [rsp + 0xd0], rax
movzx ebx, r8b
mov rdi, rdx
mov r8d, 0x40
lea rdx, [rsp + 0x50]
call fcn.14000d380
mov r8d, 0x11
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r11d, eax
lea ecx, [rax - 1]
cmp ecx, 0xf
ja 0x14000d818
xor ecx, ecx
mov r9d, ecx
test eax, eax
je 0x14000d811
lea r10, [rsp + 0x20]
movzx r8d, word [r10]
lea eax, [r8 - 0x30]
test bl, bl
je 0x14000d7d4
cmp ax, 9
ja 0x14000d818
lea rcx, [rcx + rcx*4]
lea rcx, [rcx - 0x18]
lea rcx, [r8 + rcx*2]
jmp 0x14000d805
shl rcx, 4
cmp ax, 9
ja 0x14000d7e4
add rcx, 0xffffffffffffffd0
jmp 0x14000d802
lea eax, [r8 - 0x61]
cmp ax, 5
ja 0x14000d7f4
add rcx, 0xffffffffffffffa9
jmp 0x14000d802
lea eax, [r8 - 0x41]
cmp ax, 5
ja 0x14000d818
add rcx, 0xffffffffffffffc9
add rcx, r8
inc r9d
add r10, 2
cmp r9d, r11d
jb 0x14000d7b4
mov qword [rdi], rcx
mov al, 1
jmp 0x14000d81a
xor al, al
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14006b6d0
mov rbx, qword [rsp + 0x100]
add rsp, 0xe0
pop rdi
ret