joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001200
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
xor ebx, ebx
mov r11, rcx
mov edx, ebx
cmp byte [rcx], dl
je 0x180001218
nop dword [rax]
inc rdx
cmp byte [rcx + rdx], bl
jne 0x180001210
movabs r10, 0xcbf29ce484222325
test rdx, rdx
je 0x180001270
mov qword [rsp + 0x10], rdi
movabs rdi, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r11 + rbx]
lea r9d, [rcx - 0x41]
lea eax, [rcx + 0x20]
cmp r9b, 0x19
movzx r8d, al
cmova r8d, ecx
inc rbx
imul r10, rdi
movsx rcx, r8b
xor r10, rcx
cmp rbx, rdx
jb 0x180001240
mov rdi, qword [rsp + 0x10]
mov rax, r10
pop rbx
ret

Function at 0x180001280
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub rsp, 8
xor r11d, r11d
mov r10, rcx
mov edx, r11d
cmp word [rcx], dx
je 0x18000129c
inc rdx
cmp word [rcx + rdx*2], r11w
jne 0x180001292
movabs rax, 0xcbf29ce484222325
test rdx, rdx
je 0x1800012ed
mov qword [rsp], rbx
movabs rbx, 0x100000001b3
nop dword [rax]
movzx r9d, word [r10 + r11*2]
lea ecx, [r9 - 0x41]
cmp cx, 0x19
lea r8d, [r9 + 0x20]
cmova r8w, r9w
inc r11
imul rax, rbx
movzx ecx, r8w
xor rax, rcx
cmp r11, rdx
jb 0x1800012c0
mov rbx, qword [rsp]
add rsp, 8
ret
Function at 0x180001300
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbp
push rsi
push r15
sub rsp, 0x20
xor esi, esi
lea r10, str.r5apex.exe
mov r8d, esi
inc r8
cmp word [r10 + r8*2], si
jne 0x180001315
movabs r15, 0xcbf29ce484222325
mov r9, rsi
mov r11, r15
movabs rbp, 0x100000001b3
test r8, r8
je 0x180001365
nop
movzx edx, word [r10 + r9*2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
lea ecx, [rdx + 0x20]
cmova cx, dx
inc r9
imul r11, rbp
movzx eax, cx
xor r11, rax
cmp r9, r8
jb 0x180001340
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
test rcx, rcx
je 0x18000141a
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x18000141a
mov qword [rsp + 0x50], r14
lea r14, [rax + 0x10]
mov rax, qword [rax + 0x10]
cmp rax, r14
je 0x180001415
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
test rax, rax
je 0x1800013fd
test r11, r11
je 0x180001407
movzx ecx, word [rax + 0x58]
test cx, cx
je 0x1800013fd
mov rdi, qword [rax + 0x60]
mov ebx, ecx
shr rbx, 1
mov r9, r15
mov r10, rsi
je 0x1800013f8
nop dword [rax]
movzx r8d, word [rdi + r10*2]
lea ecx, [r8 - 0x41]
cmp cx, 0x19
lea edx, [r8 + 0x20]
cmova dx, r8w
inc r10
imul r9, rbp
movzx ecx, dx
xor r9, rcx
cmp r10, rbx
jb 0x1800013d0
cmp r9, r11
je 0x180001407
mov rax, qword [rax]
cmp rax, r14
jne 0x1800013a8
jmp 0x18000140b
mov rsi, qword [rax + 0x30]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
movdqa xmm0, xmmword [0x18006d6e0]
mov al, 1
movdqa xmm1, xmmword [0x18006d6f0]
movdqa xmmword [0x180094b00], xmm0
movdqa xmm0, xmmword [0x18006d6d0]
movdqa xmmword [0x180094b20], xmm0
movdqa xmm0, xmmword [0x18006d710]
movdqa xmmword [0x180094b10], xmm1
movdqa xmm1, xmmword [0x18006d700]
movdqa xmmword [0x180094b40], xmm0
mov qword [0x180094ad0], rsi
mov qword [0x180094ad8], 0x2182c78
mov qword [0x180094ae0], 0x1dd4178
mov qword [0x180094af8], 0x16f8b90
mov qword [0x180094ae8], 0x73f14f0
mov qword [0x180094af0], 0x11a350
movdqa xmmword [0x180094b30], xmm1
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
Function at 0x180003280
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x28], 0
call fcn.180001280
mov rcx, qword gs:[0x30]
mov rdi, rax
mov rax, qword [rcx + 0x60]
test rax, rax
je 0x180003345
mov rax, qword [rax + 0x18]
test rax, rax
je 0x180003345
mov rcx, qword [rax + 0x10]
lea rsi, [rax + 0x10]
cmp rcx, rsi
je 0x180003345
movabs rbp, 0x100000001b3
movabs r14, 0xcbf29ce484222325
test rcx, rcx
je 0x18000333d
test rdi, rdi
je 0x18000335a
movzx eax, word [rcx + 0x58]
test ax, ax
je 0x18000333d
mov rbx, qword [rcx + 0x60]
mov r11d, eax
shr r11, 1
mov r9, r14
mov r10d, 0
je 0x180003338
nop
movzx r8d, word [rbx + r10*2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
lea edx, [r8 + 0x20]
cmova dx, r8w
inc r10
imul r9, rbp
movzx eax, dx
xor r9, rax
cmp r10, r11
jb 0x180003310
cmp r9, rdi
je 0x18000335a
mov rcx, qword [rcx]
cmp rcx, rsi
jne 0x1800032e7
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
mov rax, qword [rcx + 0x30]
jmp 0x180003347

Function at 0x180003360
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x50
mov rdi, rcx
lea rax, [rdx - 0x10000]
movabs rcx, 0x7ffffffeffff
cmp rax, rcx
ja 0x18000346b
mov qword [r11 - 0x18], rsi
mov rcx, rdx
mov qword [r11 - 0x28], r13
mov qword [r11 + 0x18], rbx
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x38], r15
call fcn.180001200
mov r13, rax
test rdi, rdi
je 0x18000343d
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x18000343d
movsxd rcx, dword [rdi + 0x3c]
add rcx, rdi
cmp dword [rcx], 0x4550
jne 0x18000343d
add rcx, 0x88
je 0x18000343d
mov eax, dword [rcx]
add rax, rdi
je 0x18000343d
mov ecx, dword [rax + 0x1c]
test ecx, ecx
je 0x18000343d
mov edx, dword [rax + 0x20]
test edx, edx
je 0x18000343d
mov r8d, dword [rax + 0x24]
test r8d, r8d
je 0x18000343d
mov ebp, dword [rax + 0x18]
lea r15, [rdi + rcx]
xor ebx, ebx
lea r14, [rdi + rdx]
lea r12, [rdi + r8]
test ebp, ebp
je 0x18000343d
nop word [rax + rax]
movzx eax, word [r12 + rbx*2]
mov edx, dword [r15 + rax*4]
test edx, edx
je 0x180003437
mov eax, dword [r14 + rbx*4]
test eax, eax
je 0x180003437
lea rcx, [rdi + rax]
lea rsi, [rdi + rdx]
call fcn.180001200
cmp rax, r13
je 0x18000343f
inc ebx
cmp ebx, ebp
jb 0x180003410
xor esi, esi
mov r15, qword [rsp + 0x20]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
xor eax, eax
add rsp, 0x50
pop rdi
ret
Function at 0x180004920
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18000497d
lea rbx, [0x180068c60]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180004964
cmp r10, 2
jb 0x180004964
cmp byte [r9], r8b
jne 0x180004964
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180004940
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800049bf
lea rbx, [0x180068c60]
cmp r8b, 0x23
jne 0x1800049a3
cmp byte [r9], r8b
jne 0x1800049a3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180004990
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180004b00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180004b1a
mov qword [r8], 0
lea rdx, [0x18006cd2c]
call fcn.1800049d0
mov rbx, rax
test rax, rax
jne 0x180004b3a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x180004c11
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180004c11
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180004c11
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180004c11
cmp rdi, 0xffffffffffffffff
je 0x180004c11
mov rax, qword [0x180094998]
test rax, rax
je 0x180004bae
inc dword [rax + 0x3b4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180004c11
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x180004bfe
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180094998]
test rax, rax
je 0x180004bf3
dec dword [rax + 0x3b4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180004c1a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180004c0c
mov qword [r14], rdi
mov rax, rsi
jmp 0x180004c1c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x18000a1a0
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18000a1f0
lea r11, [0x180068c60]
nop dword [rax]
cmp r9b, 0x23
jne 0x18000a1d3
cmp byte [r8], r9b
jne 0x18000a1d3
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x18000a1c0
mov rcx, qword [0x180094998]
not eax
movsxd rdx, dword [rcx + 0x1bf0]
mov r9, qword [rcx + 0x1bf8]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x18000a251
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x18000a249
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18000a24c
mov rdx, r8
test rdx, rdx
jne 0x18000a220
cmp r9, r10
je 0x18000a260
cmp dword [r9], eax
jne 0x18000a260
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x180013b50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x3098], 0
lea rbx, [rcx + 0x30a0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180013bf7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x180013baa
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180015b90
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180004eb0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x3098]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x30a8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x180094990]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x180013bff
mov rcx, rbx
call fcn.180004eb0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800272d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x180073040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x180094ab0]
lea rdx, [rsp + 0x28]
mov rdi, qword [0x180094998]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
sub eax, dword [rsp + 0x28]
mov qword [rsp + 0x40], 0
movd xmm1, eax
mov eax, dword [rsp + 0x34]
sub eax, dword [rsp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x40]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x180094ab8]
cvtsi2ss xmm0, qword [0x180094ac0]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x180094ab8], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0x140], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0x141], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [0x180094998]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x143], 0
mov byte [rdi + 0x142], al
cmp byte [rbx + 0x39b], 0
je 0x18002740f
cvttss2si eax, dword [rbx + 0x128]
mov rcx, qword [0x180094ab0]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], eax
cvttss2si eax, dword [rbx + 0x12c]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x18002740f
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx + 0x128], 0xff7fffff
mov dword [rbx + 0x12c], 0xff7fffff
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x18002748e
mov rdx, qword [0x180094ab0]
cmp rax, rdx
je 0x180027447
mov rcx, rax
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x18002748e
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x18002748e
mov rcx, qword [0x180094ab0]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x18002748e
movd xmm0, dword [rsp + 0x20]
movd xmm1, dword [rsp + 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0x128], xmm0
movss dword [rbx + 0x12c], xmm1
cmp byte [rdi + 0xc8], 0
je 0x18002749e
mov eax, 0xffffffff
jmp 0x1800274ab
mov rax, qword [0x180094998]
mov eax, dword [rax + 0x1f48]
cmp dword [0x180094250], eax
je 0x1800274be
mov dword [0x180094250], eax
call fcn.180026e80
call fcn.180027000
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18002c2d0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x18002a960
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180073040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18002a9af
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180094d50]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18002a9ed
cmp rsi, r14
jb 0x18002a9e5
cmp rsi, r15
jae 0x18002a9e5
cmp qword [rsi + 8], 0
jne 0x18002abb7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18002a9d0
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x18002aa82
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x18002aa79
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18002aa79
cmp dword [rsp + 0x40], 0x10000
je 0x18002aafb
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x18002aa79
sub rbx, rbp
cmp rbx, r14
jae 0x18002aa40
test rsi, rsi
jne 0x18002ab60
cmp rdi, r15
ja 0x18002ab9f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18002ab9f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18002ab9f
cmp dword [rsp + 0x40], 0x10000
je 0x18002ab31
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x18002aab2
jmp 0x18002ab9f
test rbx, rbx
je 0x18002aa79
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18002ab60
cmp rbx, r14
jae 0x18002aa20
jmp 0x18002aa82
test rdi, rdi
je 0x18002ab9f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18002ab60
cmp rdi, r15
jbe 0x18002aa90
jmp 0x18002ab9f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x18002ab70
mov rax, qword [0x180094d50]
mov qword [rsi], rax
mov qword [0x180094d50], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18002c2d0
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x18002b5b0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180073040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18002b6db
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18002b6d2
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18002b6b4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18002b6b4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18002b6b4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18002b672
mov rcx, qword [0x1800949d8]
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 0x18002b6d2
jmp 0x18002b6a7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18002b6a7
mov rcx, qword [0x1800949d8]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18002b6d2
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
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, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18002b620
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18002b733
cmp dword [rbx + 0xc], esi
jbe 0x18002b733
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18002b72c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.18002b400
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18002b6f0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18002c2d0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18002b760
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180073040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov r8d, 0x40
add rbx, qword [0x180094d40]
mov rdx, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [rdx - 5]
cmove rdi, rdx
lea rsi, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18002b7c9
mov eax, 0xa
jmp 0x18002b816
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 0x18002b7e5
mov rax, qword [rbx]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rbx + 0x20], 6
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18002c2d0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18002b840
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x180094d4c]
xor edi, edi
mov ebx, edi
test eax, eax
je 0x18002b950
mov rcx, qword [0x180094d40]
add rcx, 0x20
test byte [rcx], 2
je 0x18002b883
inc ebx
add rcx, 0x38
cmp ebx, eax
jb 0x18002b867
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18002b950
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 1
call fcn.18002b5b0
mov edx, dword [0x180094d4c]
cmp ebx, edx
jae 0x18002b8dd
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180094d40]
test byte [rcx + rax + 0x20], 2
jne 0x18002b8d7
mov ecx, ebx
call fcn.18002b760
mov edi, eax
test eax, eax
jne 0x18002b8dd
mov edx, dword [0x180094d4c]
inc ebx
cmp ebx, edx
jb 0x18002b8b0
cmp qword [rsp + 0x20], 0
je 0x18002b950
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18002b93c
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
nop
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18002b928
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 0x18002b900
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800949d8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1400019b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a02
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a02
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a02
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a02
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a02
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a04
xor al, al
add rsp, 0x28
ret
Function at 0x140003d70
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140003e00
jmp 0x140003def
jae 0x140003ec0
cmp r8, 0x201
jae 0x140003e00
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140003e58
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x140003e2f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001be10
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140003e81
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140003f28
mov r8d, r14d
cmp r15, r8
jne 0x140003de0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003f4b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140003def
jmp 0x140003e00
cmp rsi, r8
jb 0x140003f65
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140006cd0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140003f11
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140001350
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140003ef9
jmp 0x140003f11
lea rcx, str.internal_error:_entered_unreachable_code_rustc_79e9716c980570bfd1f666e3b16ac583f0168962library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001cac0
jmp 0x140003f7a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001cf10
ud2