joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007f150
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 0x14007f18d
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.14007f0f0
add rsp, 0x58
ret

Function at 0x140080490
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rdx, qword [rsp + 0x70]
mov ecx, 0x105
call fcn.14007fa90
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1400804cf
mov dword [rsp + 0x2c], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2c]
jmp 0x140080571
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x1400804f0
mov eax, dword [rsp + 0x24]
and eax, 0x10
test eax, eax
jne 0x140080507
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], 0xffffffff
mov rax, qword [rsp + 0x34]
jmp 0x140080571
mov eax, dword [rsp + 0x24]
and eax, 0x400
test eax, eax
je 0x14008055c
mov r9d, 0x2000000
mov r8d, 0x80
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140080580
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x50]
call fcn.14007fb10
nop
cmp dword [rsp + 0x28], 0
je 0x14008055c
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], 0xffffffff
mov rax, qword [rsp + 0x3c]
jmp 0x140080571
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x44]
add rsp, 0x68
ret
Function at 0x140082be0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140081fd0
movzx eax, al
test eax, eax
jne 0x140082c00
mov ecx, 7
call fcn.1400832b0
nop
mov byte [rsp + 0x20], 0
call fcn.140081f60
mov byte [rsp + 0x21], al
cmp dword [0x140154cc8], 1
jne 0x140082c24
mov ecx, 7
call fcn.1400832b0
nop
jmp 0x140082c7c
cmp dword [0x140154cc8], 0
jne 0x140082c77
mov dword [0x140154cc8], 1
lea rdx, [0x1401038a8]
lea rcx, [0x140103860]
call fcn.1400c6470
test eax, eax
je 0x140082c58
mov eax, 0xff
jmp 0x140082d81
lea rdx, [0x140103858]
lea rcx, [0x140103658]
call fcn.1400c6410
mov dword [0x140154cc8], 2
jmp 0x140082c7c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400821c0
call fcn.1400837d0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140082cd9
mov rcx, qword [rsp + 0x30]
call fcn.140082130
movzx eax, al
test eax, eax
je 0x140082cd9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140103630]
nop
call fcn.1400837e0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140082d0d
mov rcx, qword [rsp + 0x38]
call fcn.140082130
movzx eax, al
test eax, eax
je 0x140082d0d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400c3810
nop
call fcn.140082d90
mov dword [rsp + 0x28], eax
call fcn.140083460
movzx eax, al
test eax, eax
jne 0x140082d2c
mov ecx, dword [rsp + 0x28]
call fcn.1400c3860
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140082d3b
call fcn.1400c37d0
nop
xor edx, edx
mov cl, 1
call fcn.1400821f0
mov eax, dword [rsp + 0x28]
jmp 0x140082d81
add rsp, 0x68
ret

Function at 0x14008c6b0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14008c190
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14008c6ef
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 [0x140103630]
jmp 0x14008c6f9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400c35b0
Capabilities:
Terminate process

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x28
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x1400c35d8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [rsp + 0x30]
call fcn.1400c36d0
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400ce1b0
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 0x1400cf930
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.1400cedb0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400cf98c
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
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 fcn.1400ff5a0
jmp 0x1400cf9ae
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400cfc40
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 0x1400d4610
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400829a0
sub rsp, rax
mov rax, qword [0x140151740]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140155ff0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400d480a
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1400d4756
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400d4756
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1400d473b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1400d46d8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400d47ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400d4829
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jae 0x1400d4805
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400d4829
jmp 0x1400d46ae
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140081ae0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400d4850
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400829a0
sub rsp, rax
mov rax, qword [0x140151740]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140155ff0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400d4a65
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1400d49a9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400d49a9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1400d4989
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1400d4918
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400d4a25
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400d4a84
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x44], eax
jae 0x1400d4a60
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400d4a84
jmp 0x1400d48ee
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140081ae0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400d8900
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.1400949d0
movzx eax, al
test eax, eax
je 0x1400d8927
mov al, 1
jmp 0x1400d8a1c
lea rcx, [rsp + 0x60]
call fcn.140096dd0
movzx eax, al
test eax, eax
je 0x1400d8966
lea rcx, [rsp + 0x60]
call fcn.14007e890
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
call fcn.14007e890
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x40]
cmp qword [rcx], rax
jne 0x1400d8966
xor al, al
jmp 0x1400d8a1c
lea rcx, [rsp + 0x60]
call fcn.140095dc0
mov ecx, eax
call fcn.1400ee1b0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x1400d898b
xor al, al
jmp 0x1400d8a1c
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov r9d, 1
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1400d89d0
xor al, al
jmp 0x1400d8a1c
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400d89f9
xor al, al
jmp 0x1400d8a1c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jne 0x1400d8a0f
mov dword [rsp + 0x20], 1
jmp 0x1400d8a17
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x50
pop rdi
ret
Function at 0x1400ead00
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14007d1d0
lea rcx, [rsp + 0x40]
call fcn.1400eacc0
movzx eax, al
test eax, eax
jne 0x1400ead48
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1400eabd0
mov rax, qword [rsp + 0x70]
jmp 0x1400eaf19
lea rcx, [rsp + 0x40]
call fcn.14007e890
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1400eac70
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.14007e890
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.1400e7d40
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400eadee
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1400eabd0
mov rax, qword [rsp + 0x80]
jmp 0x1400eaf19
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14008f1c0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14007d1d0
lea rcx, [rsp + 0x48]
call fcn.14007f880
movzx eax, al
test eax, eax
jne 0x1400eae55
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.14007f840
lea rcx, [rsp + 0x40]
call fcn.1400eabd0
mov rax, qword [rsp + 0x88]
jmp 0x1400eaf19
lea rcx, [rsp + 0x48]
call fcn.14007e890
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14007e890
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.1400e7d40
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1400eaeeb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.14007f840
lea rcx, [rsp + 0x40]
call fcn.1400eabd0
mov rax, qword [rsp + 0xa0]
jmp 0x1400eaf19
lea rcx, [rsp + 0x48]
call fcn.140083d60
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.14007f840
lea rcx, [rsp + 0x40]
call fcn.1400eabd0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400eaf30
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14007d1d0
lea rcx, [rsp + 0x20]
call fcn.1400eabf0
movzx eax, al
test eax, eax
jne 0x1400eaf75
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1400eabd0
mov rax, qword [rsp + 0x40]
jmp 0x1400eb06f
lea rcx, [rsp + 0x20]
call fcn.14007e890
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1400eac70
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.14008f1c0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14007d1d0
lea rcx, [rsp + 0x28]
call fcn.14007f880
movzx eax, al
test eax, eax
jne 0x1400eb00f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.14007f840
lea rcx, [rsp + 0x20]
call fcn.1400eabd0
mov rax, qword [rsp + 0x50]
jmp 0x1400eb06f
lea rcx, [rsp + 0x20]
call fcn.14007e890
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.14007e890
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.1400ff5e0
lea rcx, [rsp + 0x28]
call fcn.140083d60
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.14007f840
lea rcx, [rsp + 0x20]
call fcn.1400eabd0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x1400ec7a0
Capabilities:
Set environment variable

Disassembly:
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 0x1400f2d60
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x40], 0
je 0x1400f2d9f
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
test eax, eax
je 0x1400f2d9f
lea rdx, [0x140137378]
mov rcx, qword [rsp + 0x40]
call fcn.1400f0780
test eax, eax
jne 0x1400f2dd6
mov r9d, 2
lea r8, [rsp + 0x20]
mov edx, 0x20001004
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400f2dc5
xor eax, eax
jmp 0x1400f2e25
cmp dword [rsp + 0x20], 0
jne 0x1400f2dd4
call qword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x1400f2e25
jmp 0x1400f2e21
lea rdx, [0x140137390]
mov rcx, qword [rsp + 0x40]
call fcn.1400f0780
test eax, eax
jne 0x1400f2e13
mov r9d, 2
lea r8, [rsp + 0x20]
mov edx, 0x2000000b
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400f2e11
xor eax, eax
jmp 0x1400f2e25
jmp 0x1400f2e21
mov rcx, qword [rsp + 0x40]
call fcn.1400caca0
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x1400f2e90
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
movzx eax, word [rsp + 0x50]
and eax, 0x3ff
movzx eax, ax
bts eax, 0xa
movzx eax, ax
mov dword [rsp + 0x24], eax
call fcn.1400cb760
add rax, 0x98
mov qword [rsp + 0x30], rax
mov r9d, 2
lea r8, [rsp + 0x20]
mov edx, 0x20000001
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400f2ef3
xor eax, eax
jmp 0x1400f2f33
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x50], eax
je 0x1400f2f2e
cmp dword [rsp + 0x58], 0
je 0x1400f2f2e
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call fcn.1400f2660
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call fcn.1400c22a0
mov ecx, dword [rsp + 0x28]
cmp ecx, eax
jne 0x1400f2f2e
xor eax, eax
jmp 0x1400f2f33
mov eax, 1
add rsp, 0x48
ret
Function at 0x1400f4790
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140151740]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1400f47b9
jmp 0x1400f483e
mov rcx, qword [rbp + 0x30]
call fcn.140100430
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1400f47d2
jmp 0x1400f483e
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1400f47ef
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400829a0
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0
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.1400e6240
test eax, eax
jne 0x1400f483e
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140081ae0
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1400fd010
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400c2760
lea rcx, [rsp + 0x48]
call fcn.1400c2760
call fcn.1400cdea0
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400c2650
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400fd07f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400c27f0
lea rcx, [rsp + 0x78]
call fcn.1400c27f0
mov eax, dword [rsp + 0x24]
jmp 0x1400fd110
call fcn.1400cdea0
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400c2650
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400fd0c6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400c27f0
lea rcx, [rsp + 0x78]
call fcn.1400c27f0
mov eax, dword [rsp + 0x2c]
jmp 0x1400fd110
lea rcx, [rsp + 0x48]
call fcn.1400b05f0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400b05f0
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.1400c27f0
lea rcx, [rsp + 0x78]
call fcn.1400c27f0
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1400156dc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001575a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015751
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015751
mov rax, qword [rbp - 8]
jmp 0x14001576f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015724
mov eax, 0
add rsp, 0x20
pop rbp
ret