joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180044cc8
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800826e0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x78], rbx
je 0x180044e27
cmp byte [rcx + 0x81], bl
je 0x180044e27
mov rax, qword [rcx]
or edx, 0xffffffff
mov rax, qword [rax + 0x18]
call qword [0x18004d668]
cmp eax, 0xffffffff
jne 0x180044d30
xor al, al
jmp 0x180044e2c
mov edx, 0xf
mov qword [rbp - 0x18], rdx
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
mov byte [rax + 8], bl
lea esi, [rdx - 0xe]
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae r9, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
mov rcx, qword [rdi + 0x78]
mov rdx, qword [rcx]
add r9, qword [rbp - 0x20]
mov rax, qword [rdx + 0x40]
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
lea rdx, [rdi + 0x84]
call qword [0x18004d668]
mov ecx, eax
test eax, eax
je 0x180044d9e
sub ecx, esi
je 0x180044da4
cmp ecx, 2
jne 0x180044e13
jmp 0x180044e10
mov byte [rdi + 0x81], bl
lea rax, [rbp - 0x30]
mov rdx, qword [rbp - 0x30]
mov r10, qword [rbp - 0x18]
cmp r10, 0x10
cmovae rax, rdx
mov r14, qword [rbp - 0x40]
sub r14, rax
je 0x180044de4
lea rcx, [rbp - 0x30]
cmp r10, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x90]
mov r8, r14
mov rdx, rsi
call sub.msvcrt.dll_fwrite
cmp r14, rax
jne 0x180044e0d
cmp byte [rdi + 0x81], bl
je 0x180044e0a
test r14, r14
jne 0x180044d51
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x30]
call fcn.180026414
jmp 0x180044d51
mov bl, sil
mov sil, bl
mov bl, sil
cmp qword [rbp - 0x18], 0x10
jb 0x180044e23
mov rcx, qword [rbp - 0x30]
call fcn.180045898
mov al, bl
jmp 0x180044e2c
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180045e80
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180044f40
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1800826e0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov esi, edx
mov rdi, rcx
or ebx, 0xffffffff
cmp edx, ebx
jne 0x180044f82
xor eax, eax
jmp 0x180045143
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x180044fbc
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x180044fbc
lea ecx, [r8 - 1]
mov dword [rdx], ecx
mov rdx, qword [rdi + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
mov eax, esi
jmp 0x180045143
cmp qword [rdi + 0x90], 0
je 0x180045141
mov rdx, qword [rdi + 0x18]
lea rax, [rdi + 0x80]
cmp qword [rdx], rax
jne 0x180044ff4
mov rcx, qword [rdi + 0x70]
mov rax, qword [rdi + 0x68]
mov qword [rdx], rax
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
sub ecx, ecx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
cmp qword [rdi + 0x78], 0
jne 0x180045015
movsx ecx, sil
mov rdx, qword [rdi + 0x90]
call sub.msvcrt.dll_fputc
cmp eax, ebx
cmovne ebx, esi
jmp 0x180045141
mov byte [rbp - 0x19], sil
mov edx, 0xf
mov qword [rbp + 0x1f], rdx
xor ecx, ecx
mov qword [rbp + 7], rcx
mov qword [rbp + 0x17], 8
lea rax, [rbp + 7]
mov byte [rax + 8], cl
lea r8, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae r8, qword [rbp + 7]
lea r9, [rbp + 7]
cmovae r9, qword [rbp + 7]
mov rcx, qword [rdi + 0x78]
mov rdx, qword [rcx]
add r8, qword [rbp + 0x17]
mov rax, qword [rdx + 0x38]
lea rdx, [rbp - 0x11]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r9
lea rdx, [rbp - 9]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x18]
lea r8, [rbp - 0x19]
lea rdx, [rdi + 0x84]
call qword [0x18004d668]
test eax, eax
js 0x180045131
cmp eax, 1
jg 0x180045117
lea rax, [rbp + 7]
mov rdx, qword [rbp + 7]
mov r10, qword [rbp + 0x1f]
cmp r10, 0x10
cmovae rax, rdx
mov r14, qword [rbp - 0x11]
sub r14, rax
je 0x1800450dd
lea rcx, [rbp + 7]
cmp r10, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x90]
mov r8, r14
mov edx, 1
call sub.msvcrt.dll_fwrite
cmp r14, rax
jne 0x180045131
mov byte [rdi + 0x81], 1
lea rax, [rbp - 0x19]
cmp qword [rbp - 9], rax
jne 0x180045113
test r14, r14
jne 0x180045037
cmp qword [rbp + 0x17], 0x20
jae 0x180045131
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp + 7]
call fcn.180026414
jmp 0x180045037
mov ebx, esi
jmp 0x180045131
cmp eax, 3
jne 0x180045131
movsx ecx, byte [rbp - 0x19]
mov rdx, qword [rdi + 0x90]
call sub.msvcrt.dll_fputc
cmp eax, ebx
cmovne ebx, esi
cmp qword [rbp + 0x1f], 0x10
jb 0x180045141
mov rcx, qword [rbp + 7]
call fcn.180045898
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180045e80
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180168034
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180168034
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 0x1801680a3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1801680a3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1801680a3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1801680a3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1801680a3
cmp dword [rcx + 0x84], 0xe
jbe 0x1801680a3
cmp dword [rcx + 0xf8], 0
je 0x1801680a3
mov ecx, ebx
call fcn.180167f6c
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.1801681c8
nop
cmp dword [rbp + 0x20], 0
je 0x1801680f1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180168000
int3

Function at 0x18016be20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18016be48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18016be48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180176200
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.180161910
sub rsp, rax
mov rax, qword [0x18019d0c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1801751bc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18017624f
mov rax, rbp
jmp 0x180176357
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 + 0x19fed0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180175f30
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x19fed0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180176353
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 0x180176353
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180175f30
test rax, rax
js 0x180176353
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180176353
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180176345
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180176345
cmp byte [rcx], 0xd
jne 0x18017632b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18017633a
cmp byte [rcx + 1], 0xa
jne 0x18017633a
inc rcx
jmp 0x18017633a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x19dc30]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18017630d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180176357
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180161970
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 0x180176b5c
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 0x180176b8c
xor eax, eax
jmp 0x180176c4f
mov rbp, rbx
cmp word [rax], si
je 0x180176bb1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180176b98
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180176b94
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.18016f4d4
movsxd r14, eax
test eax, eax
jne 0x180176bef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180176b85
mov rcx, r14
call fcn.18016f3e4
mov rdi, rax
test rax, rax
jne 0x180176c08
xor ecx, ecx
call fcn.18016f3a8
jmp 0x180176be4
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.18016f4d4
test eax, eax
jne 0x180176c39
mov rcx, rdi
call fcn.18016f3a8
jmp 0x180176c43
xor ecx, ecx
call fcn.18016f3a8
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 0x180177f58
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180177f6e
mov al, 1
jmp 0x180177fce
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180177f7f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180177fcc
mov ecx, dword [rcx + 0x18]
nop
call fcn.18017e2f4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180177fcc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180177fcc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180177fcc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180177fce
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180178904
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, [0x18019fed0]
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 0x18017895b
cmp word [rdx], r13w
jne 0x18017895b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180178960
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180178a85
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180178aa6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180178999
mov rdx, r9
mov word [rbx], cx
jmp 0x1801789c0
cmp r9, r8
jae 0x1801789d0
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 0x18017897a
jmp 0x180178a85
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 0x180178a7a
cmp dword [rsp + 0x80], esi
je 0x180178a7a
lea r8, [0x18019fed0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180178a52
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180178a22
mov word [rbx], r13w
jmp 0x180178a82
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 0x180178a2f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180178a82
cmp word [rsp + 0x70], r13w
jne 0x180178a5f
cmp rbx, r14
je 0x180178a1c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180175e8c
cmp word [rsp + 0x70], r13w
je 0x180178a85
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, [0x18019fed0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180178a7f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180178a85
Function at 0x18017de80
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18016f614
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18017df21
cmp ebx, dword [rsp + 0x30]
je 0x18017df1a
test esi, esi
je 0x18017df1a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18017def5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18017df02
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18017dedf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18017df06
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18017df23
mov eax, 1
jmp 0x18017df23
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180182d80
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180175e8c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180175e8c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180182ed0
cmp rax, 0xffffffffffffffff
je 0x180182ed0
xor edi, edi
test rbp, rbp
jle 0x180182e7b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1801722e4
mov rbx, rax
test rax, rax
jne 0x180182e08
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180182e71
mov edx, 0x8000
mov ecx, r14d
call fcn.180182c04
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1801770c8
cmp eax, 0xffffffff
je 0x180182e51
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180182e18
mov edx, r15d
mov ecx, r14d
call fcn.180182c04
jmp 0x180182e71
cmp byte [rsi + 0x38], dil
je 0x180182e68
cmp dword [rsi + 0x34], 5
jne 0x180182e68
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180182e71
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18016f3a8
jmp 0x180182ee4
jns 0x180182ee4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180175e8c
cmp rax, 0xffffffffffffffff
jne 0x180182e9c
cmp byte [rsi + 0x30], dil
je 0x180182ee4
mov edi, dword [rsi + 0x2c]
jmp 0x180182ee4
mov ecx, r14d
call fcn.18017e2f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180182ee4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180182ee4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180182edd
mov eax, dword [rsi + 0x2c]
jmp 0x180182ee2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180175e8c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140003520
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 0x14000357d
lea rbx, [0x140042b60]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140003564
cmp r10, 2
jb 0x140003564
cmp byte [r9], r8b
jne 0x140003564
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 0x140003540
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400035bf
lea rbx, [0x140042b60]
cmp r8b, 0x23
jne 0x1400035a3
cmp byte [r9], r8b
jne 0x1400035a3
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 0x140003590
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140003780
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rsi, r8
test r8, r8
je 0x14000379e
mov qword [r8], r14
lea rdx, [0x140042680]
call fcn.1400035d0
mov rbx, rax
test rax, rax
jne 0x1400037c3
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x1400038ef
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400038ef
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400038ef
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400038ef
cmp rdi, 0xffffffffffffffff
je 0x1400038ef
mov rcx, rdi
call fcn.140007740
mov rbp, rax
test rax, rax
je 0x1400038ef
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x1400038dc
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x140050bb8]
test r8, r8
je 0x1400038d1
movsx rdx, word [r8 + 0x60e8]
lea rcx, [r8 + 0x60ec]
mov r9d, dword [r8 + 0x3f68]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1400038c6
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60e8], cx
movsx rax, cx
lea rcx, [r8 + 0x60ec]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x60e4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400038f8
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x1400038ea
mov qword [rsi], rdi
mov rax, rbp
jmp 0x1400038fa
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000a910
Capabilities:
Hash data with crc32

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
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140050bb8]
mov ebp, edx
mov r10, rcx
mov r9d, dword [rdi + 0x4a18]
mov rbx, qword [rdi + 0x4010]
bts r9d, 8
mov dword [rdi + 0x4a18], r9d
mov dword [rdi + 0x4a50], 1
cmp qword [rbx + 0x1c0], 0
jne 0x14000a987
cmp qword [rdi + 0x4e08], 0
mov eax, 0x268
je 0x14000a98c
mov eax, 0x238
movss xmm2, dword [rbx + rax]
lea rcx, [rsp + 0x30]
movss xmm3, dword [rbx + rax + 4]
subss xmm3, dword [rbx + 0x11c]
subss xmm2, dword [rbx + 0x118]
mov rdx, qword [r8]
call fcn.140014270
movsd xmm0, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
or r9d, 2
movsd qword [rdi + 0x4a38], xmm0
xor edx, edx
mov dword [rdi + 0x4a18], r9d
mov dword [rdi + 0x4a20], 1
mov r9, qword [rbx + 8]
test r10, r10
je 0x14000a9fe
mov dword [rsp + 0x28], ebp
lea r8, str._s__s__08X
mov qword [rsp + 0x20], r10
call fcn.140003380
jmp 0x14000aa0e
lea r8, str._s__08X
mov dword [rsp + 0x20], ebp
call fcn.140003380
mov rcx, qword [rsp + 0x30]
xor edx, edx
movss xmm6, dword [rdi + 0x3918]
mov r8d, 0x1000107
call fcn.14000d9e0
mov rsi, qword [rdi + 0x4010]
movzx r14d, al
movss dword [rdi + 0x3918], xmm6
cmp word [rsi + 0xd8], 1
mov dword [rsi + 0x90], ebp
jne 0x14000aa58
movsd xmm0, qword [rsi + 0x28]
movsd qword [rbx + 0x118], xmm0
mov r9d, ebp
lea rdx, [0x1400419f1]
not r9d
lea r10, [0x140042b60]
mov ebx, r9d
mov r8b, 0x23
cmp r8b, 0x23
jne 0x14000aa85
cmp byte [rdx], r8b
jne 0x14000aa85
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x14000aa72
not ebx
cmp dword [rdi + 0x4074], ebx
jne 0x14000aab5
xor edx, edx
xor ecx, ecx
call fcn.140007100
cmp dword [rdi + 0x4b40], ebp
jne 0x14000aafa
cmp word [rsi + 0x174], 0
jne 0x14000aad0
cmp byte [rsi + 0x17a], 0
je 0x14000aafa
xor edx, edx
mov rcx, rsi
call fcn.1400101e0
xor edx, edx
mov rcx, rsi
call fcn.140016ad0
mov rdx, rsi
mov ecx, ebx
call fcn.140007100
mov eax, dword [rdi + 0x4b7c]
mov dword [rdi + 0x40a0], eax
movzx eax, r14b
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14003ea70
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop r14
ret