joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004b38c
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 0x14004b3bc
xor eax, eax
jmp 0x14004b47f
mov rbp, rbx
cmp word [rax], si
je 0x14004b3e1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004b3c8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004b3c4
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.1400429c8
movsxd r14, eax
test eax, eax
jne 0x14004b41f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004b3b5
mov rcx, r14
call fcn.140042968
mov rdi, rax
test rax, rax
jne 0x14004b438
xor ecx, ecx
call fcn.14004292c
jmp 0x14004b414
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.1400429c8
test eax, eax
jne 0x14004b469
mov rcx, rdi
call fcn.14004292c
jmp 0x14004b473
xor ecx, ecx
call fcn.14004292c
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 0x14004dfac
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.140042e20
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 0x14004e04d
cmp ebx, dword [rsp + 0x30]
je 0x14004e046
test esi, esi
je 0x14004e046
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004e021
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004e02e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14004e00b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004e032
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004e04f
mov eax, 1
jmp 0x14004e04f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400522e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140052308
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140052308
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400521e0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400521ed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400521fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400521e5
lea eax, [rcx + 1]
jmp 0x14005220b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005221e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140052204
sub eax, 3
jb 0x14005223e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005228d
sar eax, 1
movsxd rbp, eax
jb 0x140052274
jmp 0x14005224c
add ebx, ebx
jne 0x14005224a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140052274
inc ecx
add ebx, ebx
jne 0x14005225a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140052274
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14005226d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14005225c
add ecx, 2
jmp 0x140052279
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400521a2
jmp 0x1400521ed
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x3b600
mov dl, 0x13
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400522dd
cmp rsi, rcx
jae 0x1400522e5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400522c4
cmp al, 0x8f
ja 0x1400522c4
cmp byte [rsi - 2], 0xf
je 0x1400522ca
sub al, 0xe8
cmp al, 1
ja 0x1400522ae
cmp rsi, rcx
jae 0x1400522e5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400522b4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400522e5
lodsb al, byte [rsi]
jmp 0x1400522c4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x50000]
mov eax, dword [rdi]
or eax, eax
je 0x140052342
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x52000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400522f2
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14005233c
mov qword [rbx], rax
add rbx, 8
jmp 0x140052312
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14005237c
cmp al, 0xef
ja 0x14005236e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14005234e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14005235d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.1400523fb], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1400523fb
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400523eb
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0
Function at 0x180004080
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x1800040a4
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x180004132
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180004100
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x180004100
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1800bf120
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18000411d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180004125
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x1800040c1
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x180004210
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x180004149
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18000414b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000417d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1800bf120
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18000420d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800041b8
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x1800041ee
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.180099b54
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x18000420d
cmp rsi, rax
ja 0x1800041c1
test rsi, rsi
je 0x18000420d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.180099b54
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x180013950
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x180118100]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rcx + 0x10]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x180013b13
mov rbx, qword [rcx + 0x18]
mov qword [rbp - 0x30], rbx
mov rcx, rbx
call fcn.1800918cc
test eax, eax
jne 0x180013b46
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
je 0x180013b36
xor r15d, r15d
mov qword [rsi + 0x28], r15
mov qword [rsi + 0x30], r15
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], r15b
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx]
lea r8, [rbp - 0x50]
mov rdx, rsi
call qword [rax + 8]
cmp byte [rdi + 0x20], r15b
je 0x180013ad7
mov r8, qword [rsi + 0x28]
cmp qword [rsi + 0x30], r8
jbe 0x180013ad7
test r8, r8
je 0x180013a21
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rdx, qword [rbp - 0x50]
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movsxd rax, dword [rsi + 0x10]
movzx r14d, word [rdi + rax*2 + 0x30]
lea rdx, [rbp - 0x28]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x180013a45
mov r14d, 7
jmp 0x180013a60
mov edx, dword [rbp - 0x20]
and edx, 0xfff0
or edx, r14d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movzx r14d, word [rbp - 0x20]
mov r8, qword [rsi + 0x30]
mov rcx, qword [rsi + 0x28]
cmp r8, rcx
jbe 0x180013a93
sub r8d, ecx
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rdx, qword [rbp - 0x50]
add rdx, rcx
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movzx edx, r14w
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, qword [rsi + 0x30]
cmp qword [rbp - 0x40], rcx
jbe 0x180013b01
mov r8d, dword [rbp - 0x40]
sub r8d, ecx
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rdx, qword [rbp - 0x50]
add rdx, rcx
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
jmp 0x180013b01
mov dword [rbp - 0x30], r15d
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rdx, qword [rbp - 0x50]
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x30]
mov r8d, dword [rbp - 0x40]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rcx, [rbp - 0x50]
call fcn.1800304d0
nop
mov rcx, rbx
call fcn.1800918f4
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800921e0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
dec eax
mov dword [rbx + 0x4c], eax
mov ecx, 6
call fcn.1800917f4
int3
mov ecx, 5
call fcn.1800917f4
int3
Function at 0x180013d30
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x180013eac
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.18001cc50
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180013e75
mov qword [rsp + 0x58], rbp
movabs rdi, 0xcbf29ce484222325
movabs rbp, 0x100000001b3
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
mov edx, r9d
mov rcx, qword [rcx]
xor rdx, rdi
imul rdx, rbp
and r11, rdx
shl r11, 4
add r11, qword [rsi + 0x18]
mov r8, qword [r11]
cmp r8, rbx
jne 0x180013df3
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180013e64
mov rdx, qword [r11 + 8]
cmp r9b, byte [rdx + 0x10]
jne 0x180013e2c
mov r10, qword [rdx]
cmp r10, rax
je 0x180013e26
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180013e64
cmp r8, rdx
je 0x180013e40
mov rdx, qword [rdx + 8]
cmp r9b, byte [rdx + 0x10]
je 0x180013e86
cmp r8, rdx
jne 0x180013e31
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x180013dc1
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180013e64
lea rcx, str.invalid_hash_bucket_count
call fcn.1800903fc
int3
Function at 0x180032020
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x58
mov rax, qword [0x180118100]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov r12d, edx
mov qword [rcx], r13
mov rbx, rcx
mov qword [rcx + 8], r13
xor edx, edx
mov ecx, 4
mov r15d, r8d
mov edi, r13d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180032217
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180032166
mov edi, 1
cmp dword [rsp + 0x20], 0x10
jb 0x180032120
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180032120
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180032120
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800320e2
mov rcx, qword [0x1801bd798]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180032149
jmp 0x180032113
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180032113
mov rcx, qword [0x1801bd798]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180032149
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180032090
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180032166
mov r8, qword [rbx]
mov edi, r13d
test r8, r8
je 0x180032166
mov rcx, qword [0x1801bd798]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x180032217
cmp qword [rbx], r13
je 0x180032212
mov edi, r13d
cmp dword [rbx + 0xc], r13d
jbe 0x180032212
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0x50], r14
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, edi
mov ecx, 0x5a
lea r14, [rax*4]
mov r8d, dword [r8 + r14]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
mov ebp, r13d
test rax, rax
je 0x1800321f7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1800321ea
mov r8d, r15d
mov edx, r12d
mov rcx, rsi
mov ebp, 1
call fcn.180031e70
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x1800321fe
mov rcx, qword [rbx]
mov dword [r14 + rcx], r13d
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x1800321a0
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0xa0]
mov eax, r13d
jmp 0x18003221c
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800921e0
add rsp, 0x58
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x180032240
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180118100]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1801bd900]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800322b3
mov eax, 0xa
jmp 0x180032346
test esi, esi
je 0x1800322d5
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800322f8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800322f8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800322f1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800322f8
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800921e0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180032370
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x1801bd90c]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x1800323b7
mov rax, qword [0x1801bd900]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800323c4
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x1800323a0
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x1800323b7
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180032020
mov edi, eax
test eax, eax
jne 0x1800324ac
mov r9d, dword [0x1801bd90c]
cmp ebx, r9d
jae 0x18003243c
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x1801bd900]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x180032435
mov edx, esi
mov ecx, ebx
call fcn.180032240
mov edi, eax
test eax, eax
jne 0x18003243c
mov r9d, dword [0x1801bd90c]
inc ebx
cmp ebx, r9d
jb 0x180032400
cmp qword [rsp + 0x20], 0
je 0x1800324aa
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180032496
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov r8d, dword [rbx]
test r8d, r8d
je 0x180032487
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180032487
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180032458
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1801bd798]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x1800324c0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
mov edi, 1
mov ebp, r14d
mov ebx, r14d
xor eax, eax
lock cmpxchg dword [0x1801bd7a0], edi
je 0x180032508
cmp rbx, 0x20
jae 0x1800324f1
xor ecx, ecx
jmp 0x1800324f3
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1801bd7a0], edi
jne 0x1800324e7
cmp qword [0x1801bd798], rbp
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r15
je 0x1800326a5
mov ecx, dword [0x1801bd90c]
mov ebx, r14d
test ecx, ecx
je 0x180032545
mov rdx, qword [0x1801bd900]
mov rax, rdx
cmp qword [rax], rbp
je 0x18003254f
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180032536
mov ebp, 4
jmp 0x1800326aa
cmp ebx, 0xffffffff
je 0x180032545
mov eax, ebx
mov r15d, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x180032609
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180032020
mov ebp, eax
test eax, eax
jne 0x1800326aa
xor edx, edx
mov ecx, ebx
call fcn.180032240
mov ebp, eax
cmp qword [rsp + 0x20], r14
je 0x1800325fa
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800325e6
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x50], rsi
mov esi, eax
mov r8d, dword [rdi]
test r8d, r8d
je 0x1800325d7
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x1800325d7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rsi, 1
jne 0x1800325a8
mov rsi, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1801bd798]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x1800326aa
mov rdx, qword [0x1801bd900]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.180031df0
mov edx, dword [0x1801bd90c]
dec edx
cmp r15d, edx
jae 0x180032659
mov eax, edx
imul rcx, rax, 0x38
mov rax, qword [0x1801bd900]
movups xmm0, xmmword [rcx + rax]
movups xmmword [rax + r13], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [rax + r13 + 0x10], xmm1
movups xmm0, xmmword [rcx + rax + 0x20]
movups xmmword [rax + r13 + 0x20], xmm0
movsd xmm1, qword [rcx + rax + 0x30]
movsd qword [rax + r13 + 0x30], xmm1
mov ecx, dword [0x1801bd908]
mov eax, ecx
mov dword [0x1801bd90c], edx
shr eax, 1
cmp eax, 0x20
jb 0x1800326aa
cmp eax, edx
jb 0x1800326aa
mov r8, qword [0x1801bd900]
mov eax, ecx
mov rcx, qword [0x1801bd798]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x1800326aa
shr dword [0x1801bd908], 1
mov qword [0x1801bd900], rax
jmp 0x1800326aa
mov ebp, 2
xchg dword [0x1801bd7a0], r14d
mov r15, qword [rsp + 0x60]
mov eax, ebp
mov r13, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret