joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001ac68
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1800d0070]
xor rax, rsp
mov qword [rbp - 8], rax
mov rcx, qword [0x1800eb820]
lea rdx, [rbp - 0x28]
mov rdi, qword [0x1800eb1d0]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp - 0x20]
lea rcx, [rbp - 0x10]
sub eax, dword [rbp - 0x28]
movd xmm1, eax
mov eax, dword [rbp - 0x1c]
sub eax, dword [rbp - 0x24]
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 [rbp - 0x10]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x1800eb828]
cvtsi2ss xmm0, qword [0x1800eb830]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x1800eb828], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov bl, 1
and al, bl
mov ecx, 0x10
mov byte [rdi + 0x148], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, bl
mov byte [rdi + 0x149], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, qword [0x1800eb1d0]
shr eax, 0xf
and al, bl
mov byte [rdi + 0x14b], 0
mov byte [rdi + 0x14a], al
cmp byte [rcx + 0x3a3], 0
lea rbx, [rcx + 0x130]
je 0x18001ad91
cvttss2si eax, dword [rbx]
lea rdx, [rbp - 0x18]
mov dword [rbp - 0x18], eax
cvttss2si eax, dword [rcx + 0x134]
mov rcx, qword [0x1800eb820]
mov dword [rbp - 0x14], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rbp - 0x14]
mov ecx, dword [rbp - 0x18]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov eax, 0xff7fffff
mov dword [rbx], eax
mov dword [rbx + 4], eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x18001adfb
mov rdx, qword [0x1800eb820]
cmp rax, rdx
je 0x18001adbf
mov rcx, rax
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x18001adfb
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x18001adfb
mov rcx, qword [0x1800eb820]
lea rdx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x18001adfb
movd xmm0, dword [rbp - 0x30]
movd xmm1, dword [rbp - 0x2c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0xc8], 0
je 0x18001ae09
or eax, 0xffffffff
jmp 0x18001ae16
mov rax, qword [0x1800eb1d0]
mov eax, dword [rax + 0x1fb8]
cmp dword [0x1800e8618], eax
je 0x18001ae29
mov dword [0x1800e8618], eax
call fcn.18001ac0c
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180070760
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x18001c4e8
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x18001c542
mov r11b, 0x23
lea rdi, [0x1800b8cd0]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x18001c52c
cmp rdx, 2
jb 0x18001c52c
cmp byte [r10], r11b
jne 0x18001c52c
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x18001c50a
jmp 0x18001c583
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x18001c583
mov r11b, 0x23
lea rdi, [0x1800b8cd0]
cmp dl, r11b
jne 0x18001c567
cmp byte [r10], r11b
jne 0x18001c567
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x18001c555
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x18001c6b8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
test r8, r8
je 0x18001c6d8
and qword [r8], 0
lea rdx, [0x1800bdb04]
call fcn.18001c594
mov rbx, rax
test rax, rax
je 0x18001c7bf
mov rcx, rax
call fcn.18007e754
mov ebp, eax
cmp eax, 0xffffffff
je 0x18001c7b7
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.18007f078
test eax, eax
jne 0x18001c7b7
mov rcx, rbx
call fcn.18007e754
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x18001c7b7
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call fcn.18007f078
test eax, eax
jne 0x18001c7b7
mov rbp, rdi
cmp rdi, 0xffffffffffffffff
je 0x18001c7b7
mov rax, qword [0x1800eb1d0]
test rax, rax
je 0x18001c759
inc dword [rax + 0x3bc]
mov rcx, rbp
call fcn.180085428
mov rdi, rax
test rax, rax
je 0x18001c7b7
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call fcn.18007fea0
mov rcx, rbx
cmp rax, rbp
je 0x18001c7a5
call fcn.18007ecf8
mov rax, qword [0x1800eb1d0]
test rax, rax
je 0x18001c79b
dec dword [rax + 0x3bc]
mov rcx, rdi
call fcn.18007d02c
jmp 0x18001c7bf
call fcn.18007ecf8
test rsi, rsi
je 0x18001c7b2
mov qword [rsi], rbp
mov rax, rdi
jmp 0x18001c7c1
mov rcx, rbx
call fcn.18007ecf8
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18001e2e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x28
movsxd rdx, dword [rcx + 0xc0]
mov r9d, 4
mov rax, qword [rcx + 0xc8]
mov r8d, dword [rax + rdx*4 - 4]
lea rdx, [rsp + 0x38]
not r8d
movzx eax, byte [rdx]
inc rdx
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x1800b8cd0]
xor r8d, dword [rax + rcx*4]
sub r9, 1
jne 0x18001e309
not r8d
mov ecx, r8d
call fcn.18001e4f4
mov eax, r8d
add rsp, 0x28
ret
Function at 0x18001e340
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1800d0070]
xor rax, rsp
mov qword [rsp + 0x30], rax
movss xmm0, dword [rdx]
mov r8, rcx
subss xmm0, dword [rcx + 0x10]
movss xmm1, dword [rdx + 8]
mov r9d, 0x10
subss xmm1, dword [rcx + 0x10]
cvttss2si eax, xmm0
movss xmm0, dword [rdx + 4]
subss xmm0, dword [rcx + 0x14]
mov dword [rsp + 0x20], eax
cvttss2si eax, xmm0
movss xmm0, dword [rdx + 0xc]
subss xmm0, dword [rcx + 0x14]
movsxd rcx, dword [rcx + 0xc0]
mov dword [rsp + 0x24], eax
cvttss2si eax, xmm1
mov dword [rsp + 0x28], eax
cvttss2si eax, xmm0
mov dword [rsp + 0x2c], eax
mov rax, qword [r8 + 0xc8]
lea r8, [rsp + 0x20]
mov edx, dword [rax + rcx*4 - 4]
not edx
movzx eax, byte [r8]
inc r8
movzx ecx, dl
xor rcx, rax
shr edx, 8
lea rax, [0x1800b8cd0]
xor edx, dword [rax + rcx*4]
sub r9, 1
jne 0x18001e3bc
not edx
mov ecx, edx
call fcn.18001e4f4
mov eax, edx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180070760
add rsp, 0x48
ret
Function at 0x180026304
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800d0070]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [0x1800eb1d0]
mov r10d, 8
mov qword [rsp + 0x20], rcx
mov r9, qword [rax + 0x1aa0]
movsxd rcx, dword [r9 + 0xc0]
mov rax, qword [r9 + 0xc8]
mov r8d, dword [rax + rcx*4 - 4]
lea rcx, [rsp + 0x20]
not r8d
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x1800b8cd0]
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x18002634b
not r8d
lea rdx, [rsp + 0x20]
lea rcx, [r9 + 0xc0]
mov dword [rsp + 0x20], r8d
call fcn.18002c724
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180070760
add rsp, 0x38
ret

Function at 0x180026398
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800d0070]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [0x1800eb1d0]
mov r10d, 4
mov dword [rsp + 0x20], ecx
mov r9, qword [rax + 0x1aa0]
movsxd rcx, dword [r9 + 0xc0]
mov rax, qword [r9 + 0xc8]
mov r8d, dword [rax + rcx*4 - 4]
lea rcx, [rsp + 0x20]
not r8d
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x1800b8cd0]
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x1800263de
not r8d
lea rdx, [rsp + 0x20]
lea rcx, [r9 + 0xc0]
mov dword [rsp + 0x20], r8d
call fcn.18002c724
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180070760
add rsp, 0x38
ret
Function at 0x18005d33c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x18005d35c
xor eax, eax
jmp 0x18005d442
cmp qword [rcx + 0x68], 0
je 0x18005d36d
call fcn.1800541fc
jmp 0x18005d442
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18005d384
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18005d386
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18005d3b8
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.180072ed0
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18005d43c
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18005d3ef
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
mov ebx, 0xfff
jmp 0x18005d418
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.18007fea0
add r14, rax
sub rdi, rax
cmp rax, rbx
jne 0x18005d43c
cmp rdi, rbx
ja 0x18005d3f6
test rdi, rdi
je 0x18005d43c
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call fcn.18007fea0
sub rdi, rax
sub rbp, rdi
mov rax, rbp
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x18006b310
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.18006b530
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18006b417
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18006b374
mov rax, qword [0x1800d0008]
cmp qword [rsp + 0x20], rax
ja 0x18006b374
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18006b336
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180073580
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18006b3a3
jmp 0x18006b417
cmp dword [rsp + 0x50], 0x10000
jne 0x18006b3fa
cmp qword [rsp + 0x48], 0x10000
jb 0x18006b3fa
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 0x18006b3e8
mov rax, qword [rsp + 0x28]
jmp 0x18006b419
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18006b412
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.18006b530
mov qword [rsp + 0x20], rax
jmp 0x18006b336
xor eax, eax
add rsp, 0x68
ret
Function at 0x18006b420
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.18006b570
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x18006b523
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18006b47b
mov rax, qword [0x1800d0008]
cmp qword [rsp + 0x20], rax
ja 0x18006b47b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18006b43d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180073580
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18006b4aa
jmp 0x18006b523
cmp dword [rsp + 0x50], 0x10000
jne 0x18006b501
cmp qword [rsp + 0x48], 0x10000
jb 0x18006b501
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 0x18006b4ef
mov rax, qword [rsp + 0x28]
jmp 0x18006b525
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18006b51e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18006b570
mov qword [rsp + 0x20], rax
jmp 0x18006b43d
xor eax, eax
add rsp, 0x68
ret
Function at 0x18006b5c0
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.18006bb50
mov qword [rsp + 0x28], 0
cmp qword [0x1800e9548], 0
jne 0x18006b608
cmp qword [0x1800e9540], 0
je 0x18006b608
mov rax, qword [0x1800e9540]
mov qword [0x1800e9548], rax
cmp qword [0x1800e9548], 0
je 0x18006b6ae
mov rax, qword [0x1800e9548]
cmp qword [rax + 0x10], 0
je 0x18006b6ae
mov rax, qword [0x1800e9548]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18006b6ae
mov rax, qword [0x1800e9548]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18006b6ae
mov rax, qword [0x1800e9548]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18006b674
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18006b67b
xor eax, eax
jmp 0x18006b829
mov rax, qword [0x1800e9548]
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 fcn.180073580
mov rax, qword [rsp + 0x28]
jmp 0x18006b829
mov rax, qword [0x1800e9540]
mov qword [0x1800e9548], rax
jmp 0x18006b6d0
mov rax, qword [0x1800e9548]
mov rax, qword [rax + 8]
mov qword [0x1800e9548], rax
cmp qword [0x1800e9548], 0
je 0x18006b71d
cmp qword [0x1800e9548], 0
je 0x18006b71b
mov rax, qword [0x1800e9548]
cmp qword [rax + 0x10], 0
je 0x18006b71b
mov rax, qword [0x1800e9548]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18006b71b
mov rax, qword [0x1800e9548]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18006b71b
jmp 0x18006b64c
jmp 0x18006b6be
mov rcx, qword [rsp + 0x60]
call fcn.18006d9d0
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.18006b830
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18006b827
mov rax, qword [rsp + 0x48]
mov qword [0x1800e9548], rax
mov rax, qword [0x1800e9548]
mov dword [rax], 0x52727464
mov rax, qword [0x1800e9548]
mov qword [rax + 0x10], 0
mov rax, qword [0x1800e9548]
mov rcx, qword [0x1800e9540]
mov qword [rax + 8], rcx
mov rax, qword [0x1800e9548]
mov qword [0x1800e9540], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1800e9548]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18006b7d8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18006b812
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 0x18006b7ce
mov rax, qword [0x1800e9548]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18006b64c
xor eax, eax
add rsp, 0x58
ret
Function at 0x18006f8fc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18006f980
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800aa9c0]
cmp byte [rcx + rax], 0
je 0x18006f980
dec r8
sub rdx, 1
jne 0x18006f966
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x18007e4d4
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.180071650
sub rsp, rax
mov rax, qword [0x1800d0070]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180092494
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18007e523
mov rax, rbp
jmp 0x18007e62b
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xea790]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180092a04
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xea790]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18007e627
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 0x18007e627
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180092a04
test rax, rax
js 0x18007e627
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18007e627
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18007e619
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18007e619
cmp byte [rcx], 0xd
jne 0x18007e5ff
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18007e60e
cmp byte [rcx + 1], 0xa
jne 0x18007e60e
inc rcx
jmp 0x18007e60e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd0470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18007e5e1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18007e62b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180070760
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 0x180086360
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180086207
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180086207
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180086207
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180086207
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180086207
cmp dword [rcx + 0x84], 0xe
jbe 0x180086207
cmp dword [rcx + 0xf8], 0
je 0x180086207
mov ecx, ebx
call fcn.1800862c4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180086094
nop
cmp dword [rbp + 0x20], 0
je 0x180086255
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180086260
int3
xor r8d, r8d
xor edx, edx
jmp 0x180086198
Function at 0x180092ab0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1800ea790]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x180092b0e
cmp word [rdx], r12w
jne 0x180092b0e
or byte [rax + r8*8 + 0x38], cl
jmp 0x180092b14
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x180092c6f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x180092c4a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x180092b4d
mov rcx, r9
jmp 0x180092b70
cmp r9, rdx
jae 0x180092b87
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x180092b31
jmp 0x180092c6f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180092c44
cmp dword [rsp + 0x80], edi
je 0x180092c44
mov rdx, r14
lea r11, [0x1800ea790]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x180092c1d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x180092bf0
mov word [rbx], r12w
jmp 0x180092c6b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x180092bf9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x180092c6b
cmp word [rsp + 0x70], r12w
jne 0x180092c2a
cmp rbx, rsi
je 0x180092bea
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.180092a0c
cmp word [rsp + 0x70], r12w
je 0x180092c6f
mov word [rbx], r13w
jmp 0x180092c6b
lea r11, [0x1800ea790]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x180092c67
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180092c6f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800953c4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1800953f6
call fcn.180086a14
mov dword [rax], 0x16
call fcn.1800777f4
jmp 0x180095515
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180095515
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x180095515
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x180095425
lock or dword [rcx + 0x14], 0x10
jmp 0x180095515
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x180095439
call fcn.1800975ac
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.180092494
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.180092f5c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x180095503
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1800954ce
mov rcx, rsi
call fcn.180092494
cmp eax, edi
je 0x1800954b9
mov rcx, rsi
call fcn.180092494
cmp eax, 0xfffffffe
je 0x1800954b9
mov rcx, rsi
call fcn.180092494
movsxd rbx, eax
lea r14, [0x1800ea790]
mov rcx, rsi
sar rbx, 6
call fcn.180092494
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1800954c0
lea rdx, [0x1800d0420]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800954ce
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1800954f2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1800954f2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1800954f2
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x180095518
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret