joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420840
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_cond_locked_shmem_rwlock]
lea rcx, str.cond_locked_shmem_rwlock
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x421270
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init_init]
lea rcx, str.init
mov edx, 8
jmp dbg.__shmem_grab

Function at 0x421290
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.eh_globals
xor r8d, r8d
mov edx, 0x10
jmp dbg.__shmem_grab

Function at 0x421940
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___terminate_handler_sh]
lea rcx, str.__terminate_handler_sh
mov edx, 8
jmp dbg.__shmem_grab

Function at 0x421960
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___unexpected_handler_sh]
lea rcx, str.__unexpected_handler_sh
mov edx, 8
jmp dbg.__shmem_grab

Function at 0x422c20
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
test rax, rax
jle 0x422c51
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
mov dword [rbx + 0x48], 0xffffffff
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x4235a0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x00487090], 0
jne 0x423667
mov byte [0x00487090], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x4236fa
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov rsi, qword [sym.imp.msvcrt.dll___iob_func]
mov rdi, rax
call rsi
lea rcx, str.terminate_called_after_throwing_an_instance_of_
lea r9, [rax + 0x60]
mov r8d, 0x30
mov edx, 1
call sym.fwrite
cmp dword [rsp + 0x2c], 0
je 0x423657
call rsi
lea rdx, [rax + 0x60]
mov rcx, rbx
call sym.fputs
call rsi
lea rcx, [0x004893c1]
lea r9, [rax + 0x60]
mov r8d, 2
mov edx, 1
call sym.fwrite
cmp dword [rsp + 0x2c], 0
je 0x42368d
call sym.__cxa_rethrow
call rsi
lea rdx, [rax + 0x60]
mov rcx, rdi
call sym.fputs
jmp 0x42362e
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.terminate_called_recursively_n
lea r9, [rax + 0x60]
mov r8d, 0x1d
mov edx, 1
call sym.fwrite
call sym.abort
mov rcx, rdi
call sym.free
jmp 0x423652
call sym.abort
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.terminate_called_without_an_active_exception_n
lea r9, [rax + 0x60]
mov r8d, 0x2d
mov edx, 1
call sym.fwrite
jmp 0x4236f5

Function at 0x451a20
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
mov rcx, rbp
call method.std::__basic_file_char_.fd__
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sym.read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x451a70
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x451a3a
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001760
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x80
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x78], rax
call fcn.14000203c
mov rsi, rax
mov qword [rsp + 0x38], rax
mov rcx, rax
call fcn.14000205b
mov r14, rax
mov qword [rsp + 0x30], rax
call fcn.140002020
mov r15, rax
mov qword [rsp + 0x40], rax
lea rdx, str.SetProcessMitigationPolicy
mov rcx, rsi
call r14
test rax, rax
je 0x1400017ec
mov dword [rsp + 0x70], 1
mov r8d, 4
lea rdx, [rsp + 0x70]
lea ecx, [r8 + 4]
call rax
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rdx, str.GetSystemFirmwareTable
mov rcx, rsi
call r14
mov rbx, rax
mov r9d, 0x14
lea r8, [rsp + 0x58]
xor edx, edx
mov ecx, 0x56424f58
call rbx
test eax, eax
je 0x140001822
cmp dword [rsp + 0x58], 0x5659424f
je 0x1400019c3
mov r9d, 0x14
lea r8, [rsp + 0x58]
xor edx, edx
mov ecx, 0x564d5868
call rbx
test eax, eax
je 0x140001848
cmp dword [rsp + 0x58], 0x564d5868
je 0x1400019c3
mov r9d, 0x41
lea r8, [0x1400034b0]
lea rdx, [0x1400034c0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x1400018cf
mov eax, dword [str.n]
mov dword [rsp + 0x70], eax
movzx eax, byte [0x140003330]
mov byte [rsp + 0x74], al
xor byte [rsp + 0x70], 0x1e
xor byte [rsp + 0x71], 0x1e
xor byte [rsp + 0x72], 0x1e
xor byte [rsp + 0x73], 0x1e
lea rdx, [rsp + 0x70]
mov rcx, rsi
call r14
mov rdi, rax
mov ebx, 5
nop word [rax + rax]
mov edx, 0x3e8
mov ecx, 1
call rdi
sub rbx, 1
jne 0x1400018b0
lea r9d, [rbx + 0x40]
lea rdx, [0x1400034e8]
jmp 0x1400018dc
mov r9d, 0x30
lea rdx, [0x1400034f8]
lea r8, [0x1400034b0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [str.n]
mov dword [rsp + 0x70], eax
movzx eax, byte [0x140003330]
mov byte [rsp + 0x74], al
xor byte [rsp + 0x70], 0x1e
xor byte [rsp + 0x71], 0x1e
xor byte [rsp + 0x72], 0x1e
xor byte [rsp + 0x73], 0x1e
lea rdx, [rsp + 0x70]
mov rcx, rsi
call r14
mov rdi, rax
mov ebx, 0xf
nop word [rax + rax]
mov edx, 0x3e8
mov ecx, 1
call rdi
sub rbx, 1
jne 0x140001930
lea rdx, str.NtQueryInformationProcess
mov rcx, r15
call r14
mov rdi, rax
lea rdx, [0x1400032e0]
mov rcx, rsi
call r14
test rdi, rdi
je 0x140001998
test rax, rax
je 0x140001998
mov qword [rsp + 0x50], rbx
call rax
mov rcx, rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 8]
lea r8, [rsp + 0x50]
lea edx, [rbx + 0x1e]
call rdi
test eax, eax
jne 0x14000199a
cmp qword [rsp + 0x50], rbx
jne 0x1400019c3
jmp 0x14000199a
xor ebx, ebx
lea r8, str.sflink2024
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400019c3
mov dword [rbx], 0x2a
jmp 0x1400019c3
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002110
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
Function at 0x140002020
Capabilities:
Access peb ldr_data

Disassembly:
xor rax, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
ret

Function at 0x14000203c
Capabilities:
Access peb ldr_data

Disassembly:
xor rax, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
ret
Function at 0x1800038d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
lea rbx, [rcx + 0x10]
xor r8d, r8d
lea rcx, [0x1800815b0]
xor edx, edx
lea r9, [rsp + 0x68]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x1800039ce
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.18000d760
mov rdi, rax
cmp rbx, rax
je 0x180003981
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x180003953
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x18000394e
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180003a55
mov rcx, r8
call fcn.1800547cc
mov qword [rbx + 0x18], 7
xor eax, eax
mov qword [rbx + 0x10], rax
mov word [rbx], ax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], 7
mov word [rdi], ax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1800039c3
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800039be
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003a55
call fcn.1800547cc
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.180052f7c
lea rcx, str.Sakura
mov qword [rsp + 0x28], 6
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov edx, eax
call fcn.180003240
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180003480
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x180003a44
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003a3f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003a4f
call fcn.1800547cc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
call fcn.18006373c
int3
call fcn.18006373c
int3

Function at 0x180016ea0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x180016efd
lea rbx, [0x18008d600]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180016ee4
cmp r10, 2
jb 0x180016ee4
cmp byte [r9], r8b
jne 0x180016ee4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180016ec0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180016f3f
lea rbx, [0x18008d600]
cmp r8b, 0x23
jne 0x180016f23
cmp byte [r9], r8b
jne 0x180016f23
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180016f10
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x180017080
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18001709a
mov qword [r8], 0
lea rdx, [0x180092944]
call fcn.180016f50
mov rbx, rax
test rax, rax
jne 0x1800170ba
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call fcn.180063ddc
mov esi, eax
cmp eax, 0xffffffff
je 0x180017188
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.1800632fc
test eax, eax
jne 0x180017188
mov rcx, rbx
call fcn.180063ddc
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180017188
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.1800632fc
test eax, eax
jne 0x180017188
cmp rdi, 0xffffffffffffffff
je 0x180017188
mov rax, qword [0x1800a5cf0]
test rax, rax
je 0x18001712a
inc dword [rax + 0x3b0]
mov rcx, rdi
call fcn.180066e08
mov rsi, rax
test rax, rax
je 0x180017188
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.180062f2c
mov rcx, rbx
cmp rax, rdi
je 0x180017176
call fcn.18005f068
mov rax, qword [0x1800a5cf0]
test rax, rax
je 0x18001716c
dec dword [rax + 0x3b0]
mov rcx, rsi
call fcn.180062b08
jmp 0x180017190
call fcn.18005f068
test r14, r14
je 0x180017183
mov qword [r14], rdi
mov rax, rsi
jmp 0x180017192
mov rcx, rbx
call fcn.18005f068
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x18001dc10
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18001dc60
lea r11, [0x18008d600]
nop dword [rax]
cmp r9b, 0x23
jne 0x18001dc43
cmp byte [r8], r9b
jne 0x18001dc43
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x18001dc30
mov rcx, qword [0x1800a5cf0]
not eax
movsxd rdx, dword [rcx + 0x1be8]
mov r9, qword [rcx + 0x1bf0]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x18001dcc1
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x18001dcb9
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18001dcbc
mov rdx, r8
test rdx, rdx
jne 0x18001dc90
cmp r9, r10
je 0x18001dcd0
cmp dword [r9], eax
jne 0x18001dcd0
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x180022d90
Capabilities:
Hash data with crc32

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [0x1800a5cf0]
lea rdx, [0x18008d600]
mov r8, rcx
mov rbx, qword [rax + 0x1c08]
add rbx, 0xc8
movsxd r9, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + r9*4 - 4]
not edi
movzx eax, r8b
mov r8d, dword [rbx + 4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 9]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xa]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xb]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xc]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xd]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xe]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xf]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
shr edi, 8
xor rcx, rax
xor edi, dword [rdx + rcx*4]
not edi
cmp r9d, r8d
jne 0x180022e91
lea ecx, [r9 + 1]
test r8d, r8d
je 0x180022e7d
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x180022e82
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.18002a3b0
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18004a420
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
test dword [rcx + 0x10], 0x100000
mov r10, rdx
je 0x18004a4ab
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18004a480
lea r10, [0x18008d600]
nop dword [rax]
cmp r9b, 0x23
jne 0x18004a463
cmp byte [r8], r9b
jne 0x18004a463
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 0x18004a450
mov rcx, qword [0x1800a5cf0]
not eax
cmp dword [rcx + 0x1c50], eax
jne 0x18004a497
mov dword [rcx + 0x1c54], eax
cmp dword [rcx + 0x1c90], eax
jne 0x18004a4fd
mov byte [rcx + 0x1c94], 1
add rsp, 0x28
ret
mov qword [rsp + 0x20], rbx
xor edx, edx
mov rbx, qword [0x1800a5cf0]
mov rcx, r10
mov r8, qword [rbx + 0x1c08]
movsxd rax, dword [r8 + 0xc8]
mov r8, qword [r8 + 0xd0]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.180016ea0
cmp dword [rbx + 0x1c50], eax
jne 0x18004a4e9
mov dword [rbx + 0x1c54], eax
cmp dword [rbx + 0x1c90], eax
jne 0x18004a4f8
mov byte [rbx + 0x1c94], 1
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x18004fc90
Capabilities:
Hide thread from debugger

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtSetInformationThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18004fcd6
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x11]
mov rcx, rbx
call rax
test eax, eax
jne 0x18004fcd2
mov al, 1
jmp 0x18004fcd6
jmp 0x18004fcd6
add rsp, 0x20
pop rbx
ret

Function at 0x180052ee0
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 0x180052f64
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800815c0]
cmp byte [rcx + rax], 0
je 0x180052f64
dec r8
sub rdx, 1
jne 0x180052f4a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x180063b5c
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.1800550d0
sub rsp, rax
mov rax, qword [0x1800a3078]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800699c4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180063bab
mov rax, rbp
jmp 0x180063cb3
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 + 0xa5560]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800700a4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xa5560]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180063caf
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 0x180063caf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800700a4
test rax, rax
js 0x180063caf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180063caf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180063ca1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180063ca1
cmp byte [rcx], 0xd
jne 0x180063c87
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180063c96
cmp byte [rcx + 1], 0xa
jne 0x180063c96
inc rcx
jmp 0x180063c96
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa3470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180063c69
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180063cb3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800550a0
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 0x180067300
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 0x180067337
call fcn.180060998
mov dword [rax], 0x16
call fcn.18006371c
xor eax, eax
jmp 0x1800673c5
mov rdx, r9
mov rcx, r8
call fcn.18006729c
mov rbx, rax
test rax, rax
je 0x1800673c2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1800671c8]
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 0x1800673af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18006090c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x180067396
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1800673a5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.18006cee8
jmp 0x1800673c2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1800673bf
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 0x180069ae4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180069afa
mov al, 1
jmp 0x180069b5a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180069b0b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180069b58
mov ecx, dword [rcx + 0x18]
nop
call fcn.180073d44
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180069b58
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180069b58
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180069b58
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180069b5a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18006f444
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, [0x1800a5560]
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 0x18006f49b
cmp word [rdx], r13w
jne 0x18006f49b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18006f4a0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18006f5c5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18006f5e6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18006f4d9
mov rdx, r9
mov word [rbx], cx
jmp 0x18006f500
cmp r9, r8
jae 0x18006f510
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 0x18006f4ba
jmp 0x18006f5c5
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 0x18006f5ba
cmp dword [rsp + 0x80], esi
je 0x18006f5ba
lea r8, [0x1800a5560]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18006f592
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18006f562
mov word [rbx], r13w
jmp 0x18006f5c2
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 0x18006f56f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18006f5c2
cmp word [rsp + 0x70], r13w
jne 0x18006f59f
cmp rbx, r14
je 0x18006f55c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800700ac
cmp word [rsp + 0x70], r13w
je 0x18006f5c5
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, [0x1800a5560]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18006f5bf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18006f5c5