joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401b9bb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14025c560]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14025c540]
test rbx, rbx
je 0x1401b9c0c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1401b9c03
test eax, eax
jne 0x1401b9c03
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1401b9be8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1401b9f40
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1402593e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1401b9f60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1401b9f68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1401b9f60
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1401b9fbd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1401b9fb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1401b9f60
add rax, 0x28
cmp rax, r9
jne 0x1401b9fa0
xor eax, eax
ret

Function at 0x1401b9fc0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402593e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1401b9fdf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1401b9fe8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1401b9fdf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1401ba080
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402593e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1401ba09f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1401ba0a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1401ba790
Capabilities:
Check mutex on windows
Encrypt data using chaskey
Get file version info
Get system information on windows
Hash data using fnv
Manipulate console buffer
Resolve function by parsing pe exports
Suspend thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
xor esi, esi
call fcn.1401b9250
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p__acmdln
mov rbx, qword [rax]
test rbx, rbx
jne 0x1401ba7db
jmp 0x1401ba851
test cl, cl
je 0x1401ba808
and esi, 1
je 0x1401ba7f0
mov esi, 1
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__ismbblead
test eax, eax
je 0x1401ba7d7
cmp byte [rbx + 1], 1
sbb rbx, 0xffffffffffffffff
add rbx, 1
movsx ecx, byte [rbx]
cmp cl, 0x20
jle 0x1401ba7b8
mov eax, esi
xor eax, 1
cmp cl, 0x22
cmove esi, eax
jmp 0x1401ba7c6
test cl, cl
je 0x1401ba808
nop dword [rax]
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x1401ba808
cmp al, 0x20
jle 0x1401ba7f8
lea rdx, [rsp + 0x20]
xor eax, eax
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov r9d, 0xa
test byte [rsp + 0x5c], 1
je 0x1401ba836
movzx r9d, word [rsp + 0x60]
mov rcx, qword [0x1402593e0]
mov r8, rbx
xor edx, edx
add rsp, 0x90
pop rbx
pop rsi
pop rdi
jmp fcn.1400b29a0
lea rbx, [0x140259050]
jmp 0x1401ba808
Function at 0x140a20058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a201df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a20089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a2006f
add dl, dl
jne 0x140a20096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a200f6
xor eax, eax
add dl, dl
jne 0x140a200a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a201ad
add dl, dl
jne 0x140a200b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a200c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a200d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a200dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a200ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a2007e
mov eax, 1
add dl, dl
jne 0x140a20106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a20113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a200fb
sub eax, ebx
mov ebx, 1
jne 0x140a2014c
mov ecx, 1
add dl, dl
jne 0x140a2012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a2013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a20123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a2007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a20168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a20175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a2015d
cmp eax, 0x7d00
jae 0x140a2019b
cmp eax, 0x500
jb 0x140a20196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a2007e
cmp eax, 0x7f
ja 0x140a2019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a2007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a201d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140a2007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001cad0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x58]
xor r15d, r15d
mov r11, qword [rsp + 0x70]
mov r13, rdx
mov rax, qword [rsp + 0x60]
mov qword [r14], r8
mov qword [r11], rax
mov rdi, qword [r14]
cmp rdi, r9
je 0x14001cc63
mov r12, qword [rsp + 0x68]
lea r8d, [r15 + 1]
mov rsi, qword [r11]
mov r9d, 0x3ff
mov r10d, 0x2400
mov ebx, 0x2800
cmp rsi, r12
je 0x14001cc63
movzx edx, word [r13]
xor bpl, bpl
movzx ecx, word [rdi]
cmp r8w, dx
jae 0x14001cb69
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x14001cc87
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x14001cb7f
mov eax, ecx
add cx, bx
cmp cx, r9w
ja 0x14001cb7f
shl eax, 0xa
mov bpl, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x14001cb92
movzx r9d, al
mov r10d, r15d
mov ebx, r15d
jmp 0x14001cbdd
mov r9d, eax
cmp eax, 0x800
jae 0x14001cbac
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov ebx, r8d
jmp 0x14001cbdd
cmp eax, 0x10000
jae 0x14001cbc6
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov ebx, r10d
jmp 0x14001cbdd
shr r9d, 0x12
mov r10d, 3
movzx ebx, bpl
or r9b, 0xf0
xor ebx, 1
add ebx, ebx
lea r8d, [rbx + 1]
mov rdx, r12
sub rdx, rsi
mov ecx, r8d
cmp rdx, rcx
jl 0x14001cc63
lea rcx, [rdi + 2]
mov qword [r14], rcx
test bpl, bpl
jne 0x14001cc01
cmp r10d, 3
jae 0x14001cc0d
mov rcx, qword [r11]
mov r8d, ebx
mov byte [rcx], r9b
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jle 0x14001cc3e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax + rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jg 0x14001cc20
shr eax, 0xa
mov r8d, 1
test bpl, bpl
mov ecx, r8d
cmovne ecx, eax
mov word [r13], cx
mov rdi, qword [r14]
cmp rdi, qword [rsp + 0x50]
jne 0x14001cb1e
mov rax, qword [rsp + 0x48]
cmp rax, qword [r14]
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov eax, 2
jmp 0x14001cc72
Function at 0x14001f43c
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14001f46a
xor eax, eax
jmp 0x14001f550
cmp qword [rcx + 0x68], 0
je 0x14001f47b
call fcn.140006d90
jmp 0x14001f550
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001f492
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001f494
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001f4c6
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14005a9c0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14001f54a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14001f4fd
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14001f526
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14006c944
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14001f54a
cmp rsi, rbx
ja 0x14001f504
test rsi, rsi
je 0x14001f54a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14006c944
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

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

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

Function at 0x140046f60
Capabilities:
Parse pe header

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

Function at 0x140051aa0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
je 0x140051abf
mov rax, rbx
add rsp, 0x20
pop rbx
ret
mov r9d, 0xc
lea r8, str.TLS_capacity_depleted
lea rcx, str.libslog_src_thread_specific.cpp
lea edx, [r9 + 0x1d]
call fcn.14004b210
int3
Function at 0x1400589a0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov ecx, dword [0x1400ba098]
cmp ecx, 0xffffffff
je 0x1400589c0
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x1400589da
call fcn.140058ec0
mov ecx, dword [0x1400ba098]
cmp ecx, 0xffffffff
jne 0x1400589d4
xor eax, eax
jmp 0x1400589da
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rbx, [rax + 0x18]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400578d0
mov qword [rbx], rax
add rsp, 0x20
pop rbx
ret

Function at 0x140058e30
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1400ba098]
cmp ecx, 0xffffffff
je 0x140058e93
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140058e93
mov rdx, qword [rax + 0x28]
mov rcx, rdx
mov rax, qword [rdx + 8]
cmp byte [rax + 0x19], 0
jne 0x140058e78
cmp qword [rax + 0x20], rbx
jae 0x140058e6c
mov rax, qword [rax + 0x10]
jmp 0x140058e72
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140058e60
cmp byte [rcx + 0x19], 0
jne 0x140058e93
cmp rbx, qword [rcx + 0x20]
jb 0x140058e93
cmp rcx, rdx
je 0x140058e93
lea rax, [rcx + 0x28]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140058ec0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.140057870
mov rbx, rax
mov qword [rsp + 0x30], rax
lea rdx, [0x140058e10]
lea rcx, [0x1400bfb38]
call fcn.140058a00
mov ecx, dword [0x1400ba098]
cmp ecx, 0xffffffff
je 0x140058efb
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
add rsp, 0x20
pop rbx
ret
Function at 0x1400774f4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400772f0
Function at 0x14007f984
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.140046b10
sub rsp, rax
mov rax, qword [0x1400ba018]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14007c234
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14007f9d3
mov rax, rbp
jmp 0x14007fadb
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 + 0xc0130]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140080aa4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xc0130]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14007fad7
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 0x14007fad7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140080aa4
test rax, rax
js 0x14007fad7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14007fad7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14007fac9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14007fac9
cmp byte [rcx], 0xd
jne 0x14007faaf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14007fabe
cmp byte [rcx + 1], 0xa
jne 0x14007fabe
inc rcx
jmp 0x14007fabe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xba470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14007fa91
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14007fadb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140046210
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 0x14007fcfc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14007fd12
mov al, 1
jmp 0x14007fd72
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14007fd23
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14007fd70
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400856f8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14007fd70
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14007fd70
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14007fd70
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14007fd72
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14007fe44
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, [0x1400c0130]
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 0x14007fe9b
cmp word [rdx], r13w
jne 0x14007fe9b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14007fea0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14007ffc5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14007ffe6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14007fed9
mov rdx, r9
mov word [rbx], cx
jmp 0x14007ff00
cmp r9, r8
jae 0x14007ff10
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 0x14007feba
jmp 0x14007ffc5
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 0x14007ffba
cmp dword [rsp + 0x80], esi
je 0x14007ffba
lea r8, [0x1400c0130]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14007ff92
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14007ff62
mov word [rbx], r13w
jmp 0x14007ffc2
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 0x14007ff6f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14007ffc2
cmp word [rsp + 0x70], r13w
jne 0x14007ff9f
cmp rbx, r14
je 0x14007ff5c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140080aac
cmp word [rsp + 0x70], r13w
je 0x14007ffc5
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, [0x1400c0130]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14007ffbf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14007ffc5
Function at 0x1400846ec
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 0x14008471c
xor eax, eax
jmp 0x1400847df
mov rbp, rbx
cmp word [rax], si
je 0x140084741
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140084728
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140084724
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.140082164
movsxd r14, eax
test eax, eax
jne 0x14008477f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140084715
mov rcx, r14
call fcn.14007afd8
mov rdi, rax
test rax, rax
jne 0x140084798
xor ecx, ecx
call fcn.14007af9c
jmp 0x140084774
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.140082164
test eax, eax
jne 0x1400847c9
mov rcx, rdi
call fcn.14007af9c
jmp 0x1400847d3
xor ecx, ecx
call fcn.14007af9c
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 0x1400847fc
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 0x140084883
mov rsi, rbx
cmp word [rax], bp
je 0x140084842
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14008482c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140084828
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14007afd8
mov rdi, rax
test rax, rax
je 0x140084870
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14005a9c0
mov rbp, rdi
xor ecx, ecx
call fcn.14007af9c
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 0x140087c4c
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.14007abc4
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 0x140087ced
cmp ebx, dword [rsp + 0x30]
je 0x140087ce6
test esi, esi
je 0x140087ce6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140087cc1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140087cce
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140087cab
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140087cd2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140087cef
mov eax, 1
jmp 0x140087cef
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14008afa4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14006f200
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14008b02e
cmp byte [rbp - 0x21], r15b
je 0x14008b029
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14008b064
call fcn.14007db9c
test eax, eax
jne 0x14008b050
cmp byte [rbp - 0x21], r15b
je 0x14008b048
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14008b064
cmp byte [rbp - 0x21], r15b
je 0x14008b061
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140074268
test eax, eax
jne 0x14008b104
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14006f200
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14008b0a3
cmp byte [rbp - 0x21], r15b
je 0x14008b0d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14008b0d8
call fcn.14007db9c
test eax, eax
jne 0x14008b0c4
cmp byte [rbp - 0x21], r15b
je 0x14008b0bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14008b0d8
cmp byte [rbp - 0x21], r15b
je 0x14008b0d5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140074268
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14008b104
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14008b107
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14008b115
mov rcx, rdi
call fcn.14007af9c
cmp byte [rbp + 0x3f], r15b
je 0x14008b124
mov rcx, qword [rbp + 0x27]
call fcn.14007af9c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret