joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001e10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140030030]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rdx, str.RDATA
xor ebx, ebx
mov r8d, ebx
mov qword [rsp + 0x38], rbx
mov eax, 7
mov qword [rsp + 0x40], rax
lea r9, [0x14002b3d5]
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x28]
cmp rax, 8
cmovae rcx, qword [rsp + 0x28]
movsx eax, byte [rdx]
mov word [rcx + r8*2], ax
mov r8, qword [rsp + 0x38]
inc r8
mov qword [rsp + 0x38], r8
inc rdx
cmp rdx, r9
je 0x140001ea3
mov rax, qword [rsp + 0x40]
jmp 0x140001e70
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rax, qword [rsp + 0x28]
mov word [rax + r8*2], bx
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
xor ecx, ecx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
jne 0x140001ef6
lea rdx, str.Could_not_find_resource._n
lea rcx, [0x140031190]
call fcn.1400027e0
jmp 0x140001ff4
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x140001f21
lea rdx, str.Could_not_load_resource._n
lea rcx, [0x140031190]
call fcn.1400027e0
jmp 0x140001ff4
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
jne 0x140001f4a
lea rdx, str.The_resource_size_is_0._n
lea rcx, [0x140031190]
call fcn.1400027e0
jmp 0x140001ff4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
jne 0x140001f73
lea rdx, str.Could_not_lock_resource._n
lea rcx, [0x140031190]
call fcn.1400027e0
jmp 0x140001ff4
lea r14, str.543f1433_e57d_46d2_a96f_de905cb0a54e
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [r14 + rdi], 0
jne 0x140001f81
mov rax, qword [0x140032a68]
sub rax, qword [0x140032a58]
cmp rsi, rax
jbe 0x140001fa6
mov rdx, rsi
call fcn.140002650
test rsi, rsi
je 0x140001ff4
nop dword [rax + rax]
xor edx, edx
mov rax, rbx
div rdi
movzx eax, dil
add al, byte [rdx + r14]
xor al, byte [rbx + rbp]
mov byte [rsp + 0x20], al
mov rdx, qword [0x140032a60]
cmp rdx, qword [0x140032a68]
je 0x140001fe2
mov byte [rdx], al
inc qword [0x140032a60]
jmp 0x140001fec
lea r8, [rsp + 0x20]
call fcn.140003300
inc rbx
cmp rbx, rsi
jb 0x140001fb0
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140002032
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000202d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000205a
call fcn.14000681c
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140006570
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
call fcn.14000ce94
int3
Function at 0x140005088
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400050b6
xor eax, eax
jmp 0x14000519c
cmp qword [rcx + 0x68], 0
je 0x1400050c7
call fcn.1400051b8
jmp 0x14000519c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400050de
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400050e0
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005112
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400084e0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140005196
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140005149
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140005172
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000dda0
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140005196
cmp rsi, rbx
ja 0x140005150
test rsi, rsi
je 0x140005196
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000dda0
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400072b4
Capabilities:
Parse pe header

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

Function at 0x14001019c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000ff98
Function at 0x140015a34
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.140006bd0
sub rsp, rax
mov rax, qword [0x140030030]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140014614
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140015a83
mov rax, rbp
jmp 0x140015b8b
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 + 0x324c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140016b54
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x324c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140015b87
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 0x140015b87
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140016b54
test rax, rax
js 0x140015b87
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140015b87
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140015b79
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140015b79
cmp byte [rcx], 0xd
jne 0x140015b5f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140015b6e
cmp byte [rcx + 1], 0xa
jne 0x140015b6e
inc rcx
jmp 0x140015b6e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x30420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140015b41
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140015b8b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140006570
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 0x140015dac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140015dc2
mov al, 1
jmp 0x140015e22
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140015dd3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140015e20
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001abf0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140015e20
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140015e20
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140015e20
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140015e22
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140015ef4
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, [0x1400324c0]
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 0x140015f4b
cmp word [rdx], r13w
jne 0x140015f4b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140015f50
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140016075
mov r11d, SafeArrayDestroy
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140016096
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140015f89
mov rdx, r9
mov word [rbx], cx
jmp 0x140015fb0
cmp r9, r8
jae 0x140015fc0
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 0x140015f6a
jmp 0x140016075
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 0x14001606a
cmp dword [rsp + 0x80], esi
je 0x14001606a
lea r8, [0x1400324c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140016042
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140016012
mov word [rbx], r13w
jmp 0x140016072
mov ecx, SafeArrayDestroy
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 0x14001601f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140016072
cmp word [rsp + 0x70], r13w
jne 0x14001604f
cmp rbx, r14
je 0x14001600c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140016b5c
cmp word [rsp + 0x70], r13w
je 0x140016075
mov ecx, SafeArrayDestroy
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, [0x1400324c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001606f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140016075
Function at 0x14001a524
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001a554
xor eax, eax
jmp 0x14001a617
mov rbp, rbx
cmp word [rax], si
je 0x14001a579
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001a560
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001a55c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140018c0c
movsxd r14, eax
test eax, eax
jne 0x14001a5b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001a54d
mov rcx, r14
call fcn.140016dc0
mov rdi, rax
test rax, rax
jne 0x14001a5d0
xor ecx, ecx
call fcn.14001390c
jmp 0x14001a5ac
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140018c0c
test eax, eax
jne 0x14001a601
mov rcx, rdi
call fcn.14001390c
jmp 0x14001a60b
xor ecx, ecx
call fcn.14001390c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14001d144
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140013534
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14001d1e5
cmp ebx, dword [rsp + 0x30]
je 0x14001d1de
test esi, esi
je 0x14001d1de
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001d1b9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001d1c6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001d1a3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001d1ca
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001d1e7
mov eax, 1
jmp 0x14001d1e7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001f870
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140001413
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140001413
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001413
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 0x14000140f
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140001409
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jae 0x140001409
test rdx, rdx
je 0x14000140f
cmp dword [rdx + 0x24], 0
jge 0x140001405
xor al, al
jmp 0x140001419
mov al, 1
jmp 0x140001419
add rdx, 0x28
jmp 0x1400013db
xor al, al
jmp 0x140001419
xor al, al
jmp 0x140001419
add rsp, 0x18
ret
Function at 0x140d5c000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x140d5c00a
jmp 0x140d5e00f
jmp fcn.1409230b0
Function at 0x180003c10
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x70
lea rbx, [rcx + 0xc0]
lea r9, [rsp + 0x88]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1800658a0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x180003d26
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x20], rcx
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x180003c53
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.180017570
lea rax, [rsp + 0x30]
cmp rbx, rax
je 0x180003cd3
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x180003cb6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180003cb1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180003d0c
mov rcx, r8
call fcn.18005db74
xor ecx, ecx
lea eax, [rcx + 7]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbx + 0x10], xmm1
mov word [rsp + 0x30], cx
jmp 0x180003cd8
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x180003d18
lea rdx, [rax*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003d13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180003d13
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005db74
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.18005d410
lea rcx, str.RBSP
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 4
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.180002b60
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.180002db0
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x180003da4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003d9e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180003d9e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005db74
nop
add rsp, 0x70
pop rbx
ret
Function at 0x18001c0b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rdx]
mov rbx, rcx
cmp dword [rax + 0x38], 0xf
lea r8, [rax + 0x28]
jle 0x18001c0c9
mov r8, qword [r8]
movabs rdx, 0xcbf29ce484222325
movabs r9, 0x100000001b3
nop dword [rax]
movsx rcx, byte [r8]
lea r8, [r8 + 1]
xor rdx, rcx
imul rdx, r9
test cl, cl
jne 0x18001c0e0
mov rcx, qword [0x180078cc8]
mov r8, qword [0x180078cd0]
mov qword [rsp + 0x58], rdx
cmp rcx, r8
je 0x18001c13a
nop dword [rax + rax]
cmp qword [rcx], rdx
jne 0x18001c11b
cmp qword [rcx + 8], rbx
je 0x18001c126
add rcx, 0x18
cmp rcx, r8
jne 0x18001c110
jmp 0x18001c13a
lea rdx, [rcx + 0x18]
sub r8, rdx
call sub.VCRUNTIME140.dll_memmove
sub qword [0x180078cd0], 0x18
lea rdx, [rsp + 0x58]
lea rcx, [0x180078ce0]
call fcn.18001cbb0
mov rcx, qword [rax + 8]
cmp qword [rax], rcx
je 0x18001c1bb
mov rax, qword [rsp + 0x58]
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [0x180078cd0]
cmp rdx, qword [0x180078cd8]
movss xmm0, dword [rax + 0x21dde50]
movss dword [rsp + 0x30], xmm0
je 0x18001c1aa
movups xmm0, xmmword [rsp + 0x20]
movsd xmm1, qword [rsp + 0x30]
movups xmmword [rdx], xmm0
movsd qword [rdx + 0x10], xmm1
add qword [0x180078cd0], 0x18
add rsp, 0x40
pop rbx
ret
lea r8, [rsp + 0x20]
lea rcx, [0x180078cc8]
call fcn.180021fc0
add rsp, 0x40
pop rbx
ret

Function at 0x18001c660
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rdx + 8]
mov rsi, rdx
sub rbx, qword [rdx]
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rsp + 0x48]
mov r9d, 0x40
mov qword [rsp + 0x20], rcx
mov r8, rbx
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, qword [rsi]
mov rcx, rdi
mov r8, qword [rsi + 8]
sub r8, rdx
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsi]
test rcx, rcx
je 0x18001c6f5
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x18001c6e3
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001c705
mov rcx, r8
call fcn.18005db74
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x18001c710
Capabilities:
Enumerate threads
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [0x1800780a8]
cmp byte [rax + 7], 0
je 0x18001c7f5
xor ebx, ebx
mov word [rbp + 0x420], 0x39eb
xorps xmm0, xmm0
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
lea edx, [rbx + 2]
call fcn.180019320
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x20]
movzx eax, word [rbp + 0x420]
mov word [rcx], ax
lea rax, [rcx + 2]
movabs rcx, 0x140ccb039
mov qword [rsp + 0x28], rax
call fcn.18001c660
xorps xmm0, xmm0
mov word [rbp + 0x420], 0xeeb
lea edx, [rbx + 2]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call fcn.180019320
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x20]
movzx eax, word [rbp + 0x420]
mov word [rcx], ax
lea rax, [rcx + 2]
movabs rcx, 0x140ccb44e
mov qword [rsp + 0x28], rax
call fcn.18001c660
movabs rax, 0x14045ac8d
mov qword [0x1800789f0], rax
mov rax, qword [0x1800780a8]
cmp byte [rax + 1], 0
jne 0x18001c801
cmp byte [rax + 3], 0
je 0x18001c812
movabs rax, 0x1401ecf0a
mov qword [0x1800789e0], rax
lea rdx, [0x18001c1d0]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18001c92b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18001c922
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18001c90c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, dword [rsp + 0x28]
cmp r8d, eax
je 0x18001c90c
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x18001c90c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x70], 0x10001f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rax, qword [0x1800789f0]
lea rdx, [rsp + 0x40]
mov qword [rbp - 0x78], rax
mov rcx, rbx
mov rax, qword [0x1800789e0]
mov qword [rbp - 0x70], rax
mov rax, qword [0x1800789e8]
mov qword [rbp - 0x68], rax
mov rax, qword [0x1800789f8]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x50], 0x455
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18001c860
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret