joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006ec50
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
test rcx, rcx
je 0x18006ec71
mov r8, qword [rcx]
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
mov qword [rcx], 0
cmp r8, 1
je 0x18006eca9
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x18006eca2
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x18006eca9
mov ecx, eax
call fcn.18007c0c0
mov r8d, dword [0x1800f536c]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + r8*8]
mov qword [rcx + 0xd0], 1
mov qword [rcx + 0xd8], rax
mov qword [rcx + 0xe0], rdx
add rsp, 0x38
ret

Function at 0x180070280
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor r12d, r12d
xor r13d, r13d
xor ebx, ebx
cmp r8, 0x201
jae 0x180070320
jmp 0x18007030f
jae 0x1800703de
cmp r8, 0x201
jae 0x180070320
mov r14d, 0x200
lea rdi, [rbp - 0x58]
mov rsi, r8
jmp 0x180070377
sub r8, rbx
sub r13, rbx
cmp r13, r8
jae 0x18007034f
lea rcx, [rbp + 0x3c8]
mov rdx, rbx
call fcn.180095840
mov r12, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp r12, rax
mov ebx, 0xffffffff
cmovb rbx, r12
mov qword [rbp + 0x3d8], rbx
mov r13, r12
mov r14, rbx
mov rdi, qword [rbp + 0x3e8]
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, esi
mov rdx, rdi
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r15d, eax
test eax, eax
jne 0x18007039f
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x180070446
mov r8d, r15d
cmp rsi, r8
jne 0x180070300
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180070469
add rsi, rsi
mov eax, 0xffffffff
cmp rsi, rax
cmovae rsi, rax
mov r8, rsi
cmp r8, 0x201
jb 0x18007030f
jmp 0x180070320
cmp r14, r8
jb 0x180070483
lea rcx, [rbp + 0x3a8]
mov rdx, rdi
call fcn.1800744e0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test r12, r12
je 0x18007042f
add r12, r12
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, r12
call fcn.1800035f0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test r12, r12
jne 0x180070417
jmp 0x18007042f
lea rcx, [0x1800b8de3]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.180096350
jmp 0x180070498
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.1800964f0
ud2
Function at 0x180070bd0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
cmp byte [rcx], 0
je 0x180070bee
mov rcx, rdx
mov rdx, r8
add rsp, 0x40
pop rbx
pop rdi
pop rsi
jmp fcn.180070c60
lea rcx, [rsp + 0x28]
call fcn.18007b9d0
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x180070c1f
mov rcx, rdi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x180070c24
xor ebx, ebx
test rsi, rsi
jne 0x180070c39
jmp 0x180070c4d
mov rbx, rsi
jmp 0x180070c4d
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x180070c4d
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.1800035f0
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x180074de0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x38]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x180074e13
test ecx, ecx
jne 0x180074e62
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x180074e20
test ecx, ecx
jne 0x180074e62
mov rcx, rdi
call fcn.180074cc0
movzx r10d, al
test bl, bl
jne 0x180074e69
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x180074e56.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x180074fdc]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x180074e56.2
xor r10d, r10d
test bl, bl
je 0x180074e30
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x180074fbe
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x180074e9b
xor edi, edi
jmp 0x180074f18
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x180074ee0
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x180074efb
inc rsi
dec rax
cmp rsi, 1
jne 0x180074ec0
jmp 0x180074f18
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x180074efb
cmp ebx, 0x5c
je 0x180074efb
inc rsi
dec rax
cmp rsi, 1
jne 0x180074ee0
jmp 0x180074f18
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x180074fcc
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x180074f42
mov al, 9
cmp rdx, 2
je 0x180074f46
cmp rdx, 1
jne 0x180074f56
cmp byte [r9], 0x2e
jne 0x180074f56
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x180074f56
mov al, 0xa
jmp 0x180074f56
cmp byte [r9], 0x2e
jne 0x180074f56
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x180074e56.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x180074e56.2
mov esi, 2
jmp case.0x180074e56.2
lea r8, str.library_std_srcpath.rs
call fcn.1800964e0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1800964e0
ud2
Function at 0x18007c0c0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
sub rsp, 0x80
mov dword [rsp + 0x28], ecx
mov rsi, qword [0x1800f52e0]
mov qword [rsp + 0x30], rsi
test rsi, rsi
jne 0x18007c122
lea rdx, [0x1800bac08]
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x18007c158
mov rcx, qword [rsp + 0x30]
xor eax, eax
lock cmpxchg qword [0x1800f52e0], rcx
jne 0x18007c112
mov rsi, qword [rsp + 0x30]
jmp 0x18007c122
mov rsi, rax
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x10
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x18007c158
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
mov dword [rsp + 0x2c], eax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x60], rax
lea rax, [0x18008ca60]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x2c]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
lea rax, [0x1800bac58]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
lea rax, [0x1800bac78]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 2
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 2
lea rdx, str.library_std_src_syswindows_rand.rsRNG_broken:___fallback_RNG_broken:
lea rcx, [rsp + 0x30]
call fcn.180096270
ud2
Function at 0x18008c2c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x18008c33a
mov r11, rdx
mov rdx, qword [rsp + 0x70]
mov ebp, ecx
shr ebp, 8
lea r8, [r11 + r8*2]
xor eax, eax
mov rbx, r11
movzx edi, byte [r11 + 1]
add r11, 2
lea r10, [rax + rdi]
cmp byte [rbx], bpl
jne 0x18008c330
cmp r10, rax
jb 0x18008c3cd
cmp r10, rdx
ja 0x18008c3e1
add rax, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x18008c332
lea rsi, [rbx + 1]
cmp byte [rax + rbx], cl
mov rbx, rsi
jne 0x18008c310
jmp 0x18008c3a2
ja 0x18008c33a
mov rax, r10
cmp r11, r8
jne 0x18008c2e0
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x18008c3a6
mov rsi, qword [rsp + 0x78]
add rdx, rsi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea rbx, [rsi + 1]
movzx edi, byte [rsi]
test dil, dil
js 0x18008c380
mov rsi, rbx
sub ecx, edi
jns 0x18008c399
jmp 0x18008c3a8
cmp rbx, rdx
je 0x18008c3b3
movzx ebp, byte [rsi + 1]
add rsi, 2
and edi, 0x7f
shl edi, 8
or edi, ebp
sub ecx, edi
js 0x18008c3a8
xor al, 1
cmp rsi, rdx
jne 0x18008c360
jmp 0x18008c3a8
xor eax, eax
jmp 0x18008c3a8
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x1800bc8a9]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.180096350
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, rax
mov rdx, r10
call fcn.180096500
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1800964f0
ud2
Function at 0x1800950f0
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x180095154
mov rsi, rax
lea rdx, [0x1800a3401]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x180095154
mov rbx, rax
lea rdx, [0x1800a340f]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x180095154
mov rsi, rax
mov eax, 1
jmp 0x1800951e0
lea rcx, [0x1800a3423]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x180095261
mov rdi, rax
lea rdx, [0x1800a342d]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x180095261
mov rbx, rax
lea rdx, [0x1800a3440]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x180095261
mov rsi, rax
lea rdx, [0x1800a3454]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x180095261
mov rdi, rax
lea rcx, [rbp - 0x28]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x180095261
mov rbx, qword [rbp - 0x28]
xor eax, eax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rdi
mov ecx, 0x20
mov edx, 8
call fcn.1800035e0
test rax, rax
je 0x18009527b
mov rcx, rax
movups xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
xor eax, eax
lock cmpxchg qword [0x1800f3b70], rcx
je 0x180095255
mov rsi, rax
cmp qword [rcx], 0
mov qword [rbp - 8], rcx
jne 0x18009523e
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 8]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov edx, 0x20
mov r8d, 8
mov rcx, qword [rbp - 8]
call fcn.1800035f0
mov rcx, rsi
mov rax, rcx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.parking_lot_requires_either_NT_Keyed_Events__WinXP__or_WaitOnAddress_WakeByAddress__Win8_C:UsersVincent.cargo_registry_srcgithub.com_1ecc6299db9ec823parking_lot_core_0.9.5_src_thread_parkerwindowsmod.rs
lea r8, [0x1800a33c8]
mov edx, 0x5b
call fcn.180095320
jmp 0x18009528a
mov ecx, 0x20
mov edx, 8
call fcn.180096150
ud2
Function at 0x1400013b4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1400f3ec0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14000140e
mov r8, qword [0x1400f3e30]
lea edx, [rax + 8]
mov rcx, qword [0x1400f3ea8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400f3ec0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.140001100
mov rdx, rbx
lea rcx, [0x14000138c]
call fcn.140001530
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140001418
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400f3ec0], eax
add rsp, 0x28
jmp fcn.1400013b4

Function at 0x140001530
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x1400f3ec8], 0
lea rbx, [0x1400f3ed8]
mov r14, rdx
mov r15, rcx
jne 0x14000157d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1400f3ecc], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1400f3ec8], 1
mov ecx, dword [0x1400f3ecc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x140001652
mov rcx, qword [0x1400f3ea8]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14000167d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400f3ed0]
test rax, rax
je 0x1400015cd
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1400f3ed0], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
lea r9, [rbp + 0x20]
and dword [rsp + 0x28], 0
mov rcx, rax
mov r8, rdi
mov dword [rsp + 0x20], 0x100000
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x140001698]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1400f3ecc]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1400f3ea8]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14000167d
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140001ff0
Capabilities:
Parse pe header

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

Function at 0x140006958
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 0x1400069c7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400069c7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400069c7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400069c7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400069c7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400069c7
cmp dword [rcx + 0xf8], 0
je 0x1400069c7
mov ecx, ebx
call fcn.140006acc
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.14000678c
nop
cmp dword [rbp + 0x20], 0
je 0x140006a15
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140006a20
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140006958

Function at 0x140006bb8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006958
Function at 0x14001274c
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.1400089fc
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 0x1400127ed
cmp ebx, dword [rsp + 0x30]
je 0x1400127e6
test esi, esi
je 0x1400127e6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400127c1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400127ce
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400127ab
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400127d2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400127ef
mov eax, 1
jmp 0x1400127ef
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140013a84
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 0x140013ab4
xor eax, eax
jmp 0x140013b77
mov rbp, rbx
cmp word [rax], si
je 0x140013ad9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140013ac0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140013abc
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.140013d7c
movsxd r14, eax
test eax, eax
jne 0x140013b17
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140013aad
mov rcx, r14
call fcn.140009480
mov rdi, rax
test rax, rax
jne 0x140013b30
xor ecx, ecx
call fcn.1400077b0
jmp 0x140013b0c
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.140013d7c
test eax, eax
jne 0x140013b61
mov rcx, rdi
call fcn.1400077b0
jmp 0x140013b6b
xor ecx, ecx
call fcn.1400077b0
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 0x140013b94
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 0x140013c1b
mov rsi, rbx
cmp word [rax], bp
je 0x140013bda
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140013bc4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140013bc0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140009480
mov rdi, rax
test rax, rax
je 0x140013c08
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140021e60
mov rbp, rdi
xor ecx, ecx
call fcn.1400077b0
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 0x14001bdb8
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.14000c9a4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001be42
cmp byte [rbp - 0x21], r15b
je 0x14001be3d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001be78
call fcn.14000a720
test eax, eax
jne 0x14001be64
cmp byte [rbp - 0x21], r15b
je 0x14001be5c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001be78
cmp byte [rbp - 0x21], r15b
je 0x14001be75
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.14000da44
test eax, eax
jne 0x14001bf18
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c9a4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001beb7
cmp byte [rbp - 0x21], r15b
je 0x14001beec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001beec
call fcn.14000a720
test eax, eax
jne 0x14001bed8
cmp byte [rbp - 0x21], r15b
je 0x14001bed1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001beec
cmp byte [rbp - 0x21], r15b
je 0x14001bee9
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.14000da44
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001bf18
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001bf1b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001bf29
mov rcx, rdi
call fcn.1400077b0
cmp byte [rbp + 0x3f], r15b
je 0x14001bf38
mov rcx, qword [rbp + 0x27]
call fcn.1400077b0
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