joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401f1080
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401f10dc
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401f10dc
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401f10dc
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401f10dc
cmp dword [rcx + 0x84], 0xe
jbe 0x1401f10dc
cmp dword [rcx + 0xf8], 0
je 0x1401f10dc
mov ecx, ebx
call fcn.1401f0e50
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x140341ab8]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.1401f0cc0
cmp dword [rsp + 0x60], 0
jne 0x1401f111f
mov ecx, ebx
call fcn.1401f0e00
int3
add rsp, 0x40
pop rbx
ret

Function at 0x1401f17f0
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x250
mov rax, qword [0x14033f2a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14031b8b0]
mov rbp, rcx
call sub.msvcrt.dll_wcspbrk
test rax, rax
je 0x1401f194b
mov qword [rsp + 0x268], rbx
xor ebx, ebx
mov qword [rsp + 0x270], rsi
mov qword [rsp + 0x278], rdi
call sub.msvcrt.dll__errno
mov esi, dword [rax]
call sub.msvcrt.dll__errno
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], ebx
call sub.msvcrt.dll__wfullpath
mov rdi, rax
test rax, rax
je 0x1401f186f
call sub.msvcrt.dll__errno
mov dword [rax], esi
jmp 0x1401f18a0
call sub.msvcrt.dll__errno
cmp dword [rax], 0x22
jne 0x1401f1929
call sub.msvcrt.dll__errno
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], esi
call sub.msvcrt.dll__wfullpath
mov rbx, rax
mov rdi, rax
test rax, rax
je 0x1401f1929
mov rax, 0xffffffffffffffff
mov rcx, rax
nop word [rax + rax]
inc rcx
cmp word [rdi + rcx*2], 0
jne 0x1401f18b0
cmp rcx, 3
je 0x1401f199f
inc rax
cmp word [rdi + rax*2], 0
jne 0x1401f18c4
cmp rax, 5
jb 0x1401f1929
movzx eax, word [rdi]
cmp ax, 0x5c
je 0x1401f18e3
cmp ax, 0x2f
jne 0x1401f1929
movzx eax, word [rdi + 2]
cmp ax, 0x5c
je 0x1401f18f3
cmp ax, 0x2f
jne 0x1401f1929
movzx eax, word [rdi + 4]
cmp ax, 0x5c
je 0x1401f1929
cmp ax, 0x2f
je 0x1401f1929
movzx eax, word [rdi + 6]
lea rcx, [rdi + 6]
test ax, ax
je 0x1401f1929
cmp ax, 0x5c
je 0x1401f1964
cmp ax, 0x2f
je 0x1401f1964
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x1401f1910
mov rcx, rbx
call fcn.1401e6b3a
xor al, al
mov rsi, qword [rsp + 0x270]
mov rbx, qword [rsp + 0x268]
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401e57c0
add rsp, 0x250
pop rbp
ret
cmp word [rcx], 0
je 0x1401f1929
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
je 0x1401f1929
cmp ax, 0x5c
je 0x1401f1992
cmp ax, 0x2f
je 0x1401f1992
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x1401f1977
jmp 0x1401f199f
cmp word [rcx], 0
je 0x1401f199f
cmp word [rcx + 2], 0
jne 0x1401f1929
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
cmp eax, 1
jbe 0x1401f192c
call fcn.1401e6b3a
mov al, 1
jmp 0x1401f1933
Function at 0x1400702a0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400702ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400702bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400702a5
lea eax, [rcx + 1]
jmp 0x1400702cb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400702de
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400702c4
sub eax, 3
jb 0x1400702fe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14007034d
sar eax, 1
movsxd rbp, eax
jb 0x140070334
jmp 0x14007030c
add ebx, ebx
jne 0x14007030a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140070334
inc ecx
add ebx, ebx
jne 0x14007031a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140070334
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14007032d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14007031c
add ecx, 2
jmp 0x140070339
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140070262
jmp 0x1400702ad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x24800
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140070399
cmp rsi, rcx
jae 0x1400703a1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140070380
cmp al, 0x8f
ja 0x140070380
cmp byte [rsi - 2], 0xf
je 0x140070386
sub al, 0xe8
cmp al, 1
ja 0x14007036a
cmp rsi, rcx
jae 0x1400703a1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140070370
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400703a1
lodsb al, byte [rsi]
jmp 0x140070380
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x6e000]
mov eax, dword [rdi]
or eax, eax
je 0x1400703fe
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xa25b4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400703ae
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400703f8
mov qword [rbx], rax
add rbx, 8
jmp 0x1400703ce
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140070438
cmp al, 0xef
ja 0x14007042a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14007040a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140070419
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14007048c
sub rsp, 0xffffffffffffff80
jmp 0x1400075b0
Function at 0x180003ec0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x10], 0
mov qword [rsp + 8], 0
mov qword [rsp + 0x18], 0
mov qword [rsp + 0x20], 0
mov rax, qword [0x18001ac30]
mov qword [rsp + 0x10], rax
je 0x180003f29
nop
jne 0x180003f29
fsubr qword [rdx - 0x49]
pop rsi
fadd qword [rdx - 0x10]
push 0x6a
xchg ebp, eax
fmul qword es:[rbp + 0x268d9595]
lea ebp, [rdx - 0x73]
or eax, 0xffffffdc
enter 0xffffffffffff9588, 0xffffffffffffff88
and dword [rsi - 0x24], 0xffffff8d
xchg ebp, eax
xchg ebp, eax
pop rsi
push 0x48
mov eax, dword [rsp + 0x10]
mov rax, qword [rsp + 0x10]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180003f3f
xor eax, eax
jmp 0x18000407f
mov rax, qword [rsp + 0x10]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x10]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
je 0x180003f84
push rcx
push rsp
nop
pop rsp
pop rcx
jne 0x180003f84
pop rsi
enter 0xffffffffffff956a, 0xffffffffffffff95
mov byte [rdx - 0x14], al
fmul qword [rax + 0x1c8d88ec]
enter 0xb6a, 0x42
sbb dword [rsi + 0x42], 0x6a
lea ebp, [rdx + 0x1c]
mov byte [rbp + 0x5e83428d], dl
sbb al, 0x66
xchg ebp, eax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x180003f98
xor eax, eax
jmp 0x18000407f
mov dword [rsp], 0
jmp 0x180003fa9
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jae 0x180004054
mov rax, qword [rsp + 8]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 8]
lea rax, [rcx + rax + 0x18]
mov ecx, dword [rsp]
imul rcx, rcx, 0x28
add rax, rcx
mov qword [rsp + 0x18], rax
jb 0x180004009
push rcx
push rsi
push rbp
push rsp
pop rsp
pop rbp
pop rsi
pop rcx
jae 0x180004009
or ebx, dword [rsi - 0x6b]
invalid
mov rax, qword [rsp + 0x18]
cmp dword [rax + 0x24], 0xe0000020
jne 0x18000404f
jnp 0x180004043
push rdi
nop
pop rdi
jp 0x180004043
lea ecx, [rbp - 0x4895e39a]
lea esp, es:[rsi - 0x14]
enter 0x6a42, 0xb
mov byte [rdi - 0x130fe3da], dh
or ebp, dword [rdx + 0x6a]
or ebx, dword [rsi - 0x14]
pop rsi
xchg ebp, eax
pop rsi
in al, dx
or dword [rbx], 0xffffff8d
fmul qword [rbp + 0x448b48ec]
and al, 0x18
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x20], rax
jmp 0x180004054
jmp 0x180003fa1
cmp qword [rsp + 0x20], 0
jne 0x180004060
xor eax, eax
jmp 0x18000407f
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xc]
mov rcx, qword [0x18001ac30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret
Function at 0x180013e40
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x10], 0
mov qword [rsp + 0x18], 0
mov qword [rsp + 8], 0
mov qword [rsp], 0
mov qword [rsp + 0x20], 0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
mov rax, qword [rax + 0x238]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180013eed
mov rax, qword [rsp]
cmp dword [rax + 0x3c], 0
jle 0x180013eed
mov rax, qword [rsp]
cmp dword [rax + 0x3c], 0x190
jge 0x180013eed
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0x4550
jne 0x180013eed
jmp 0x180013efc
mov rax, qword [rsp + 8]
dec rax
mov qword [rsp + 8], rax
jmp 0x180013e99
mov rax, qword [rsp + 8]
add rsp, 0x38
ret

Function at 0x180013f10
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0
mov dword [rsp + 8], 0
mov dword [rsp], 0xffffffff
jbe 0x180013f64
push rsi
push rax
push rcx
pop rcx
pop rax
pop rsi
ja 0x180013f64
fsub qword [rsi]
in al, dx
pop rsi
invalid
mov dword [rsp + 4], 0
jmp 0x180013f78
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 4], eax
jae 0x180014043
jp 0x180013fb2
push rdi
push rbp
push rsi
pop rsi
pop rbp
pop rdi
jnp 0x180013fb2
xchg ebp, eax
or eax, dword es:[rdx - 0x14]
invalid
mov eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
and eax, 0xff
mov dword [rsp + 8], eax
js 0x180013ffb
jns 0x180013ffb
or ebp, dword [rdx - 0x10]
invalid
mov eax, dword [rsp]
shr eax, 8
mov ecx, dword [rsp + 8]
lea rdx, [0x18001a810]
xor eax, dword [rdx + rcx*4]
mov dword [rsp], eax
je 0x18001403e
push rbp
push rax
push rsi
pop rsi
pop rax
pop rbp
jne 0x18001403e
in al, dx
enter 0xffffffffffffec83, 0xffffffffffffff95
xchg ebp, eax
or esp, dword [rsi + 0xb]
in al, dx
invalid
jmp 0x180013f6e
jp 0x18001406f
push rax
push rax
nop
pop rax
pop rax
jnp 0x18001406f
invalid
mov eax, dword [rsp]
xor eax, 0xffffffff
mov dword [rsp], eax
jbe 0x1800140a4
push rsi
pop rsi
ja 0x1800140a4
push 0x26
mov bh, 0x88
mov bh, 0x1c
mov bh, 0xf0
sbb al, 0x66
pop rsi
mov bh, 0xec
or ebp, esp
fmul qword [rax - 0x77130f78]
xchg ebp, eax
lea eax, [rdx - 0x38]
in al, dx
invalid
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp]
mov dword [rax], ecx
xor eax, eax
add rsp, 0x18
ret
Function at 0x140e2a3c8
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140e2a54f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140e2a3f9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e2a3df
add dl, dl
jne 0x140e2a406
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e2a466
xor eax, eax
add dl, dl
jne 0x140e2a415
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e2a51d
add dl, dl
jne 0x140e2a426
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e2a433
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e2a440
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e2a44d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e2a45a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e2a3ee
mov eax, 1
add dl, dl
jne 0x140e2a476
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e2a483
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e2a46b
sub eax, ebx
mov ebx, 1
jne 0x140e2a4bc
mov ecx, 1
add dl, dl
jne 0x140e2a49e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e2a4ab
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e2a493
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2a3ee
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e2a4d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e2a4e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e2a4cd
cmp eax, 0x7d00
jae 0x140e2a50b
cmp eax, 0x500
jb 0x140e2a506
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2a3ee
cmp eax, 0x7f
ja 0x140e2a50e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2a3ee
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e2a542
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140e2a3ee
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400d7009
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x140152530
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x140152558
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x1401525a2
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 0x14015254d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400d88c8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401c6bc0
mov rax, rcx
neg rcx
test rax, 7
je 0x1401c6bdd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401c6c38
test al, 7
jne 0x1401c6bd0
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 0x1401c6bf1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401c6c62
test dh, dh
je 0x1401c6c5c
shr rdx, 0x10
test dl, dl
je 0x1401c6c56
test dh, dh
je 0x1401c6c50
shr rdx, 0x10
test dl, dl
je 0x1401c6c4a
test dh, dh
je 0x1401c6c44
shr edx, 0x10
test dl, dl
je 0x1401c6c3e
test dh, dh
jne 0x1401c6bf1
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 0x1400d891d
Capabilities:
Query environment variable

Disassembly:
jmp 0x140264600
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140264180
lea rcx, [rsp + 0x20]
call fcn.1402641d0
movzx eax, al
test eax, eax
jne 0x140264645
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1402641b0
mov rax, qword [rsp + 0x40]
jmp 0x14026473f
lea rcx, [rsp + 0x20]
call fcn.1402642d0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140264270
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.1400d8d00
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400d81e8
lea rcx, [rsp + 0x28]
call fcn.1400d924b
movzx eax, al
test eax, eax
jne 0x1402646df
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400da8e4
lea rcx, [rsp + 0x20]
call fcn.1402641b0
mov rax, qword [rsp + 0x50]
jmp 0x14026473f
lea rcx, [rsp + 0x20]
call fcn.1402642d0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400dba28
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.1400d8c24
lea rcx, [rsp + 0x28]
call fcn.1400dc4b4
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400da8e4
lea rcx, [rsp + 0x20]
call fcn.1402641b0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400d8ec7
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401a5fe0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401a5960
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401a601f
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 [0x14030d020]
jmp 0x1401a6029
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400d9160
Capabilities:
Query environment variable

Disassembly:
jmp 0x140264350
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140264180
lea rcx, [rsp + 0x40]
call fcn.140264300
movzx eax, al
test eax, eax
jne 0x140264398
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1402641b0
mov rax, qword [rsp + 0x70]
jmp 0x140264569
lea rcx, [rsp + 0x40]
call fcn.1402642d0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140264270
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.1402642d0
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.1400da4cf
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14026443e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1402641b0
mov rax, qword [rsp + 0x80]
jmp 0x140264569
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400d8d00
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400d8aa3
lea rcx, [rsp + 0x48]
call fcn.1400d8431
movzx eax, al
test eax, eax
jne 0x1402644a5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400d6e60
lea rcx, [rsp + 0x40]
call fcn.1402641b0
mov rax, qword [rsp + 0x88]
jmp 0x140264569
lea rcx, [rsp + 0x48]
call fcn.1400d96ba
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1402642d0
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.1400da4cf
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14026453b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400d6e60
lea rcx, [rsp + 0x40]
call fcn.1402641b0
mov rax, qword [rsp + 0xa0]
jmp 0x140264569
lea rcx, [rsp + 0x48]
call fcn.1400d8a58
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400d6e60
lea rcx, [rsp + 0x40]
call fcn.1402641b0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400d9179
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401a5f10
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401a58e0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401a5f51
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 [0x14030d020]
jmp 0x1401a5f57
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400d9250
Capabilities:
Get geographical location

Disassembly:
jmp 0x140240360
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.14023f290
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1402403c7
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 [0x14030d030]
jmp 0x1402403e9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400d8387
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 0x1400d9264
Capabilities:
Terminate process

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

Disassembly:
jmp 0x1402755a0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1402ee180]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1402755c6
jmp 0x140275643
mov rcx, qword [rbp + 0x30]
call fcn.1400d88c8
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1402755df
jmp 0x140275643
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1402755fc
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400d70b8
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.1400d774d
test eax, eax
jne 0x140275643
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400d8bfc
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400d99d0
Capabilities:
Get geographical location

Disassembly:
jmp 0x140106440
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 0x14010647d
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.1400dbaf0
add rsp, 0x58
ret