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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1800a3280]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x1800a6ee0]
lea rdx, [rsp + 0x28]
mov rdi, qword [0x1800a6dd0]
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 [0x1800a6ee8]
cvtsi2ss xmm0, qword [0x1800a6ef0]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x1800a6ee8], 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 [0x1800a6dd0]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x143], 0
mov byte [rdi + 0x142], al
cmp byte [rbx + 0x39b], 0
je 0x18002f78f
cvttss2si eax, dword [rbx + 0x128]
mov rcx, qword [0x1800a6ee0]
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 0x18002f78f
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 0x18002f80e
mov rdx, qword [0x1800a6ee0]
cmp rax, rdx
je 0x18002f7c7
mov rcx, rax
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x18002f80e
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x18002f80e
mov rcx, qword [0x1800a6ee0]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x18002f80e
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 0x18002f81e
mov eax, 0xffffffff
jmp 0x18002f82b
mov rax, qword [0x1800a6dd0]
mov eax, dword [rax + 0x1f48]
cmp dword [0x1800a3f70], eax
je 0x18002f83e
mov dword [0x1800a3f70], eax
call fcn.18002f200
call fcn.18002f380
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18005b660
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x18003cc80
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
test dword [rcx + 0x10], 0x100000
mov r10, rdx
je 0x18003cd0b
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18003cce0
lea r10, [0x18008c860]
nop dword [rax]
cmp r9b, 0x23
jne 0x18003ccc3
cmp byte [r8], r9b
jne 0x18003ccc3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r10 + rdx*4]
test r9b, r9b
jne 0x18003ccb0
mov rcx, qword [0x1800a6dd0]
not eax
cmp dword [rcx + 0x1c5c], eax
jne 0x18003ccf7
mov dword [rcx + 0x1c60], eax
cmp dword [rcx + 0x1c98], eax
jne 0x18003cd5d
mov byte [rcx + 0x1c9c], 1
add rsp, 0x28
ret
mov qword [rsp + 0x20], rbx
xor edx, edx
mov rbx, qword [0x1800a6dd0]
mov rcx, r10
mov r8, qword [rbx + 0x1c10]
movsxd rax, dword [r8 + 0xc8]
mov r8, qword [r8 + 0xd0]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.18000a950
cmp dword [rbx + 0x1c5c], eax
jne 0x18003cd49
mov dword [rbx + 0x1c60], eax
cmp dword [rbx + 0x1c98], eax
jne 0x18003cd58
mov byte [rbx + 0x1c9c], 1
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x180057970
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x180057a4b
nop dword [rax]
cmp rbx, qword [section..data]
jb 0x1800579be
cmp rbx, qword [0x1800a3008]
ja 0x1800579be
sub rbx, 0x8000000
jmp 0x180057a42
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180057a4b
cmp dword [rsp + 0x40], 0x10000
jne 0x180057a26
cmp qword [rsp + 0x38], 0x10000
jb 0x180057a26
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x180057a4d
sub rbx, 0x10000
jmp 0x180057a42
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x1800579a0
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x180057a60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x180057a82
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x180057b3d
nop dword [rax + rax]
cmp rbx, qword [section..data]
jb 0x180057aae
cmp rbx, qword [0x1800a3008]
ja 0x180057aae
add rbx, 0x8000000
jmp 0x180057b34
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180057b3d
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x180057b19
cmp rcx, 0x10000
jb 0x180057b19
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x180057b3f
add rbx, 0x10000
jmp 0x180057b34
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x180057b34
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x180057a90
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180057b50
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea rdi, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x180057b72
mov edi, 0x80000
mov qword [rsp + 0x38], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x180057b8e
mov rsi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x180057ba5
cmp byte [rcx + 1], 0x25
jne 0x180057be9
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x180057bb1
cmp al, 0xe9
jne 0x180057be9
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, rbx
cmp rcx, rbx
jae 0x180057bd4
cmp rcx, 0xffffffff80000000
jae 0x180057bcb
lea rsi, [rcx + 0x7ff80000]
jmp 0x180057be9
mov rsi, 0xfffffffffff80000
jmp 0x180057be9
lea rdi, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x180057be9
mov edi, 0x80000
mov rdx, qword [0x1800a5518]
mov rax, qword [0x1800a5510]
mov qword [rsp + 0x30], rbp
test rdx, rdx
jne 0x180057c10
test rax, rax
je 0x180057c27
mov rdx, rax
mov qword [0x1800a5518], rax
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x180057c27
cmp rcx, rdi
jb 0x180057c27
cmp rcx, rsi
jbe 0x180057d7a
mov qword [0x1800a5518], rax
mov rdx, rax
test rax, rax
je 0x180057c72
mov rcx, rax
nop dword [rax]
test rax, rax
je 0x180057c5c
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x180057c5c
cmp rax, rdi
jb 0x180057c5c
cmp rax, rsi
jbe 0x180057d7a
mov rdx, qword [rdx + 8]
mov qword [0x1800a5518], rdx
mov rcx, rdx
mov rax, rdx
test rdx, rdx
jne 0x180057c40
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x180057c9c
lea rdx, [rbx - 0x40000000]
mov rcx, rdi
call fcn.180057970
mov rdx, rax
test rax, rax
jne 0x180057d28
movabs rbp, 0xffffffff40000000
cmp rbx, rbp
jae 0x180057cc2
lea rcx, [rbx + 0x40000000]
mov rdx, rsi
call fcn.180057a60
mov rdx, rax
test rax, rax
jne 0x180057d28
cmp rbx, 0x40000000
jbe 0x180057ce2
lea rcx, [rbx - 0x40000000]
mov rdx, rbx
call fcn.180057a60
mov rdx, rax
test rax, rax
jne 0x180057d28
cmp rbx, rbp
jae 0x180057cfe
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.180057970
mov rdx, rax
test rax, rax
jne 0x180057d28
mov rdx, rbx
mov rcx, rdi
call fcn.180057970
mov rdx, rax
test rax, rax
jne 0x180057d28
mov rdx, rsi
mov rcx, rbx
call fcn.180057a60
mov rdx, rax
test rax, rax
je 0x180057db1
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
xor r8d, r8d
mov qword [0x1800a5518], rdx
mov qword [rdx + 0x10], r8
mov r9d, 0x2a7
mov rax, qword [0x1800a5510]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x1800a5510], rdx
mov qword [rcx], r8
lea rcx, [rcx - 0x60]
mov r8, rax
sub rax, 0x60
sub r9, 1
jne 0x180057d62
mov qword [rdx + 0x10], r8
mov rax, qword [rdx + 0x10]
cmp rax, rdi
jb 0x180057db1
cmp rax, rsi
ja 0x180057db1
mov rcx, qword [rax + 0x48]
movdqa xmm0, xmmword [0x180082640]
mov qword [rdx + 0x10], rcx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
jmp 0x180057db3
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180058010
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x18005803e
xor al, al
jmp 0x180058080
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x18005804f
xor al, al
jmp 0x180058080
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x180058076
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x180058076
mov al, 1
jmp 0x180058080
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret
Function at 0x180058560
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x28
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1800a5528], eax
je 0x180058587
mov eax, 0x10dd
add rsp, 0x28
pop rsi
pop rbp
ret
mov eax, dword [0x1800a552c]
test eax, eax
jne 0x1800586c3
test rbp, rbp
jne 0x1800585a4
lea eax, [rbp + 0x57]
add rsp, 0x28
pop rsi
pop rbp
ret
test rsi, rsi
je 0x1800585c0
cmp qword [rsi], 0
jne 0x1800585cc
mov dword [0x1800a552c], 6
mov qword [0x1800a5530], rsi
mov eax, 6
add rsp, 0x28
pop rsi
pop rbp
ret
mov qword [rsp + 0x40], rbx
mov ecx, 0x30
mov qword [rsp + 0x20], rdi
call fcn.18005b680
mov rdi, rax
test rax, rax
jne 0x1800585f0
lea ebx, [rax + 8]
jmp 0x180058698
mov rcx, qword [rsi]
xor edx, edx
call fcn.1800584b0
xor edx, edx
mov rcx, rbp
mov rbx, rax
call fcn.1800584b0
movzx edx, byte [rbx + 0x3e]
mov rbp, qword [rbx + 0x48]
sub rbp, rdx
test dl, dl
je 0x18005868a
cmp rdx, 0x1e
ja 0x18005868a
cmp qword [rbx + 0x50], rax
jne 0x18005868a
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
mov r8d, 0x40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18005864c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180058698
mov qword [rdi + 0x20], rbx
mov rbx, qword [rsp + 0x40]
mov dword [rdi + 8], 1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rbp
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x28], eax
mov rax, qword [0x1800a5540]
mov qword [rdi], rax
xor eax, eax
mov qword [0x1800a5540], rdi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbp
ret
cmp dword [0x1800a5520], 0
mov ebx, 9
jne 0x1800586a3
mov dword [0x1800a552c], ebx
test rdi, rdi
je 0x1800586b0
mov edx, 0x30
mov rcx, rdi
call fcn.18005ba2c
mov rdi, qword [rsp + 0x20]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov qword [0x1800a5530], rsi
add rsp, 0x28
pop rsi
pop rbp
ret

Function at 0x1800586d0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x1800a5528], 0
jne 0x180058777
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x1800a5528], ecx
jne 0x180058777
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x1800a5510]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x1800a5540], rdi
mov qword [0x1800a5538], rdi
mov qword [0x1800a5530], rdi
test rbx, rbx
je 0x180058760
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180058758
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180058730
jmp 0x180058760
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x1800a552c], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x180058d90
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x1800a552c]
mov rdi, rcx
test eax, eax
jne 0x180058e33
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x180058dba
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.18005b680
mov rbx, rax
test rax, rax
jne 0x180058dd6
lea edi, [rax + 8]
jmp 0x180058df9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x180058e17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.18005ba2c
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x1800a552c], edi
mov qword [0x1800a5530], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x1800a5538]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x1800a5538], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180058f10
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov r10, rcx
test rcx, rcx
jne 0x180058f2b
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r10, rax
mov eax, 0x5a4d
cmp word [r10], ax
je 0x180058f48
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180059020
movsxd rbx, dword [r10 + 0x3c]
add rbx, r10
cmp dword [rbx], 0x4550
je 0x180058f69
mov ecx, 0xbf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180059020
movzx eax, word [rbx + 0x14]
test ax, ax
jne 0x180058f84
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180059020
lea r11, [rbx + rax]
xor edx, edx
lea rdi, str..detour
mov dword [rsp + 0x20], edx
movzx eax, word [rbx + 6]
cmp edx, eax
jae 0x180059004
lea rcx, [rdx + rdx*4]
lea r8, [rcx*8]
lea r9, [r8 + r11]
xor ecx, ecx
nop
movzx eax, byte [r9 + rcx + 0x18]
inc rcx
cmp al, byte [rdi + rcx - 1]
jne 0x180059000
cmp rcx, 8
jne 0x180058fb0
mov eax, dword [r11 + r8 + 0x24]
test eax, eax
je 0x180059004
cmp dword [r11 + r8 + 0x28], 0
je 0x180059004
lea rbx, [r10 + rax]
mov eax, dword [rbx]
cmp eax, 0x40
jb 0x180059004
cmp dword [rbx + 4], 0x727444
jne 0x180059004
cmp dword [rbx + 8], 0
jne 0x180058ff3
mov dword [rbx + 8], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
jmp 0x180059020
inc edx
jmp 0x180058f91
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180059020
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180059030
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
lea rbx, [rcx + 0x10000]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
mov edi, 0x5a4d
nop dword [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180059084
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
cmp dword [rsp + 0x40], 0x1000
jne 0x1800590c7
mov eax, dword [rsp + 0x44]
cmp al, 1
je 0x1800590c7
bt eax, 8
jb 0x1800590c7
cmp word [rbx], di
jne 0x1800590c0
mov eax, dword [rbx + 0x3c]
cmp rax, qword [rsp + 0x38]
ja 0x1800590c0
cmp eax, 0x40
jb 0x1800590c0
cdqe
cmp dword [rax + rbx], 0x4550
jne 0x1800590c7
mov rax, rbx
jmp 0x180059079
jmp 0x1800590c7
mov rbx, qword [rsp + 0x38]
add rbx, qword [rsp + 0x20]
jmp 0x180059060

Function at 0x180063e10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x180063e47
call fcn.18006c49c
mov dword [rax], 0x16
call fcn.180063a98
xor eax, eax
jmp 0x180063ed5
mov rdx, r9
mov rcx, r8
call fcn.180063dac
mov rbx, rax
test rax, rax
je 0x180063ed2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x180063cd8]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x180063ebf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18006c410
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x180063ea6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x180063eb5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.18006d774
jmp 0x180063ed2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180063ecf
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180064268
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.18005c540
sub rsp, rax
mov rax, qword [0x1800a3280]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18006edd8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800642b7
mov rax, rbp
jmp 0x1800643bf
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 + 0xa6640]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180070698
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xa6640]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800643bb
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 0x1800643bb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180070698
test rax, rax
js 0x1800643bb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800643bb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800643ad
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800643ad
cmp byte [rcx], 0xd
jne 0x180064393
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800643a2
cmp byte [rcx + 1], 0xa
jne 0x1800643a2
inc rcx
jmp 0x1800643a2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa35e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180064375
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800643bf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18005b660
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 0x18006c870
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 0x18006c8df
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18006c8df
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18006c8df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18006c8df
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18006c8df
cmp dword [rcx + 0x84], 0xe
jbe 0x18006c8df
cmp dword [rcx + 0xf8], 0
je 0x18006c8df
mov ecx, ebx
call fcn.18006c990
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.18006c76c
nop
cmp dword [rbp + 0x20], 0
je 0x18006c92d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18006c938
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18006c870
Function at 0x180070744
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1800a6640]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18007079b
cmp word [rdx], r13w
jne 0x18007079b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800707a0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800708c5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800708e6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800707d9
mov rdx, r9
mov word [rbx], cx
jmp 0x180070800
cmp r9, r8
jae 0x180070810
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1800707ba
jmp 0x1800708c5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800708ba
cmp dword [rsp + 0x80], esi
je 0x1800708ba
lea r8, [0x1800a6640]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180070892
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180070862
mov word [rbx], r13w
jmp 0x1800708c2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18007086f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800708c2
cmp word [rsp + 0x70], r13w
jne 0x18007089f
cmp rbx, r14
je 0x18007085c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800706a0
cmp word [rsp + 0x70], r13w
je 0x1800708c5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1800a6640]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800708bf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800708c5
Function at 0x1800727ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180072802
mov al, 1
jmp 0x180072862
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180072813
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180072860
mov ecx, dword [rcx + 0x18]
nop
call fcn.180077144
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180072860
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180072860
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180072860
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180072862
xor al, al
add rsp, 0x20
pop rbx
ret