joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001a830
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 0x18001a850
xor eax, eax
jmp 0x18001a936
cmp qword [rcx + 0x68], 0
je 0x18001a861
call fcn.18001cea8
jmp 0x18001a936
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18001a878
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18001a87a
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18001a8ac
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.180088240
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 0x18001a930
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18001a8e3
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 0x18001a90c
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.18006d9f8
add r14, rax
sub rdi, rax
cmp rax, rbx
jne 0x18001a930
cmp rdi, rbx
ja 0x18001a8ea
test rdi, rdi
je 0x18001a930
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call fcn.18006d9f8
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 0x180022870
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x18011e100]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edx, 4
lea r9, [rsp + 0x20]
movaps xmm6, xmm1
mov rbx, rcx
lea r8d, [rdx + 0x7c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov edx, 4
movss dword [rbx], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18005daf0
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret
Function at 0x180022c60
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], r8
mov rsi, rdx
mov rbp, rcx
movzx eax, byte [r8]
mov r13d, eax
movabs rcx, 0xcbf29ce484222325
xor r13, rcx
movabs rcx, 0x100000001b3
imul r13, rcx
mov rcx, qword [rbp + 0x30]
and rcx, r13
add rcx, rcx
mov rdx, qword [rbp + 0x18]
mov rbx, qword [rdx + rcx*8 + 8]
lea r8, [rbp + 8]
mov r12, qword [r8]
cmp rbx, r12
jne 0x180022cc3
mov rbx, r12
mov r14, r12
jmp 0x180022cf6
mov rdx, qword [rdx + rcx*8]
jmp 0x180022cd2
cmp rbx, rdx
je 0x180022cf0
mov rbx, qword [rbx + 8]
cmp al, byte [rbx + 0x10]
jne 0x180022cc9
mov qword [rsi], rbx
mov byte [rsi + 8], 0
mov rax, rsi
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov r12, rbx
mov r14, rbx
movabs rax, 0x7ffffffffffffff
cmp qword [rbp + 0x10], rax
je 0x180022e3d
mov qword [rsp + 0x30], r8
and qword [rsp + 0x38], 0
mov ecx, 0x20
call fcn.18005dc30
mov rdi, rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x20]
mov al, byte [rax]
mov byte [rdi + 0x10], al
and qword [rdi + 0x18], 0
mov rcx, qword [rbp + 0x10]
add rcx, 1
xorps xmm0, xmm0
js 0x180022d4a
cvtsi2ss xmm0, rcx
jmp 0x180022d5f
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [rbp + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x180022d72
cvtsi2ss xmm1, rcx
jmp 0x180022d87
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [rbp]
jbe 0x180022ddf
mov rcx, rbp
call fcn.180027a78
mov rcx, qword [rbp + 0x30]
and rcx, r13
add rcx, rcx
mov rdx, qword [rbp + 0x18]
mov rax, qword [rdx + rcx*8 + 8]
mov rbx, qword [rbp + 8]
cmp rax, rbx
je 0x180022dd2
mov r8, qword [rdx + rcx*8]
mov cl, byte [rdi + 0x10]
jmp 0x180022dca
mov rbx, rax
cmp rax, r8
je 0x180022e13
mov rax, qword [rax + 8]
cmp cl, byte [rax + 0x10]
jne 0x180022dbe
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov r14, rbx
mov r12, qword [rsp + 0x20]
mov rdx, qword [rbx + 8]
inc qword [rbp + 0x10]
mov qword [rdi], r12
mov qword [rdi + 8], rdx
mov qword [rdx], rdi
mov qword [rbx + 8], rdi
mov rcx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x30]
and rax, r13
add rax, rax
mov r8, qword [rcx + rax*8]
cmp r8, qword [rbp + 8]
jne 0x180022e1a
mov qword [rcx + rax*8], rdi
jmp 0x180022e2c
mov qword [rsp + 0x20], rax
jmp 0x180022dd7
cmp r8, r14
jne 0x180022e25
mov qword [rcx + rax*8], rdi
jmp 0x180022e31
cmp qword [rcx + rax*8 + 8], rdx
jne 0x180022e31
mov qword [rcx + rax*8 + 8], rdi
mov qword [rsi], rdi
mov byte [rsi + 8], 1
jmp 0x180022cde
lea rcx, str.unordered_map_set_too_long
call fcn.180039c0c
int3
Function at 0x180027a78
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rdx, qword [rcx + 0x10]
mov edi, 1
add rdx, rdi
mov rbx, qword [rcx + 0x38]
mov rsi, rcx
xorps xmm0, xmm0
js 0x180027aac
cvtsi2ss xmm0, rdx
jmp 0x180027ac1
mov rax, rdx
and rdx, rdi
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call fcn.180087620
movss xmm1, dword [0x18010db10]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x180027aef
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x180027aef
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x180027b1d
cmp rbx, 0x200
jae 0x180027b1a
shl rbx, 3
cmp rbx, rcx
jae 0x180027b1d
mov rbx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov rax, rdi
shl rax, cl
cmp rbx, rax
ja 0x180027c85
lea rax, [rbx - 1]
mov rbx, qword [rsi + 8]
or rax, rdi
mov r8, rbx
bsr rcx, rax
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.18001e104
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180027c39
movzx r8d, byte [rax + 0x10]
movabs r9, 0xcbf29ce484222325
mov r11, qword [rsi + 0x30]
mov edx, r8d
mov rdi, qword [rsi + 0x18]
xor rdx, r9
mov rcx, qword [rcx]
movabs r9, 0x100000001b3
imul rdx, r9
and r11, rdx
add r11, r11
cmp qword [rdi + r11*8], rbx
jne 0x180027bc2
mov qword [rdi + r11*8], rax
mov qword [rdi + r11*8 + 8], rax
jmp 0x180027c2d
mov r10, qword [rdi + r11*8 + 8]
cmp r8b, byte [r10 + 0x10]
jne 0x180027c02
mov r10, qword [r10]
cmp r10, rax
je 0x180027bbb
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180027bbb
mov r10, qword [r10 + 8]
cmp r8b, byte [r10 + 0x10]
je 0x180027c5f
cmp qword [rdi + r11*8], r10
jne 0x180027bf8
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [rdi + r11*8], rax
mov rax, rcx
cmp rcx, rbx
jne 0x180027b7d
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.180028dfc
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov r10, qword [r10]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180027c2d
lea rcx, str.invalid_hash_bucket_count
call fcn.180039c0c
int3
Function at 0x180028f70
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rdi, r8
mov r14, rdx
mov r13, rcx
cmp rdx, r8
je 0x1800290da
mov rbp, qword [rcx + 0x18]
movabs rax, 0xcbf29ce484222325
movzx r15d, byte [rdx + 0x10]
mov rbx, rdx
mov r12, qword [rcx + 8]
xor r15, rax
mov rsi, qword [rdx + 8]
movabs rax, 0x100000001b3
imul r15, rax
and r15, qword [rcx + 0x30]
add r15, r15
mov rax, qword [rbp + r15*8]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + r15*8 + 8]
mov qword [rsp + 0x20], rax
mov rax, rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x38], rbx
mov rbx, qword [rbx]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x180029010
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rsp + 0x38]
mov edx, 0x20
mov rcx, rax
call fcn.18005dfe4
mov rax, qword [rsp + 0x20]
dec qword [r13 + 0x10]
cmp qword [rsp + 0x28], rax
je 0x180029047
cmp rbx, rdi
jne 0x180028fe8
cmp qword [rsp + 0x30], r14
jne 0x1800290d3
mov qword [rbp + r15*8], rbx
jmp 0x1800290d3
cmp qword [rsp + 0x30], r14
jne 0x180029058
mov qword [rbp + r15*8], r12
mov rax, r12
jmp 0x18002905b
mov rax, rsi
mov qword [rbp + r15*8 + 8], rax
jmp 0x180029105
movzx eax, byte [rbx + 0x10]
movabs rcx, 0xcbf29ce484222325
mov r14, qword [r13 + 0x30]
xor rax, rcx
movabs rcx, 0x100000001b3
imul rax, rcx
and r14, rax
add r14, r14
mov rax, qword [rbp + r14*8 + 8]
mov qword [rsp + 0x28], rax
mov r15, rbx
mov rbx, qword [rbx]
mov rcx, qword [r15 + 0x18]
test rcx, rcx
je 0x1800290b1
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov edx, 0x20
mov rcx, r15
call fcn.18005dfe4
dec qword [r13 + 0x10]
cmp r15, qword [rsp + 0x28]
je 0x1800290fb
cmp rbx, rdi
jne 0x180029098
mov qword [rbp + r14*8], rbx
mov qword [rsi], rbx
mov qword [rbx + 8], rsi
lea r11, [rsp + 0x40]
mov rax, rdi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [rbp + r14*8], r12
mov qword [rbp + r14*8 + 8], r12
cmp rbx, rdi
jne 0x180029065
jmp 0x1800290d3
Function at 0x18002a6f4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x18011e100]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rcx + 0x10]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x18002a8f4
mov rbx, qword [rcx + 0x18]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call fcn.18003972c
test eax, eax
jne 0x18002a91d
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
je 0x18002a928
and qword [rsi + 0x28], 0
and qword [rsi + 0x30], 0
xor edx, edx
mov r8d, 0x120
lea rcx, [rsp + 0x50]
call fcn.180088980
and qword [rsp + 0x60], 0
lea r12, vtable.fmt::v10::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], 0xfa
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov rdx, rsi
call qword [rax + 8]
cmp byte [rdi + 0x20], 0
je 0x18002a887
mov r8, qword [rsi + 0x28]
cmp qword [rsi + 0x30], r8
jbe 0x18002a887
test r8, r8
je 0x18002a7e0
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movsxd rax, dword [rsi + 0x10]
movzx r14d, word [rdi + rax*2 + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x18002a803
lea r14d, [rax + 7]
jmp 0x18002a820
mov edx, dword [rsp + 0x40]
and edx, 0xfff0
or edx, r14d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movzx r14d, word [rsp + 0x40]
mov r8, qword [rsi + 0x30]
mov rcx, qword [rsi + 0x28]
cmp r8, rcx
jbe 0x18002a84b
sub r8d, ecx
mov rdx, qword [rsp + 0x58]
add rdx, rcx
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movzx edx, r14w
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, qword [rsi + 0x30]
mov r8, qword [rsp + 0x60]
cmp r8, rcx
jbe 0x18002a8ac
sub r8d, ecx
mov rdx, qword [rsp + 0x58]
add rdx, rcx
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
jmp 0x18002a8ac
and dword [rsp + 0x30], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
cmp rcx, rax
je 0x18002a8ec
mov rdx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002a8e6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002a917
call fcn.18005dfe4
nop
mov rcx, rbx
call fcn.180039754
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.18005daf0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180063fd4
nop
mov ecx, 5
call fcn.180039a40
int3
dec eax
mov dword [rbx + 0x4c], eax
mov ecx, 6
call fcn.180039a40
int3
Function at 0x18002dbe8
Capabilities:
Hash data using fnv

Disassembly:
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
test rdx, rdx
je 0x18002dc18
movzx eax, byte [rcx + r9]
movabs r10, 0x100000001b3
xor r8, rax
inc r9
imul r8, r10
cmp r9, rdx
jb 0x18002dbfa
mov rax, r8
ret

Function at 0x180039e70
Capabilities:
Get geographical location

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

Function at 0x1800533cc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x18003fbea
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x18003fbcd
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x18003fbb8

Function at 0x18005c084
Capabilities:
Encode data using xor

Disassembly:
sub r8, rdx
mov rcx, rdx
mov rdx, r8
jmp fcn.18002dbe8

Function at 0x18005cfe8
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.18006e034
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x18005d03a
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x18005d03a
sub ecx, 1
je 0x18005d033
cmp ecx, 1
je 0x18005d02c
xor eax, eax
jmp 0x18005d03f
mov eax, 3
jmp 0x18005d03f
mov eax, 1
jmp 0x18005d03f
mov eax, 2
add rsp, 0x28
ret
Function at 0x180071b70
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 0x180071bdf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180071bdf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180071bdf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180071bdf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180071bdf
cmp dword [rcx + 0x84], 0xe
jbe 0x180071bdf
cmp dword [rcx + 0xf8], 0
je 0x180071bdf
mov ecx, ebx
call fcn.180071c90
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.180071a6c
nop
cmp dword [rbp + 0x20], 0
je 0x180071c2d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180071c38
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180071b70

Function at 0x180074e78
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180074e8e
mov al, 1
jmp 0x180074eee
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180074e9f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180074eec
mov ecx, dword [rcx + 0x18]
nop
call fcn.180081bf8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180074eec
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180074eec
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180074eec
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180074eee
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800799b4
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.18005e9c0
sub rsp, rax
mov rax, qword [0x18011e100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180074d58
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180079a03
mov rax, rbp
jmp 0x180079b0b
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 + 0x1247d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18007a900
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x1247d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180079b07
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 0x180079b07
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18007a900
test rax, rax
js 0x180079b07
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180079b07
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180079af9
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180079af9
cmp byte [rcx], 0xd
jne 0x180079adf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180079aee
cmp byte [rcx + 1], 0xa
jne 0x180079aee
inc rcx
jmp 0x180079aee
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x11e6f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180079ac1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180079b0b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18005daf0
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 0x180079ca0
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, [0x1801247d0]
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 0x180079cf7
cmp word [rdx], r13w
jne 0x180079cf7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180079cfc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180079e21
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180079e42
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180079d35
mov rdx, r9
mov word [rbx], cx
jmp 0x180079d5c
cmp r9, r8
jae 0x180079d6c
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 0x180079d16
jmp 0x180079e21
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 0x180079e16
cmp dword [rsp + 0x80], esi
je 0x180079e16
lea r8, [0x1801247d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180079dee
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180079dbe
mov word [rbx], r13w
jmp 0x180079e1e
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 0x180079dcb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180079e1e
cmp word [rsp + 0x70], r13w
jne 0x180079dfb
cmp rbx, r14
je 0x180079db8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18007a908
cmp word [rsp + 0x70], r13w
je 0x180079e21
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, [0x1801247d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180079e1b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180079e21
Function at 0x18007e55c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18007e58c
xor eax, eax
jmp 0x18007e64f
mov rbp, rbx
cmp word [rax], si
je 0x18007e5b1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18007e598
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18007e594
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800781c4
movsxd r14, eax
test eax, eax
jne 0x18007e5ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18007e585
mov rcx, r14
call fcn.180075548
mov rdi, rax
test rax, rax
jne 0x18007e608
xor ecx, ecx
call fcn.18007550c
jmp 0x18007e5e4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800781c4
test eax, eax
jne 0x18007e639
mov rcx, rdi
call fcn.18007550c
jmp 0x18007e643
xor ecx, ecx
call fcn.18007550c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x18007e66c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x18007e6f3
mov rsi, rbx
cmp word [rax], bp
je 0x18007e6b2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18007e69c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18007e698
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180075548
mov rdi, rax
test rax, rax
je 0x18007e6e0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180088240
mov rbp, rdi
xor ecx, ecx
call fcn.18007550c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret