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

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x180084038]
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]
cmp rdi, 0x40000000
jbe 0x1800096ad
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180087290]
lea r15, [rdi + 0x40000000]
cmp qword [rsp + 0x60], r15
cmovbe r15, qword [rsp + 0x60]
sub r15, 0xfff
test rsi, rsi
je 0x1800096ef
cmp rsi, r14
jb 0x1800096e7
cmp rsi, r15
jae 0x1800096e7
cmp qword [rsi + 8], 0
jne 0x1800098ad
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800096d2
mov qword [rsp + 0xb8], rbx
mov rbx, rdi
mov qword [rsp + 0xc0], rbp
cmp rdi, r14
jb 0x180009772
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 0x180009769
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 0x180009769
cmp dword [rsp + 0x40], 0x10000
je 0x1800097eb
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180009769
sub rbx, rbp
cmp rbx, r14
jae 0x180009730
test rsi, rsi
jne 0x180009856
cmp rdi, r15
ja 0x18000989d
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 0x18000989d
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000989d
cmp dword [rsp + 0x40], 0x10000
je 0x180009824
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 0x1800097a2
jmp 0x18000989d
test rbx, rbx
je 0x180009769
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180009856
cmp rbx, r14
jae 0x180009710
jmp 0x180009772
test rdi, rdi
je 0x18000989d
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180009856
cmp rdi, r15
jbe 0x180009780
jmp 0x18000989d
xor eax, eax
lea rcx, [rsi + 0x40]
mov rdx, rcx
mov qword [rsi + 8], rax
sub rdx, rsi
mov dword [rsi + 0x10], eax
nop dword [rax]
mov rax, qword [rsi + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rsi + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x180009870
mov rax, qword [0x180087290]
mov qword [rsi], rax
mov qword [0x180087290], rsi
mov rbp, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xb8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180022dc0
mov rsi, qword [rsp + 0xc8]
add rsp, 0x90
pop r15
pop r14
pop rdi
ret
Function at 0x18000a2d0
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 [0x180084038]
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 0x18000a3fb
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18000a3f2
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18000a3d4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18000a3d4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18000a3d4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18000a392
mov rcx, qword [0x180087040]
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 0x18000a3f2
jmp 0x18000a3c7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18000a3c7
mov rcx, qword [0x180087040]
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 0x18000a3f2
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 0x18000a340
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18000a453
cmp dword [rbx + 0xc], esi
jbe 0x18000a453
nop word [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18000a44c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.18000a120
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18000a410
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180022dc0
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 0x18000a480
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 [0x180084038]
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 [0x180087280]
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 0x18000a4e9
mov eax, 0xa
jmp 0x18000a536
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 0x18000a505
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.180022dc0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18000a560
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x18008728c]
xor edi, edi
mov ebx, edi
test eax, eax
je 0x18000a670
mov rcx, qword [0x180087280]
add rcx, 0x20
test byte [rcx], 2
je 0x18000a5a3
inc ebx
add rcx, 0x38
cmp ebx, eax
jb 0x18000a587
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18000a670
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 1
call fcn.18000a2d0
mov edx, dword [0x18008728c]
cmp ebx, edx
jae 0x18000a5fd
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180087280]
test byte [rcx + rax + 0x20], 2
jne 0x18000a5f7
mov ecx, ebx
call fcn.18000a480
mov edi, eax
test eax, eax
jne 0x18000a5fd
mov edx, dword [0x18008728c]
inc ebx
cmp ebx, edx
jb 0x18000a5d0
cmp qword [rsp + 0x20], 0
je 0x18000a670
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18000a65c
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 0x18000a648
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 0x18000a620
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180087040]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x18000a960
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x180087038], esi
je 0x18000a9b5
cmp rbx, 0x20
jae 0x18000a99e
xor ecx, ecx
jmp 0x18000a9a0
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180087038], esi
jne 0x18000a994
cmp qword [0x180087040], r15
je 0x18000aa9f
test rdi, rdi
jne 0x18000a9d3
call fcn.18000a560
mov ebp, eax
jmp 0x18000aaa4
mov ecx, dword [0x18008728c]
mov ebx, r15d
test ecx, ecx
je 0x18000a9ff
mov r8, qword [0x180087280]
mov rax, r8
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x18000aa09
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18000a9f0
mov ebp, 4
jmp 0x18000aaa4
cmp ebx, 0xffffffff
je 0x18000a9ff
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x18000aa98
mov r8d, esi
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18000a2d0
mov ecx, ebx
call fcn.18000a480
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x18000aaa4
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18000aa82
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18000aa78
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x18000aa50
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180087040]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000aaa4
mov ebp, 5
jmp 0x18000aaa4
mov ebp, 2
xchg dword [0x180087038], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x18000d960
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x180084038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword gs:[0x30]
lea r8, [0x18005e010]
lea rdx, str.kernel32.dll
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
call fcn.18000b130
mov rcx, qword gs:[0x30]
mov rdx, rax
mov r8, qword [rcx + 0x60]
lea rcx, [rsp + 0x20]
mov r8, qword [r8 + 0x10]
call fcn.18000d880
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x18000dad6
cmp byte [rsp + 0x28], 0
je 0x18000da65
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, qword [rcx + 0x10]
mov rcx, qword [rsp + 0x20]
cmp rcx, r8
jbe 0x18000dad6
movsxd rax, dword [r8 + 0x3c]
mov edx, dword [rax + r8 + 0x50]
add rdx, r8
cmp rcx, rdx
jae 0x18000dad6
mov rcx, qword [rcx]
call fcn.18000b0c0
test al, al
jne 0x18000dad6
mov rdx, qword [0x180087120]
test rdx, rdx
jne 0x18000da4a
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rdx, qword [rcx + 0x10]
mov qword [0x180087120], rdx
mov rax, qword [rsp + 0x20]
xor ebp, ebp
mov ecx, eax
sub ecx, edx
cmp rax, rdx
mov al, 1
cmova ebp, ecx
mov dword [0x180087130], ebp
jmp 0x18000dad8
call rax
xor ebp, ebp
mov r14, rax
mov ebx, ebp
mov r15d, 0x8b48
mov rdx, qword [rsp + 0x20]
cmp word [rdx + rbx], r15w
jne 0x18000daca
movsxd rax, dword [rdx + rbx + 3]
lea rdi, [rdx + rbx]
add rax, 7
add rdi, rax
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rdx, qword [rcx + 0x10]
cmp rdi, rdx
jbe 0x18000daca
movsxd rax, dword [rdx + 0x3c]
mov ecx, dword [rax + rdx + 0x50]
add rcx, rdx
cmp rdi, rcx
jae 0x18000daca
mov rsi, qword [rdi]
mov rcx, rsi
call fcn.18000b0c0
test al, al
jne 0x18000daca
cmp rsi, r14
je 0x18000dafe
inc rbx
cmp rbx, 0x100
jl 0x18000da74
xor al, al
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180022dc0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov rcx, qword [0x180087120]
test rcx, rcx
jne 0x18000db22
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
mov qword [0x180087120], rcx
mov eax, edi
sub eax, ecx
cmp rdi, rcx
cmova ebp, eax
mov al, 1
mov dword [0x180087130], ebp
jmp 0x18000dad8
Function at 0x18001d4f0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x18001d512
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x18001d58c
mov rdi, r14
mov rcx, rbx
call fcn.180004200
test rax, rax
jle 0x18001d564
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.180025180
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18001d57c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x18001d584
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x18001d526
sub r14, rdi
jmp 0x18001d679
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x18001d5a3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18001d5a5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18001d5da
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180025180
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18001d676
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x18001d615
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x18001d651
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1800330b4
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x18001d68f
cmp rbp, rax
ja 0x18001d621
mov r8, rdi
test rdi, rdi
je 0x18001d676
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1800330b4
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x18001d679
Function at 0x18001ef20
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180084038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword gs:[0x30]
mov edx, 0x130
mov byte [0x180084e80], 0
mov rcx, qword [rax + 0x60]
mov rsi, qword [rcx + 0x10]
mov ecx, dword [0x180085d48]
movsxd rax, dword [rsi + 0x3c]
mov ebx, dword [rax + rsi + 0x50]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x180087270], ecx
jle 0x18001efad
lea rcx, [0x180087270]
call fcn.18002346c
cmp dword [0x180087270], 0xffffffff
jne 0x18001efad
lea rcx, [0x180087270]
call fcn.18002340c
lea eax, [rbx - 8]
xor ebp, ebp
mov r14d, eax
test eax, eax
je 0x18001f07b
mov rdi, rsi
mov r9, qword [rdi]
add rdi, 8
mov rbx, qword [rdi]
cmp r9, rbx
je 0x18001f06c
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rdx, qword [rcx + 0x10]
cmp r9, rdx
jbe 0x18001f06c
movsxd rax, dword [rdx + 0x3c]
mov ecx, dword [rax + rdx + 0x50]
add rcx, rdx
cmp r9, rcx
jae 0x18001f06c
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, qword [rcx + 0x10]
cmp rbx, r8
jbe 0x18001f06c
movsxd rax, dword [r8 + 0x3c]
mov ecx, dword [rax + r8 + 0x50]
add rcx, r8
cmp rbx, rcx
jae 0x18001f06c
mov r8d, 0x11
lea rcx, str.Conv_NameToString
mov rdx, r9
call fcn.180031a40
test eax, eax
jne 0x18001f06c
mov eax, dword [rbx]
cmp eax, 0x284883ec
je 0x18001f06c
cmp eax, 0x4883ec28
je 0x18001f06c
xor r9d, r9d
mov dword [rsp + 0x20], ebp
mov rdx, rbx
lea rcx, str.48_8B_05_________48_85_C0_75___48_8D_15
lea r8d, [r9 + 0x28]
call fcn.18000b5f0
test rax, rax
je 0x18001f07e
mov rax, rdi
sub rax, rsi
cmp rax, r14
jb 0x18001efc0
mov rbx, rbp
mov rdx, qword [0x180087178]
lea rax, str.89_44_____48_01_____E8
mov qword [rsp + 0x30], rax
lea rax, str.48_89_____48_8D_______E8
mov qword [rsp + 0x38], rax
lea rax, str.48_89_______48_89_____E8
mov qword [rsp + 0x40], rax
mov edi, ebp
test rdx, rdx
jne 0x18001f0fc
lea rsi, [rsp + 0x30]
cmp edi, 3
jae 0x18001f0f7
test rbx, rbx
jne 0x18001f0c4
mov rdx, rbp
jmp 0x18001f0e3
mov rcx, qword [rsi]
mov r9b, 1
mov r8d, 0x90
mov dword [rsp + 0x20], 0xffffffff
mov rdx, rbx
call fcn.18000b5f0
mov rdx, rax
inc edi
mov qword [0x180087178], rdx
add rsi, 8
test rdx, rdx
je 0x18001f0b5
jmp 0x18001f0fc
test rdx, rdx
je 0x18001f12a
mov rcx, qword [0x180087120]
test rcx, rcx
jne 0x18001f120
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
mov qword [0x180087120], rcx
mov eax, edx
sub eax, ecx
cmp rdx, rcx
cmova ebp, eax
mov dword [0x1800870d8], ebp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180022dc0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x18003ead8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18003eaee
mov al, 1
jmp 0x18003eb4e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18003eaff
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18003eb4c
mov ecx, dword [rcx + 0x18]
nop
call fcn.180048598
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18003eb4c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18003eb4c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18003eb4c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18003eb4e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180040148
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.180023b90
sub rsp, rax
mov rax, qword [0x180084038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18003c650
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180040197
mov rax, rbp
jmp 0x18004029f
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 + 0x86a10]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180041094
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x86a10]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18004029b
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 0x18004029b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180041094
test rax, rax
js 0x18004029b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18004029b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18004028d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18004028d
cmp byte [rcx], 0xd
jne 0x180040273
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180040282
cmp byte [rcx + 1], 0xa
jne 0x180040282
inc rcx
jmp 0x180040282
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x84410]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180040255
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18004029f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180022dc0
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 0x180040434
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, [0x180086a10]
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 0x18004048b
cmp word [rdx], r13w
jne 0x18004048b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180040490
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800405b5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800405d6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800404c9
mov rdx, r9
mov word [rbx], cx
jmp 0x1800404f0
cmp r9, r8
jae 0x180040500
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 0x1800404aa
jmp 0x1800405b5
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 0x1800405aa
cmp dword [rsp + 0x80], esi
je 0x1800405aa
lea r8, [0x180086a10]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180040582
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180040552
mov word [rbx], r13w
jmp 0x1800405b2
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 0x18004055f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800405b2
cmp word [rsp + 0x70], r13w
jne 0x18004058f
cmp rbx, r14
je 0x18004054c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18004109c
cmp word [rsp + 0x70], r13w
je 0x1800405b5
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, [0x180086a10]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800405af
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800405b5