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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140063140]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x40], rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
mov r8d, 0xa
lea rdx, str.initialize
lea rcx, [rsp + 0x20]
call fcn.140004f10
lea rdx, [rsp + 0x20]
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x38]
cmp rbp, 0xf
cmova rdx, rsi
movabs r8, 0xcbf29ce484222325
mov ecx, r15d
mov r9, qword [rsp + 0x30]
test r9, r9
je 0x14001af13
movabs r10, 0x100000001b3
nop
movzx eax, byte [rdx + rcx]
xor r8, rax
imul r8, r10
inc rcx
cmp rcx, r9
jb 0x14001af00
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.1400208c0
mov rbx, rax
cmp rbp, 0xf
jbe 0x14001af5a
lea rdx, [rbp + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14001af52
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b08b
mov rcx, rsi
call fcn.1400265c0
cmp rbx, qword [r14 + 8]
jne 0x14001afc0
lea rdx, str.Error_initializing
lea rcx, [0x140064bf0]
call fcn.140004a70
mov rcx, rax
call fcn.140004d40
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14001afb6
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14001afb1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001b091
mov rcx, r8
call fcn.1400265c0
mov eax, 1
jmp 0x14001b05b
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x14001afcd
mov rdx, qword [rdi]
cmp byte [rbx + 0x30], 2
jne 0x14001afe4
mov r8, rdx
lea rcx, [rbx + 0x30]
call fcn.1400191a0
mov ebx, r15d
jmp 0x14001affd
mov rax, qword [rbx + 0x40]
test rax, rax
jne 0x14001aff2
mov ebx, r15d
jmp 0x14001affd
lea rcx, str.12234
call rax
mov ebx, eax
lea rdx, str.Initialized_with_error_code:
lea rcx, [0x140064bf0]
call fcn.140004a70
mov edx, ebx
mov rcx, rax
call fcn.140002380
mov rcx, rax
call fcn.140004d40
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14001b059
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14001b054
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001b091
mov rcx, r8
call fcn.1400265c0
xor eax, eax
mov byte [rdi], 0
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r15
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400265a0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14002ebc8
nop
call fcn.14002ebc8
int3
Function at 0x140020dc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbp
push r13
push r15
sub rsp, 0x30
mov qword [rsp + 0x50], rbx
mov r15, rdx
mov qword [rsp + 0x58], rsi
mov r13, rcx
mov rsi, qword [r8 + 0x10]
mov r9, r8
mov qword [rsp + 0x60], rdi
mov rdi, r8
mov qword [rsp + 0x28], r12
mov r12, qword [r8 + 0x18]
cmp r12, 0xf
jbe 0x140020dfb
mov r9, qword [r8]
xor ebp, ebp
movabs r8, 0xcbf29ce484222325
mov ecx, ebp
test rsi, rsi
je 0x140020e34
movabs rdx, 0x100000001b3
nop dword [rax + rax]
movzx eax, byte [r9 + rcx]
inc rcx
xor r8, rax
imul r8, rdx
cmp rcx, rsi
jb 0x140020e20
mov rcx, qword [r13 + 0x30]
mov rax, qword [r13 + 0x18]
and rcx, r8
add rcx, rcx
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [r13 + 8]
je 0x140020ea2
mov qword [rsp + 0x20], r14
mov r14, qword [rax + rcx*8]
nop word [rax + rax]
cmp qword [rbx + 0x28], 0xf
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
jbe 0x140020e72
mov rdx, qword [rdx]
mov rcx, rdi
cmp r12, 0xf
jbe 0x140020e7e
mov rcx, qword [rdi]
cmp rsi, rax
jne 0x140020e8f
mov r8, rsi
call fcn.140048fb0
test eax, eax
je 0x140020e9a
cmp rbx, r14
je 0x140020e9d
mov rbx, qword [rbx + 8]
jmp 0x140020e60
mov rbp, rbx
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rbp, rbp
je 0x140020ecb
mov qword [r15], rbp
mov rax, r15
add rsp, 0x30
pop r15
pop r13
pop rbp
ret
mov rax, qword [r13 + 8]
mov qword [r15], rax
mov rax, r15
add rsp, 0x30
pop r15
pop r13
pop rbp
ret
Function at 0x140020ee0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rbp
push r15
sub rsp, 0x30
mov qword [rsp + 0x60], rsi
mov r15, rcx
mov rsi, qword [rdx + 0x10]
mov qword [rsp + 0x68], rdi
mov rdi, rdx
mov qword [rsp + 0x28], r12
mov r12, qword [rdx + 0x18]
cmp r12, 0xf
jbe 0x140020f0f
mov rdx, qword [rdx]
xor ecx, ecx
movabs rbp, 0xcbf29ce484222325
test rsi, rsi
je 0x140020f43
movabs r8, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
xor rbp, rax
imul rbp, r8
cmp rcx, rsi
jb 0x140020f30
mov rcx, qword [r15 + 0x30]
mov rax, qword [r15 + 0x18]
and rcx, rbp
add rcx, rcx
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [r15 + 8]
jne 0x140020f60
xor ebx, ebx
jmp 0x140020fb1
mov qword [rsp + 0x20], r14
mov r14, qword [rax + rcx*8]
nop dword [rax]
cmp qword [rbx + 0x28], 0xf
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
jbe 0x140020f82
mov rdx, qword [rdx]
mov rcx, rdi
cmp r12, 0xf
jbe 0x140020f8e
mov rcx, qword [rdi]
cmp rsi, rax
jne 0x140020f9f
mov r8, rsi
call fcn.140048fb0
test eax, eax
je 0x140020fac
cmp rbx, r14
je 0x140020faa
mov rbx, qword [rbx + 8]
jmp 0x140020f70
xor ebx, ebx
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
test rbx, rbx
je 0x14002108c
mov rcx, qword [r15 + 0x18]
mov rax, qword [r15 + 0x30]
and rax, rbp
add rax, rax
lea r8, [rcx + rax*8]
lea rdx, [rcx + rax*8]
mov rax, qword [rcx + rax*8]
cmp qword [r8 + 8], rbx
jne 0x140021005
cmp rax, rbx
jne 0x140020ffb
mov rax, qword [r15 + 8]
mov qword [rdx], rax
mov qword [r8 + 8], rax
jmp 0x140021010
mov rax, qword [rbx + 8]
mov qword [r8 + 8], rax
jmp 0x140021010
cmp rax, rbx
jne 0x140021010
mov rax, qword [rbx]
mov qword [rdx], rax
mov rcx, qword [rbx]
dec qword [r15 + 0x10]
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rdx, qword [rbx + 0x28]
cmp rdx, 0xf
jbe 0x14002105d
mov rcx, qword [rbx + 0x10]
inc rdx
cmp rdx, 0x1000
jb 0x140021058
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140021097
mov rcx, r8
call fcn.1400265c0
mov edx, 0x30
mov qword [rbx + 0x20], 0
mov rcx, rbx
mov qword [rbx + 0x28], 0xf
mov byte [rbx + 0x10], 0
call fcn.1400265c0
mov eax, 1
add rsp, 0x30
pop r15
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop r15
pop rbp
pop rbx
ret
call fcn.14002ebc8
int3
Function at 0x140023b00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov byte [rcx], 1
mov rdi, r9
mov dword [rcx + 8], 0
mov r14, r8
mov word [rcx + 0xc], 0xff00
mov r15, rcx
mov dword [rcx + 0x10], 0xffffffff
mov rdx, r8
mov qword [rcx + 0x18], 0
cmp qword [r8 + 0x18], 0xf
mov r9, qword [r8 + 0x10]
jbe 0x140023b49
mov rdx, qword [r8]
xor ecx, ecx
movabs rsi, 0xcbf29ce484222325
mov r8, rsi
movabs rbp, 0x100000001b3
test r9, r9
je 0x140023b83
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
xor r8, rax
imul r8, rbp
cmp rcx, r9
jb 0x140023b70
mov rdx, r14
lea rcx, [0x140066640]
call fcn.1400208c0
cmp rax, qword [0x140066648]
mov rbx, rax
je 0x140023c06
cmp qword [rdi + 0x18], 0xf
mov rcx, rdi
mov r8, qword [rdi + 0x10]
jbe 0x140023baf
mov rcx, qword [rdi]
xor edx, edx
test r8, r8
je 0x140023bd3
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
inc rdx
xor rsi, rax
imul rsi, rbp
cmp rdx, r8
jb 0x140023bc0
mov r8, rsi
lea rcx, [rbx + 0x38]
mov rdx, rdi
call fcn.1400208c0
cmp rax, qword [rbx + 0x40]
je 0x140023c02
movups xmm0, xmmword [rax + 0x30]
movups xmmword [r15 + 8], xmm0
movsd xmm1, qword [rax + 0x40]
movsd qword [r15 + 0x18], xmm1
mov byte [r15], 0
jmp 0x140023c06
mov byte [r15], 2
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x140023c3c
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x140023c37
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140023cad
mov rcx, r8
call fcn.1400265c0
mov qword [r14 + 0x10], 0
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140023c86
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140023c81
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140023cad
mov rcx, r8
call fcn.1400265c0
mov rbx, qword [rsp + 0x58]
mov rax, r15
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14002ebc8
int3

Function at 0x140024bf8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140024c32
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140024c37
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140024c80
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14004dc50]
cmp byte [rcx + rax], 0
je 0x140024c80
dec r8
sub rdx, 1
jne 0x140024c66
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14002731c
Capabilities:
Parse pe header

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

Function at 0x140031748
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 0x14003177f
call fcn.14002fc94
mov dword [rax], 0x16
call fcn.14002eba8
xor eax, eax
jmp 0x140031811
mov rdx, r9
mov rcx, r8
call fcn.1400316e4
mov rbx, rax
test rax, rax
je 0x14003180e
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x28], rax
lea r8, [0x140031618]
mov eax, dword [rsp + 0x60]
mov rdx, rsi
mov r9, rbx
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400317fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002fc24
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400317e2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400317f1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400361f0
jmp 0x14003180e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003180b
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 0x140033560
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 0x1400335cf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400335cf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400335cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400335cf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400335cf
cmp dword [rcx + 0x84], 0xe
jbe 0x1400335cf
cmp dword [rcx + 0xf8], 0
je 0x1400335cf
mov ecx, ebx
call fcn.140033674
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.140033468
nop
cmp dword [rbp + 0x20], 0
jne 0x140033630
call fcn.14003d240
cmp eax, 1
jne 0x140033620
xor dl, dl
jmp 0x14003362a
call fcn.14003e7e8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14003363b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140033644
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140033560
Function at 0x140033748
Capabilities:
Parse pe header

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

Function at 0x140038ef8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140038f0e
mov al, 1
jmp 0x140038f7a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140038f1f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140038f78
mov ecx, dword [rcx + 0x18]
nop
call fcn.140040a2c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140038f78
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140038f78
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140038f78
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140038f7a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14003a9ac
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x14006c050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x14003aa11
test rax, rax
jne 0x14003a9ff
lea r9, [0x140051ca0]
lea r8, [0x140051c98]
lea rdx, [0x140051ca0]
lea ecx, [rax + 0xa]
call fcn.14003a560
test rax, rax
je 0x14003aa11
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.1400488f0
jmp 0x14003aa2b
xor edx, edx
mov rcx, rbp
call fcn.14003ac9c
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14003b548
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.140026ec0
sub rsp, rax
mov rax, qword [0x140063140]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140037944
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003b597
mov rax, rbp
jmp 0x14003b6a3
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 + 0x65fe0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003c550
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x65fe0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003b69f
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003b69f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003c550
test rax, rax
js 0x14003b69f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003b69f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14003b691
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14003b691
cmp byte [rcx], 0xd
jne 0x14003b677
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003b686
cmp byte [rcx + 1], 0xa
jne 0x14003b686
inc rcx
jmp 0x14003b686
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x63580]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003b659
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003b6a3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400265a0
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 0x14003b838
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
xor edi, edi
mov rax, r15
lea rcx, [0x140065fe0]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x14003b88e
cmp word [rdx], r9w
jne 0x14003b88e
or byte [rax + rbp*8 + 0x38], 4
jmp 0x14003b893
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x14003ba12
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x14003b9dd
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x14003b8db
cmp rcx, r8
jae 0x14003b8fb
cmp word [rcx], r9w
jne 0x14003b8db
add rax, 4
mov edx, r9d
jmp 0x14003b8de
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x14003b8b0
jmp 0x14003ba12
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003b9d6
cmp dword [rsp + 0x80], edi
je 0x14003b9d6
lea r9, [0x140065fe0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x14003b9b0
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x14003b963
mov word [rbx], bp
jmp 0x14003ba0f
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x14003b97e
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x14003ba0f
cmp word [rsp + 0x70], bp
jne 0x14003b9bc
cmp rbx, rsi
je 0x14003b95b
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003c558
cmp word [rsp + 0x70], bp
je 0x14003ba12
mov word [rbx], 0xd
jmp 0x14003ba0f
mov rcx, r15
lea r9, [0x140065fe0]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14003ba0c
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14003ba12
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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
Function at 0x14003fdfc
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 0x14003fe2c
xor eax, eax
jmp 0x14003feef
mov rbp, rbx
cmp word [rax], si
je 0x14003fe51
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003fe38
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003fe34
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.14003e4ec
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14003fe92
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14003fe25
call fcn.140036250
mov rdi, rax
test rax, rax
jne 0x14003fea8
xor ecx, ecx
call fcn.1400361f0
jmp 0x14003fe87
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.14003e4ec
test eax, eax
jne 0x14003fed9
mov rcx, rdi
call fcn.1400361f0
jmp 0x14003fee3
xor ecx, ecx
call fcn.1400361f0
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 0x140042f24
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x140042f97
cmp word [rcx], si
je 0x140042f97
lea rdx, [0x140052e88]
call fcn.140046cc8
test eax, eax
je 0x140042f97
lea rdx, [0x140052ea0]
mov rcx, rbx
call fcn.140046cc8
test eax, eax
jne 0x140042f8d
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140042fb4
mov eax, dword [rsp + 0x30]
jmp 0x140042fc6
mov rcx, rbx
call fcn.140036084
jmp 0x140042fc6
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140042fb8
xor eax, eax
jmp 0x140042fc6
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140042fc6
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140042fd8
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.140037f08
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14004307b
cmp edi, dword [rsp + 0x30]
je 0x140043074
test ebp, ebp
je 0x140043074
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x140043050
sub dx, 0x61
cmp dx, 0x19
ja 0x14004305c
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x14004303d
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x140043060
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x14004307d
mov eax, 1
jmp 0x14004307d
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret