joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003ba70
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003bb5c
mov rax, qword [rsp + 0x38]
xor edx, edx
sub rax, qword [0x140099f88]
imul rax, rax, 0xf4240
mov qword [rsp + 0x48], rsi
div qword [0x140099f80]
mov rsi, rax
add rsi, qword [0x140099f90]
cmp qword [rdi], 0
je 0x14003baef
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x14003bb69
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x30]
xor eax, eax
lea rcx, [rsp + 0x40]
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003bb4f
mov rax, qword [rsp + 0x40]
xor edx, edx
sub rax, qword [0x140099f88]
imul rax, rax, 0xf4240
div qword [0x140099f80]
sub rax, rsi
add rax, qword [0x140099f90]
lock inc dword [0x140099870]
lock add qword [0x140099878], rax
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013a60
int3
lea rcx, str.QueryPerformanceCounter_failed
call fcn.140013a60
int3
lea rcx, str.UnMapViewOfFile___failed
call fcn.140013a60
int3
Function at 0x140042520
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x4b0
mov r15, rcx
lea rcx, [rsp + 0x220]
call fcn.140040600
mov r12d, 0xffff
nop word [rax + rax]
movzx eax, word [rsp + 0x224]
movzx ecx, word [rsp + 0x226]
shr ax, 1
and ax, 1
cmp cx, ax
jbe 0x140042721
add cx, r12w
mov word [rsp + 0x226], cx
je 0x140042721
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x20]
call fcn.140040970
movzx eax, byte [rsp + 0x20]
lea r9, [rsp + 0x21]
mov r8d, 0x1505
test eax, eax
je 0x1400425e0
nop dword [rax + rax]
lea ecx, [rax - 0x41]
cmp ecx, 0x1a
lea edx, [rax + 0x20]
lea r9, [r9 + 1]
cmovb eax, edx
imul r8d, r8d, 0x21
add r8d, eax
movzx eax, byte [r9 - 1]
test eax, eax
jne 0x1400425c0
mov rax, qword [r15]
test r8d, r8d
mov edi, 1
cmovne edi, r8d
mov edx, dword [rax + 0x10]
test edx, edx
je 0x140042648
mov rsi, qword [rax]
lea ebx, [rdx - 1]
mov r14, qword [rax + 8]
and ebx, edi
mov ecx, dword [rsi + rbx*4]
test ecx, ecx
je 0x140042648
mov eax, ebx
lea ebp, [rdx - 1]
nop
cmp edi, ecx
jne 0x140042630
mov rcx, qword [r14 + rax*8]
lea rax, [rsp + 0x20]
cmp rcx, rax
je 0x14004263f
lea rdx, [rsp + 0x20]
call fcn.140007fe0
test eax, eax
je 0x14004263f
inc ebx
and ebx, ebp
mov eax, ebx
mov ecx, dword [rsi + rbx*4]
test ecx, ecx
jne 0x140042610
jmp 0x140042648
cmp ebx, 0xffffffff
jne 0x140042560
mov rax, qword [r15 + 8]
mov rbx, 0xffffffffffffffff
mov rsi, qword [rax]
lea rax, [rsp + 0x20]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140042660
mov rax, qword [rsi + 8]
inc rbx
mov rdx, qword [rax + 0x18]
lea rcx, [rdx + rbx]
cmp rcx, qword [rax + 0x10]
jbe 0x14004268b
mov rdx, rbx
mov rcx, rsi
call fcn.14003b680
xor edx, edx
mov rax, qword [rsi + 8]
lea rcx, [rdx + rbx]
lea r8, [rbx - 1]
mov rbp, qword [rax + 0x28]
mov qword [rax + 0x18], rcx
add rbp, rdx
mov rax, qword [rsi + 8]
mov rcx, rbp
mov rdx, qword [rax + 0x20]
add rdx, qword [rax + 0x18]
mov qword [rsi + 0x10], rdx
lea rdx, [rsp + 0x20]
call fcn.14004dd10
mov byte [rbx + rbp - 1], 0
mov rbx, qword [r15]
mov esi, dword [rbx + 0x18]
mov ecx, dword [rbx + 0x14]
mov r8d, dword [rbx + 0x10]
lea edx, [rsi + 1]
shl rdx, 8
shr rdx, cl
cmp rdx, 0x50
jbe 0x1400426ed
mov rcx, rbx
call fcn.1400110c0
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx]
lea ecx, [r8 - 1]
and ecx, edi
cmp dword [rdx + rcx*4], 0
je 0x14004270b
dec r8d
nop
inc ecx
and ecx, r8d
cmp dword [rdx + rcx*4], 0
jne 0x140042700
mov dword [rdx + rcx*4], edi
mov rax, qword [rbx + 8]
mov qword [rax + rcx*8], rbp
lea eax, [rsi + 1]
mov dword [rbx + 0x18], eax
jmp 0x140042560
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140042f50
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
cmp dword [rsp + 0xa0], 0
mov r14, r9
mov rbp, qword [rsp + 0xb0]
mov edi, r8d
mov rsi, rdx
mov r13, rcx
jne 0x140042f9d
mov r8, rdx
mov rcx, rbp
mov edx, edi
call fcn.140015f60
cmp eax, 0xffffffff
jne 0x140042f9d
mov r8, rsi
mov edx, edi
mov rcx, rbp
call fcn.140018b10
mov rbx, qword [rsp + 0xa8]
mov r8, rsi
mov rcx, rbx
mov edx, edi
call fcn.140015f60
cmp eax, 0xffffffff
je 0x140042fc7
cdqe
shl rax, 4
add rax, qword [rbx + 0x28]
jne 0x1400431a2
mov ecx, dword [rbx + 0x14]
mov r8d, dword [rbx + 0x10]
mov qword [rsp + 0x88], r15
mov r15d, dword [rbx + 0x18]
lea edx, [r15 + 1]
shl rdx, 8
shr rdx, cl
cmp rdx, 0x50
jbe 0x140042ff7
mov rcx, rbx
call fcn.14001e300
mov r8d, dword [rbx + 0x10]
mov rcx, qword [rbx]
lea edx, [r8 - 1]
and edx, edi
cmp dword [rcx + rdx*4], 0
je 0x14004301b
dec r8d
nop dword [rax]
inc edx
and edx, r8d
cmp dword [rcx + rdx*4], 0
jne 0x140043010
mov dword [rcx + rdx*4], edi
lea r8, [rsi + 1]
mov rax, qword [rbx + 8]
mov r9d, 0x1505
movsxd rcx, edx
add rcx, rcx
mov qword [rax + rdx*8], rsi
lea eax, [r15 + 1]
mov dword [rbx + 0x18], eax
mov rax, qword [rbx + 0x28]
movups xmm0, xmmword [r13]
movups xmmword [rax + rcx*8], xmm0
movzx edx, byte [rsi]
test edx, edx
je 0x140043082
nop dword [rax]
nop word [rax + rax]
lea eax, [rdx - 0x41]
lea ecx, [rdx + 0x20]
cmp eax, 0x1a
lea r8, [r8 + 1]
cmovb edx, ecx
imul r9, r9, 0x21
mov ecx, edx
movzx edx, byte [r8 - 1]
add r9, rcx
test edx, edx
jne 0x140043060
movsxd rcx, dword [r14 + 8]
lea rdx, [r14 + 8]
test r9, r9
lea r8, [rsp + 0x40]
mov eax, 1
cmovne rax, r9
add rcx, rdx
xor rax, qword [r13]
mov qword [rsp + 0x40], rax
mov rax, qword [r13 + 8]
mov qword [rsp + 0x48], rax
xor eax, eax
sub eax, dword [rdx]
mov edx, dword [r14 + 4]
neg eax
sbb rax, rax
and rcx, rax
call fcn.1400064d0
test rax, rax
je 0x14004319a
movsxd r8, dword [r14 + 8]
lea rdx, [r14 + 8]
xor ecx, ecx
mov qword [rsp + 0x80], r12
sub ecx, dword [rdx]
lea r9, [r14 + 0xc]
add r8, rdx
neg ecx
sbb rcx, rcx
and r8, rcx
movsxd rcx, dword [r9]
sub rax, r8
add rcx, r9
sar rax, 4
movsxd rdi, eax
xor eax, eax
sub eax, dword [r9]
shl rdi, 4
neg eax
sbb rax, rax
and rcx, rax
add rdi, rcx
movsxd r12, dword [rdi + 8]
test r12, r12
jle 0x140043192
mov r15d, dword [rsp + 0xa0]
xor esi, esi
add rdi, 0xc
inc r15d
nop
movsxd rcx, dword [rdi]
xor eax, eax
sub eax, dword [rdi]
add rcx, rdi
neg eax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbx
sbb rax, rax
mov dword [rsp + 0x20], r15d
and rcx, rax
xor eax, eax
sub eax, dword [rdi]
lea r9, [rcx + rsi*8]
movsxd rdx, dword [r9]
movsxd rcx, dword [rdi]
add rcx, rdi
neg eax
sbb rax, rax
add rdx, r9
and rcx, rax
xor eax, eax
sub eax, dword [r9]
mov r9, r14
neg eax
mov r8d, dword [rcx + rsi*8 + 4]
sbb rax, rax
and rdx, rax
mov rcx, r13
call fcn.140042f50
inc rsi
cmp rsi, r12
jl 0x140043130
mov r12, qword [rsp + 0x80]
mov r15, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400481f0
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x560
mov rsi, rdx
mov r15, rcx
mov rdx, r9
lea rcx, [rsp + 0x2d0]
mov rdi, r8
call fcn.140040600
mov rbx, qword [rsp + 0x5a8]
lea rcx, [rsp + 0x40]
mov rdx, qword [rbx]
call fcn.140040600
cmp byte [rbx + 0x10], 0
jne 0x140048358
mov rdx, rsi
lea rcx, [rsp + 0x2d0]
mov eax, 5
nop dword [rax]
nop word [rax + rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rax, 1
jne 0x140048260
mov rax, qword [rcx]
mov qword [rdx], rax
mov eax, dword [rcx + 8]
mov dword [rdx + 8], eax
movzx eax, word [rsi + 4]
movzx ecx, word [rsi + 6]
shr ax, 1
and ax, 1
cmp cx, ax
jbe 0x1400482da
dec cx
mov word [rsi + 6], cx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140040800
mov rdx, rsi
mov rcx, rdi
call fcn.140040970
movzx edx, byte [rdi]
lea r9, [rdi + 1]
mov r8d, 0x1505
test edx, edx
je 0x140048330
nop dword [rax]
nop word [rax + rax]
lea eax, [rdx - 0x41]
cmp eax, 0x1a
lea ecx, [rdx + 0x20]
lea r9, [r9 + 1]
cmovb edx, ecx
imul r8d, r8d, 0x21
add r8d, edx
movzx edx, byte [r9 - 1]
test edx, edx
jne 0x140048310
test r8d, r8d
lea rcx, [rsp + 0x20]
mov r9d, 1
mov rdx, r15
cmovne r9d, r8d
mov r8, rdi
call fcn.1400490d0
test byte [rsp + 0x20], 1
jne 0x140048460
mov r8, qword [rsp + 0x5a0]
xor eax, eax
sub eax, dword [r8 + 8]
lea rcx, [r8 + 8]
movsxd rbx, dword [rcx]
movsxd rdx, dword [r8 + 8]
add rbx, rcx
neg eax
lea rcx, [r8 + 8]
sbb rax, rax
add rdx, rcx
and rbx, rax
xor eax, eax
sub eax, dword [rcx]
neg eax
sbb rax, rax
and rdx, rax
movsxd rax, dword [r8 + 4]
lea rbp, [rdx + rax*4]
cmp rbx, rbp
je 0x140048441
movsxd rdx, dword [rbx]
xor eax, eax
sub eax, dword [rbx]
add rdx, rbx
neg eax
mov rcx, rsi
sbb rax, rax
and rdx, rax
call fcn.140040600
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140040800
mov rdx, rsi
mov rcx, rdi
call fcn.140040970
movzx eax, byte [rdi]
lea r9, [rdi + 1]
mov r8d, 0x1505
test eax, eax
je 0x140048410
nop dword [rax]
nop word [rax + rax]
lea ecx, [rax - 0x41]
cmp ecx, 0x1a
lea edx, [rax + 0x20]
lea r9, [r9 + 1]
cmovb eax, edx
imul r8d, r8d, 0x21
add r8d, eax
movzx eax, byte [r9 - 1]
test eax, eax
jne 0x1400483f0
test r8d, r8d
lea rcx, [rsp + 0x20]
mov r9d, 1
mov rdx, r15
cmovne r9d, r8d
mov r8, rdi
call fcn.1400490d0
test byte [rsp + 0x20], 1
jne 0x140048460
add rbx, 4
cmp rbx, rbp
jne 0x1400483a0
xor al, al
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov al, 1
jmp 0x140048443
Function at 0x14004a454
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 0x14004a4d8
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140079720]
cmp byte [rcx + rax], 0
je 0x14004a4d8
dec r8
sub rdx, 1
jne 0x14004a4be
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14004c504
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004c54e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004c54e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004c54e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004c54e
cmp dword [rcx + 0x84], 0xe
jbe 0x14004c54e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004c550
xor al, al
add rsp, 0x28
ret

Function at 0x140057850
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 0x1400576bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400576bb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400576bb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400576bb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400576bb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400576bb
cmp dword [rcx + 0xf8], 0
je 0x1400576bb
mov ecx, ebx
call fcn.14005776c
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.140057548
nop
cmp dword [rbp + 0x20], 0
je 0x140057709
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140057714
int3
xor r8d, r8d
xor edx, edx
jmp 0x14005764c
Function at 0x14005d97c
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.14004c200
sub rsp, rax
mov rax, qword [0x140097030]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140069514
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005d9cb
mov rax, rbp
jmp 0x14005dad3
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x99290]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14006dde8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x99290]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005dacf
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 0x14005dacf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14006dde8
test rax, rax
js 0x14005dacf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005dacf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005dac1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14005dac1
cmp byte [rcx], 0xd
jne 0x14005daa7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005dab6
cmp byte [rcx + 1], 0xa
jne 0x14005dab6
inc rcx
jmp 0x14005dab6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x97410]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005da89
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005dad3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14004bdd0
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 0x14005e444
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 0x14005e47b
call fcn.140057244
mov dword [rax], 0x16
call fcn.14005687c
xor eax, eax
jmp 0x14005e509
mov rdx, r9
mov rcx, r8
call fcn.14005e3e0
mov rbx, rax
test rax, rax
je 0x14005e506
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14005e30c]
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 0x14005e4f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400571b8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14005e4da
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14005e4e9
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400668c8
jmp 0x14005e506
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14005e503
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 0x14006ab5c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14006ab72
mov al, 1
jmp 0x14006abd2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14006ab83
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14006abd0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14006ef88
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006abd0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14006abd0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14006abd0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14006abd2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14006b834
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, [0x140099290]
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 0x14006b88b
cmp word [rdx], r13w
jne 0x14006b88b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14006b890
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14006b9b5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14006b9d6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14006b8c9
mov rdx, r9
mov word [rbx], cx
jmp 0x14006b8f0
cmp r9, r8
jae 0x14006b900
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 0x14006b8aa
jmp 0x14006b9b5
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 0x14006b9aa
cmp dword [rsp + 0x80], esi
je 0x14006b9aa
lea r8, [0x140099290]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14006b982
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14006b952
mov word [rbx], r13w
jmp 0x14006b9b2
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 0x14006b95f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14006b9b2
cmp word [rsp + 0x70], r13w
jne 0x14006b98f
cmp rbx, r14
je 0x14006b94c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14006ddf0
cmp word [rsp + 0x70], r13w
je 0x14006b9b5
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, [0x140099290]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14006b9af
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14006b9b5
Function at 0x140071558
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 0x140071588
xor eax, eax
jmp 0x14007164b
mov rbp, rbx
cmp word [rax], si
je 0x1400715ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140071594
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140071590
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.140067a0c
movsxd r14, eax
test eax, eax
jne 0x1400715eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140071581
mov rcx, r14
call fcn.140068390
mov rdi, rax
test rax, rax
jne 0x140071604
xor ecx, ecx
call fcn.1400668c8
jmp 0x1400715e0
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.140067a0c
test eax, eax
jne 0x140071635
mov rcx, rdi
call fcn.1400668c8
jmp 0x14007163f
xor ecx, ecx
call fcn.1400668c8
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 0x140071668
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 0x1400716ef
mov rsi, rbx
cmp word [rax], bp
je 0x1400716ae
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140071698
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140071694
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140068390
mov rdi, rax
test rax, rax
je 0x1400716dc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14004dd10
mov rbp, rdi
xor ecx, ecx
call fcn.1400668c8
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
Function at 0x140073be0
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.1400664f0
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 0x140073c81
cmp ebx, dword [rsp + 0x30]
je 0x140073c7a
test esi, esi
je 0x140073c7a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140073c55
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140073c62
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140073c3f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140073c66
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140073c83
mov eax, 1
jmp 0x140073c83
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret