joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a0d40
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1400a0dd7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1400a0dd7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x605b8365
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x1400a0dd2
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x1400a0db0
cmp r8d, 0x51db8ffd
je 0x1400a0ddc
test r9d, r9d
jne 0x1400a0d90
mov rax, qword [rax]
jmp 0x1400a0d60
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rcx, qword [0x1402993a8]
add rax, r10
call rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1400a0e87
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1400a0e87
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x5b593cef
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x1400a0e82
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x1400a0e60
cmp r8d, 0xe2a937ac
je 0x1400a0e8c
test r9d, r9d
jne 0x1400a0e40
mov rax, qword [rax]
jmp 0x1400a0e10
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rdx, qword [0x140299368]
add rax, r10
mov rcx, qword [0x140299390]
call rax
mov rbx, qword [rsp + 0x30]
mov byte [0x14029932b], 0
mov byte [0x14029932a], 0
add rsp, 0x20
pop rdi
ret
Function at 0x1400a13e0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x1401f3100]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov ebx, ecx
xor esi, esi
mov qword [rbp - 1], rsi
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x17], xmm1
mov ecx, 0x10
call fcn.1400a7320
mov qword [rax + 8], rsi
mov qword [rbp - 1], rax
lea rcx, [rbp - 1]
mov qword [rax], rcx
movdqa xmm0, xmmword [0x1401ddcb0]
movdqu xmmword [rbp + 0x17], xmm0
mov word [rbp + 7], si
mov dword [rbp - 9], ebx
movabs rdx, 0xf0f25f3ab82b084f
mov qword [rbp - 0x29], rdx
mov rax, qword [rbp - 0x29]
mov qword [rbp - 0x19], rax
movabs rcx, 0x9dde1d2b3fe44044
mov qword [rbp - 0x29], rcx
mov rax, qword [rbp - 0x29]
mov qword [rbp - 0x11], rax
mov qword [rbp - 0x29], rdx
mov rax, qword [rbp - 0x29]
mov qword [rbp + 0x37], rax
mov qword [rbp - 0x29], rcx
mov rax, qword [rbp - 0x29]
mov qword [rbp + 0x3f], rax
movdqa xmm0, xmmword [rbp - 0x19]
xorps xmm0, xmmword [rbp + 0x37]
movdqa xmmword [rbp - 0x19], xmm0
lea rax, [rbp - 0x19]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400a14b0
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 1]
call fcn.1400a2270
mov qword [rbp + 0x27], rsi
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1400a1556
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1400a1556
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
mov r8d, 0x9fabbdae
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x1400a1551
nop
movsx edx, dl
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
test dl, dl
jne 0x1400a1530
cmp r8d, 0x12d4a984
je 0x1400a155b
test r9d, r9d
jne 0x1400a1510
mov rax, qword [rax]
jmp 0x1400a14e0
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rbx + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov r8d, dword [rcx + rax*4]
add r8, r10
lea rdx, [rbp - 9]
lea rcx, [0x1400a1090]
call r8
mov rbx, qword [rbp + 0x27]
lea rcx, [rbp - 1]
call fcn.140001d30
mov r8, qword [rbp + 0x1f]
cmp r8, 7
jbe 0x1400a15a5
mov rdx, qword [rbp + 7]
lea rcx, [rbp - 1]
call fcn.14003f7e0
movdqa xmm0, xmmword [0x1401ddcb0]
movdqu xmmword [rbp + 0x17], xmm0
mov word [rbp + 7], si
mov rcx, qword [rbp - 1]
mov qword [rbp - 1], rsi
mov edx, 0x10
call fcn.1400a78a0
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400a7300
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400a42e0
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 0x1400a431d
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.1400a4280
add rsp, 0x58
ret

Function at 0x1400a8110
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400a7560
movzx eax, al
test eax, eax
jne 0x1400a8130
mov ecx, 7
call fcn.1400a8b90
nop
mov byte [rsp + 0x20], 0
call fcn.1400a74f0
mov byte [rsp + 0x21], al
cmp dword [0x1402978e8], 1
jne 0x1400a8154
mov ecx, 7
call fcn.1400a8b90
nop
jmp 0x1400a81ac
cmp dword [0x1402978e8], 0
jne 0x1400a81a7
mov dword [0x1402978e8], 1
lea rdx, [0x14011d890]
lea rcx, [0x14011d848]
call fcn.1400e4a90
test eax, eax
je 0x1400a8188
mov eax, 0xff
jmp 0x1400a82b1
lea rdx, [0x14011d840]
lea rcx, [0x14011d5a0]
call fcn.1400e4a30
mov dword [0x1402978e8], 2
jmp 0x1400a81ac
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400a7750
call fcn.1400a9110
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400a8209
mov rcx, qword [rsp + 0x30]
call fcn.1400a76c0
movzx eax, al
test eax, eax
je 0x1400a8209
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 [0x14011d578]
nop
call fcn.1400a9120
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400a823d
mov rcx, qword [rsp + 0x38]
call fcn.1400a76c0
movzx eax, al
test eax, eax
je 0x1400a823d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400e2730
nop
call fcn.1400a82f0
mov dword [rsp + 0x28], eax
call fcn.1400a8da0
movzx eax, al
test eax, eax
jne 0x1400a825c
mov ecx, dword [rsp + 0x28]
call fcn.1400e2780
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400a826b
call fcn.1400e26f0
nop
xor edx, edx
mov cl, 1
call fcn.1400a7780
mov eax, dword [rsp + 0x28]
jmp 0x1400a82b1
add rsp, 0x68
ret

Function at 0x1400b1e30
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400b1910
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400b1e6f
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 [0x14011d578]
jmp 0x1400b1e79
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400e24d0
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 0x1400e24f8
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.1400e25f0
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400ea2f0
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 0x1400ec480
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.1400eba40
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400ec4dc
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.140116e80
jmp 0x1400ec4fe
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400ec790
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 0x1400f1990
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.1400d2d00
movzx eax, al
test eax, eax
je 0x1400f19b7
mov al, 1
jmp 0x1400f1aac
lea rcx, [rsp + 0x60]
call fcn.1400d2d40
movzx eax, al
test eax, eax
je 0x1400f19f6
lea rcx, [rsp + 0x60]
call fcn.1400a35c0
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
call fcn.1400a35c0
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x40]
cmp qword [rcx], rax
jne 0x1400f19f6
xor al, al
jmp 0x1400f1aac
lea rcx, [rsp + 0x60]
call fcn.1400d5f50
mov ecx, eax
call fcn.140102050
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x1400f1a1b
xor al, al
jmp 0x1400f1aac
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 0x1400f1a60
xor al, al
jmp 0x1400f1aac
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 0x1400f1a89
xor al, al
jmp 0x1400f1aac
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jne 0x1400f1a9f
mov dword [rsp + 0x20], 1
jmp 0x1400f1aa7
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x50
pop rdi
ret
Function at 0x1400f2f60
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.1401103c0
sub rsp, rax
mov rax, qword [0x1401f3100]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140298d30]
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 0x1400f315a
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 0x1400f30a6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400f30a6
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 0x1400f308b
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 0x1400f3028
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 0x1400f311a
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 0x1400f3179
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 0x1400f3155
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 0x1400f3179
jmp 0x1400f2ffe
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.1400a7300
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400f31a0
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.1401103c0
sub rsp, rax
mov rax, qword [0x1401f3100]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140298d30]
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 0x1400f33b5
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 0x1400f32f9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400f32f9
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 0x1400f32d9
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 0x1400f3268
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 0x1400f3375
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 0x1400f33d4
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 0x1400f33b0
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 0x1400f33d4
jmp 0x1400f323e
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.1400a7300
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140100640
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400a4400
lea rcx, [rsp + 0x20]
call fcn.140100530
movzx eax, al
test eax, eax
jne 0x140100685
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140100510
mov rax, qword [rsp + 0x40]
jmp 0x14010077f
lea rcx, [rsp + 0x20]
call fcn.1400a35c0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1401005b0
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.1400cf0b0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400a4400
lea rcx, [rsp + 0x28]
call fcn.1400a44b0
movzx eax, al
test eax, eax
jne 0x14010071f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400a4470
lea rcx, [rsp + 0x20]
call fcn.140100510
mov rax, qword [rsp + 0x50]
jmp 0x14010077f
lea rcx, [rsp + 0x20]
call fcn.1400a35c0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400a35c0
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.140116ec0
lea rcx, [rsp + 0x28]
call fcn.1400aa9b0
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400a4470
lea rcx, [rsp + 0x20]
call fcn.140100510
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x140106c00
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 0x140106c3f
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
test eax, eax
je 0x140106c3f
lea rdx, [0x1401328c8]
mov rcx, qword [rsp + 0x40]
call fcn.140104620
test eax, eax
jne 0x140106c76
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 0x140106c65
xor eax, eax
jmp 0x140106cc5
cmp dword [rsp + 0x20], 0
jne 0x140106c74
call qword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x140106cc5
jmp 0x140106cc1
lea rdx, [0x1401328e0]
mov rcx, qword [rsp + 0x40]
call fcn.140104620
test eax, eax
jne 0x140106cb3
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 0x140106cb1
xor eax, eax
jmp 0x140106cc5
jmp 0x140106cc1
mov rcx, qword [rsp + 0x40]
call fcn.1400d4110
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140106d30
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.1400eb4c0
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 0x140106d93
xor eax, eax
jmp 0x140106dd3
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x50], eax
je 0x140106dce
cmp dword [rsp + 0x58], 0
je 0x140106dce
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call fcn.140106500
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call fcn.1400e11e0
mov ecx, dword [rsp + 0x28]
cmp ecx, eax
jne 0x140106dce
xor eax, eax
jmp 0x140106dd3
mov eax, 1
add rsp, 0x48
ret
Function at 0x140108590
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1401f3100]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1401085b9
jmp 0x14010863e
mov rcx, qword [rbp + 0x30]
call fcn.140117d10
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1401085d2
jmp 0x14010863e
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1401085ef
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401103c0
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.1400fccd0
test eax, eax
jne 0x14010863e
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400a7300
lea rsp, [rbp + 0x20]
pop rbp
ret