joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140115600
Capabilities:
Prepare http request

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x90
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1401b4048]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, rcx
xor ebp, ebp
mov ecx, dword [rcx + 0xb0]
call fcn.140111eb0
mov esi, ebp
mov ecx, 0x800000
test al, al
cmovne esi, ecx
mov ecx, dword [rbx + 0x10c]
test ecx, ecx
je 0x140115668
cmp ecx, 1
jne 0x1401157ad
lea rdi, str.POST
jmp 0x14011566f
lea rdi, [0x14016a840]
mov r14, qword [rbx + 0x28]
mov rax, qword [rbx]
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [rax + 0x60]
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14004c7f0
nop
mov rcx, qword [rbx + 0x18]
cmp qword [rax + 0x18], 8
jb 0x14011569e
mov rax, qword [rax]
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
mov r8, rax
mov rdx, rdi
mov rcx, qword [rcx]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
mov rcx, qword [r14]
cmp rax, rcx
je 0x1401156d6
test rcx, rcx
je 0x1401156d3
call fcn.1401113d0
mov qword [r14], rbx
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140115718
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140115713
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401157d0
call fcn.1400bece8
movdqa xmm0, xmmword [0x14013b000]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], bp
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x14011576c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140115767
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401157a7
call fcn.1400bece8
movdqa xmm0, xmmword [0x14013b000]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], bp
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400bf400
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.1400e9e3c
int3
lea rdx, str.OpenRequestWinHTTP:__unspecified_verb
lea rcx, [rsp + 0x48]
call fcn.140020580
lea rdx, [0x1401b0ea0]
lea rcx, [rsp + 0x48]
call fcn.1400dffb8
nop
call fcn.1400e9e3c
nop
int3
Function at 0x14011a320
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r12, r9
movzx r15d, r8b
mov r13, rdx
mov r14, rcx
mov rsi, qword [rcx]
mov rbx, qword [rsi + 8]
mov dil, 1
nop dword [rax + rax]
cmp byte [rbx + 0x19], 0
jne 0x14011a3a5
mov rsi, rbx
mov rcx, r14
test r15b, r15b
je 0x14011a386
lea rdx, [rbx + 0x20]
mov r8, r12
call fcn.14003bbf0
movzx edi, al
xor dil, 1
jmp 0x14011a395
lea r8, [rbx + 0x20]
mov rdx, r12
call fcn.14003bbf0
movzx edi, al
test dil, dil
je 0x14011a39f
mov rbx, qword [rbx]
jmp 0x14011a3a3
mov rbx, qword [rbx + 0x10]
jmp 0x14011a360
mov rbx, rsi
mov qword [rsp + 0x30], rbx
test dil, dil
je 0x14011a406
mov rax, qword [r14]
cmp rsi, qword [rax]
jne 0x14011a3f3
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9, rsi
mov r8b, 1
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.140119c70
mov rcx, qword [rax]
mov qword [r13], rcx
mov byte [r13 + 8], 1
mov rax, r13
jmp 0x14011a495
cmp byte [rsi + 0x19], 0
je 0x14011a4af
mov rbx, qword [rsi + 0x10]
mov qword [rsp + 0x30], rbx
lea rdx, [rbx + 0x20]
mov r8, r12
mov rcx, r14
call fcn.14003bbf0
test al, al
je 0x14011a450
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9, rsi
movzx r8d, dil
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.140119c70
mov rcx, qword [rax]
mov qword [r13], rcx
mov byte [r13 + 8], 1
mov rax, r13
jmp 0x14011a495
mov rsi, qword [rsp + 0xa0]
lea rdi, [rsi + 0x20]
mov qword [rsp + 0x40], rdi
lea rcx, [rdi + 0x20]
call fcn.1400122c0
nop
mov rcx, rdi
call fcn.1400122c0
mov qword [rsp + 0x48], 0x60
mov edx, 0x60
mov rcx, rsi
call fcn.1400bece8
mov qword [r13], rbx
mov byte [r13 + 8], 0
mov rax, r13
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, qword [rsi]
cmp byte [rax + 0x19], 0
je 0x14011a4f0
nop dword [rax + rax]
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14011a4d9
cmp rbx, qword [rax]
jne 0x14011a4d9
mov rbx, rax
mov qword [rsp + 0x30], rax
jmp 0x14011a4c0
cmp byte [rbx + 0x19], 0
jne 0x14011a406
mov rbx, rax
mov qword [rsp + 0x30], rax
jmp 0x14011a406
mov rbx, rax
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14011a401
mov rbx, rax
jmp 0x14011a500
Function at 0x14011e5b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1401b4048]
xor rax, rsp
mov qword [rsp + 0x58], rax
movzx r14d, r8w
mov rbx, rdx
mov r15, rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov ebp, eax
movzx edi, r12w
mov esi, r12d
test eax, eax
je 0x14011e64c
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx edi, word [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov esi, eax
movzx edx, r14w
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov dword [rsp + 0x34], r12d
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.14005efb0
nop
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
sub r8, rdx
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x34]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14011e6c6
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14011e6b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011e6fa
call fcn.1400bece8
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
test ebp, ebp
je 0x14011e6de
movzx edx, di
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400bf400
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1400e9e3c
int3
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, 0xc
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
movzx r8d, di
mov rcx, rbx
mov rdx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14011e5b0
Function at 0x14011e700
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1401b4048]
xor rax, rsp
mov qword [rsp + 0x58], rax
movzx r14d, r8w
mov rbx, rdx
mov r15, rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov ebp, eax
movzx edi, r12w
mov esi, r12d
test eax, eax
je 0x14011e64c
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx edi, word [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov esi, eax
movzx edx, r14w
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov dword [rsp + 0x34], r12d
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.14005efb0
nop
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
sub r8, rdx
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x34]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14011e6c6
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14011e6b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011e6fa
call fcn.1400bece8
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
test ebp, ebp
je 0x14011e6de
movzx edx, di
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400bf400
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1400e9e3c
int3
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, 0xc
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
movzx r8d, di
mov rcx, rbx
mov rdx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14011e5b0

Function at 0x14011e740
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, 0xf
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
movzx r8d, di
mov rcx, rbx
mov rdx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14011e5b0

Function at 0x14011e780
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, 0xe
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
movzx r8d, di
mov rcx, rbx
mov rdx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14011e5b0
Function at 0x1401095c7
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1401f5c00
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x1401f5c28
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x1401f5c72
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 0x1401f5c1d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x14010b4a8
Capabilities:
Delete service
Stop service

Disassembly:
jmp 0x1401b0590
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x148]
mov rax, qword [0x1403d1140]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x1403f7122]
call fcn.14010fce2
nop
lea rax, [rbp + 8]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
mov rcx, qword [rbp + 0x128]
call fcn.14010bbbf
lea r8, [rbp + 8]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
nop
mov rcx, qword [rbp + 0x128]
call fcn.14010bbbf
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1401b0630
mov byte [rbp + 0xf4], 1
jmp 0x1401b0637
mov byte [rbp + 0xf4], 0
movzx eax, byte [rbp + 0xf4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14033ada0]
call fcn.14010e775
mov eax, edi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.14010bc78
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14010b86d
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140254920
mov rax, rcx
neg rcx
test rax, 7
je 0x14025493d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140254998
test al, 7
jne 0x140254930
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 0x140254951
mov rdx, qword [rax - 8]
test dl, dl
je 0x1402549c2
test dh, dh
je 0x1402549bc
shr rdx, 0x10
test dl, dl
je 0x1402549b6
test dh, dh
je 0x1402549b0
shr rdx, 0x10
test dl, dl
je 0x1402549aa
test dh, dh
je 0x1402549a4
shr edx, 0x10
test dl, dl
je 0x14025499e
test dh, dh
jne 0x140254951
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 0x14010b8a4
Capabilities:
Query environment variable

Disassembly:
jmp 0x1402fddc0
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1402fd940
lea rcx, [rsp + 0x20]
call fcn.1402fd990
movzx eax, al
test eax, eax
jne 0x1402fde05
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1402fd970
mov rax, qword [rsp + 0x40]
jmp 0x1402fdeff
lea rcx, [rsp + 0x20]
call fcn.1402fda90
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1402fda30
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.14010bde5
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14010af44
lea rcx, [rsp + 0x28]
call fcn.14010c57e
movzx eax, al
test eax, eax
jne 0x1402fde9f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.14010e3f6
lea rcx, [rsp + 0x20]
call fcn.1402fd970
mov rax, qword [rsp + 0x50]
jmp 0x1402fdeff
lea rcx, [rsp + 0x20]
call fcn.1402fda90
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.14010fb4d
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.14010bcaa
lea rcx, [rsp + 0x28]
call fcn.1401109fd
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.14010e3f6
lea rcx, [rsp + 0x20]
call fcn.1402fd970
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x14010ba7a
Capabilities:
Set registry value

Disassembly:
jmp 0x140163490
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x30]
lea rcx, [0x1403f7114]
call fcn.14010fce2
nop
mov dword [rbp + 4], 1
mov rcx, qword [rbp + 0x118]
call fcn.14010d875
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0x110]
mov rax, qword [rax]
mov qword [rbp + 0xe0], rax
mov eax, dword [rbp + 0x128]
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x120]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 4]
xor r8d, r8d
mov rdx, qword [rbp + 0xd8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14016352b
mov byte [rbp + 0xe8], 1
jmp 0x140163532
mov byte [rbp + 0xe8], 0
movzx eax, byte [rbp + 0xe8]
test eax, eax
jne 0x140163549
mov dword [rbp + 0xec], 1
jmp 0x140163553
mov dword [rbp + 0xec], 0
movzx eax, byte [rbp + 0xec]
lea rsp, [rbp + 0xf8]
pop rdi
pop rbp
ret
Function at 0x14010bffc
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140248850
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1402481d0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14024888f
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 [0x1403f8020]
jmp 0x140248899
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x14010c452
Capabilities:
Query environment variable

Disassembly:
jmp 0x1402fdb10
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1402fd940
lea rcx, [rsp + 0x40]
call fcn.1402fdac0
movzx eax, al
test eax, eax
jne 0x1402fdb58
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1402fd970
mov rax, qword [rsp + 0x70]
jmp 0x1402fdd29
lea rcx, [rsp + 0x40]
call fcn.1402fda90
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1402fda30
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.1402fda90
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.14010de83
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1402fdbfe
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1402fd970
mov rax, qword [rsp + 0x80]
jmp 0x1402fdd29
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14010bde5
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14010ba84
lea rcx, [rsp + 0x48]
call fcn.14010b24b
movzx eax, al
test eax, eax
jne 0x1402fdc65
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140109383
lea rcx, [rsp + 0x40]
call fcn.1402fd970
mov rax, qword [rsp + 0x88]
jmp 0x1402fdd29
lea rcx, [rsp + 0x48]
call fcn.14010cb8c
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1402fda90
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.14010de83
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1402fdcfb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140109383
lea rcx, [rsp + 0x40]
call fcn.1402fd970
mov rax, qword [rsp + 0xa0]
jmp 0x1402fdd29
lea rcx, [rsp + 0x48]
call fcn.14010ba2f
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140109383
lea rcx, [rsp + 0x40]
call fcn.1402fd970
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x14010c46b
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140248780
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140248150
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1402487c1
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 [0x1403f8020]
jmp 0x1402487c7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x14010c588
Capabilities:
Get geographical location

Disassembly:
jmp 0x1402de1e0
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.1402dd150
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1402de247
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 [0x1403f8030]
jmp 0x1402de269
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14010b179
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 0x14010c5a1
Capabilities:
Terminate process

Disassembly:
jmp 0x1402266d0
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 0x14010cad8
Capabilities:
Print debug messages

Disassembly:
jmp 0x14030ae20
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1403d1140]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14030ae46
jmp 0x14030aec3
mov rcx, qword [rbp + 0x30]
call fcn.14010b86d
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14030ae5f
jmp 0x14030aec3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14030ae7c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401096b2
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.14010a09e
test eax, eax
jne 0x14030aec3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.14010bc78
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x14010cfce
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401d8ba0
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 0x1401d8bdd
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.14010fc8d
add rsp, 0x58
ret

Function at 0x14010d131
Capabilities:
Set environment variable

Disassembly:
jmp 0x1402ffc70
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