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

Disassembly:
mov rax, rsp
push rsi
sub rsp, 0x60
cmp byte [rcx + 0x40], 1
mov rsi, rdx
jne 0x180035469
mov qword [rax + 0x10], rbx
mov qword [rax - 0x20], r14
mov r14, qword [rcx + 8]
mov qword [rax + 0x18], rbp
mov qword [rax - 0x10], rdi
mov qword [rax - 0x18], r12
mov rbx, qword [r14]
mov qword [rax - 0x28], r15
cmp rbx, r14
je 0x18003543c
lea r15, str.Address
movabs rbp, 0x100000001b3
movabs r12, 0xcbf29ce484222325
nop dword [rax + rax]
mov r9, qword [rbx + 0x28]
lea r8, [rbx + 0x10]
mov r10, qword [rbx + 0x20]
cmp r9, 7
jbe 0x180035356
mov r8, qword [rbx + 0x10]
cmp r10, 7
jne 0x18003537e
mov rdx, r10
mov rax, r15
sub r8, r15
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x18003537e
add rax, 2
sub rdx, 1
jne 0x180035365
jmp 0x180035430
cmp byte [rsi + 0x40], 1
jne 0x180035465
lea rdx, [rbx + 0x10]
cmp r9, 7
jbe 0x180035396
mov rdx, qword [rbx + 0x10]
lea r8, [r10 + r10]
xor ecx, ecx
mov r9, r12
test r8, r8
je 0x1800353c3
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
xor r9, rax
imul r9, rbp
cmp rcx, r8
jb 0x1800353b0
lea r8, [rbx + 0x10]
mov rcx, rsi
lea rdx, [rsp + 0x20]
call fcn.180011c40
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180035465
cmp rcx, qword [rsi + 8]
je 0x180035465
lea rdx, [rbx + 0x10]
mov rcx, rsi
call fcn.1800058d0
cmp byte [rbx + 0x70], 1
lea rcx, [rbx + 0x30]
mov r8, rax
jne 0x18003540a
mov rdx, rax
call fcn.1800352e0
jmp 0x18003542c
movsx rdx, byte [rax + 0x40]
movsx rax, byte [rcx + 0x40]
cmp rax, rdx
jne 0x180035465
mov qword [rsp + 0x70], rcx
lea rcx, [rdx + 1]
lea rdx, [rsp + 0x70]
call fcn.1800170e0
test al, al
je 0x180035465
mov rbx, qword [rbx]
cmp rbx, r14
jne 0x180035340
mov al, 1
mov rbp, qword [rsp + 0x80]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov r15, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x78]
mov r14, qword [rsp + 0x48]
add rsp, 0x60
pop rsi
ret
xor al, al
jmp 0x18003543e
lea rdx, str.Json_value_is_not_an_object
lea rcx, [rsp + 0x20]
call fcn.180002c50
lea rdx, [0x1800c7238]
lea rcx, [rsp + 0x20]
call fcn.18005e368
int3
Function at 0x180035a90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
cmp rdx, r8
je 0x180035c86
cmp qword [rdx + 0x28], 7
lea r8, [rdx + 0x10]
mov rax, qword [rcx + 8]
mov r9, qword [r8 + 0x10]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov r14, qword [rcx + 0x18]
mov qword [rsp + 0x70], rax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x68], rax
jbe 0x180035af0
mov r8, qword [r8]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
movabs r10, 0x100000001b3
add r9, r9
je 0x180035b24
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
inc rcx
xor rdx, rax
imul rdx, r10
cmp rcx, r9
jb 0x180035b10
mov r15, qword [rdi + 0x30]
mov rbx, qword [rsi]
and r15, rdx
shl r15, 4
mov rdx, rsi
add r15, r14
mov r13, qword [r15]
mov r12, qword [r15 + 8]
call fcn.180036bf0
dec qword [rdi + 0x10]
cmp rsi, r12
je 0x180035b71
nop dword [rax]
mov r14, rbx
cmp rbx, rbp
je 0x180035b88
mov rdx, rbx
mov rbx, qword [rbx]
call fcn.180036bf0
dec qword [rdi + 0x10]
cmp r14, r12
jne 0x180035b50
mov r14, qword [rsp + 0x78]
mov r12, qword [rsp + 0x70]
cmp r13, rsi
mov r13, qword [rsp + 0x68]
jne 0x180035ba1
mov qword [r15], r12
mov rax, r12
jmp 0x180035ba4
cmp r13, rsi
jne 0x180035b90
mov qword [r15], rbx
mov rax, qword [rsp + 0x68]
mov qword [rax], rbx
mov qword [rbx + 8], rax
jmp 0x180035c6d
mov rax, r13
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x180035c65
nop dword [rax]
nop word [rax + rax]
cmp qword [rbx + 0x28], 7
lea r8, [rbx + 0x10]
mov r9, qword [r8 + 0x10]
mov rsi, rbx
jbe 0x180035bd5
mov r8, qword [r8]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
add r9, r9
je 0x180035c09
movabs r13, 0x100000001b3
movzx eax, byte [r8 + rdx]
inc rdx
xor rcx, rax
imul rcx, r13
cmp rdx, r9
jb 0x180035bf0
mov r13, qword [rsp + 0x68]
mov r15, qword [rdi + 0x30]
mov rdx, rbx
mov rbx, qword [rbx]
and r15, rcx
shl r15, 4
add r15, r14
mov r14, qword [r15 + 8]
call fcn.180036bf0
dec qword [rdi + 0x10]
cmp rsi, r14
je 0x180035c4c
nop
mov rsi, rbx
cmp rbx, rbp
je 0x180035c62
mov rdx, rbx
mov rbx, qword [rbx]
call fcn.180036bf0
dec qword [rdi + 0x10]
cmp rsi, r14
jne 0x180035c30
mov qword [r15], r12
mov qword [r15 + 8], r12
cmp rbx, rbp
je 0x180035c65
mov r14, qword [rsp + 0x78]
jmp 0x180035bc0
mov qword [r15], rbx
mov qword [r13], rbx
mov qword [rbx + 8], r13
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
mov rax, rbp
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180037e80
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.1800380a0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180037f87
mov rax, qword [0x1800c9090]
cmp qword [rsp + 0x20], rax
jb 0x180037ee4
mov rax, qword [0x1800c9098]
cmp qword [rsp + 0x20], rax
ja 0x180037ee4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180037ea6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1800866d0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180037f13
jmp 0x180037f87
cmp dword [rsp + 0x50], 0x10000
jne 0x180037f6a
cmp qword [rsp + 0x48], 0x10000
jb 0x180037f6a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180037f58
mov rax, qword [rsp + 0x28]
jmp 0x180037f89
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180037f82
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1800380a0
mov qword [rsp + 0x20], rax
jmp 0x180037ea6
xor eax, eax
add rsp, 0x68
ret

Function at 0x180037f90
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1800380e0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180038093
mov rax, qword [0x1800c9090]
cmp qword [rsp + 0x20], rax
jb 0x180037feb
mov rax, qword [0x1800c9098]
cmp qword [rsp + 0x20], rax
ja 0x180037feb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180037fad
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1800866d0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18003801a
jmp 0x180038093
cmp dword [rsp + 0x50], 0x10000
jne 0x180038071
cmp qword [rsp + 0x48], 0x10000
jb 0x180038071
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18003805f
mov rax, qword [rsp + 0x28]
jmp 0x180038095
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18003808e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800380e0
mov qword [rsp + 0x20], rax
jmp 0x180037fad
xor eax, eax
add rsp, 0x68
ret
Function at 0x180038130
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800386c0
mov qword [rsp + 0x28], 0
cmp qword [0x1800cb528], 0
jne 0x180038178
cmp qword [0x1800cb520], 0
je 0x180038178
mov rax, qword [0x1800cb520]
mov qword [0x1800cb528], rax
cmp qword [0x1800cb528], 0
je 0x18003821e
mov rax, qword [0x1800cb528]
cmp qword [rax + 0x10], 0
je 0x18003821e
mov rax, qword [0x1800cb528]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18003821e
mov rax, qword [0x1800cb528]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18003821e
mov rax, qword [0x1800cb528]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800381e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800381eb
xor eax, eax
jmp 0x180038399
mov rax, qword [0x1800cb528]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.1800866d0
mov rax, qword [rsp + 0x28]
jmp 0x180038399
mov rax, qword [0x1800cb520]
mov qword [0x1800cb528], rax
jmp 0x180038240
mov rax, qword [0x1800cb528]
mov rax, qword [rax + 8]
mov qword [0x1800cb528], rax
cmp qword [0x1800cb528], 0
je 0x18003828d
cmp qword [0x1800cb528], 0
je 0x18003828b
mov rax, qword [0x1800cb528]
cmp qword [rax + 0x10], 0
je 0x18003828b
mov rax, qword [0x1800cb528]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18003828b
mov rax, qword [0x1800cb528]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18003828b
jmp 0x1800381bc
jmp 0x18003822e
mov rcx, qword [rsp + 0x60]
call fcn.18003a540
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800383a0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180038397
mov rax, qword [rsp + 0x48]
mov qword [0x1800cb528], rax
mov rax, qword [0x1800cb528]
mov dword [rax], 0x52727464
mov rax, qword [0x1800cb528]
mov qword [rax + 0x10], 0
mov rax, qword [0x1800cb528]
mov rcx, qword [0x1800cb520]
mov qword [rax + 8], rcx
mov rax, qword [0x1800cb528]
mov qword [0x1800cb520], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1800cb528]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180038348
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180038382
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18003833e
mov rax, qword [0x1800cb528]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800381bc
xor eax, eax
add rsp, 0x58
ret
Function at 0x180052be0
Capabilities:
Encode data using xor
Hash data using fnv

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

Function at 0x180052bf4
Capabilities:
Encode data using xor
Hash data using fnv

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

Function at 0x18005b7dc
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.18006d788
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x18005b82e
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x18005b82e
sub ecx, 1
je 0x18005b827
cmp ecx, 1
je 0x18005b820
xor eax, eax
jmp 0x18005b833
mov eax, 3
jmp 0x18005b833
mov eax, 1
jmp 0x18005b833
mov eax, 2
add rsp, 0x28
ret

Function at 0x18006ed84
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 0x18006edf3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18006edf3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18006edf3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18006edf3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18006edf3
cmp dword [rcx + 0x84], 0xe
jbe 0x18006edf3
cmp dword [rcx + 0xf8], 0
je 0x18006edf3
mov ecx, ebx
call fcn.18006ee98
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.18006ec8c
nop
cmp dword [rbp + 0x20], 0
jne 0x18006ee54
call fcn.18007b1f0
cmp eax, 1
jne 0x18006ee44
xor dl, dl
jmp 0x18006ee4e
call fcn.18007b1bc
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x18006ee5f
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18006ee68
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18006ed84
Function at 0x180075d50
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 [0x1800d8050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x180075db5
test rax, rax
jne 0x180075da3
lea r9, [0x1800afa10]
lea r8, [0x1800afa08]
lea rdx, [0x1800afa10]
lea ecx, [rax + 0xa]
call fcn.180075898
test rax, rax
je 0x180075db5
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.180085ff0
jmp 0x180075dcf
xor edx, edx
mov rcx, rbp
call fcn.1800760f8
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 0x180077700
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180077716
mov al, 1
jmp 0x180077782
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180077727
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180077780
mov ecx, dword [rcx + 0x18]
nop
call fcn.180081840
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180077780
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 0x180077780
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180077780
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180077782
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180078070
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.18005cc90
sub rsp, rax
mov rax, qword [0x1800c9140]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800738b4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800780bf
mov rax, rbp
jmp 0x1800781cb
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xcc5e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18007883c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xcc5e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800781c7
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 0x1800781c7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18007883c
test rax, rax
js 0x1800781c7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800781c7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800781b9
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800781b9
cmp byte [rcx], 0xd
jne 0x18007819f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800781ae
cmp byte [rcx + 1], 0xa
jne 0x1800781ae
inc rcx
jmp 0x1800781ae
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xc9c80]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180078181
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800781cb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18005bf70
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 0x18007c828
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 0x18007c858
xor eax, eax
jmp 0x18007c91b
mov rbp, rbx
cmp word [rax], si
je 0x18007c87d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18007c864
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18007c860
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.18007b0dc
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x18007c8be
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18007c851
call fcn.180072160
mov rdi, rax
test rax, rax
jne 0x18007c8d4
xor ecx, ecx
call fcn.180072100
jmp 0x18007c8b3
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.18007b0dc
test eax, eax
jne 0x18007c905
mov rcx, rdi
call fcn.180072100
jmp 0x18007c90f
xor ecx, ecx
call fcn.180072100
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 0x18007c938
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 0x18007c9bf
mov rsi, rbx
cmp word [rax], bp
je 0x18007c97e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18007c968
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18007c964
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180072160
mov rdi, rax
test rax, rax
je 0x18007c9ac
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180086030
mov rbp, rdi
xor ecx, ecx
call fcn.180072100
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 0x18007f64c
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 0x18007f6bf
cmp word [rcx], si
je 0x18007f6bf
lea rdx, [0x1800b0bb8]
call fcn.1800845b8
test eax, eax
je 0x18007f6bf
lea rdx, [0x1800b0bd0]
mov rcx, rbx
call fcn.1800845b8
test eax, eax
jne 0x18007f6b5
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 0x18007f6dc
mov eax, dword [rsp + 0x30]
jmp 0x18007f6ee
mov rcx, rbx
call fcn.18006fe44
jmp 0x18007f6ee
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 0x18007f6e0
xor eax, eax
jmp 0x18007f6ee
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x18007f6ee
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 0x18007f700
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.1800703ac
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 0x18007f7a3
cmp edi, dword [rsp + 0x30]
je 0x18007f79c
test ebp, ebp
je 0x18007f79c
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x18007f778
sub dx, 0x61
cmp dx, 0x19
ja 0x18007f784
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x18007f765
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x18007f788
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x18007f7a5
mov eax, 1
jmp 0x18007f7a5
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800818f8
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, [0x1800cc5e0]
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 0x18008194e
cmp word [rdx], r9w
jne 0x18008194e
or byte [rax + rbp*8 + 0x38], 4
jmp 0x180081953
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x180081ad2
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x180081a9d
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x18008199b
cmp rcx, r8
jae 0x1800819bb
cmp word [rcx], r9w
jne 0x18008199b
add rax, 4
mov edx, r9d
jmp 0x18008199e
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x180081970
jmp 0x180081ad2
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 0x180081a96
cmp dword [rsp + 0x80], edi
je 0x180081a96
lea r9, [0x1800cc5e0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x180081a70
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x180081a23
mov word [rbx], bp
jmp 0x180081acf
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 0x180081a3e
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 0x180081acf
cmp word [rsp + 0x70], bp
jne 0x180081a7c
cmp rbx, rsi
je 0x180081a1b
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180078844
cmp word [rsp + 0x70], bp
je 0x180081ad2
mov word [rbx], 0xd
jmp 0x180081acf
mov rcx, r15
lea r9, [0x1800cc5e0]
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 0x180081acc
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180081ad2
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