joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800ad3a0
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.1800a3dd0
sub rsp, rax
mov rax, qword [0x18035c0c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800bb4dc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800ad3ef
mov rax, rbp
jmp 0x1800ad4f7
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 + 0x35f650]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800bdecc
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x35f650]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800ad4f3
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 0x1800ad4f3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800bdecc
test rax, rax
js 0x1800ad4f3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800ad4f3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800ad4e5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800ad4e5
cmp byte [rcx], 0xd
jne 0x1800ad4cb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800ad4da
cmp byte [rcx + 1], 0xa
jne 0x1800ad4da
inc rcx
jmp 0x1800ad4da
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x35c4f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800ad4ad
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800ad4f7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800a3060
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 0x1800b7fc4
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 0x1800b8033
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800b8033
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800b8033
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800b8033
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800b8033
cmp dword [rcx + 0x84], 0xe
jbe 0x1800b8033
cmp dword [rcx + 0xf8], 0
je 0x1800b8033
mov ecx, ebx
call fcn.1800b80e4
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.1800b7ec0
nop
cmp dword [rbp + 0x20], 0
je 0x1800b8081
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800b808c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800b7fc4
Function at 0x1800bdf78
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, [0x18035f650]
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 0x1800bdfcf
cmp word [rdx], r13w
jne 0x1800bdfcf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800bdfd4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800be0f9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800be11a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800be00d
mov rdx, r9
mov word [rbx], cx
jmp 0x1800be034
cmp r9, r8
jae 0x1800be044
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 0x1800bdfee
jmp 0x1800be0f9
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 0x1800be0ee
cmp dword [rsp + 0x80], esi
je 0x1800be0ee
lea r8, [0x18035f650]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800be0c6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800be096
mov word [rbx], r13w
jmp 0x1800be0f6
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 0x1800be0a3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800be0f6
cmp word [rsp + 0x70], r13w
jne 0x1800be0d3
cmp rbx, r14
je 0x1800be090
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800bded4
cmp word [rsp + 0x70], r13w
je 0x1800be0f9
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, [0x18035f650]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800be0f3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800be0f9
Function at 0x1800bfd4c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800bfd62
mov al, 1
jmp 0x1800bfdc2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800bfd73
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800bfdc0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800c137c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800bfdc0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800bfdc0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800bfdc0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800bfdc2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800c4970
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 0x1800c49a0
xor eax, eax
jmp 0x1800c4a63
mov rbp, rbx
cmp word [rax], si
je 0x1800c49c5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800c49ac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800c49a8
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.1800c3294
movsxd r14, eax
test eax, eax
jne 0x1800c4a03
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800c4999
mov rcx, r14
call fcn.1800ba1dc
mov rdi, rax
test rax, rax
jne 0x1800c4a1c
xor ecx, ecx
call fcn.1800b8f74
jmp 0x1800c49f8
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.1800c3294
test eax, eax
jne 0x1800c4a4d
mov rcx, rdi
call fcn.1800b8f74
jmp 0x1800c4a57
xor ecx, ecx
call fcn.1800b8f74
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 0x1800c8b70
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.1800b936c
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 0x1800c8c11
cmp ebx, dword [rsp + 0x30]
je 0x1800c8c0a
test esi, esi
je 0x1800c8c0a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800c8be5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800c8bf2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800c8bcf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800c8bf6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800c8c13
mov eax, 1
jmp 0x1800c8c13
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800c98a4
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.1800bded4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800bded4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800c99f4
cmp rax, 0xffffffffffffffff
je 0x1800c99f4
xor edi, edi
test rbp, rbp
jle 0x1800c999f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800b8efc
mov rbx, rax
test rax, rax
jne 0x1800c992c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800c9995
mov edx, 0x8000
mov ecx, r14d
call fcn.1800c9728
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.1800bf548
cmp eax, 0xffffffff
je 0x1800c9975
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800c993c
mov edx, r15d
mov ecx, r14d
call fcn.1800c9728
jmp 0x1800c9995
cmp byte [rsi + 0x38], dil
je 0x1800c998c
cmp dword [rsi + 0x34], 5
jne 0x1800c998c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800c9995
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800b8f74
jmp 0x1800c9a08
jns 0x1800c9a08
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800bded4
cmp rax, 0xffffffffffffffff
jne 0x1800c99c0
cmp byte [rsi + 0x30], dil
je 0x1800c9a08
mov edi, dword [rsi + 0x2c]
jmp 0x1800c9a08
mov ecx, r14d
call fcn.1800c137c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800c9a08
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 0x1800c9a08
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800c9a01
mov eax, dword [rsi + 0x2c]
jmp 0x1800c9a06
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800bded4
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 0x1800cb900
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800cb928
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800cb928
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180047514
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180047514
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 0x180047583
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180047583
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180047583
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180047583
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180047583
cmp dword [rcx + 0x84], 0xe
jbe 0x180047583
cmp dword [rcx + 0xf8], 0
je 0x180047583
mov ecx, ebx
call fcn.18004744c
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.1800476a8
nop
cmp dword [rbp + 0x20], 0
je 0x1800475d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800474e0
int3

Function at 0x18004b330
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18004b358
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18004b358
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180055710
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.1800429e0
sub rsp, rax
mov rax, qword [0x18007bfc0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800546cc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18005575f
mov rax, rbp
jmp 0x180055867
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 + 0x7e910]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180055440
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x7e910]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180055863
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 0x180055863
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180055440
test rax, rax
js 0x180055863
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180055863
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180055855
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180055855
cmp byte [rcx], 0xd
jne 0x18005583b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18005584a
cmp byte [rcx + 1], 0xa
jne 0x18005584a
inc rcx
jmp 0x18005584a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7cb20]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18005581d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180055867
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180040f10
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 0x18005606c
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 0x18005609c
xor eax, eax
jmp 0x18005615f
mov rbp, rbx
cmp word [rax], si
je 0x1800560c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800560a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800560a4
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.18004e9e4
movsxd r14, eax
test eax, eax
jne 0x1800560ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180056095
mov rcx, r14
call fcn.18004e8f4
mov rdi, rax
test rax, rax
jne 0x180056118
xor ecx, ecx
call fcn.18004e8b8
jmp 0x1800560f4
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.18004e9e4
test eax, eax
jne 0x180056149
mov rcx, rdi
call fcn.18004e8b8
jmp 0x180056153
xor ecx, ecx
call fcn.18004e8b8
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 0x180057468
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18005747e
mov al, 1
jmp 0x1800574de
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18005748f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800574dc
mov ecx, dword [rcx + 0x18]
nop
call fcn.18005d804
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800574dc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800574dc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800574dc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800574de
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180057e14
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, [0x18007e910]
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 0x180057e6b
cmp word [rdx], r13w
jne 0x180057e6b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180057e70
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180057f95
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180057fb6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180057ea9
mov rdx, r9
mov word [rbx], cx
jmp 0x180057ed0
cmp r9, r8
jae 0x180057ee0
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 0x180057e8a
jmp 0x180057f95
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 0x180057f8a
cmp dword [rsp + 0x80], esi
je 0x180057f8a
lea r8, [0x18007e910]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180057f62
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180057f32
mov word [rbx], r13w
jmp 0x180057f92
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 0x180057f3f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180057f92
cmp word [rsp + 0x70], r13w
jne 0x180057f6f
cmp rbx, r14
je 0x180057f2c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18005539c
cmp word [rsp + 0x70], r13w
je 0x180057f95
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, [0x18007e910]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180057f8f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180057f95
Function at 0x18005d390
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.18004eb24
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 0x18005d431
cmp ebx, dword [rsp + 0x30]
je 0x18005d42a
test esi, esi
je 0x18005d42a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18005d405
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18005d412
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18005d3ef
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18005d416
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18005d433
mov eax, 1
jmp 0x18005d433
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180062290
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.18005539c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18005539c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800623e0
cmp rax, 0xffffffffffffffff
je 0x1800623e0
xor edi, edi
test rbp, rbp
jle 0x18006238b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800517f4
mov rbx, rax
test rax, rax
jne 0x180062318
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180062381
mov edx, 0x8000
mov ecx, r14d
call fcn.180062114
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.1800565d8
cmp eax, 0xffffffff
je 0x180062361
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180062328
mov edx, r15d
mov ecx, r14d
call fcn.180062114
jmp 0x180062381
cmp byte [rsi + 0x38], dil
je 0x180062378
cmp dword [rsi + 0x34], 5
jne 0x180062378
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180062381
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18004e8b8
jmp 0x1800623f4
jns 0x1800623f4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18005539c
cmp rax, 0xffffffffffffffff
jne 0x1800623ac
cmp byte [rsi + 0x30], dil
je 0x1800623f4
mov edi, dword [rsi + 0x2c]
jmp 0x1800623f4
mov ecx, r14d
call fcn.18005d804
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800623f4
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 0x1800623f4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800623ed
mov eax, dword [rsi + 0x2c]
jmp 0x1800623f2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18005539c
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