joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180142ef8
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r8, qword [rcx]
mov rbx, rcx
test r8, r8
je 0x180142f5e
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x180142f4f
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180142f45
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180142f19
mov r8, qword [rbx]
mov rcx, qword [0x1803ebe68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180142f70
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x1803ee570]
mov r8b, byte [rbx + 0x20]
mov rdx, qword [rbx]
mov rdi, rdx
and r8b, 1
je 0x180142fa7
lea rdi, [rdx - 5]
movzx eax, r8b
lea rcx, [rdx - 5]
test r8b, r8b
lea r9, [rsp + 0x30]
mov r8d, 0x40
cmove rcx, rdx
lea rbp, [rax*2 + 5]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180142fe0
mov eax, 0xa
jmp 0x18014306c
test esi, esi
je 0x180143002
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180143023
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180143023
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18014301d
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180143023
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
mov al, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
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 0x180143620
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9, rcx
test r8b, r8b
je 0x18014363a
cmp r8b, 0x90
je 0x18014363a
cmp r8b, 0xcc
je 0x18014363a
xor eax, eax
ret
mov r10d, 1
mov ecx, r10d
cmp edx, r10d
jbe 0x180143657
mov eax, ecx
cmp byte [rax + r9], r8b
jne 0x180143637
add ecx, r10d
cmp ecx, edx
jb 0x180143648
mov eax, r10d
ret
Function at 0x180143af4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x180143b3e
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x1803ee560]
lea r15, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r15
cmovbe r15, qword [rbp - 0x50]
sub r15, 0xfff
test rbx, rbx
je 0x180143b7b
cmp rbx, r14
jb 0x180143b76
cmp rbx, r15
jae 0x180143b76
cmp qword [rbx + 8], 0
jne 0x180143cd0
mov rbx, qword [rbx]
jmp 0x180143b5c
mov rsi, rdi
cmp rdi, r14
jb 0x180143bf8
mov r12d, dword [rbp - 0x38]
xor edx, edx
mov rax, rsi
div r12
sub rsi, rdx
jmp 0x180143bbe
mov r8d, gethostbyname
lea rdx, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180143bc6
cmp dword [rbp - 0x10], 0x10000
je 0x180143bc8
mov rsi, qword [rbp - 0x28]
cmp rsi, r12
jb 0x180143bc6
sub rsi, r12
cmp rsi, r14
jae 0x180143b94
xor esi, esi
test rsi, rsi
je 0x180143bf8
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180143c91
cmp rsi, r14
jae 0x180143b83
test rbx, rbx
jmp 0x180143c84
mov r14d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov esi, r14d
div r14
mov eax, r14d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x180143c5d
mov r8d, gethostbyname
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180143c5d
cmp dword [rbp - 0x10], 0x10000
je 0x180143c5f
xor edx, edx
lea edi, [r14 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div rsi
sub rdi, rdx
cmp rdi, r15
jbe 0x180143c20
xor edi, edi
test rdi, rdi
je 0x180143cd0
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180143c91
cmp rdi, r15
jbe 0x180143c00
jmp 0x180143cd0
and qword [rbx + 8], 0
lea rcx, [rbx + 0x40]
and dword [rbx + 0x10], 0
mov edx, 0x40
mov rax, qword [rbx + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rbx + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x180143ca3
mov rax, qword [0x1803ee560]
mov qword [rbx], rax
mov qword [0x1803ee560], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180150d60
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov r9, rcx
movzx edx, byte [r8 + 0x10]
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movzx eax, byte [r8 + 0x11]
mov r10, qword [r9 + 0x30]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [r8 + 0x12]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [r8 + 0x13]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [r8 + 0x14]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [r8 + 0x15]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [r8 + 0x16]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [r8 + 0x17]
imul rdx, rcx
xor rdx, rax
imul rdx, rcx
mov rcx, qword [r9 + 0x18]
and r10, rdx
shl r10, 4
add rcx, r10
mov rax, qword [rcx]
cmp qword [rcx + 8], r8
jne 0x180150e24
cmp rax, r8
jne 0x180150e1a
mov rax, qword [r9 + 8]
mov qword [rcx], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
mov qword [r10 + rcx + 8], rax
jmp 0x180150e2f
mov rax, qword [r8 + 8]
mov qword [rcx + 8], rax
jmp 0x180150e2f
cmp rax, r8
jne 0x180150e2f
mov rax, qword [r8]
mov qword [rcx], rax
mov rcx, qword [r8 + 8]
mov rbx, qword [r8]
mov qword [rcx], rbx
mov rdx, qword [r8]
mov rcx, qword [r8 + 8]
mov qword [rdx + 8], rcx
mov edx, reloc.WLDAP32.dll_Ordinal_32
dec qword [r9 + 0x10]
mov rcx, r8
call fcn.1801e5cd0
mov qword [rdi], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18015d2d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x1803bc678]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov r12, qword [r8 + 0x18]
mov rdi, r8
mov rbp, qword [r8 + 0x10]
mov r15, rdx
mov rsi, rcx
cmp r12, 0x10
jb 0x18015d30d
mov r8, qword [r8]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
test rbp, rbp
je 0x18015d344
movabs r9, 0x100000001b3
nop dword [rax + rax]
movzx eax, byte [rcx + r8]
inc rcx
xor rdx, rax
imul rdx, r9
cmp rcx, rbp
jb 0x18015d330
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 0x30]
mov rsi, qword [rsi + 8]
and rax, rdx
mov rbx, rax
add rbx, rbx
add rax, rax
mov rbx, qword [rcx + rbx*8]
mov r14, qword [rcx + rax*8]
lea r13, [rcx + rax*8]
mov rdx, rbx
mov rcx, rbx
cmp r14, rsi
jne 0x18015d378
mov rax, rsi
jmp 0x18015d37f
mov rax, qword [r13 + 8]
mov rax, qword [rax]
cmp r14, rsi
cmovne rcx, rdx
cmp rcx, rax
je 0x18015d3f2
mov rdx, rdi
cmp r12, 0x10
jb 0x18015d397
mov rdx, qword [rdi]
cmp qword [rbx + 0x28], 0x10
lea rcx, [rbx + 0x10]
jb 0x18015d3a6
mov rcx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x20]
cmp r8, rbp
jne 0x18015d3b8
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18015d3bd
mov rbx, qword [rbx]
jmp 0x18015d368
cmp qword [rbx + 0x28], 0x10
lea rdx, [rbx + 0x10]
jb 0x18015d3cc
mov rdx, qword [rbx + 0x10]
cmp r12, 0x10
jb 0x18015d3d5
mov rdi, qword [rdi]
cmp rbp, qword [rbx + 0x20]
jne 0x18015d3ea
mov r8, rbp
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18015d3ed
mov rbx, rsi
mov qword [r15], rbx
jmp 0x18015d3f5
mov qword [r15], rsi
mov rax, r15
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.1801e5c70
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 0x1801600d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x1803bc678]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov r12, qword [r8 + 0x18]
mov rdi, r8
mov rbp, qword [r8 + 0x10]
mov r15, rdx
mov rsi, rcx
cmp r12, 0x10
jb 0x18016010d
mov r8, qword [r8]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
test rbp, rbp
je 0x180160144
movabs r9, 0x100000001b3
nop dword [rax + rax]
movzx eax, byte [rcx + r8]
inc rcx
xor rdx, rax
imul rdx, r9
cmp rcx, rbp
jb 0x180160130
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 0x30]
mov rsi, qword [rsi + 8]
and rax, rdx
mov rbx, rax
add rbx, rbx
add rax, rax
mov rbx, qword [rcx + rbx*8]
mov r14, qword [rcx + rax*8]
lea r13, [rcx + rax*8]
mov rdx, rbx
mov rcx, rbx
cmp r14, rsi
jne 0x180160178
mov rax, rsi
jmp 0x18016017f
mov rax, qword [r13 + 8]
mov rax, qword [rax]
cmp r14, rsi
cmovne rcx, rdx
cmp rcx, rax
je 0x1801601f2
mov rdx, rdi
cmp r12, 0x10
jb 0x180160197
mov rdx, qword [rdi]
cmp qword [rbx + 0x28], 0x10
lea rcx, [rbx + 0x10]
jb 0x1801601a6
mov rcx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x20]
cmp r8, rbp
jne 0x1801601b8
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1801601bd
mov rbx, qword [rbx]
jmp 0x180160168
cmp qword [rbx + 0x28], 0x10
lea rdx, [rbx + 0x10]
jb 0x1801601cc
mov rdx, qword [rbx + 0x10]
cmp r12, 0x10
jb 0x1801601d5
mov rdi, qword [rdi]
cmp rbp, qword [rbx + 0x20]
jne 0x1801601ea
mov r8, rbp
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1801601ed
mov rbx, rsi
mov qword [r15], rbx
jmp 0x1801601f5
mov qword [r15], rsi
mov rax, r15
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.1801e5c70
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 0x180167660
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov r9, qword [r8 + 0x20]
mov rdi, r8
add r8, 0x10
mov rsi, rdx
mov r10, rcx
cmp qword [rdi + 0x28], 0x10
jb 0x18016768b
mov r8, qword [rdi + 0x10]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
test r9, r9
je 0x1801676c4
movabs rbx, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rcx + r8]
inc rcx
xor rdx, rax
imul rdx, rbx
cmp rcx, r9
jb 0x1801676b0
mov r8, qword [r10 + 0x30]
mov rcx, qword [r10 + 0x18]
and r8, rdx
shl r8, 4
add rcx, r8
mov rax, qword [rcx]
cmp qword [rcx + 8], rdi
jne 0x180167704
cmp rax, rdi
jne 0x1801676fa
mov rax, qword [r10 + 8]
mov qword [rcx], rax
mov rcx, qword [r10 + 0x18]
mov rax, qword [r10 + 8]
mov qword [r8 + rcx + 8], rax
jmp 0x18016770f
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
jmp 0x18016770f
cmp rax, rdi
jne 0x18016770f
mov rax, qword [rdi]
mov qword [rcx], rax
mov rdx, qword [rdi + 8]
lea rcx, [rdi + 0x10]
mov rbx, qword [rdi]
mov qword [rdx], rbx
mov r8, qword [rdi]
mov rdx, qword [rdi + 8]
mov qword [r8 + 8], rdx
dec qword [r10 + 0x10]
call fcn.18000ee40
mov edx, Ordinal_60
mov rcx, rdi
call fcn.1801e5cd0
mov qword [rsi], rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18016c8b0
Capabilities:
Check for time delay via queryperformancecounter
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1803bc678]
xor rax, rsp
mov qword [rsp + 0x38], rax
movsxd rdi, edx
mov rbx, rcx
movsxd rbp, r8d
cmp byte [rdi + rcx + 0x24], 0
je 0x18016c919
cmp byte [rdi + rcx + 0x2b], 0
jne 0x18016c919
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18016c90e
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
imul rax, qword [rsp + 0x28], 0x3e8
cqo
idiv qword [rsp + 0x30]
jmp 0x18016c914
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rbx + rdi*8 + 0x38], rax
mov esi, dword [rbx + rdi*4]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
lea rdx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x28], eax
jne 0x18016c991
mov ecx, esi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
je 0x18016c991
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18016c977
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
imul rax, qword [rsp + 0x30], 0x3e8
cqo
idiv qword [rsp + 0x28]
jmp 0x18016c97d
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, rax
mov rax, rbp
sub rcx, qword [rbx + rdi*8 + 0x38]
cmp rcx, rbp
jb 0x18016c991
mov al, 1
jmp 0x18016c993
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1801e5c70
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x18016cad0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x40
mov rax, qword [0x1803bc678]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x70], rdi
movabs rax, 0x91aef906bca88877
mov qword [0x1803ebe70], rax
mov rsi, rcx
movsxd rdi, edx
mov qword [rsp + 0x78], r14
xor r14d, r14d
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x20], r14d
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], r14
mov qword [0x1803edb18], rax
mov dword [rsp + 0x20], edi
mov rax, qword [rsp + 0x20]
mov qword [0x1803edb20], rax
movsxd rbp, r8d
mov dword [0x1803eda50], r14d
mov dword [0x1803eda40], 2
call fcn.18014eb30
cmp dword [rax], r14d
je 0x18016cb8e
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18016cb80
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
imul rax, qword [rsp + 0x20], 0x3e8
cqo
idiv qword [rsp + 0x28]
jmp 0x18016cb86
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rsi + rdi*8 + 0x350], rax
mov qword [rsp + 0x20], r14
movabs rax, 0xe2587f8cbbd87b1d
mov qword [0x1803ebe70], rax
mov rbx, rdi
mov dword [rsp + 0x20], r14d
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], r14
mov qword [0x1803edb18], rax
mov dword [rsp + 0x20], edi
mov rax, qword [rsp + 0x20]
mov qword [0x1803edb20], rax
mov dword [0x1803eda50], r14d
mov dword [0x1803eda40], 2
call fcn.18014eb30
mov r14, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
cmp dword [rax], 0
je 0x18016cc3b
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18016cc1e
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
imul rax, qword [rsp + 0x28], 0x3e8
cqo
idiv qword [rsp + 0x20]
jmp 0x18016cc24
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, rax
mov rax, rbp
sub rcx, qword [rsi + rbx*8 + 0x350]
cmp rcx, rbp
jb 0x18016cc3b
mov al, 1
jmp 0x18016cc3d
xor al, al
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1801e5c70
add rsp, 0x40
pop rsi
pop rbp
pop rbx
ret

Function at 0x18016f880
Capabilities:
Get geographical location
Query environment variable

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetThreadLocale]
movzx ecx, ax
add rsp, 0x28
jmp fcn.18016f900

Function at 0x18016f8a0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.LC_ALL
mov rbx, rdx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x18016f8c0
cmp byte [rax], 0
jne 0x18016f8ec
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x18016f8d3
cmp byte [rax], 0
jne 0x18016f8ec
lea rcx, str.LANG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x18016f8ea
cmp byte [rax], 0
jne 0x18016f8ec
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180171710
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.LC_ALL
mov rbx, rdx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180171730
cmp byte [rax], 0
jne 0x18017175c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180171743
cmp byte [rax], 0
jne 0x18017175c
lea rcx, str.LANG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x18017175a
cmp byte [rax], 0
jne 0x18017175c
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1801750a0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x70
mov rax, qword [0x1803bc678]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp dword [0x1803e7ed0], 0
jne 0x180175266
lea rcx, str.GETTEXT_MUI
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180175266
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x180175126
mov rcx, rax
call fcn.180175290
test rax, rax
jne 0x1801751f4
lea rdx, str.GetUserDefaultUILanguage
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180175126
call rax
movzx ecx, ax
call fcn.18016f900
test rax, rax
jne 0x1801751f4
lea rax, [rsp + 0x38]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Control_PanelDesktopResourceLocale
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1801751bc
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x80], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov dword [rsp + 0x30], 9
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x80]
jne 0x1801751bc
cmp dword [rsp + 0x40], 1
jne 0x1801751bc
mov eax, dword [rsp + 0x30]
cmp eax, 9
ja 0x1801751bc
jb 0x180175218
cmp byte [rsp + 0x58], 0
je 0x180175223
xor eax, eax
test rdi, rdi
je 0x1801751f4
mov edx, reloc.WS2_32.dll_recv
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov rcx, rdi
lea r9, [0x180175420]
mov qword [rsp + 0x20], rax
lea r8d, [rdx - 0xf]
call qword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
mov rax, qword [rsp + 0x38]
mov qword [0x1803e7ec8], rax
mov dword [0x1803e7ed0], 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1801e5c70
add rsp, 0x70
pop rdi
ret
cmp rax, 9
jae 0x180175280
mov byte [rsp + rax + 0x50], 0
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
jbe 0x1801751bc
cmp byte [rcx], 0
jne 0x1801751bc
mov ecx, eax
call fcn.180171700
test rax, rax
jne 0x1801751f4
jmp 0x1801751be
mov rax, qword [0x1803e7ec8]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1801e5c70
add rsp, 0x70
pop rdi
ret
call fcn.1801e6d98
int3
Function at 0x180178db0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov r9, qword [r8 + 0x20]
mov rdi, r8
add r8, 0x10
mov rsi, rdx
mov r10, rcx
cmp qword [rdi + 0x28], 0x10
jb 0x180178ddb
mov r8, qword [rdi + 0x10]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
test r9, r9
je 0x180178e14
movabs rbx, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rcx + r8]
inc rcx
xor rdx, rax
imul rdx, rbx
cmp rcx, r9
jb 0x180178e00
mov r8, qword [r10 + 0x30]
mov rcx, qword [r10 + 0x18]
and r8, rdx
shl r8, 4
add rcx, r8
mov rax, qword [rcx]
cmp qword [rcx + 8], rdi
jne 0x180178e54
cmp rax, rdi
jne 0x180178e4a
mov rax, qword [r10 + 8]
mov qword [rcx], rax
mov rcx, qword [r10 + 0x18]
mov rax, qword [r10 + 8]
mov qword [r8 + rcx + 8], rax
jmp 0x180178e5f
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
jmp 0x180178e5f
cmp rax, rdi
jne 0x180178e5f
mov rax, qword [rdi]
mov qword [rcx], rax
mov rdx, qword [rdi + 8]
lea rcx, [rdi + 0x10]
mov rbx, qword [rdi]
mov qword [rdx], rbx
mov r8, qword [rdi]
mov rdx, qword [rdi + 8]
mov qword [r8 + 8], rdx
dec qword [r10 + 0x10]
call fcn.180179960
mov edx, 0x50
mov rcx, rdi
call fcn.1801e5cd0
mov qword [rsi], rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18017f3d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x1803bc678]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov r12, qword [r8 + 0x18]
mov rdi, r8
mov rbp, qword [r8 + 0x10]
mov r15, rdx
mov rsi, rcx
mov r10, r8
cmp r12, 0x10
jb 0x18017f418
mov r10, qword [r8]
xor r8d, r8d
movabs r9, 0xcbf29ce484222325
test rbp, rbp
je 0x18017f454
movabs rcx, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8 + r10]
inc r8
xor r9, rax
imul r9, rcx
cmp r8, rbp
jb 0x18017f440
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 0x30]
mov rsi, qword [rsi + 8]
and rax, r9
mov rbx, rax
add rbx, rbx
add rax, rax
mov rbx, qword [rcx + rbx*8]
mov r14, qword [rcx + rax*8]
lea r13, [rcx + rax*8]
mov rdx, rbx
mov rcx, rbx
cmp r14, rsi
jne 0x18017f488
mov rax, rsi
jmp 0x18017f48f
mov rax, qword [r13 + 8]
mov rax, qword [rax]
cmp r14, rsi
cmovne rcx, rdx
cmp rcx, rax
je 0x18017f502
mov rdx, rdi
cmp r12, 0x10
jb 0x18017f4a7
mov rdx, qword [rdi]
cmp qword [rbx + 0x28], 0x10
lea rcx, [rbx + 0x10]
jb 0x18017f4b6
mov rcx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x20]
cmp r8, rbp
jne 0x18017f4c8
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18017f4cd
mov rbx, qword [rbx]
jmp 0x18017f478
cmp qword [rbx + 0x28], 0x10
lea rdx, [rbx + 0x10]
jb 0x18017f4dc
mov rdx, qword [rbx + 0x10]
cmp r12, 0x10
jb 0x18017f4e5
mov rdi, qword [rdi]
cmp rbp, qword [rbx + 0x20]
jne 0x18017f4fa
mov r8, rbp
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18017f4fd
mov rbx, rsi
mov qword [r15], rbx
jmp 0x18017f505
mov qword [r15], rsi
mov rax, r15
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.1801e5c70
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret