joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006660
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400066c1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140006680
mov ecx, dword [r9]
jmp 0x1400067ab
cmp ecx, 0x4e0
jb 0x1400067ab
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400066e0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140006730
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140007a70
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x80], 0
jg 0x14000bee5
xor eax, eax
jmp 0x14000c0a6
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x14000bf0d
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.14000c0b0
jmp 0x14000c0a6
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x70]
call fcn.14000a230
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x14000bfaa
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140007950
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
call fcn.14000acb0
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.140005a20
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call fcn.14000ac60
nop
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x14000c096
mov rcx, qword [rsp + 0x70]
call fcn.14000a7b0
mov qword [rsp + 0x58], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x14000c04a
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.14002ed20
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x14000c048
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x14000c0a6
jmp 0x14000bfd0
cmp qword [rsp + 0x20], 0
jbe 0x14000c096
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.14002ed20
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x68
ret
Function at 0x14000e630
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14000eab0
movzx eax, al
test eax, eax
jne 0x14000e650
mov ecx, 7
call fcn.14000fb00
nop
mov byte [rsp + 0x20], 0
call fcn.14000ea40
mov byte [rsp + 0x21], al
cmp dword [0x1406151d8], 1
jne 0x14000e674
mov ecx, 7
call fcn.14000fb00
nop
jmp 0x14000e6cc
cmp dword [0x1406151d8], 0
jne 0x14000e6c7
mov dword [0x1406151d8], 1
lea rdx, [0x14006c580]
lea rcx, [0x14006c540]
call fcn.140038000
test eax, eax
je 0x14000e6a8
mov eax, 0xff
jmp 0x14000e7d1
lea rdx, [0x14006c538]
lea rcx, [0x14006c3b8]
call fcn.140037fa0
mov dword [0x1406151d8], 2
jmp 0x14000e6cc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14000eca0
call fcn.14000fad0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14000e729
mov rcx, qword [rsp + 0x30]
call fcn.14000ec10
movzx eax, al
test eax, eax
je 0x14000e729
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 [0x14006c390]
nop
call fcn.14000fae0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14000e75d
mov rcx, qword [rsp + 0x38]
call fcn.14000ec10
movzx eax, al
test eax, eax
je 0x14000e75d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140038650
nop
call fcn.14000e810
mov dword [rsp + 0x28], eax
call fcn.14000fcb0
movzx eax, al
test eax, eax
jne 0x14000e77c
mov ecx, dword [rsp + 0x28]
call fcn.1400386a0
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14000e78b
call fcn.140038610
nop
xor edx, edx
mov cl, 1
call fcn.14000ecd0
mov eax, dword [rsp + 0x28]
jmp 0x14000e7d1
add rsp, 0x68
ret

Function at 0x140018510
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140017ff0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14001854f
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 [0x14006c390]
jmp 0x140018559
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400383f0
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 0x140038418
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.140038510
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x14003f140
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 0x140049a40
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.140048fb0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140049a9c
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.140069520
jmp 0x140049abe
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140049d50
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 0x14004be20
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.140068be0
sub rsp, rax
mov rax, qword [0x14008c040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140616470]
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 0x14004c01a
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 0x14004bf66
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14004bf66
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 0x14004bf4b
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 0x14004bee8
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 0x14004bfda
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 0x14004c039
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 0x14004c015
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 0x14004c039
jmp 0x14004bebe
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.14000e230
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14004c060
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.140068be0
sub rsp, rax
mov rax, qword [0x14008c040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140616470]
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 0x14004c275
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 0x14004c1b9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14004c1b9
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 0x14004c199
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 0x14004c128
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 0x14004c235
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 0x14004c294
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 0x14004c270
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 0x14004c294
jmp 0x14004c0fe
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.14000e230
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14004e820
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.14002e330
movzx eax, al
test eax, eax
je 0x14004e847
mov al, 1
jmp 0x14004e93c
lea rcx, [rsp + 0x60]
call fcn.14002fae0
movzx eax, al
test eax, eax
je 0x14004e886
lea rcx, [rsp + 0x60]
call fcn.14000daf0
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
call fcn.14000daf0
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x40]
cmp qword [rcx], rax
jne 0x14004e886
xor al, al
jmp 0x14004e93c
lea rcx, [rsp + 0x60]
call fcn.14002f8a0
mov ecx, eax
call fcn.140059550
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14004e8ab
xor al, al
jmp 0x14004e93c
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 0x14004e8f0
xor al, al
jmp 0x14004e93c
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 0x14004e919
xor al, al
jmp 0x14004e93c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jne 0x14004e92f
mov dword [rsp + 0x20], 1
jmp 0x14004e937
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x50
pop rdi
ret
Function at 0x140057e70
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14000da80
lea rcx, [rsp + 0x40]
call fcn.140057e30
movzx eax, al
test eax, eax
jne 0x140057eb8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140057d60
mov rax, qword [rsp + 0x70]
jmp 0x140058089
lea rcx, [rsp + 0x40]
call fcn.14000daf0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140057de0
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.14000daf0
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.140053f70
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140057f5e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140057d60
mov rax, qword [rsp + 0x80]
jmp 0x140058089
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14001c300
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000da80
lea rcx, [rsp + 0x48]
call fcn.14000e1d0
movzx eax, al
test eax, eax
jne 0x140057fc5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.14000e1b0
lea rcx, [rsp + 0x40]
call fcn.140057d60
mov rax, qword [rsp + 0x88]
jmp 0x140058089
lea rcx, [rsp + 0x48]
call fcn.14000daf0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14000daf0
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.140053f70
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14005805b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.14000e1b0
lea rcx, [rsp + 0x40]
call fcn.140057d60
mov rax, qword [rsp + 0xa0]
jmp 0x140058089
lea rcx, [rsp + 0x48]
call fcn.1400116d0
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.14000e1b0
lea rcx, [rsp + 0x40]
call fcn.140057d60
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x14005e100
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 0x14005e13f
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
test eax, eax
je 0x14005e13f
lea rdx, [0x14007f5b8]
mov rcx, qword [rsp + 0x40]
call fcn.14005bb20
test eax, eax
jne 0x14005e176
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 0x14005e165
xor eax, eax
jmp 0x14005e1c5
cmp dword [rsp + 0x20], 0
jne 0x14005e174
call qword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x14005e1c5
jmp 0x14005e1c1
lea rdx, [0x14007f5d0]
mov rcx, qword [rsp + 0x40]
call fcn.14005bb20
test eax, eax
jne 0x14005e1b3
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 0x14005e1b1
xor eax, eax
jmp 0x14005e1c5
jmp 0x14005e1c1
mov rcx, qword [rsp + 0x40]
call fcn.14003d0f0
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x14005e230
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.140040310
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 0x14005e293
xor eax, eax
jmp 0x14005e2d3
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x50], eax
je 0x14005e2ce
cmp dword [rsp + 0x58], 0
je 0x14005e2ce
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call fcn.14005da00
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call fcn.140035600
mov ecx, dword [rsp + 0x28]
cmp ecx, eax
jne 0x14005e2ce
xor eax, eax
jmp 0x14005e2d3
mov eax, 1
add rsp, 0x48
ret
Function at 0x14005fc00
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x14008c040]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14005fc29
jmp 0x14005fcae
mov rcx, qword [rbp + 0x30]
call fcn.14006a1a0
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14005fc42
jmp 0x14005fcae
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14005fc5f
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140068be0
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.140051d00
test eax, eax
jne 0x14005fcae
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.14000e230
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140062740
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.140035ac0
lea rcx, [rsp + 0xb8]
call fcn.140035ac0
lea rcx, [rsp + 0x88]
call fcn.140035ac0
call fcn.14003ee30
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.1400359b0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x1400627e2
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.140035b50
lea rcx, [rsp + 0xb8]
call fcn.140035b50
lea rcx, [rsp + 0xe8]
call fcn.140035b50
mov eax, dword [rsp + 0x54]
jmp 0x140062988
call fcn.14003ee30
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.1400359b0
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x140062842
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.140035b50
lea rcx, [rsp + 0xb8]
call fcn.140035b50
lea rcx, [rsp + 0xe8]
call fcn.140035b50
mov eax, dword [rsp + 0x5c]
jmp 0x140062988
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x1400628c8
call fcn.14003ee30
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.1400359b0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x1400628b6
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.140035b50
lea rcx, [rsp + 0xb8]
call fcn.140035b50
lea rcx, [rsp + 0xe8]
call fcn.140035b50
mov eax, dword [rsp + 0x64]
jmp 0x140062988
lea rcx, [rsp + 0x88]
call fcn.140035e80
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.140035e80
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.140035e80
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.140035b50
lea rcx, [rsp + 0xb8]
call fcn.140035b50
lea rcx, [rsp + 0xe8]
call fcn.140035b50
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret