joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140031f20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x6180], 0
lea rbx, [rcx + 0x6188]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140031fc7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x140031f7a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1400347e0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14001a490
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x6180]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x6190]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400ff135]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x140031fcf
mov rcx, rbx
call fcn.14001a490
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140032230
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x1400ff1a8]
xor ebp, ebp
cmp byte [rbx + 0x60d0], bpl
jne 0x14003230f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140032308
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140019e10
mov rsi, rax
test rax, rax
je 0x140032308
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140032294
mov rcx, rax
call fcn.140032460
mov r8, qword [0x1400ff1a8]
test r8, r8
je 0x1400322ff
movsx rdx, word [r8 + 0x6260]
lea rcx, [r8 + 0x6264]
mov r9d, dword [r8 + 0x3ff0]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1400322f4
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6260], cx
movsx rax, cx
lea rcx, [r8 + 0x6264]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x625c]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x60d0], 1
movss xmm0, dword [rbx + 0x60d4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14003239e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x60d4], xmm0
jb 0x14003239e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140032391
mov rax, qword [0x1400ff1a8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x60d4], ebp
call fcn.1400326c0
lea rdx, [0x140094c40]
mov rcx, rdi
mov rsi, rax
call fcn.140019c60
mov rdi, rax
test rax, rax
je 0x140032398
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140032398
mov byte [rbx + 0xb4], 1
mov dword [rbx + 0x60d4], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400323c0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400ff1a8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140032423
mov qword [rsp], rbx
lea rbx, [0x14008e740]
nop dword [rax]
cmp r9b, 0x23
jne 0x140032403
cmp byte [r8], r9b
jne 0x140032403
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x1400323f0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x60e8]
not eax
mov r8, qword [r10 + 0x60f0]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14003244f
cmp dword [r8 + 8], eax
je 0x140032456
add r8, 0x48
cmp r8, rcx
jne 0x140032440
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x1400502b0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x78
lea rcx, [0x140100584]
call fcn.140001870
test al, al
jne 0x1400504e5
movups xmm1, xmmword [0x1400950e0]
movzx eax, byte [0x1400950f8]
movsd xmm0, qword [0x1400950f0]
xor al, 0x3d
movsd qword [rsp + 0x20], xmm0
movups xmm0, xmmword [str.SWTeHR]
xor byte [rsp + 0x21], 0x36
xor byte [rsp + 0x22], 0x37
xor byte [rsp + 0x23], 0x38
xor byte [rsp + 0x24], 0x39
xor byte [rsp + 0x25], 0x3a
xor byte [rsp + 0x26], 0x3b
xor byte [rsp + 0x27], 0x3c
movups xmmword [rsp + 0x50], xmm1
mov byte [rsp + 0x28], al
psrldq xmm1, 0xf
movd eax, xmm1
mov qword [rsp + 0x70], rbx
lea rbx, [rsp + 0x20]
mov byte [rsp + 0x20], 0x50
movups xmmword [rsp + 0x40], xmm0
test al, al
je 0x1400504b6
xor ecx, ecx
cmp dword [0x14009e010], 2
jl 0x140050480
movdqa xmm0, xmmword [0x1400957c0]
lea rdx, [rsp + 0x44]
movdqa xmm4, xmmword [0x1400956b0]
movdqa xmm3, xmmword [0x140095aa0]
movdqa xmm5, xmmword [0x140095760]
movdqa xmmword [rsp + 0x30], xmm0
mov r8d, dword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm6
movdqa xmm6, xmmword [0x140095770]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm4
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movd dword [rdx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x20
jl 0x140050390
movaps xmm6, xmmword [rsp + 0x60]
jmp 0x1400504b6
lea r9, [rsp + 0x40]
nop word [rax + rax]
mov eax, 0x8d3dcb09
lea r9, [r9 + 1]
mul ecx
shr edx, 5
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
inc ecx
sub al, dl
add al, 0x35
xor byte [r9 - 1], al
cmp ecx, 0x20
jl 0x140050490
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r9d, 0x10
lea rdx, [rsp + 0x40]
mov rcx, rax
mov r8, rbx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
mov rbx, qword [rsp + 0x70]
xor eax, eax
add rsp, 0x78
ret
Function at 0x1400504f0
Capabilities:
Get system information on windows
Load ntoskrnl
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14009e040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rcx
mov dword [rsp + 0x28], 0
mov ecx, 0xb
lea r9, [rsp + 0x28]
xor r8d, r8d
xor edx, edx
xor edi, edi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14005058b
nop dword [rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x28]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x28]
lea r9, [rsp + 0x28]
mov rdx, rax
mov ecx, 0xb
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140050540
test eax, eax
jns 0x1400505a4
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
jmp 0x140050611
xor ebx, ebx
mov qword [rsp + 0x60], rbp
cmp dword [rdi], ebx
jbe 0x1400505f9
lea rsi, [rdi + 0x2e]
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rsi]
lea rdx, [0x140095100]
add rcx, 0x30
movsxd rax, ebx
imul rbp, rax, 0x128
add rcx, rbp
add rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14005069c
inc ebx
add rsi, 0x128
cmp ebx, dword [rdi]
jb 0x1400505c0
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
mov rbp, qword [rsp + 0x60]
xor edx, edx
lea rcx, [0x140095110]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x18
lea r8, [rsp + 0x30]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov eax, dword [rsp + 0x38]
xor r8d, r8d
mov dword [rsp + 0x20], 0xd38b48ff
mov word [rsp + 0x24], 0x8d4c
mov byte [rsp + 0x26], 5
test eax, eax
je 0x1400506c3
lea r10, [rdi + 4]
mov r11d, eax
nop dword [rax]
xor eax, eax
lea rcx, [rsp + 0x24]
mov r9, r10
lea rdx, [rsp + 0x20]
sub r9, rcx
movzx ecx, byte [r9 + rdx]
cmp byte [rdx], cl
jne 0x1400506ba
cmp eax, 6
je 0x1400506b7
inc eax
inc rdx
cmp eax, 7
jb 0x140050682
jmp 0x1400506ba
mov rsi, qword [rdi + rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14005060c
mov r8, r10
inc r10
sub r11, 1
jne 0x140050670
mov ebx, dword [r8 + 3]
lea rdx, str.ZwFlushInstructionCache
add ebx, 7
movabs rax, 0xffffffff00000000
add ebx, r8d
mov rcx, rdi
and r8, rax
add rbx, r8
sub rbx, rdi
add rbx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
sub rsi, rdi
lea rcx, [rbx + 0x20]
add rax, rsi
mov qword [r14], rcx
mov qword [r14 + 8], rax
mov rax, r14
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140051210
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x140050730
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x14009e040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14, rdx
lea r8, str.RegistryMachineSystemCurrentControlSetServices_
mov rbx, rdx
mov rsi, rcx
mov edx, 0x35
mov edi, 0x34
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
movzx ecx, word [rbx]
mov rdx, rbx
test cx, cx
je 0x1400507cf
lea r8, [rbx + 2]
cmp cx, 0x5c
lea rdx, [rdx + 2]
movzx ecx, word [rdx]
mov rax, r8
cmovne rax, rbx
add r8, 2
mov rbx, rax
test cx, cx
jne 0x140050781
movzx ecx, word [rax]
test cx, cx
je 0x1400507cf
movzx eax, word [rax]
lea rcx, [rsi + 0x68]
movzx edx, ax
cmp dx, 0x2e
je 0x1400507cf
add rbx, 2
mov word [rcx], ax
inc edi
add rcx, 2
movzx eax, word [rbx]
movzx edx, ax
test ax, ax
jne 0x1400507b1
movsxd rax, edi
xor ecx, ecx
mov rdx, rsi
mov word [rsi + rax*2], cx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
test eax, eax
js 0x140050897
lea r8, [0x140095148]
mov dword [rsp + 0x30], 1
mov edx, 5
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8, r14
lea rcx, [rsp + 0x40]
mov edx, 0x87
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140050830
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rsp + 0x40]
mov rdx, rsi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x140050897
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140051210
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r14
pop rdi
pop rsi
ret
Function at 0x140050c40
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14009e040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edi, r8d
mov qword [rsp + 0x30], 0
mov rsi, rdx
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140050cd5
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov r8d, edi
mov qword [rsp + 0x20], 0
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140050ccc
cmp dword [rsp + 0x40], edi
jne 0x140050ccc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140050cd7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140051210
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140051f4c
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140138d00
mov dword [rsp + 8], ecx
sub rsp, 0x28
xor r8d, r8d
xor edx, edx
mov ecx, dword [rsp + 0x30]
call fcn.140138860
add rsp, 0x28
ret
Function at 0x1400022e3
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x14006a560
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1402ac22b]
call fcn.140007f72
nop
mov qword [rbp + 8], 0
jmp 0x14006a59f
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x14006a5f5
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x100]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
movabs rax, 0x100000001b3
mov rcx, qword [rbp + 0x100]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
jmp 0x14006a594
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140003643
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400fa9c0
push rdi
sub rsp, 0x30
call fcn.140005051
mov ecx, 8
imul rcx, rcx, 5
mov rax, qword [rax + rcx]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400fa9ec
mov eax, 2
jmp 0x1400faa59
lea rax, [rsp + 0x24]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov r9d, 2
lea r8, [rsp + 0x24]
mov edx, 0x22
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
nop
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x24]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x30
je 0x1400faa42
cmp dword [rsp + 0x20], 0x31
je 0x1400faa49
cmp dword [rsp + 0x20], 0x32
je 0x1400faa50
jmp 0x1400faa57
mov eax, 2
jmp 0x1400faa59
mov eax, 1
jmp 0x1400faa59
mov eax, 3
jmp 0x1400faa59
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140004142
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401de230
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1401dddb0
lea rcx, [rsp + 0x20]
call fcn.1401dde00
movzx eax, al
test eax, eax
jne 0x1401de275
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1401ddde0
mov rax, qword [rsp + 0x40]
jmp 0x1401de36f
lea rcx, [rsp + 0x20]
call fcn.1401ddf00
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1401ddea0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.140004615
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14000389b
lea rcx, [rsp + 0x28]
call fcn.140004cfa
movzx eax, al
test eax, eax
jne 0x1401de30f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.140006893
lea rcx, [rsp + 0x20]
call fcn.1401ddde0
mov rax, qword [rsp + 0x50]
jmp 0x1401de36f
lea rcx, [rsp + 0x20]
call fcn.1401ddf00
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.140007e14
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.140004502
lea rcx, [rsp + 0x28]
call fcn.140008b16
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.140006893
lea rcx, [rsp + 0x20]
call fcn.1401ddde0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x14000455c
Capabilities:
Get disk information

Disassembly:
jmp 0x14007ff30
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x2a0
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x70
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2c8]
mov rax, qword [0x140289140]
xor rax, rbp
mov qword [rbp + 0x270], rax
mov dword [rbp + 0x254], 0
lea rcx, [0x1402ac2b2]
call fcn.140007f72
nop
mov edx, 0x20
mov rcx, qword [rbp + 0x2a0]
call fcn.140007973
mov rcx, qword [rbp + 0x2a0]
call fcn.140001816
mov qword [rbp + 0x268], rax
mov eax, dword [rbp + 0x254]
or eax, 1
mov dword [rbp + 0x254], eax
lea rax, [rbp + 0x48]
lea rcx, [0x14022c768]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x36
rep movsb byte [rdi], byte [rsi]
lea rdx, [0x14022c7a8]
lea rcx, [rbp + 0x98]
call fcn.1400034d6
nop
lea rax, [rbp + 0x48]
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0xd8]
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 0xd8]
add rax, 0x36
mov qword [rbp + 0x118], rax
jmp 0x140080028
mov rax, qword [rbp + 0xf8]
add rax, 2
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 0x118]
cmp qword [rbp + 0xf8], rax
je 0x1400800ec
mov rax, qword [rbp + 0xf8]
movzx eax, word [rax]
mov word [rbp + 0x134], ax
lea r8, [rbp + 0x98]
movzx edx, word [rbp + 0x134]
lea rcx, [rbp + 0x158]
call fcn.140004345
nop
lea rcx, [rbp + 0x158]
call fcn.14000355d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1400800da
lea rdx, [0x14022c7b0]
lea rcx, [0x14028c730]
call fcn.14000485e
lea rdx, [rbp + 0x158]
mov rcx, rax
call fcn.140004e71
mov qword [rbp + 0x268], rax
lea rdx, [0x14000452a]
mov rcx, qword [rbp + 0x268]
call fcn.1400066fe
nop
mov r8, qword [rbp + 0x2a0]
mov rdx, qword [rbp + 0x2a8]
lea rcx, [rbp + 0x158]
call fcn.140004ddb
nop
lea rcx, [rbp + 0x158]
call fcn.140006e79
nop
jmp 0x140080016
lea rcx, [rbp + 0x98]
call fcn.140006e79
mov rax, qword [rbp + 0x2a0]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140224130]
call fcn.140006b90
mov rax, rdi
mov rcx, qword [rbp + 0x270]
xor rcx, rbp
call fcn.1400044d0
lea rsp, [rbp + 0x280]
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000484a
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14011fa80
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14011f400
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14011fabf
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 [0x1402ae020]
jmp 0x14011fac9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140004bd8
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401ddf80
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1401dddb0
lea rcx, [rsp + 0x40]
call fcn.1401ddf30
movzx eax, al
test eax, eax
jne 0x1401ddfc8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1401ddde0
mov rax, qword [rsp + 0x70]
jmp 0x1401de199
lea rcx, [rsp + 0x40]
call fcn.1401ddf00
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1401ddea0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1401ddf00
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.140006389
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1401de06e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1401ddde0
mov rax, qword [rsp + 0x80]
jmp 0x1401de199
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140004615
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140004322
lea rcx, [rsp + 0x48]
call fcn.140003b48
movzx eax, al
test eax, eax
jne 0x1401de0d5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400020ea
lea rcx, [rsp + 0x40]
call fcn.1401ddde0
mov rax, qword [rsp + 0x88]
jmp 0x1401de199
lea rcx, [rsp + 0x48]
call fcn.140005290
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1401ddf00
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.140006389
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1401de16b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400020ea
lea rcx, [rsp + 0x40]
call fcn.1401ddde0
mov rax, qword [rsp + 0xa0]
jmp 0x1401de199
lea rcx, [rsp + 0x48]
call fcn.1400042c3
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400020ea
lea rcx, [rsp + 0x40]
call fcn.1401ddde0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140004bf6
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14011f9b0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14011f380
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14011f9f1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402ae020]
jmp 0x14011f9f7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140004d04
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401bf140
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.1401be070
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401bf1a7
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 [0x1402ae030]
jmp 0x1401bf1c9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140003a7b
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

Function at 0x140004d40
Capabilities:
Terminate process

Disassembly:
jmp 0x1400fd660
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret