joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801c4570
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rcx, [0x1805f369f]
call fcn.1802647b0
mov qword [rsp + 0x20], 0
xor eax, eax
cmp eax, 1
je 0x1801c4651
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov r8d, 5
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.1801c3970
movzx eax, al
test eax, eax
je 0x1801c45e9
xor eax, eax
jmp 0x1801c4651
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1801c464c
mov r8d, 5
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.1801c3970
movzx eax, al
test eax, eax
je 0x1801c4645
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x1801c4651
mov rax, qword [rsp + 0x30]
jmp 0x1801c4651
jmp 0x1801c4594
add rsp, 0x40
pop rdi
ret

Function at 0x1801c8f90
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
lea rcx, [0x1805f36f4]
call fcn.1802647b0
mov eax, 0x1128
mov eax, eax
mov ecx, dword [0x1805a074c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rcx + rax]
and eax, 1
test eax, eax
jne 0x1801c9063
mov eax, 0x1128
mov eax, eax
mov ecx, dword [0x1805a074c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rcx + rax]
or eax, 1
mov dword [rsp + 0x44], eax
mov eax, dword [0x1805a074c]
mov rcx, qword gs:[0x58]
mov edx, 0x1128
mov edx, edx
mov rax, qword [rcx + rax*8]
mov ecx, dword [rsp + 0x44]
mov dword [rdx + rax], ecx
mov eax, 0x10a0
mov eax, eax
mov ecx, dword [0x1805a074c]
mov rdx, qword gs:[0x58]
add rax, qword [rdx + rcx*8]
mov rcx, rax
call fcn.1801d3360
lea rcx, [0x180404320]
call fcn.180265730
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov eax, 0x10a0
mov eax, eax
mov ecx, dword [0x1805a074c]
mov rdx, qword gs:[0x58]
add rax, qword [rdx + rcx*8]
mov qword [rsp + 0x48], rax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call fcn.1801ded70
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x38]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180487380]
call fcn.180264580
mov rax, rdi
add rsp, 0x50
pop rdi
ret
Function at 0x1801c9ab0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x20]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
mov rax, qword [0x18057d540]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x70], 0
lea rcx, [0x1805f36f4]
call fcn.1802647b0
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1801c9b95
lea rcx, [rsp + 0x28]
call fcn.18005af90
nop
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1801c9b5e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x1801c9b5e
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.180067e20
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x90]
call fcn.18005a6f0
mov eax, dword [rsp + 0x70]
or eax, 1
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x28]
call fcn.1800367a0
mov rax, qword [rsp + 0x90]
jmp 0x1801c9bb5
mov rcx, qword [rsp + 0x90]
call fcn.18005af90
mov eax, dword [rsp + 0x70]
or eax, 1
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x90]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180487620]
call fcn.180264580
mov rax, rdi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1802649f0
add rsp, 0x80
pop rdi
ret
Function at 0x1801dfdc0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x20]
mov ecx, 0x2c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [0x18057d540]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0xc0], 0
lea rcx, [0x1805f387a]
call fcn.1802647b0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1801e16e0
nop
lea rcx, [rsp + 0x28]
call fcn.1801e1bb0
movzx eax, al
test eax, eax
jne 0x1801dfe75
mov rcx, qword [rsp + 0xe0]
call fcn.1801e18c0
mov eax, dword [rsp + 0xc0]
or eax, 1
mov dword [rsp + 0xc0], eax
lea rcx, [rsp + 0x28]
call fcn.1801e1a20
mov rax, qword [rsp + 0xe0]
jmp 0x1801dffaa
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
mov dword [rsp + 0x48], 0x1c
lea rcx, [rsp + 0x28]
call fcn.1801e1b80
lea rdx, [rsp + 0x48]
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x1801dfede
mov rcx, qword [rsp + 0xe0]
call fcn.1801e18c0
mov eax, dword [rsp + 0xc0]
or eax, 1
mov dword [rsp + 0xc0], eax
lea rcx, [rsp + 0x28]
call fcn.1801e1a20
mov rax, qword [rsp + 0xe0]
jmp 0x1801dffaa
lea rcx, [rsp + 0x88]
call fcn.1801e18c0
nop
mov eax, dword [rsp + 0x48]
cmp rax, 0x10
jae 0x1801dff00
mov byte [rsp + 0xc4], 1
jmp 0x1801dff08
mov byte [rsp + 0xc4], 0
movzx eax, byte [rsp + 0xc4]
mov byte [rsp + 0xb4], al
mov dword [rsp + 0x48], 0x1c
movzx eax, byte [rsp + 0xb4]
test eax, eax
je 0x1801dff49
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x54], eax
jne 0x1801dff49
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x88]
call fcn.1801e1340
lea rcx, [rsp + 0x28]
call fcn.1801e1b80
lea rdx, [rsp + 0x48]
mov rcx, rax
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1801dfeec
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0xe0]
call fcn.1801e1760
mov eax, dword [rsp + 0xc0]
or eax, 1
mov dword [rsp + 0xc0], eax
lea rcx, [rsp + 0x88]
call fcn.1801e1ac0
nop
lea rcx, [rsp + 0x28]
call fcn.1801e1a20
mov rax, qword [rsp + 0xe0]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.180264580
mov rax, rdi
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1802649f0
add rsp, 0xd0
pop rdi
ret

Function at 0x1801e02e0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1805f387a]
call fcn.1802647b0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [rsp + 0x20]
cmp ecx, eax
je 0x1801e0323
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
add rsp, 0x30
pop rdi
ret
Function at 0x1801e0330
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1805f387a]
call fcn.1802647b0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [rsp + 0x20]
cmp ecx, eax
je 0x1801e0373
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
add rsp, 0x30
pop rdi
ret

Function at 0x1801e73a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x290
lea rdi, [rsp + 0x20]
mov ecx, 0x9c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2a0]
mov rax, qword [0x18057d540]
xor rax, rsp
mov qword [rsp + 0x288], rax
mov dword [rsp + 0x280], 0
lea rcx, [0x1805f3a00]
call fcn.1802647b0
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rax, [rsp + 0x160]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rdx, [rsp + 0x160]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.boiii_
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x2a0]
call fcn.180035a70
mov eax, dword [rsp + 0x280]
or eax, 1
mov dword [rsp + 0x280], eax
mov rax, qword [rsp + 0x2a0]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x18048d840]
call fcn.180264580
mov rax, rdi
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.1802649f0
add rsp, 0x290
pop rdi
ret
Function at 0x1801e74b0
Capabilities:
Create process memory minidump
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
lea rdi, [rsp + 0x40]
mov ecx, 0x20
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xd0]
mov rax, qword [0x18057d540]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rcx, [0x1805f3a00]
call fcn.1802647b0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x70]
call fcn.1801e73a0
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0xa0]
call fcn.180068250
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000100
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x70]
call fcn.1800367a0
call fcn.1801e7370
mov dword [rsp + 0xa8], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0xac], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa8]
mov r8, qword [rsp + 0x68]
mov edx, dword [rsp + 0xac]
mov rcx, qword [rsp + 0xb0]
call sub.dbghelp.dll_MiniDumpWriteDump
test eax, eax
jne 0x1801e7609
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.Minidump_Error
lea rdx, str.There_was_an_error_creating_the_minidump__Hit_OK_to_close_the_program.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0x7b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rax, qword [rsp + 0x68]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x18048d8b0]
call fcn.180264580
mov rax, rdi
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1802649f0
add rsp, 0xc0
pop rdi
ret
Function at 0x1801e7650
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x20c0
call fcn.180265380
sub rsp, rax
lea rdi, [rsp + 0x30]
mov ecx, 0x824
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x20d0]
mov rax, qword [0x18057d540]
xor rax, rsp
mov qword [rsp + 0x20b8], rax
mov dword [rsp + 0x20b0], 0
lea rcx, [0x1805f3a00]
call fcn.1802647b0
mov rcx, qword [rsp + 0x20d8]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x20d8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0x38]
call fcn.18005af90
nop
mov dword [rsp + 0x74], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x74]
mov r8d, 0x2000
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x20d8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1801e7741
mov rcx, qword [rsp + 0x20d0]
call fcn.18005af90
mov eax, dword [rsp + 0x20b0]
or eax, 1
mov dword [rsp + 0x20b0], eax
lea rcx, [rsp + 0x38]
call fcn.1800367a0
mov rax, qword [rsp + 0x20d0]
jmp 0x1801e779f
mov eax, dword [rsp + 0x74]
mov r8d, eax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.180067e70
mov eax, dword [rsp + 0x74]
cmp rax, 0x2000
je 0x1801e76e1
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20d0]
call fcn.18005a6f0
mov eax, dword [rsp + 0x20b0]
or eax, 1
mov dword [rsp + 0x20b0], eax
lea rcx, [rsp + 0x38]
call fcn.1800367a0
mov rax, qword [rsp + 0x20d0]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.180264580
mov rax, rdi
mov rcx, qword [rsp + 0x20b8]
xor rcx, rsp
call fcn.1802649f0
add rsp, 0x20c0
pop rdi
ret

Function at 0x1801ea940
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1805f3bcf]
call fcn.1802647b0
mov rcx, qword [rsp + 0x40]
call fcn.180039b40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x1801ea971
mov al, 1
jmp 0x1801ea993
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1801ea986
mov dword [rsp + 0x20], 1
jmp 0x1801ea98e
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x1801feb80
Capabilities:
Hash data using murmur3

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rcx, [0x1805f3c63]
call fcn.1802647b0
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x28], 0x10
jb 0x1801fec41
mov eax, 4
imul rax, rax, 0
mov dl, 1
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + rax]
call fcn.1801ff520
mov dword [rsp + 0x38], eax
mov ecx, 4
imul rcx, rcx, 1
mov dl, 7
mov r8, qword [rsp + 0x60]
mov ecx, dword [r8 + rcx]
call fcn.1801ff520
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
mov ecx, 4
imul rcx, rcx, 2
mov dl, 0xc
mov r8, qword [rsp + 0x60]
mov ecx, dword [r8 + rcx]
call fcn.1801ff520
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
mov ecx, 4
imul rcx, rcx, 3
mov dl, reloc.WS2_32.dll_select
mov r8, qword [rsp + 0x60]
mov ecx, dword [r8 + rcx]
call fcn.1801ff520
add eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x40]
add eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x1801fec61
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp + 0x20]
lea eax, [rcx + rax + 0x165667b1]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x60]
add rax, 0x10
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x1801fec97
mov rax, qword [rsp + 0x28]
add rax, 4
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rax, 4
cmp rax, qword [rsp + 0x30]
ja 0x1801feccf
mov rax, qword [rsp + 0x28]
imul eax, dword [rax], 0xc2b2ae3d
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dl, reloc.WS2_32.dll_recvfrom
mov ecx, eax
call fcn.1801ff520
imul eax, eax, 0x27d4eb2f
mov dword [rsp + 0x20], eax
jmp 0x1801fec89
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
je 0x1801fed19
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
imul eax, eax, 0x165667b1
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov dl, 0xb
mov ecx, dword [rsp + 0x44]
call fcn.1801ff520
imul eax, eax, 0x9e3779b1
mov dword [rsp + 0x20], eax
jmp 0x1801feccf
mov eax, dword [rsp + 0x20]
shr eax, 0xf
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
imul eax, dword [rsp + 0x20], 0x85ebca77
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xd
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
imul eax, dword [rsp + 0x20], 0xc2b2ae3d
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x10
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x50
pop rdi
ret
Function at 0x180200e30
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
lea rdi, [rsp + 0x20]
mov ecx, 0x58
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x190]
mov rax, qword [0x18057d540]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov dword [rsp + 0x170], 0
lea rcx, [0x1805f3e67]
call fcn.1802647b0
mov dword [rsp + 0x154], 0x101
lea rdx, [rsp + 0x154]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x180200ed0
lea rdx, [0x180497ea0]
mov rcx, qword [rsp + 0x190]
call fcn.180035a70
mov eax, dword [rsp + 0x170]
or eax, 1
mov dword [rsp + 0x170], eax
mov rax, qword [rsp + 0x190]
jmp 0x180200f09
mov eax, dword [rsp + 0x154]
dec eax
mov eax, eax
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x190]
call fcn.180035ae0
mov eax, dword [rsp + 0x170]
or eax, 1
mov dword [rsp + 0x170], eax
mov rax, qword [rsp + 0x190]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180497f70]
call fcn.180264580
mov rax, rdi
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.1802649f0
add rsp, 0x180
pop rdi
ret

Function at 0x180201110
Capabilities:
Get system firmware table

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x64], 0
lea rcx, [0x1805f3e67]
call fcn.1802647b0
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x80]
call fcn.180152de0
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x64]
or eax, 1
mov dword [rsp + 0x64], eax
mov r9d, dword [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x80]
call fcn.1801c8e90
mov rcx, qword [rsp + 0x80]
call fcn.1801c8ac0
mov r9d, dword [rsp + 0x20]
mov r8, rax
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov rax, qword [rsp + 0x80]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180498030]
call fcn.180264580
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x1802238d0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x18022390d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.180223870
add rsp, 0x58
ret

Function at 0x18022a730
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rax, str.SYSTEMCurrentControlSetControlLeapSecondInformation
mov qword [rsp + 0x58], rax
lea rax, str.LeapSeconds
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x98]
mov qword [rax], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x18022a7a8
xor eax, eax
jmp 0x18022a8d6
mov dword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
xor edx, edx
mov eax, dword [rsp + 0x38]
mov ecx, recv
div ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x98]
mov qword [rcx], rax
mov qword [rsp + 0x48], 0
cmp dword [rsp + 0x30], 0
je 0x18022a81b
cmp dword [rsp + 0x30], 0xea
jne 0x18022a8b5
mov eax, dword [rsp + 0x34]
cmp rax, qword [rsp + 0x90]
jbe 0x18022a8b5
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0x60], rax
mov eax, recv
mov rcx, qword [rsp + 0x60]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1802653f0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x18022a8b3
mov rax, qword [rsp + 0x98]
mov qword [rax], 0
jmp 0x18022a8b5
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x30], 0
je 0x18022a8d1
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x48]
add rsp, 0x88
ret
Function at 0x180262c40
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
call fcn.180262c30
mov dword [rsp + 0x28], eax
call fcn.1802e8390
mov ecx, 8
imul rcx, rcx, 5
mov rax, qword [rax + rcx]
mov qword [rsp + 0x30], rax
mov r9d, dword [rsp + 0x28]
lea r8, [rsp + 0x20]
mov edx, 0x22
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x20]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x30
je 0x180262cbf
cmp dword [rsp + 0x24], 0x31
je 0x180262cc6
cmp dword [rsp + 0x24], 0x32
je 0x180262ccd
jmp 0x180262cd4
mov eax, 2
jmp 0x180262cd6
mov eax, 1
jmp 0x180262cd6
mov eax, 3
jmp 0x180262cd6
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x180282020
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.180281b00
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18028205f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1804058b0]
jmp 0x180282069
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1802ff2d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret

Function at 0x180304d50
Capabilities:
Get geographical location

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.180304000
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180304db7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1804058b8]
jmp 0x180304dd9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1803052e0
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret