joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401012b0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x14019d010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rdx
mov qword [rbp - 0x41], rdx
xor r12d, r12d
mov dword [rbp - 0x69], r12d
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
mov dword [rbp - 0x39], 0x80000002
mov dword [rbp - 0x35], 0x80000003
mov dword [rbp - 0x31], 0x80000004
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], r12
mov qword [rdx + 0x18], 0xf
mov byte [rdx], r12b
mov dword [rbp - 0x69], 1
lea r15, [rbp - 0x39]
nop
mov eax, dword [r15]
xor ecx, ecx
cpuid
mov dword [rbp - 0x29], eax
mov dword [rbp - 0x25], ebx
mov dword [rbp - 0x21], ecx
mov dword [rbp - 0x1d], edx
mov rax, qword [0x1401a6858]
test rax, rax
jne 0x140101406
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rsi, qword [rax]
mov r10, rsi
nop word [rax + rax]
mov r8, qword [r10 + 0x30]
movsxd rax, dword [r8 + 0x3c]
mov r11d, dword [rax + r8 + 0x88]
add r11, r8
cmp r11, r8
je 0x1401013e6
mov ebx, dword [r11 + 0x18]
test ebx, ebx
je 0x1401013e6
mov edi, dword [r11 + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec ebx
lea rax, [rdi + rbx*4]
mov eax, dword [rax + r8]
add rax, r8
mov edx, 0x9e682171
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x1401013e2
nop dword [rax]
movsx ecx, cl
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax]
lea rax, [rax + 1]
test cl, cl
jne 0x1401013c0
cmp edx, 0xd40ec8c8
je 0x1401014a8
test ebx, ebx
jne 0x1401013a0
mov rax, qword [r10]
mov r10, rax
cmp rax, rsi
je 0x1401013fc
cmp qword [rax + 0x30], 0
jne 0x140101370
mov rax, r12
mov qword [0x1401a6858], rax
mov r8d, 0x10
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x49], r12
lea rax, [rbp - 0x19]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140101430
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x61]
call fcn.1400d9a90
nop
lea rdx, [rbp - 0x61]
cmp qword [rbp - 0x49], 0x10
cmovae rdx, qword [rbp - 0x61]
mov r8, qword [rbp - 0x51]
mov rcx, r14
call fcn.1400d9430
nop
lea rcx, [rbp - 0x61]
call fcn.1400d93d0
add r15, 4
lea rax, [rbp - 0x2d]
cmp r15, rax
jne 0x140101330
mov rax, r14
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140105b00
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov ecx, dword [r11 + 0x1c]
add rcx, r8
mov eax, dword [r11 + 0x24]
add rax, r8
movzx eax, word [rax + rbx*2]
mov eax, dword [rcx + rax*4]
add rax, r8
jmp 0x1401013ff
Function at 0x1401017f0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x14019d010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, rdx
mov qword [rsp + 0x28], rdx
xor r14d, r14d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x60], ax
mov dword [rsp + 0x28], 0x32
mov rax, qword [0x1401a6848]
test rax, rax
jne 0x140101906
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rbp, qword [rax]
mov r11, rbp
nop dword [rax]
nop dword [rax + rax]
mov r9, qword [r11 + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
add rbx, r9
cmp rbx, r9
je 0x1401018e7
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x1401018e7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r8d
lea rax, [rdi + r8*4]
mov eax, dword [rax + r9]
add rax, r9
mov edx, 0x6a63b60a
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x1401018e2
nop dword [rax]
movsx ecx, cl
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax]
lea rax, [rax + 1]
test cl, cl
jne 0x1401018c0
cmp edx, 0xd5472afe
je 0x1401019b1
test r8d, r8d
jne 0x1401018a0
mov rax, qword [r11]
mov r11, rax
cmp rax, rbp
je 0x1401018fc
cmp qword [rax + 0x30], r14
jne 0x140101870
mov rax, r14
mov qword [0x1401a6848], rax
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call rax
test eax, eax
jne 0x1401019cd
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov edx, 0x1a0
mov eax, dword [rdx + rcx]
mov ebx, 0x188
add rbx, rcx
test al, 1
jne 0x140101960
or eax, 1
mov dword [rdx + rcx], eax
mov dword [rbx + 6], 0x171f001
mov dword [rbx], 0xe8953132
mov word [rbx + 4], 0xc83e
lea rcx, [0x14015b3d0]
call fcn.14010618c
nop
cmp byte [rbx + 9], 0
je 0x14010198d
xor byte [rbx], 0x71
xor byte [rbx + 1], 0xb
xor byte [rbx + 2], 0xc9
xor byte [rbx + 3], 0xbd
xor byte [rbx + 4], 0x4d
xor byte [rbx + 5], 0xad
xor byte [rbx + 6], 0x73
xor byte [rbx + 7], 0x83
xor byte [rbx + 8], 0x71
mov byte [rbx + 9], 0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r14
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x1401019a2
mov rdx, rbx
jmp 0x1401019f5
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov eax, dword [rbx + 0x24]
add rax, r9
movzx eax, word [rax + r8*2]
mov eax, dword [rcx + rax*4]
add rax, r9
jmp 0x1401018ff
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r14
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r14b
jne 0x1401019e7
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400d9a90
mov rax, rsi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140105b00
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140103d80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x12d0]
mov eax, 0x13d0
call fcn.140156340
sub rsp, rax
movaps xmmword [rsp + 0x13c0], xmm6
mov rax, qword [0x14019d010]
xor rax, rsp
mov qword [rbp + 0x12b0], rax
mov rbx, rdx
mov rdi, rcx
call fcn.1401237fc
mov dword [rsp + 0x24], eax
mov r9d, 1
mov dword [rbp + 0x12a4], 0xffffffff
nop dword [rax + rax]
mov r8d, eax
shr r8d, 0x1e
xor r8d, eax
imul eax, r8d, 0x6c078965
add eax, r9d
mov dword [rsp + r9*4 + 0x24], eax
inc r9
cmp r9, 0x270
jb 0x140103de0
movd xmm4, dword [rdi]
mov edx, 0x270
movd xmm1, dword [rbx]
xorps xmm5, xmm5
movsd xmm3, qword [0x140180500]
xorps xmm2, xmm2
movsd xmm6, qword [0x140180598]
mov r10d, 2
mov dword [rsp + 0x20], edx
cvtdq2pd xmm4, xmm4
cvtdq2pd xmm1, xmm1
nop word [rax + rax]
cmp edx, 0x270
jne 0x140103e92
lea r8, [rsp + 0x28]
mov r9d, edx
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 r9, 1
jne 0x140103e50
mov edx, dword [rsp + 0x20]
jmp 0x140103f7f
cmp edx, 0x4e0
jb 0x140103f7f
xor r8d, r8d
nop dword [rax]
nop word [rax + rax]
mov edx, dword [rbp + r8*4 + 0x8e4]
xor edx, dword [rbp + r8*4 + 0x8e8]
btr edx, 0x1f
xor edx, dword [rbp + r8*4 + 0x8e4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [rbp + r8*4 + 0xf18]
xor ecx, edx
mov dword [rsp + r8*4 + 0x24], ecx
inc r8
cmp r8, 0xe3
jb 0x140103eb0
mov r8d, 0xe3
nop dword [rax]
mov edx, dword [rbp + r8*4 + 0x8e4]
xor edx, dword [rbp + r8*4 + 0x8e8]
btr edx, 0x1f
xor edx, dword [rbp + r8*4 + 0x8e4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [rbp + r8*4 - 0x468]
xor ecx, edx
mov dword [rsp + r8*4 + 0x24], ecx
inc r8
cmp r8, 0x26f
jb 0x140103f00
mov edx, dword [rbp + 0x12a0]
xor edx, dword [rsp + 0x24]
btr edx, 0x1f
xor edx, dword [rbp + 0x12a0]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, edx
xor ecx, dword [rbp + 0x554]
xor edx, edx
mov dword [rbp + 0x8e0], ecx
mov dword [rsp + 0x20], edx
mov eax, edx
xorps xmm0, xmm0
inc edx
mov ecx, dword [rsp + rax*4 + 0x24]
mov eax, ecx
shr eax, 0xb
and eax, dword [rbp + 0x12a4]
xor ecx, eax
mov dword [rsp + 0x20], edx
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2sd xmm0, rax
subsd xmm0, xmm5
mulsd xmm0, xmm3
mulsd xmm3, xmm6
addsd xmm2, xmm0
sub r10, 1
jne 0x140103e40
divsd xmm2, xmm3
subsd xmm1, xmm4
mulsd xmm1, xmm2
addsd xmm1, xmm4
cvttsd2si eax, xmm1
mov rcx, qword [rbp + 0x12b0]
xor rcx, rsp
call fcn.140105b00
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret
Function at 0x1401068bc
Capabilities:
Parse pe header

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

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x14011c937
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x14011c920
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x14011ca38
sub rcx, r10
cmp r9, 8
jb 0x14011ca10
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp r11, rax
jb 0x14011c990
por xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x14011ca38
add r10, r11
sub r9, r11
nop word [rax + rax]
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x14011ca20
test r8d, r8d
sete al
ret
Function at 0x14011ca40
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x14011cbe4
cmp r9, 4
jb 0x14011ca8a
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x14011ca70
xor r11d, r11d
test r9, r9
je 0x14011cbe4
cmp r9, 8
jb 0x14011cbbe
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x14011cabc
cmp rdx, r8
jae 0x14011cbbe
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x14011cad1
cmp rdx, r10
jae 0x14011cbbe
mov rdx, r10
mov qword [rsp + 0x10], rbx
sub rdx, r8
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x14011cb7b
mov rdi, r9
mov qword [rsp + 0x18], rsi
and edi, 0x3f
mov rsi, r9
sub rsi, rdi
mov rbx, rcx
lea rax, [r8 + 0x10]
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x14011cb10
mov rsi, qword [rsp + 0x18]
cmp rdi, 8
jb 0x14011cbb0
mov rbx, r9
and rbx, 0xfffffffffffffff8
mov rdi, rcx
lea rax, [r11 + r8]
sub rdi, r8
nop dword [rax]
movq xmm1, qword [rax + rdx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
pxor xmm1, xmm0
movq qword [rax + rdi - 8], xmm1
cmp r11, rbx
jb 0x14011cb90
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x14011cbe4
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
nop dword [rax + rax]
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x14011cbd0
add rsp, 8
ret

Function at 0x140122e04
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 0x140122e88
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140162bf0]
cmp byte [rcx + rax], 0
je 0x140122e88
dec r8
sub rdx, 1
jne 0x140122e6e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140131e9c
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 0x140131ed3
call fcn.1401387f8
mov dword [rax], 0x16
call fcn.140133094
xor eax, eax
jmp 0x140131f61
mov rdx, r9
mov rcx, r8
call fcn.140131e38
mov rbx, rax
test rax, rax
je 0x140131f5e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140131d64]
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 0x140131f4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14013876c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140131f32
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140131f41
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140143670
jmp 0x140131f5e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140131f5b
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 0x14013bef4
Capabilities:
Parse pe header

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

Function at 0x140145b1c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140145b32
mov al, 1
jmp 0x140145b92
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140145b43
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140145b90
mov ecx, dword [rcx + 0x18]
nop
call fcn.14014cb94
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140145b90
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140145b90
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140145b90
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140145b92
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140148b2c
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.140156340
sub rsp, rax
mov rax, qword [0x14019d010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401459fc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140148b7b
mov rax, rbp
jmp 0x140148c83
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 + 0x1a5e60]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140149a78
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1a5e60]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140148c7f
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 0x140148c7f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140149a78
test rax, rax
js 0x140148c7f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140148c7f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140148c71
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140148c71
cmp byte [rcx], 0xd
jne 0x140148c57
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140148c66
cmp byte [rcx + 1], 0xa
jne 0x140148c66
inc rcx
jmp 0x140148c66
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x19d7d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140148c39
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140148c83
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140105b00
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 0x140148e18
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, [0x1401a5e60]
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 0x140148e6f
cmp word [rdx], r13w
jne 0x140148e6f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140148e74
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140148f99
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140148fba
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140148ead
mov rdx, r9
mov word [rbx], cx
jmp 0x140148ed4
cmp r9, r8
jae 0x140148ee4
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 0x140148e8e
jmp 0x140148f99
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 0x140148f8e
cmp dword [rsp + 0x80], esi
je 0x140148f8e
lea r8, [0x1401a5e60]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140148f66
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140148f36
mov word [rbx], r13w
jmp 0x140148f96
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 0x140148f43
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140148f96
cmp word [rsp + 0x70], r13w
jne 0x140148f73
cmp rbx, r14
je 0x140148f30
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140149a80
cmp word [rsp + 0x70], r13w
je 0x140148f99
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, [0x1401a5e60]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140148f93
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140148f99
Function at 0x14014b69c
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 0x14014b6cc
xor eax, eax
jmp 0x14014b78f
mov rbp, rbx
cmp word [rax], si
je 0x14014b6f1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14014b6d8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14014b6d4
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.14014b5bc
movsxd r14, eax
test eax, eax
jne 0x14014b72f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14014b6c5
mov rcx, r14
call fcn.14014599c
mov rdi, rax
test rax, rax
jne 0x14014b748
xor ecx, ecx
call fcn.140143670
jmp 0x14014b724
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.14014b5bc
test eax, eax
jne 0x14014b779
mov rcx, rdi
call fcn.140143670
jmp 0x14014b783
xor ecx, ecx
call fcn.140143670
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 0x14014b7ac
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 0x14014b833
mov rsi, rbx
cmp word [rax], bp
je 0x14014b7f2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14014b7dc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14014b7d8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14014599c
mov rdi, rax
test rax, rax
je 0x14014b820
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140125890
mov rbp, rdi
xor ecx, ecx
call fcn.140143670
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 0x14014f278
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.140143a24
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 0x14014f319
cmp ebx, dword [rsp + 0x30]
je 0x14014f312
test esi, esi
je 0x14014f312
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14014f2ed
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14014f2fa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14014f2d7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14014f2fe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14014f31b
mov eax, 1
jmp 0x14014f31b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret