joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004f9e0
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 + 0x5368], 0
lea rbx, [rcx + 0x5370]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14004fa87
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14004fa3a
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.1400525c0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140034fa0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5368]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5378]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14012d3d8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14004fa8f
mov rcx, rbx
call fcn.140034fa0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14004fdb0
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 [0x14012d3e0]
xor ebp, ebp
cmp byte [rbx + 0x52b0], bpl
jne 0x14004fe8f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14004fe88
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140034710
mov rsi, rax
test rax, rax
je 0x14004fe88
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14004fe14
mov rcx, rax
call fcn.14004ffe0
mov r8, qword [0x14012d3e0]
test r8, r8
je 0x14004fe7f
movsx rdx, word [r8 + 0x5490]
lea rcx, [r8 + 0x5494]
mov r9d, dword [r8 + 0x3ff0]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14004fe74
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 + 0x5490], cx
movsx rax, cx
lea rcx, [r8 + 0x5494]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x548c]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x52b0], 1
movss xmm0, dword [rbx + 0x52b4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14004ff1e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x52b4], xmm0
jb 0x14004ff1e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x14004ff11
mov rax, qword [0x14012d3e0]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x52b4], ebp
call fcn.140050240
lea rdx, [0x1400f2584]
mov rcx, rdi
mov rsi, rax
call fcn.140034560
mov rdi, rax
test rax, rax
je 0x14004ff18
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 0x14004ff18
mov byte [rbx + 0xb4], 1
mov dword [rbx + 0x52b4], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14004ff40
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14012d3e0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14004ffa3
mov qword [rsp], rbx
lea rbx, [0x1400ebcf0]
nop dword [rax]
cmp r9b, 0x23
jne 0x14004ff83
cmp byte [r8], r9b
jne 0x14004ff83
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 0x14004ff70
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x52c8]
not eax
mov r8, qword [r10 + 0x52d0]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14004ffcf
cmp dword [r8 + 8], eax
je 0x14004ffd6
add r8, 0x48
cmp r8, rcx
jne 0x14004ffc0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x1400659d0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x140103040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x14012d3e0]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140065bef
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140065bef
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x14012d3e0]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x140065aa4
movsx rdx, word [r8 + 0x5490]
lea rax, [r8 + 0x5494]
mov r9d, dword [r8 + 0x3ff0]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x140065a99
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 + 0x5490], cx
movsx rax, cx
lea rax, [rax*8 + 0x5494]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x5488]
test rdi, rdi
je 0x140065ac1
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x140065ac4
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x1400f2d78]
mov qword [rsi + 0x88], rax
mov qword [rsi + 0x98], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x140065b07
mov rsi, qword [r8 + 0x98]
jmp 0x140065b0a
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140065b35
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x14012d3e0]
mov rcx, qword [rax + 0x4bd8]
mov rax, qword [rdi]
mov rdx, qword [rcx]
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x28], rax
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140065baf
inc rbx
cmp rbx, 5
jl 0x140065b91
jmp 0x140065bdb
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x140065bf1
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14008a760
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x14006bc10
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [0x14012d3e0]
mov rdx, qword [rax + 0x4ec8]
cmp ecx, 0xffffffff
jne 0x14006bc2a
cmp dword [rdx + 0x74], ecx
cmovne ecx, dword [rdx + 0x74]
cmp ecx, dword [rdx + 0x6c]
mov eax, 0xffffffff
cmove ecx, eax
test byte [rdx + 4], 7
je 0x14006bca9
mov r10d, dword [rdx]
lea r8, [0x1400f2e49]
movzx eax, word [rdx + 0x78]
lea r11, [0x1400ebcf0]
not r10d
mov word [rdx + 0x224], cx
mov ecx, r10d
mov byte [rdx + 0x23b], 1
mov word [rdx + 0x7a], ax
mov r9b, 0x23
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x14006bc83
cmp byte [r8], r9b
jne 0x14006bc83
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14006bc70
not ecx
xor edx, edx
jmp fcn.140049c80
ret
Function at 0x140089e74
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140089eae
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140089eb3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140089efc
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14008fa20]
cmp byte [rcx + rax], 0
je 0x140089efc
dec r8
sub rdx, 1
jne 0x140089ee2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14008b420
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1400fb630
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3b8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x86
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3d8]
mov rax, qword [0x1402dd140]
xor rax, rbp
mov qword [rbp + 0x388], rax
lea rcx, [0x1402fb103]
call fcn.1400d6997
nop
xor edx, edx
mov ecx, 2
call fcn.1400d3a8a
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.1400d42c3
nop
lea rcx, [rbp + 8]
call fcn.1400d20e0
test rax, rax
jne 0x1400fb6d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.CreateToolhelp32Snapshot
lea rcx, [rbp + 0x2f8]
call fcn.1400d6528
lea rdx, [0x1402dc918]
lea rcx, [rbp + 0x2f8]
call fcn.1400d71c1
nop
mov dword [rbp + 0x30], 0x130
lea rcx, [rbp + 8]
call fcn.1400d20e0
lea rdx, [rbp + 0x30]
mov rcx, rax
call fcn.1400d5993
test eax, eax
jne 0x1400fb721
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Process32First
lea rcx, [rbp + 0x328]
call fcn.1400d6528
lea rdx, [0x1402dc918]
lea rcx, [rbp + 0x328]
call fcn.1400d71c1
nop
mov rcx, qword [rbp + 0x3b0]
call fcn.1400d1857
mov rdx, rax
lea rcx, [rbp + 0x5c]
call fcn.1400d72d4
test eax, eax
jne 0x1400fb757
mov eax, dword [rbp + 0x38]
mov dword [rbp + 0x354], eax
lea rcx, [rbp + 8]
call fcn.1400d1ab4
mov eax, dword [rbp + 0x354]
jmp 0x1400fb789
lea rcx, [rbp + 8]
call fcn.1400d20e0
lea rdx, [rbp + 0x30]
mov rcx, rax
call fcn.1400d69fb
test eax, eax
jne 0x1400fb721
mov dword [rbp + 0x374], 0xffffffff
lea rcx, [rbp + 8]
call fcn.1400d1ab4
mov eax, dword [rbp + 0x374]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14028d1a0]
call fcn.1400d59f7
mov rax, rdi
mov rcx, qword [rbp + 0x388]
xor rcx, rbp
call fcn.1400d3b48
lea rsp, [rbp + 0x398]
pop rdi
pop rbp
ret

Function at 0x1400d1fb4
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x14014c8a0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x14014c8c8
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x14014c912
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x14014c8bd
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400d384b
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140204430
mov rax, rcx
neg rcx
test rax, 7
je 0x14020444d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1402044a8
test al, 7
jne 0x140204440
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140204461
mov rdx, qword [rax - 8]
test dl, dl
je 0x1402044d2
test dh, dh
je 0x1402044cc
shr rdx, 0x10
test dl, dl
je 0x1402044c6
test dh, dh
je 0x1402044c0
shr rdx, 0x10
test dl, dl
je 0x1402044ba
test dh, dh
je 0x1402044b4
shr edx, 0x10
test dl, dl
je 0x1402044ae
test dh, dh
jne 0x140204461
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400d3882
Capabilities:
Query environment variable

Disassembly:
jmp 0x140256fc0
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140256b40
lea rcx, [rsp + 0x20]
call fcn.140256b90
movzx eax, al
test eax, eax
jne 0x140257005
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140256b70
mov rax, qword [rsp + 0x40]
jmp 0x1402570ff
lea rcx, [rsp + 0x20]
call fcn.140256c90
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140256c30
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.1400d3c38
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400d318e
lea rcx, [rsp + 0x28]
call fcn.1400d417e
movzx eax, al
test eax, eax
jne 0x14025709f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400d5795
lea rcx, [rsp + 0x20]
call fcn.140256b70
mov rax, qword [rsp + 0x50]
jmp 0x1402570ff
lea rcx, [rsp + 0x20]
call fcn.140256c90
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400d688e
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.1400d3b6b
lea rcx, [rsp + 0x28]
call fcn.1400d72ca
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400d5795
lea rcx, [rsp + 0x20]
call fcn.140256b70
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400d3dfa
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401a0b30
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401a04b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401a0b6f
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 [0x1402fc020]
jmp 0x1401a0b79
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400d408e
Capabilities:
Query environment variable

Disassembly:
jmp 0x140256d10
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140256b40
lea rcx, [rsp + 0x40]
call fcn.140256cc0
movzx eax, al
test eax, eax
jne 0x140256d58
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140256b70
mov rax, qword [rsp + 0x70]
jmp 0x140256f29
lea rcx, [rsp + 0x40]
call fcn.140256c90
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140256c30
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.140256c90
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.1400d53ad
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140256dfe
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140256b70
mov rax, qword [rsp + 0x80]
jmp 0x140256f29
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400d3c38
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400d39ef
lea rcx, [rsp + 0x48]
call fcn.1400d33e6
movzx eax, al
test eax, eax
jne 0x140256e65
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400d1e24
lea rcx, [rsp + 0x40]
call fcn.140256b70
mov rax, qword [rsp + 0x88]
jmp 0x140256f29
lea rcx, [rsp + 0x48]
call fcn.1400d461a
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140256c90
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.1400d53ad
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140256efb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400d1e24
lea rcx, [rsp + 0x40]
call fcn.140256b70
mov rax, qword [rsp + 0xa0]
jmp 0x140256f29
lea rcx, [rsp + 0x48]
call fcn.1400d39a4
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400d1e24
lea rcx, [rsp + 0x40]
call fcn.140256b70
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400d40ac
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401a0a60
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401a0430
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401a0aa1
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 [0x1402fc020]
jmp 0x1401a0aa7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400d418d
Capabilities:
Get geographical location

Disassembly:
jmp 0x140233390
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.1402322c0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1402333f7
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 [0x1402fc030]
jmp 0x140233419
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400d3346
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 0x1400d41a6
Capabilities:
Terminate process

Disassembly:
jmp 0x14017e280
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
Function at 0x1400d45a7
Capabilities:
Print debug messages

Disassembly:
jmp 0x140268910
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1402dd140]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140268936
jmp 0x1402689b3
mov rcx, qword [rbp + 0x30]
call fcn.1400d384b
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14026894f
jmp 0x1402689b3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14026896c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400d2063
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400d26ee
test eax, eax
jne 0x1402689b3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400d3b48
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400d4a1b
Capabilities:
Set environment variable

Disassembly:
jmp 0x140258e70
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1400d4d8b
Capabilities:
Parse pe header

Disassembly:
jmp 0x14017fe50
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14017fe70
xor al, al
jmp 0x14017fef1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14017fe83
xor al, al
jmp 0x14017fef1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14017fead
xor al, al
jmp 0x14017fef1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14017fec1
xor al, al
jmp 0x14017fef1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14017fed3
xor al, al
jmp 0x14017fef1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14017feef
xor al, al
jmp 0x14017fef1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400d5682
Capabilities:
Terminate process

Disassembly:
jmp 0x1401a1b20
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1401a1b4e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400d62f3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400d6384
Capabilities:
Print debug messages

Disassembly:
jmp 0x1402467e0
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 0x1400d6519
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1401a0ba0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401a04f0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401a0be9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402fc020]
jmp 0x1401a0bf8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400d663b
Capabilities:
Set environment variable

Disassembly:
jmp 0x140272260
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400d312f
lea rcx, [rsp + 0x48]
call fcn.1400d312f
call fcn.1400d3fe9
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400d2dd3
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1402722cf
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400d36d9
lea rcx, [rsp + 0x78]
call fcn.1400d36d9
mov eax, dword [rsp + 0x24]
jmp 0x140272360
call fcn.1400d3fe9
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400d2dd3
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140272316
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400d36d9
lea rcx, [rsp + 0x78]
call fcn.1400d36d9
mov eax, dword [rsp + 0x2c]
jmp 0x140272360
lea rcx, [rsp + 0x48]
call fcn.1400d302b
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400d302b
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400d36d9
lea rcx, [rsp + 0x78]
call fcn.1400d36d9
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret