joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002444
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x18000248e
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x1802b5b48]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
test rbx, rbx
je 0x1800024cc
cmp rbx, r14
jb 0x1800024c7
cmp rbx, r12
jae 0x1800024c7
cmp qword [rbx + 8], rsi
jne 0x180002623
mov rbx, qword [rbx]
jmp 0x1800024ae
mov r15, rdi
cmp rdi, r14
jb 0x180002550
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
sub r15, r13
cmp r15, r14
jb 0x180002547
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180002547
cmp dword [rbp - 0x10], 0x10000
je 0x180002517
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x180002547
jmp 0x1800024e3
test r15, r15
je 0x180002547
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800025e8
cmp r15, r14
jae 0x1800024d4
test rbx, rbx
jne 0x1800025e8
cmp rdi, r12
ja 0x180002623
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x180002623
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180002623
cmp dword [rbp - 0x10], 0x10000
je 0x1800025be
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jmp 0x180002577
test rdi, rdi
je 0x180002623
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jmp 0x18000254a
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x1800025f4
mov rax, qword [0x1802b5b48]
mov qword [rbx], rax
mov qword [0x1802b5b48], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180021990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x78
mov rax, qword [0x1802b5270]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
movzx eax, byte [rsp + 0x88]
test eax, eax
je 0x180021aa9
mov rax, qword [rsp + 0x40]
add rax, 0x2fe0
mov rcx, rax
call fcn.1800475b0
mov qword [rsp + 0x28], rax
jmp 0x180021a00
mov rax, qword [rsp + 0x40]
add rax, 0x2fe0
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.180047aa0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180021aa9
cmp dword [rsp + 0x80], 0
je 0x180021a31
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x80]
cmp dword [rax + 0x14], ecx
je 0x180021a31
mov dword [rsp + 0x38], 0
jmp 0x180021a39
mov dword [rsp + 0x38], 1
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x180021a8f
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x14], 0
je 0x180021a8f
mov rax, qword [rsp + 0x28]
mov edx, dword [rax + 0x14]
mov rcx, qword [rsp + 0x48]
call fcn.180022240
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180021a8f
mov rcx, qword [rsp + 0x50]
call fcn.180024bc0
mov ecx, dword [rsp + 0x80]
cmp dword [rax], ecx
jne 0x180021a8f
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x180021aa4
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x14], 0
jmp 0x1800219dc
mov dword [rsp + 0x24], 0
jmp 0x180021abd
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x1b38]
cmp dword [rsp + 0x24], eax
jge 0x180021bab
mov rax, qword [rsp + 0x40]
add rax, 0x1b38
mov qword [rsp + 0x68], rax
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
call fcn.180017cf0
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x80], 0
je 0x180021b5d
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x450], 0
je 0x180021b2d
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x450]
call fcn.180024bc0
mov ecx, dword [rsp + 0x80]
cmp dword [rax], ecx
je 0x180021b5d
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x458], 0
je 0x180021b53
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x458]
mov ecx, dword [rsp + 0x80]
cmp dword [rax], ecx
je 0x180021b5d
mov dword [rsp + 0x3c], 0
jmp 0x180021b65
mov dword [rsp + 0x3c], 1
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x180021ba6
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x460]
mov dword [rsp + 0x58], eax
movzx r8d, byte [rsp + 0x88]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.180022af0
movzx eax, byte [rsp + 0x88]
jmp 0x180021ab3
add rsp, 0x78
ret
Function at 0x18002ba10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
lea rcx, [rsp + 0x30]
call fcn.1800151f0
mov rax, qword [rsp + 0x88]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x88]
cmp qword [rax + 0x10], 0
je 0x18002ba5e
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x10]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
jmp 0x18002ba66
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x88]
call fcn.180034010
movzx eax, al
test eax, eax
je 0x18002bac3
mov rax, qword [rsp + 0x88]
cmp qword [rax + 0x78], 0
je 0x18002bac3
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x78]
cmp qword [rax + 0x3e8], 0
je 0x18002bac3
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x78]
mov rax, qword [rax + 0x3e8]
mov eax, dword [rax + 8]
mov dword [rsp + 0x24], eax
jmp 0x18002bacb
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0xa8]
mov dword [rsp + 0x3c], eax
mov rcx, qword [rsp + 0x88]
call fcn.180034c90
movzx eax, al
test eax, eax
je 0x18002bb0a
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x58]
mov dword [rsp + 0x28], eax
jmp 0x18002bb12
mov dword [rsp + 0x28], 0xffffffff
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x40], al
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x41], al
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 8]
and eax, 0x61fc20
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x88]
add rax, 0x40
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.180017720
mov eax, dword [rax]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x88]
add rax, 0x48
mov rdx, rax
lea rcx, [rsp + 0x5c]
call fcn.180017720
mov eax, dword [rax]
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x88]
add rax, 0x50
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.180017720
mov eax, dword [rax]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x80]
add rax, 0x20
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
call fcn.180047de0
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
cmp qword [rcx + rax + 0x18], 0
je 0x18002bc00
mov eax, dword [rsp + 0x90]
inc eax
mov ecx, 8
imul rcx, rcx, 0
mov r8d, eax
mov rax, qword [rsp + 0x88]
mov rdx, qword [rax + rcx + 0x18]
mov rcx, qword [rsp + 0x80]
call fcn.18002ba10
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x88]
cmp qword [rcx + rax + 0x18], 0
je 0x18002bc48
mov eax, dword [rsp + 0x90]
inc eax
mov ecx, 8
imul rcx, rcx, 1
mov r8d, eax
mov rax, qword [rsp + 0x88]
mov rdx, qword [rax + rcx + 0x18]
mov rcx, qword [rsp + 0x80]
call fcn.18002ba10
add rsp, 0x78
ret
Function at 0x180032850
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov eax, dword [rsp + 0x40]
not eax
mov dword [rsp], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
lea rax, [0x18012f430]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x38]
dec rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x10], 0
je 0x1800328de
mov eax, dword [rsp]
shr eax, 8
mov ecx, dword [rsp]
and ecx, 0xff
mov rdx, qword [rsp + 8]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x18]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov eax, dword [rsp + 4]
mov dword [rsp], eax
jmp 0x180032882
mov eax, dword [rsp]
not eax
add rsp, 0x28
ret

Function at 0x1800328f0
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov eax, dword [rsp + 0x40]
not eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
lea rax, [0x18012f430]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x38], 0
je 0x1800329f4
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x38]
dec rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x18], 0
je 0x1800329ef
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov byte [rsp + 2], al
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
movzx eax, byte [rsp + 2]
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 0x23
jne 0x1800329c4
cmp qword [rsp + 0x38], 2
jb 0x1800329c4
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1800329c4
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1800329c4
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp + 1]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x180032937
jmp 0x180032a86
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov byte [rsp + 3], al
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
movzx eax, byte [rsp + 3]
mov byte [rsp], al
movzx eax, byte [rsp]
test eax, eax
je 0x180032a86
movzx eax, byte [rsp]
cmp eax, 0x23
jne 0x180032a5c
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x180032a5c
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x180032a5c
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x1800329f4
mov eax, dword [rsp + 4]
not eax
add rsp, 0x28
ret
Function at 0x180063eb0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1802b4c10]
xor rax, rsp
mov qword [rsp + 0x60], rax
call fcn.180030d50
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, qword [0x1802b5460]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x5c]
sub ecx, eax
mov eax, ecx
cvtsi2ss xmm0, eax
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x58]
sub ecx, eax
mov eax, ecx
cvtsi2ss xmm1, eax
movaps xmm2, xmm0
lea rcx, [rsp + 0x48]
call fcn.180006f60
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 8], rax
movzx eax, byte [0x1802b4bed]
test eax, eax
je 0x180063f28
call fcn.180064b80
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [0x1802b5468]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
cvtsi2ss xmm0, rax
cvtsi2ss xmm1, qword [0x1802b5470]
divss xmm0, xmm1
mov rax, qword [rsp + 0x20]
movss dword [rax + 0x10], xmm0
mov rax, qword [rsp + 0x40]
mov qword [0x1802b5468], rax
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x180063f8c
mov dword [rsp + 0x28], 1
jmp 0x180063f94
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x28]
mov byte [rax + 0x134], cl
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x180063fc3
mov dword [rsp + 0x2c], 1
jmp 0x180063fcb
mov dword [rsp + 0x2c], 0
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x2c]
mov byte [rax + 0x135], cl
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x180063ffa
mov dword [rsp + 0x30], 1
jmp 0x180064002
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x30]
mov byte [rax + 0x136], cl
mov rax, qword [rsp + 0x20]
mov byte [rax + 0x137], 0
call fcn.180064ed0
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0xc8]
test eax, eax
je 0x18006403d
mov dword [rsp + 0x34], 0xffffffff
jmp 0x180064046
call fcn.180031020
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
cmp dword [0x1802b4be8], eax
je 0x180064069
mov eax, dword [rsp + 0x38]
mov dword [0x1802b4be8], eax
call fcn.180064da0
call fcn.180064510
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18008d3c0
add rsp, 0x78
ret
Function at 0x180088670
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
lea rcx, [0x1800885e0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x1800888c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180088ae0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800889c7
mov rax, qword [0x1802b4bf8]
cmp qword [rsp + 0x20], rax
jb 0x180088924
mov rax, qword [0x1802b4c00]
cmp qword [rsp + 0x20], rax
ja 0x180088924
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800888e6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180088953
jmp 0x1800889c7
cmp dword [rsp + 0x50], 0x10000
jne 0x1800889aa
cmp qword [rsp + 0x48], 0x10000
jb 0x1800889aa
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180088998
mov rax, qword [rsp + 0x28]
jmp 0x1800889c9
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800889c2
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180088ae0
mov qword [rsp + 0x20], rax
jmp 0x1800888e6
xor eax, eax
add rsp, 0x68
ret

Function at 0x1800889d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180088b20
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180088ad3
mov rax, qword [0x1802b4bf8]
cmp qword [rsp + 0x20], rax
jb 0x180088a2b
mov rax, qword [0x1802b4c00]
cmp qword [rsp + 0x20], rax
ja 0x180088a2b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800889ed
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180088a5a
jmp 0x180088ad3
cmp dword [rsp + 0x50], 0x10000
jne 0x180088ab1
cmp qword [rsp + 0x48], 0x10000
jb 0x180088ab1
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180088a9f
mov rax, qword [rsp + 0x28]
jmp 0x180088ad5
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180088ace
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180088b20
mov qword [rsp + 0x20], rax
jmp 0x1800889ed
xor eax, eax
add rsp, 0x68
ret
Function at 0x180088b70
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180089100
mov qword [rsp + 0x28], 0
cmp qword [0x1802b54d0], 0
jne 0x180088bb8
cmp qword [0x1802b54c8], 0
je 0x180088bb8
mov rax, qword [0x1802b54c8]
mov qword [0x1802b54d0], rax
cmp qword [0x1802b54d0], 0
je 0x180088c5e
mov rax, qword [0x1802b54d0]
cmp qword [rax + 0x10], 0
je 0x180088c5e
mov rax, qword [0x1802b54d0]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180088c5e
mov rax, qword [0x1802b54d0]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180088c5e
mov rax, qword [0x1802b54d0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180088c24
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180088c2b
xor eax, eax
jmp 0x180088dd9
mov rax, qword [0x1802b54d0]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180088dd9
mov rax, qword [0x1802b54c8]
mov qword [0x1802b54d0], rax
jmp 0x180088c80
mov rax, qword [0x1802b54d0]
mov rax, qword [rax + 8]
mov qword [0x1802b54d0], rax
cmp qword [0x1802b54d0], 0
je 0x180088ccd
cmp qword [0x1802b54d0], 0
je 0x180088ccb
mov rax, qword [0x1802b54d0]
cmp qword [rax + 0x10], 0
je 0x180088ccb
mov rax, qword [0x1802b54d0]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180088ccb
mov rax, qword [0x1802b54d0]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180088ccb
jmp 0x180088bfc
jmp 0x180088c6e
mov rcx, qword [rsp + 0x60]
call fcn.18008ae10
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180088de0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180088dd7
mov rax, qword [rsp + 0x48]
mov qword [0x1802b54d0], rax
mov rax, qword [0x1802b54d0]
mov dword [rax], 0x52727464
mov rax, qword [0x1802b54d0]
mov qword [rax + 0x10], 0
mov rax, qword [0x1802b54d0]
mov rcx, qword [0x1802b54c8]
mov qword [rax + 8], rcx
mov rax, qword [0x1802b54d0]
mov qword [0x1802b54c8], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1802b54d0]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180088d88
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180088dc2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x180088d7e
mov rax, qword [0x1802b54d0]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180088bfc
xor eax, eax
add rsp, 0x58
ret
Function at 0x18008b000
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memset
jmp 0x18008b048
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x18008b068
jmp 0x18008b105
cmp dword [rsp + 0x68], 0x1000
jne 0x18008b08d
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x18008b08d
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x18008b08f
jmp 0x18008b033
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x18008b0c5
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x18008b0c5
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x18008b0ca
jmp 0x18008b033
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x18008b033
mov rax, qword [rsp + 0x20]
jmp 0x18008b107
xor eax, eax
add rsp, 0x88
ret
Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140001d68
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140001d8e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001d90
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001de9
test ecx, ecx
jle 0x140001dc9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140001de9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001de9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140001e10
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140001e32
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140001e48
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140001e64
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001e66
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001ea2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140001f3e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140001edd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140001f1e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140001f3e
cmp rbx, rax
ja 0x140001ef0
test rbx, rbx
je 0x140001f3e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret