joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001a070
Capabilities:
Get system information on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rsi, rcx
mov edi, edx
mov rcx, qword [rcx + 0x28]
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov qword [rsi], rbx
test edi, edi
jg 0x18001a0b4
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x50]
lea edi, [rax + rax]
test edi, edi
jne 0x18001a0ae
mov edi, 2
jmp 0x18001a0b4
jle 0x18001a139
mov qword [rsp + 0x90], rbp
xor ebp, ebp
nop
lea rax, [rsp + 0x88]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x18001a150]
xor edx, edx
mov dword [rsp + 0x20], ebp
xor ecx, ecx
call fcn.1800302f4
mov rbx, rax
mov qword [rsp + 0x80], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x18001a12b
mov rdx, qword [rsi + 0x10]
lea rcx, [rsi + 8]
cmp rdx, qword [rcx + 0x10]
je 0x18001a110
mov qword [rdx], rbx
add qword [rcx + 8], 8
jmp 0x18001a11d
lea r8, [rsp + 0x80]
call fcn.180019760
mov edx, 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
sub rdi, 1
jne 0x18001a0c0
mov rbp, qword [rsp + 0x90]
mov al, 1
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x18001b700
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [0x180068db8]
mov rdi, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [0x180068db0]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx + 0xc]
add rax, 0x10
mov dword [rsp + 0x70], 0
cmp rax, qword [0x18006bd00]
mov qword [rsp + 0x78], rax
jbe 0x18001b749
mov eax, 0xfffffffc
add rsp, 0x60
pop rdi
ret
cmp byte [0x18006bb34], 0
je 0x18001b893
cmp qword [0x180068dc8], 0xffffffffffffffff
je 0x18001b893
cmp qword [0x18006bcf8], 0
je 0x18001b893
lea rcx, [0x18006bab8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r8, qword [rsp + 0x78]
mov rdx, rdi
mov rcx, qword [0x18006bcf8]
call fcn.18004bc10
xor eax, eax
lea rdi, [rsp + 0x40]
mov ecx, 0x20
lea rdx, [rsp + 0x78]
rep stosb byte [rdi], al
mov rax, qword [0x180068db8]
xor r9d, r9d
mov rcx, qword [0x180068dc8]
mov r8d, 8
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18001b7fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x18001b7fd
lea rcx, [0x18006bab8]
mov edi, 0xfffffffc
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
add rsp, 0x60
pop rdi
ret
mov r9d, 0xffffffff
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x18001b841
mov rcx, qword [0x180068dc8]
call qword [sym.imp.KERNEL32.dll_CancelIo]
lea rcx, [0x18006bab8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
add rsp, 0x60
pop rdi
ret
mov rcx, qword [0x180068db0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x180068dc8]
test eax, eax
je 0x18001b821
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x18001b827
mov eax, dword [rsp + 0x70]
lea rcx, [0x18006bab8]
neg eax
sbb edi, edi
neg edi
dec edi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
add rsp, 0x60
pop rdi
ret
mov eax, 0xfffffffd
add rsp, 0x60
pop rdi
ret
Function at 0x18001d240
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x70
test byte [r9 + 0x12], 1
mov rbp, r9
mov rax, qword [0x180068db8]
mov r14, rdx
mov qword [r11 - 0x50], rax
mov r15d, ecx
mov rax, qword [0x180068db0]
mov qword [r11 - 0x48], rax
movsxd rsi, r8d
mov dword [r11 + 0x20], 0
je 0x18001d291
xor eax, eax
mov rbp, qword [r11 + 0x18]
add rsp, 0x70
pop r15
pop r14
pop rsi
ret
mov qword [rsp + 0x90], rbx
lea ebx, [rsi + 0x16]
movsxd rax, ebx
add rax, 0x10
mov qword [rsp + 0x98], rdi
cmp rax, qword [0x18006bd00]
mov qword [rsp + 0x30], rax
jbe 0x18001d2c3
mov eax, 0xfffffffc
jmp 0x18001d431
cmp byte [0x18006bb34], 0
je 0x18001d42c
cmp qword [0x180068dc8], 0xffffffffffffffff
je 0x18001d42c
cmp qword [0x18006bcf8], 0
je 0x18001d42c
lea rcx, [0x18006bab8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdi, qword [0x18006bcf8]
mov r8d, 0x16
mov rdx, rbp
lea rcx, [rdi + 0x10]
mov qword [rdi + 4], 0
mov dword [rdi], r15d
mov dword [rdi + 0xc], ebx
call fcn.18004bc10
mov r8, rsi
lea rcx, [rdi + 0x26]
mov rdx, r14
call fcn.18004bc10
xor eax, eax
lea rdi, [rsp + 0x48]
mov ecx, 0x20
lea rdx, [rsp + 0x30]
rep stosb byte [rdi], al
mov rax, qword [0x180068db8]
xor r9d, r9d
mov rcx, qword [0x180068dc8]
mov r8d, 8
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18001d398
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x18001d398
lea rcx, [0x18006bab8]
mov edi, 0xfffffffc
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x18001d431
mov r9d, 0xffffffff
lea rdx, [rsp + 0x38]
xor r8d, r8d
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x18001d3d8
mov rcx, qword [0x180068dc8]
call qword [sym.imp.KERNEL32.dll_CancelIo]
lea rcx, [0x18006bab8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x18001d431
mov rcx, qword [0x180068db0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x180068dc8]
test eax, eax
je 0x18001d3bc
xor r9d, r9d
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x18001d3c2
mov eax, dword [rsp + 0xa8]
lea rcx, [0x18006bab8]
neg eax
sbb edi, edi
neg edi
dec edi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x18001d431
mov eax, 0xfffffffd
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rsi
ret
Function at 0x18001db90
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800680c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x1f0fff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x18001dc48
lea r8, [rsp + 0x30]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18001dc3f
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x18001dc39
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x44], rax
mov r9d, 0x10
xor eax, eax
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x4c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180023640
add rsp, 0x60
pop rbx
ret
Function at 0x180020fc0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov byte [rsp + 8], cl
sub rsp, 0x38
lea rax, [rsp + 0x48]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18002102f
mov rcx, qword [rsp + 0x48]
lea rdx, str.DisableTaskOffload
mov dword [rsp + 0x40], eax
mov r9d, 4
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x38
ret
Function at 0x1800212f0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x1800680c0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov eax, dword [str.NDIS]
lea r9, [0x18006b480]
mov dword [rsp + 0x38], eax
lea r8, str.SYSTEMCurrentControlSetServices_s
movzx eax, byte [0x18005e1a4]
lea rcx, [rsp + 0x50]
mov byte [rsp + 0x3c], al
movzx ebx, dl
mov eax, dword [str.tcpip]
mov edx, 0x104
mov dword [rsp + 0x40], eax
movzx eax, word [0x18005e1ac]
mov word [rsp + 0x44], ax
movzx eax, byte [0x18005e1ae]
mov byte [rsp + 0x46], al
movabs rax, 0x4944545f504e50
mov qword [rsp + 0x48], rax
call fcn.180021e70
lea rax, [rsp + 0x30]
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x18002139d
xor al, al
jmp 0x18002141c
mov rcx, qword [rsp + 0x30]
lea rdx, str.Group
xor r8d, r8d
mov r9d, 1
test bl, bl
je 0x1800213f2
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov r9d, 7
mov dword [rsp + 0x28], 7
xor r8d, r8d
lea rdx, str.DependOnService
jmp 0x1800213ff
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180023640
add rsp, 0x170
pop rbx
ret
Function at 0x1800302f4
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 0x18003032b
call fcn.1800313d8
mov dword [rax], 0x16
call fcn.180029984
xor eax, eax
jmp 0x1800303bd
mov rdx, r9
mov rcx, r8
call fcn.180030290
mov rbx, rax
test rax, rax
je 0x1800303ba
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x28], rax
lea r8, [0x1800301c4]
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 0x1800303a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180031368
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18003038e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18003039d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1800394e0
jmp 0x1800303ba
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1800303b7
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 0x180036234
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 0x1800362a3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800362a3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800362a3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800362a3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800362a3
cmp dword [rcx + 0x84], 0xe
jbe 0x1800362a3
cmp dword [rcx + 0xf8], 0
je 0x1800362a3
mov ecx, ebx
call fcn.180036348
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.18003613c
nop
cmp dword [rbp + 0x20], 0
jne 0x180036304
call fcn.18003d3cc
cmp eax, 1
jne 0x1800362f4
xor dl, dl
jmp 0x1800362fe
call fcn.180041be0
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x18003630f
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180036318
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180036234
Function at 0x18003a36c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18003a382
mov al, 1
jmp 0x18003a3ee
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18003a393
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18003a3ec
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800469f8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18003a3ec
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 0x18003a3ec
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18003a3ec
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18003a3ee
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x18003ac54
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 [0x180071050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x18003acb9
test rax, rax
jne 0x18003aca7
lea r9, str.GetLocaleInfoEx
lea r8, [0x180054ac8]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.18003a740
test rax, rax
je 0x18003acb9
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.18004bbd0
jmp 0x18003acd3
xor edx, edx
mov rcx, rbp
call fcn.18003affc
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 0x18003eca8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18003ecc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180031368
or eax, 0xffffffff
jmp 0x18003ecca
xor eax, eax
add rsp, 0x28
ret
Function at 0x18003f714
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.180024440
sub rsp, rax
mov rax, qword [0x1800680c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180039538
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18003f763
mov rax, rbp
jmp 0x18003f86f
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 + 0x6aa30]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18003f350
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x6aa30]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18003f86b
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 0x18003f86b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18003f350
test rax, rax
js 0x18003f86b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18003f86b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18003f85d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18003f85d
cmp byte [rcx], 0xd
jne 0x18003f843
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18003f852
cmp byte [rcx + 1], 0xa
jne 0x18003f852
inc rcx
jmp 0x18003f852
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x686a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18003f825
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18003f86f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180023640
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 0x18003f998
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, [0x18006aa30]
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 0x18003f9ee
cmp word [rdx], r9w
jne 0x18003f9ee
or byte [rax + rbp*8 + 0x38], 4
jmp 0x18003f9f3
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x18003fb72
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x18003fb3d
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x18003fa3b
cmp rcx, r8
jae 0x18003fa5b
cmp word [rcx], r9w
jne 0x18003fa3b
add rax, 4
mov edx, r9d
jmp 0x18003fa3e
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x18003fa10
jmp 0x18003fb72
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 0x18003fb36
cmp dword [rsp + 0x80], edi
je 0x18003fb36
lea r9, [0x18006aa30]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x18003fb10
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x18003fac3
mov word [rbx], bp
jmp 0x18003fb6f
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 0x18003fade
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 0x18003fb6f
cmp word [rsp + 0x70], bp
jne 0x18003fb1c
cmp rbx, rsi
je 0x18003fabb
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18003f358
cmp word [rsp + 0x70], bp
je 0x18003fb72
mov word [rbx], 0xd
jmp 0x18003fb6f
mov rcx, r15
lea r9, [0x18006aa30]
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 0x18003fb6c
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18003fb72
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 0x18004321c
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 0x18004324c
xor eax, eax
jmp 0x18004330f
mov rbp, rbx
cmp word [rax], si
je 0x180043271
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180043258
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180043254
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.18003d7d8
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1800432b2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180043245
call fcn.18003bcd0
mov rdi, rax
test rax, rax
jne 0x1800432c8
xor ecx, ecx
call fcn.1800394e0
jmp 0x1800432a7
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.18003d7d8
test eax, eax
jne 0x1800432f9
mov rcx, rdi
call fcn.1800394e0
jmp 0x180043303
xor ecx, ecx
call fcn.1800394e0
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 0x18004332c
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 0x1800433b3
mov rsi, rbx
cmp word [rax], bp
je 0x180043372
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18004335c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180043358
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18003bcd0
mov rdi, rax
test rax, rax
je 0x1800433a0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.18004bc10
mov rbp, rdi
xor ecx, ecx
call fcn.1800394e0
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 0x180046074
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 0x1800460e7
cmp word [rcx], si
je 0x1800460e7
lea rdx, [0x180055d20]
call fcn.18004a308
test eax, eax
je 0x1800460e7
lea rdx, [0x180055d38]
mov rcx, rbx
call fcn.18004a308
test eax, eax
jne 0x1800460dd
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 0x180046104
mov eax, dword [rsp + 0x30]
jmp 0x180046116
mov rcx, rbx
call fcn.180030fdc
jmp 0x180046116
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 0x180046108
xor eax, eax
jmp 0x180046116
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x180046116
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 0x180046128
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.180037a70
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 0x1800461cb
cmp edi, dword [rsp + 0x30]
je 0x1800461c4
test ebp, ebp
je 0x1800461c4
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x1800461a0
sub dx, 0x61
cmp dx, 0x19
ja 0x1800461ac
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x18004618d
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x1800461b0
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x1800461cd
mov eax, 1
jmp 0x1800461cd
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret