joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d4c80
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r12
push r14
push r15
sub rsp, 0x28
mov r12d, dword [rsp + 0x88]
mov r15, rcx
movsxd rcx, dword [rsp + 0x80]
mov r14, r8
shr rdx, 2
mov rbp, rcx
shr r9, 2
mov qword [rsp + 0x58], rcx
test r12d, r12d
je 0x1400d4e99
mov qword [rsp + 0x50], rbx
lea eax, [rcx - 0x10]
mov qword [rsp + 0x20], rsi
lea r10, [rdx*4]
mov rsi, qword [rsp + 0x70]
lea r11, [r9*4]
mov qword [rsp + 0x18], rdi
mov ebx, 0xff
mov qword [rsp + 0x10], r13
movsxd r13, eax
lea eax, [rcx - 4]
movsxd r8, eax
mov qword [rsp + 8], r8
mov qword [rsp + 0x68], r10
mov qword [rsp], r11
nop dword [rax]
nop word [rax + rax]
dec r12d
xor eax, eax
test r13, r13
js 0x1400d4d99
movdqa xmm4, xmmword [0x1401cab10]
lea rdx, [r14 + 0x10]
mov rcx, r15
sub rcx, r14
movdqu xmm0, xmmword [rdx - 0x10]
movdqu xmm3, xmmword [rcx + rdx - 0x10]
movdqu xmm1, xmmword [rcx + rdx]
movdqu xmm2, xmmword [rcx + rdx + 0x10]
lea rdx, [rdx + 0x40]
pcmpeqd xmm3, xmm0
movdqu xmm0, xmmword [rdx - 0x40]
pxor xmm3, xmm4
pcmpeqd xmm1, xmm0
movdqu xmm0, xmmword [rdx - 0x30]
pxor xmm1, xmm4
packssdw xmm3, xmm1
pcmpeqd xmm2, xmm0
movdqu xmm0, xmmword [rdx - 0x20]
movdqu xmm1, xmmword [rcx + rdx - 0x20]
pxor xmm2, xmm4
pcmpeqd xmm1, xmm0
pxor xmm1, xmm4
packssdw xmm2, xmm1
packsswb xmm3, xmm2
movdqu xmmword [rax + rsi], xmm3
add rax, 0x10
cmp rax, r13
jle 0x1400d4d30
cmp rax, r8
jg 0x1400d4e3d
lea r10, [rax + 1]
mov rbx, r8
sub rbx, rax
lea r11, [rsi + 2]
add r11, rax
shr rbx, 2
mov rdi, r15
lea r10, [r14 + r10*4]
sub rdi, r14
mov ebp, 0xff
inc rbx
lea rax, [rax + rbx*4]
nop dword [rax]
mov ecx, dword [r10 - 4]
lea r11, [r11 + 4]
mov r9d, dword [rdi + r10]
xor edx, edx
cmp dword [rdi + r10 - 4], ecx
mov r8d, dword [r10]
lea r10, [r10 + 0x10]
cmovne edx, ebp
xor ecx, ecx
mov byte [r11 - 6], dl
cmp r9d, r8d
cmovne ecx, ebp
xor edx, edx
mov byte [r11 - 5], cl
mov ecx, dword [r10 - 0xc]
cmp dword [rdi + r10 - 0xc], ecx
mov r9d, dword [rdi + r10 - 8]
mov r8d, dword [r10 - 8]
cmovne edx, ebp
xor ecx, ecx
mov byte [r11 - 4], dl
cmp r9d, r8d
cmovne ecx, ebp
mov byte [r11 - 3], cl
sub rbx, 1
jne 0x1400d4dd0
mov rbp, qword [rsp + 0x58]
mov ebx, 0xff
mov r10, qword [rsp + 0x68]
mov r11, qword [rsp]
cmp rax, rbp
jge 0x1400d4e6c
mov r9, r15
lea r8, [r14 + rax*4]
sub r9, r14
nop dword [rax]
mov ecx, dword [r8]
lea r8, [r8 + 4]
xor edx, edx
cmp dword [r9 + r8 - 4], ecx
cmovne edx, ebx
mov byte [rax + rsi], dl
inc rax
cmp rax, rbp
jl 0x1400d4e50
add rsi, qword [rsp + 0x78]
add r15, r10
mov r8, qword [rsp + 8]
add r14, r11
test r12d, r12d
jne 0x1400d4d10
mov r13, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r14
pop r12
pop rbp
ret
Function at 0x1400dc880
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x18
mov esi, dword [rsp + 0x68]
mov rbx, r8
movsxd r8, dword [rsp + 0x60]
mov rdi, rcx
shr rdx, 2
mov rbp, r8
shr r9, 2
test esi, esi
je 0x1400dcaa2
mov qword [rsp + 0x40], r12
lea eax, [r8 - 8]
mov qword [rsp + 0x48], r13
lea r12, [rdx*4]
mov rdx, qword [rsp + 0x70]
lea r13, [r9*4]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x10], r15
movsxd r14, eax
lea eax, [r8 - 4]
movsxd r15, eax
movaps xmmword [rsp], xmm6
dec esi
xor r11d, r11d
test r14, r14
js 0x1400dc968
mov r8, rdi
lea rax, [r14 + 8]
sub r8, rbx
lea rcx, [rbx + 0x10]
shr rax, 3
xorps xmm6, xmm6
lea r11, [rax*8]
nop dword [rax]
movss xmm2, dword [rdx]
shufps xmm2, xmm2, 0
movdqu xmm4, xmmword [r8 + rcx - 0x10]
movdqu xmm5, xmmword [r8 + rcx]
lea rcx, [rcx + 0x20]
movaps xmm1, xmm2
cvtdq2ps xmm0, xmm4
pcmpeqd xmm4, xmm6
divps xmm1, xmm0
cvtdq2ps xmm0, xmm5
pcmpeqd xmm5, xmm6
divps xmm2, xmm0
cvtps2dq xmm3, xmm1
cvtps2dq xmm1, xmm2
pand xmm4, xmm3
pand xmm5, xmm1
pxor xmm4, xmm3
pxor xmm5, xmm1
movdqu xmmword [rcx - 0x20], xmm5
movdqu xmmword [rcx - 0x30], xmm4
sub rax, 1
jne 0x1400dc910
cmp r11, r15
jg 0x1400dca3c
lea rax, [r11 + 1]
mov r9, r15
sub r9, r11
lea rax, [rbx + rax*4]
mov rcx, rdi
shr r9, 2
sub rcx, rbx
inc r9
lea r11, [r11 + r9*4]
mov r8d, dword [rax + rcx - 4]
test r8d, r8d
je 0x1400dc9b1
movss xmm1, dword [rdx]
movd xmm0, r8d
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvtss2si r10d, xmm1
jmp 0x1400dc9b4
xor r10d, r10d
mov r8d, dword [rax + rcx]
test r8d, r8d
je 0x1400dc9d4
movss xmm1, dword [rdx]
movd xmm0, r8d
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvtss2si r8d, xmm1
jmp 0x1400dc9d7
xor r8d, r8d
mov dword [rax - 4], r10d
mov dword [rax], r8d
mov r8d, dword [rcx + rax + 4]
test r8d, r8d
je 0x1400dc9ff
movss xmm1, dword [rdx]
movd xmm0, r8d
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvtss2si r10d, xmm1
jmp 0x1400dca02
xor r10d, r10d
mov r8d, dword [rcx + rax + 8]
test r8d, r8d
je 0x1400dca23
movss xmm1, dword [rdx]
movd xmm0, r8d
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvtss2si r8d, xmm1
jmp 0x1400dca26
xor r8d, r8d
mov dword [rax + 4], r10d
mov dword [rax + 8], r8d
add rax, 0x10
sub r9, 1
jne 0x1400dc990
cmp r11, rbp
jge 0x1400dca7c
mov r9, rdi
lea rax, [rbx + r11*4]
sub r9, rbx
mov r8, rbp
sub r8, r11
mov ecx, dword [r9 + rax]
test ecx, ecx
je 0x1400dca6e
movss xmm1, dword [rdx]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvtss2si ecx, xmm1
jmp 0x1400dca70
xor ecx, ecx
mov dword [rax], ecx
add rax, 4
sub r8, 1
jne 0x1400dca51
add rdi, r12
add rbx, r13
test esi, esi
jne 0x1400dc8e6
movaps xmm6, xmmword [rsp]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x50]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
add rsp, 0x18
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140115ef0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
ja 0x14011612c
lea rax, [rdx - 1]
or rax, rbx
bsr rcx, rax
inc ecx
shl rbx, cl
mov rbp, qword [r13 + 8]
lea r12, [r13 + 0x18]
lea rdx, [rbx + rbx]
mov r8, rbp
mov rcx, r12
call fcn.140115d00
lea rax, [rbx - 1]
mov qword [r13 + 0x30], rax
mov qword [r13 + 0x38], rbx
mov qword [rsp + 0x68], r13
mov rdi, qword [r13 + 8]
mov rdi, qword [rdi]
mov rsi, rdi
cmp rdi, rbp
je 0x14011610e
movabs rax, 0xcbf29ce484222325
movabs r10, 0x100000001b3
nop dword [rax]
mov rsi, qword [rsi]
lea r8, [rdi + 0x10]
mov r9, qword [rdi + 0x28]
cmp r9, 0x10
jb 0x140115fa5
mov r8, qword [rdi + 0x10]
mov rdx, rax
mov r15, qword [rdi + 0x20]
xor ecx, ecx
test r15, r15
je 0x140115fd4
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + r8]
xor rdx, rax
imul rdx, r10
inc rcx
cmp rcx, r15
jb 0x140115fc0
mov r13, qword [r13 + 0x30]
and r13, rdx
shl r13, 4
add r13, qword [r12]
mov r12, qword [r13]
cmp r12, rbp
jne 0x140115ff9
mov qword [r13], rdi
mov qword [r13 + 8], rdi
jmp 0x1401160ef
mov rbx, qword [r13 + 8]
lea rdx, [rbx + 0x10]
cmp qword [rbx + 0x28], 0x10
jb 0x14011600c
mov rdx, qword [rbx + 0x10]
lea rcx, [rdi + 0x10]
cmp r9, 0x10
jb 0x14011601a
mov rcx, qword [rdi + 0x10]
cmp r15, qword [rbx + 0x20]
jne 0x140116062
mov r8, r15
call fcn.140172450
test eax, eax
jne 0x14011605e
mov rax, qword [rbx]
cmp rax, rdi
je 0x140116055
mov r8, qword [rdi + 8]
mov qword [r8], rsi
mov rdx, qword [rsi + 8]
mov qword [rdx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov qword [rax + 8], rdx
mov qword [rsi + 8], r8
mov qword [rdi + 8], rcx
mov qword [r13 + 8], rdi
jmp 0x1401160e5
mov r9, qword [rdi + 0x28]
cmp r12, rbx
je 0x1401160c0
mov rbx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
cmp qword [rbx + 0x28], 0x10
jb 0x14011607a
mov rdx, qword [rbx + 0x10]
lea rcx, [rdi + 0x10]
cmp r9, 0x10
jb 0x140116088
mov rcx, qword [rdi + 0x10]
cmp r15, qword [rbx + 0x20]
jne 0x140116062
mov r8, r15
call fcn.140172450
test eax, eax
jne 0x14011605e
mov rax, qword [rbx]
mov r8, qword [rdi + 8]
mov qword [r8], rsi
mov rdx, qword [rsi + 8]
mov qword [rdx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov qword [rax + 8], rdx
mov qword [rsi + 8], r8
mov qword [rdi + 8], rcx
jmp 0x1401160e5
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], rbx
mov rax, qword [rbx + 8]
mov qword [rax], rdi
mov qword [rbx + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r13], rdi
movabs r10, 0x100000001b3
mov rdi, rsi
cmp rsi, rbp
mov r13, qword [rsp + 0x60]
lea r12, [r13 + 0x18]
movabs rax, 0xcbf29ce484222325
jne 0x140115f90
mov qword [rsp + 0x68], 0
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.14016de78
int3
Function at 0x140117220
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
lea rdx, [0x1401e3908]
lea rcx, [rsp + 0x20]
call fcn.1400bee90
nop
mov qword [rsp + 0x50], rbx
mov rcx, rbx
call fcn.14016e898
test eax, eax
jne 0x14011732e
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140117269
mov rdx, qword [rdi]
movabs r9, 0xcbf29ce484222325
mov r8, qword [rdi + 0x10]
xor ecx, ecx
test r8, r8
je 0x1401172a3
movabs r10, 0x100000001b3
nop dword [rax + rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x140117290
mov r8, rdi
lea rdx, [rsp + 0x30]
lea rcx, [rbx + 0x88]
call fcn.140114940
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x1401172c7
mov rcx, qword [rbx + 0x90]
cmp rcx, qword [rbx + 0x90]
je 0x1401172f9
mov rcx, qword [rcx + 0x30]
mov rdx, qword [rbx + 0x58]
mov rax, qword [rbx + 0x60]
sub rax, rdx
sar rax, 4
cmp rax, rcx
jbe 0x140117328
shl rcx, 4
add rcx, rdx
je 0x1401172f9
mov rdi, qword [rcx]
test rdi, rdi
jne 0x1401172fb
xor edi, edi
mov rcx, rbx
call fcn.14016e8bc
nop
cmp dword [rsp + 0x28], 0
je 0x140117315
lea rcx, [rsp + 0x20]
call fcn.1400c0d60
mov rax, rdi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.140116920
nop
mov ecx, eax
call fcn.14016dc54
int3
Function at 0x1401177b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x18], 0x10
lea rsi, [rcx + 0x70]
mov rbx, rdx
mov rdi, rcx
mov r8, rdx
jb 0x1401177d6
mov r8, qword [rdx]
mov r10, qword [rdx + 0x10]
movabs r9, 0xcbf29ce484222325
xor edx, edx
test r10, r10
je 0x140117814
movabs rcx, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rdx + r8]
inc rdx
xor r9, rax
imul r9, rcx
cmp rdx, r10
jb 0x140117800
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140114940
mov rax, qword [rax + 8]
test rax, rax
jne 0x140117831
mov rax, qword [rsi + 8]
cmp rax, qword [rdi + 0x78]
je 0x14011784b
mov rax, qword [rax + 0x30]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rdi + 0x20]
lea rcx, [rdi + 0x18]
mov rdi, rdx
mov qword [rsp + 0x40], 0
sub rdi, qword [rcx]
sar rdi, 3
mov qword [rsp + 0x48], rdi
cmp rdx, qword [rcx + 0x10]
je 0x140117880
mov rax, qword [rsp + 0x40]
mov qword [rdx], rax
add qword [rcx + 8], 8
jmp 0x14011788a
lea r8, [rsp + 0x40]
call fcn.140114250
lea r9, [rsp + 0x48]
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140114d80
mov rbx, qword [rsp + 0x50]
mov rax, rdi
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14016d988
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.api_ms_win_core_localization_l1_2_0.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.api_ms_win_core_localization_l1_2_0.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14016da0c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1402039e0]
cmp byte [rcx + rax], 0
je 0x14016da0c
dec r8
sub rdx, 1
jne 0x14016d9f2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14017a060
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140179e5c

Function at 0x14017cd30
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 0x14017cd67
call fcn.140177618
mov dword [rax], 0x16
call fcn.140176428
xor eax, eax
jmp 0x14017cdf5
mov rdx, r9
mov rcx, r8
call fcn.14017cccc
mov rbx, rax
test rax, rax
je 0x14017cdf2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14017cbf8]
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 0x14017cddf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.14017758c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14017cdc6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14017cdd5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14018f054
jmp 0x14017cdf2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14017cdef
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 0x140188b40
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.1401bc5d0
sub rsp, rax
mov rax, qword [0x14024c038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14018d478
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140188b8f
mov rax, rbp
jmp 0x140188c97
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 + 0x272c00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140191b54
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x272c00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140188c93
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 0x140188c93
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140191b54
test rax, rax
js 0x140188c93
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140188c93
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140188c85
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140188c85
cmp byte [rcx], 0xd
jne 0x140188c6b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140188c7a
cmp byte [rcx + 1], 0xa
jne 0x140188c7a
inc rcx
jmp 0x140188c7a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x254050]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140188c4d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140188c97
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401bc510
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 0x14018d694
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14018d6aa
mov al, 1
jmp 0x14018d70a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14018d6bb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14018d708
mov ecx, dword [rcx + 0x18]
nop
call fcn.140194ab0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14018d708
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14018d708
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14018d708
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14018d70a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140190ef4
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, [0x140272c00]
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 0x140190f4b
cmp word [rdx], r13w
jne 0x140190f4b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140190f50
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140191075
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140191096
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140190f89
mov rdx, r9
mov word [rbx], cx
jmp 0x140190fb0
cmp r9, r8
jae 0x140190fc0
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 0x140190f6a
jmp 0x140191075
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 0x14019106a
cmp dword [rsp + 0x80], esi
je 0x14019106a
lea r8, [0x140272c00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140191042
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140191012
mov word [rbx], r13w
jmp 0x140191072
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 0x14019101f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140191072
cmp word [rsp + 0x70], r13w
jne 0x14019104f
cmp rbx, r14
je 0x14019100c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140191b5c
cmp word [rsp + 0x70], r13w
je 0x140191075
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, [0x140272c00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14019106f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140191075
Function at 0x14019391c
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 0x14019394c
xor eax, eax
jmp 0x140193a0f
mov rbp, rbx
cmp word [rax], si
je 0x140193971
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140193958
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140193954
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.14019383c
movsxd r14, eax
test eax, eax
jne 0x1401939af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140193945
mov rcx, r14
call fcn.140192158
mov rdi, rax
test rax, rax
jne 0x1401939c8
xor ecx, ecx
call fcn.14018f054
jmp 0x1401939a4
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.14019383c
test eax, eax
jne 0x1401939f9
mov rcx, rdi
call fcn.14018f054
jmp 0x140193a03
xor ecx, ecx
call fcn.14018f054
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 0x140193a2c
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 0x140193ab3
mov rsi, rbx
cmp word [rax], bp
je 0x140193a72
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140193a5c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140193a58
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140192158
mov rdi, rax
test rax, rax
je 0x140193aa0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140171d30
mov rbp, rdi
xor ecx, ecx
call fcn.14018f054
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 0x14019709c
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.14018dc20
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 0x14019713d
cmp ebx, dword [rsp + 0x30]
je 0x140197136
test esi, esi
je 0x140197136
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140197111
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14019711e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401970fb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140197122
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14019713f
mov eax, 1
jmp 0x14019713f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14019cd6c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140176a6c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14019cdf6
cmp byte [rbp - 0x21], r15b
je 0x14019cdf1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14019ce2c
call fcn.14018ff9c
test eax, eax
jne 0x14019ce18
cmp byte [rbp - 0x21], r15b
je 0x14019ce10
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14019ce2c
cmp byte [rbp - 0x21], r15b
je 0x14019ce29
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140186ba4
test eax, eax
jne 0x14019cecc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140176a6c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14019ce6b
cmp byte [rbp - 0x21], r15b
je 0x14019cea0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14019cea0
call fcn.14018ff9c
test eax, eax
jne 0x14019ce8c
cmp byte [rbp - 0x21], r15b
je 0x14019ce85
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14019cea0
cmp byte [rbp - 0x21], r15b
je 0x14019ce9d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140186ba4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14019cecc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14019cecf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14019cedd
mov rcx, rdi
call fcn.14018f054
cmp byte [rbp + 0x3f], r15b
je 0x14019ceec
mov rcx, qword [rbp + 0x27]
call fcn.14018f054
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret