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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r15, r9
mov rdi, r8
mov r14, rdx
mov r8, qword [r8 + 0x10]
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x1800821fa
mov rdx, qword [rdi]
movabs rbx, 0xcbf29ce484222325
xor ecx, ecx
test r8, r8
je 0x180082233
movabs r9, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
xor rbx, rax
imul rbx, r9
inc rcx
cmp rcx, r8
jb 0x180082220
mov r9, rbx
mov r8, rdi
lea rdx, [rsp + 0x20]
call fcn.1800827a0
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x18008225a
mov qword [r14], rax
mov byte [r14 + 8], 0
jmp 0x180082416
movabs rax, 0x492492492492492
cmp qword [0x180201360], rax
jne 0x18008227b
lea rcx, [0x1801bbf88]
call qword [0x180175428]
int3
lea rax, [0x180201358]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
mov ecx, 0x38
call fcn.180165838
mov rsi, rax
mov qword [rsp + 0x38], rax
mov rdx, rdi
lea rcx, [rax + 0x10]
call fcn.1800562e0
mov rcx, qword [r15]
mov qword [rsi + 0x30], rcx
mov r8, qword [0x180201360]
lea rcx, [r8 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x1800822cf
cvtsi2ss xmm0, rcx
jmp 0x1800822e4
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rdi, qword [0x180201388]
xorps xmm2, xmm2
test rdi, rdi
js 0x1800822fa
cvtsi2ss xmm2, rdi
jmp 0x180082312
mov rcx, rdi
shr rcx, 1
mov rax, rdi
and eax, 1
or rcx, rax
cvtsi2ss xmm2, rcx
addss xmm2, xmm2
movaps xmm1, xmm0
divss xmm1, xmm2
movss xmm3, dword [0x180201350]
comiss xmm1, xmm3
jbe 0x1800823b2
divss xmm0, xmm3
call fcn.180166afd
xor ecx, ecx
movss xmm1, dword [0x1801d30ec]
comiss xmm0, xmm1
jb 0x180082358
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x180082358
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rdi, rcx
jae 0x18008238a
cmp rdi, 0x200
jae 0x180082387
lea rdi, [rdi*8]
cmp rdi, rcx
jae 0x18008238a
mov rdi, rcx
mov rdx, rdi
call fcn.180082520
mov r9, rbx
lea r8, [rsi + 0x10]
lea rdx, [rsp + 0x30]
call fcn.1800827a0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
mov r8, qword [0x180201360]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 8]
inc r8
mov qword [0x180201360], r8
mov qword [rsi], rcx
mov qword [rsi + 8], rdx
mov qword [rdx], rsi
mov qword [rcx + 8], rsi
and rbx, qword [0x180201380]
add rbx, rbx
mov rax, qword [0x180201368]
mov r8, qword [rax + rbx*8]
cmp r8, qword [0x180201358]
jne 0x1800823f7
mov qword [rax + rbx*8], rsi
jmp 0x180082409
cmp r8, rcx
jne 0x180082402
mov qword [rax + rbx*8], rsi
jmp 0x18008240e
cmp qword [rax + rbx*8 + 8], rdx
jne 0x18008240e
mov qword [rax + rbx*8 + 8], rsi
mov qword [r14], rsi
mov byte [r14 + 8], 1
mov rax, r14
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800c1db0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x1410
call fcn.180166060
sub rsp, rax
movaps xmmword [rsp + 0x1400], xmm6
movaps xmmword [rsp + 0x13f0], xmm7
movaps xmmword [rsp + 0x13e0], xmm8
mov rax, qword [0x1801f6340]
xor rax, rsp
mov qword [rsp + 0x13d0], rax
movaps xmm8, xmm2
mov rsi, rdx
mov rdi, rcx
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rbp
call fcn.1800c1cc0
mov rbx, qword [rax + 8]
mov rcx, rdi
call fcn.1800c1cc0
lea r9, [rsp + 0x30]
xorps xmm2, xmm2
mov rdx, rbx
mov rcx, qword [rax]
call fcn.1800a92f0
movaps xmm7, xmm0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rbp
mov rcx, rsi
call fcn.1800c1cc0
mov rbx, qword [rax + 8]
mov rcx, rsi
call fcn.1800c1cc0
lea r9, [rsp + 0x30]
xorps xmm2, xmm2
mov rdx, rbx
mov rcx, qword [rax]
call fcn.1800a92f0
movaps xmm6, xmm0
call qword [0x180175418]
mov dword [rsp + 0x13c4], 0xffffffff
mov dword [rsp + 0x44], eax
mov edx, 1
nop dword [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x44], eax
inc rdx
cmp rdx, 0x270
jb 0x1800c1e80
mov dword [rsp + 0x40], 0x270
mulss xmm7, xmm8
cvttss2si esi, xmm7
btc esi, 0x1f
mulss xmm6, xmm8
addss xmm6, dword [0x1801d2d3c]
cvttss2si eax, xmm6
btc eax, 0x1f
sub eax, esi
lea rcx, [rsp + 0x40]
cmp eax, 0xffffffff
jne 0x1800c1ede
call fcn.1800c2570
mov ecx, eax
jmp 0x1800c1f18
lea ebx, [rax + 1]
call fcn.1800c2570
mov edi, ebx
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jae 0x1800c1f14
mov eax, ebx
neg eax
xor edx, edx
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x1800c1f14
lea rcx, [rsp + 0x40]
call fcn.1800c2570
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x1800c1f00
shr rcx, 0x20
lea eax, [rcx + rsi]
xor eax, 0x80000000
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov rcx, qword [rsp + 0x13d0]
xor rcx, rsp
call fcn.180164fa0
lea r11, [rsp + 0x1410]
mov rbx, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800c2570
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1800c25d1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1800c2590
mov ecx, dword [r9]
jmp 0x1800c26bb
cmp ecx, 0x4e0
jb 0x1800c26bb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1800c25f0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1800c2640
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x1800f73b0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm8
mov rax, qword [0x1801f6340]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov ecx, dword [0x1801ff004]
mov rax, qword gs:[0x58]
mov r14d, 0x10
mov rdi, qword [rax + rcx*8]
mov ebx, 0xffffffff
mov eax, dword [rdi + r14]
cmp dword [0x180203030], eax
jle 0x1800f7489
lea rcx, [0x180203030]
call fcn.1801651b0
cmp dword [0x180203030], ebx
jne 0x1800f7489
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 0x11
lea rdx, [0x1801d1170]
lea rcx, [rsp + 0x20]
call fcn.180054220
nop
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.180103520
mov rcx, rax
test rax, rax
jne 0x1800f7462
mov eax, ebx
jmp 0x1800f746c
mov rax, qword [0x1801ffd60]
mov eax, dword [rax + rcx]
mov dword [0x180202ff0], eax
lea rcx, [rsp + 0x20]
call fcn.180056470
nop
lea rcx, [0x180203030]
call fcn.180165144
movsxd rax, dword [0x180202ff0]
mov rbp, qword [rax + rsi]
mov eax, dword [rdi + r14]
cmp dword [0x180202fc8], eax
jle 0x1800f751a
lea rcx, [0x180202fc8]
call fcn.1801651b0
cmp dword [0x180202fc8], 0xffffffff
jne 0x1800f751a
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 8
lea rdx, [0x1801d10c0]
lea rcx, [rsp + 0x20]
call fcn.180054220
nop
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.180103520
mov rcx, rax
test rax, rax
je 0x1800f74fd
mov rax, qword [0x1801ffd60]
mov ebx, dword [rcx + rax]
mov dword [0x18020306c], ebx
lea rcx, [rsp + 0x20]
call fcn.180056470
nop
lea rcx, [0x180202fc8]
call fcn.180165144
movsxd rbx, dword [0x18020306c]
movss xmm0, dword [rbx + rbp]
mulss xmm0, dword [0x1801d30fc]
movss xmm6, dword [0x1801d3134]
movaps xmm8, xmm6
comiss xmm0, xmm6
jb 0x1800f7551
movss xmm1, dword [0x1801d30c4]
call qword [0x1801759e0]
movaps xmm8, xmm0
movss xmm0, dword [rbx + rbp + 4]
mulss xmm0, dword [0x1801d30fc]
comiss xmm0, xmm6
jb 0x1800f7575
movss xmm1, dword [0x1801d30c4]
call qword [0x1801759e0]
movaps xmm6, xmm0
mov eax, dword [rdi + r14]
cmp dword [0x18020302c], eax
jle 0x1800f75e7
lea rcx, [0x18020302c]
call fcn.1801651b0
cmp dword [0x18020302c], 0xffffffff
jne 0x1800f75e7
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 0x28
lea rdx, [0x1801d10d0]
lea rcx, [rsp + 0x20]
call fcn.180054220
nop
lea rcx, [rsp + 0x20]
call fcn.180056620
mov qword [0x180203048], rax
lea rcx, [rsp + 0x20]
call fcn.180056470
nop
lea rcx, [0x18020302c]
call fcn.180165144
movss dword [rsp + 0x40], xmm8
movss dword [rsp + 0x44], xmm6
mov dword [rsp + 0x48], 0x44bb8000
mov word [rsp + 0x4c], 0
lea r8, [rsp + 0x40]
mov rdx, qword [0x180203048]
mov rcx, rsi
call qword [0x1801ffda8]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180164fa0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm8, xmmword [r11 - 0x20]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18015eb40
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rsi
push r12
push r14
push r15
sub rsp, 0x20
mov r14, rcx
mov r12, r9
mov rcx, r8
mov rsi, rdx
call fcn.180121010
mov r8d, dword [r14 + 0x18]
mov edx, 0x40
mov ecx, dword [r14 + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
lea r8, [0x1801850a0]
call fcn.1801238b0
mov rbx, rax
test rax, rax
je 0x18015ed04
lea rcx, [rax + 0x18]
mov qword [rax], r14
mov qword [rax + 8], rcx
mov eax, dword [r14 + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rbp
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [r14 + 0x1c]
jbe 0x18015ebdf
call qword [r14]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [r14 + 8]
mov esi, dword [r14 + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [r14 + 0x10]
mov r15d, dword [r14 + 0x20]
mov rcx, qword [rbx + 8]
call qword [r14]
mov rcx, qword [rbx + 0x10]
call qword [r14]
xor ebp, ebp
test r15, r15
je 0x18015ec42
mov rbp, r15
nop word [rax + rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [r14 + 8]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [r14 + 8]
sub r15, 1
jne 0x18015ec00
mov eax, dword [r14 + 0x1c]
cmp rbp, rax
jae 0x18015ec86
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x180185094]
mov r8d, 1
call qword [r14 + 8]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x180185095]
mov r8d, 1
call qword [r14 + 8]
mov eax, dword [r14 + 0x1c]
inc rbp
cmp rbp, rax
jb 0x18015ec50
mov rcx, qword [rsp + 0x70]
call fcn.180121010
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + 8]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
mov rbp, qword [rsp + 0x58]
test rdi, rdi
jne 0x18015ecba
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + 0x10]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + 8]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + 0x10]
lea r8, [0x1801850a0]
mov edx, 0x81
mov rcx, rbx
call fcn.1801237c0
mov rdi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop r12
pop rsi
pop rbx
ret
mov eax, 0x1b
add rsp, 0x20
pop r15
pop r14
pop r12
pop rsi
pop rbx
ret
Function at 0x140005b70
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x140093080]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
movsxd r10, edx
mov r8, rcx
mov r9d, edx
mov ecx, 0x40
lea rdi, [rsp]
rep stosb byte [rdi], al
mov rdi, r10
lea rax, [rsp]
shr rdi, 3
test rdi, rdi
je 0x140005bc4
nop dword [rax + rax]
mov rcx, qword [r8]
add r8, 8
mov qword [rax], rcx
add rax, 8
sub rdi, 1
jne 0x140005bb0
mov rdx, r10
and edx, 7
je 0x140005be4
nop dword [rax]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
mov byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x140005bd0
xor r8d, r8d
test r9d, r9d
jle 0x140005c09
mov edx, r8d
nop
movzx ecx, byte [rsp + rdx]
lea eax, [rcx - 0x41]
cmp al, 0x19
ja 0x140005c01
add cl, 0x20
mov byte [rsp + rdx], cl
inc rdx
cmp rdx, r10
jl 0x140005bf0
lea rdx, [rsp]
mov r11d, r9d
mov r10d, 0xb801fcda
cmp r9d, 4
jl 0x140005c57
mov rdi, r9
shr rdi, 2
mov eax, edi
neg eax
lea r9d, [r9 + rax*4]
nop dword [rax + rax]
imul eax, dword [rdx], 0x5bd1e995
add rdx, 4
imul r10d, r10d, 0x5bd1e995
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
xor r10d, ecx
sub rdi, 1
jne 0x140005c30
sub r9d, 1
je 0x140005c7c
sub r9d, 1
je 0x140005c72
cmp r9d, 1
jne 0x140005c82
movzx r8d, byte [rdx + 2]
shl r8d, 0x10
movzx eax, byte [rdx + 1]
shl eax, 8
xor r8d, eax
movzx eax, byte [rdx]
xor r8d, eax
imul ecx, r8d, 0x5bd1e995
imul edi, r11d, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
imul eax, r10d, 0x5bd1e995
xor ecx, eax
mov eax, edi
shr eax, 0x18
xor eax, edi
imul edx, ecx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor edx, eax
mov eax, edx
shr eax, 0xd
xor eax, edx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14004ea40
add rsp, 0x50
pop rdi
ret
Function at 0x140044104
Capabilities:
Encode data using xor
Hash data using fnv

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

Function at 0x14004f7b0
Capabilities:
Parse pe header

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

Function at 0x1400626c0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400624bc
Function at 0x140068bfc
Capabilities:
Get file size

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

Function at 0x14006a194
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.14004f5c0
sub rsp, rax
mov rax, qword [0x140093080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140067244
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14006a1e3
mov rax, rbp
jmp 0x14006a2eb
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 + 0x96230]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14006a67c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x96230]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14006a2e7
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 0x14006a2e7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14006a67c
test rax, rax
js 0x14006a2e7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14006a2e7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14006a2d9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14006a2d9
cmp byte [rcx], 0xd
jne 0x14006a2bf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14006a2ce
cmp byte [rcx + 1], 0xa
jne 0x14006a2ce
inc rcx
jmp 0x14006a2ce
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x93bc0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14006a2a1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14006a2eb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14004ea40
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 0x14006e718
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 0x14006e748
xor eax, eax
jmp 0x14006e80b
mov rbp, rbx
cmp word [rax], si
je 0x14006e76d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14006e754
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14006e750
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.14006c534
movsxd r14, eax
test eax, eax
jne 0x14006e7ab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14006e741
mov rcx, r14
call fcn.1400652dc
mov rdi, rax
test rax, rax
jne 0x14006e7c4
xor ecx, ecx
call fcn.140065a14
jmp 0x14006e7a0
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.14006c534
test eax, eax
jne 0x14006e7f5
mov rcx, rdi
call fcn.140065a14
jmp 0x14006e7ff
xor ecx, ecx
call fcn.140065a14
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 0x14006e828
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 0x14006e8af
mov rsi, rbx
cmp word [rax], bp
je 0x14006e86e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14006e858
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14006e854
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400652dc
mov rdi, rax
test rax, rax
je 0x14006e89c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140077aa0
mov rbp, rdi
xor ecx, ecx
call fcn.140065a14
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 0x140071a30
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.1400656b4
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 0x140071ad1
cmp ebx, dword [rsp + 0x30]
je 0x140071aca
test esi, esi
je 0x140071aca
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140071aa5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140071ab2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140071a8f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140071ab6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140071ad3
mov eax, 1
jmp 0x140071ad3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14007360c
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, [0x140096230]
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 0x140073663
cmp word [rdx], r13w
jne 0x140073663
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140073668
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14007378d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400737ae
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400736a1
mov rdx, r9
mov word [rbx], cx
jmp 0x1400736c8
cmp r9, r8
jae 0x1400736d8
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 0x140073682
jmp 0x14007378d
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 0x140073782
cmp dword [rsp + 0x80], esi
je 0x140073782
lea r8, [0x140096230]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14007375a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14007372a
mov word [rbx], r13w
jmp 0x14007378a
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 0x140073737
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14007378a
cmp word [rsp + 0x70], r13w
jne 0x140073767
cmp rbx, r14
je 0x140073724
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14006a684
cmp word [rsp + 0x70], r13w
je 0x14007378d
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, [0x140096230]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140073787
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14007378d