joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400de9c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rdi, rcx
mov qword [rsp + 0x58], rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
lea rcx, str.ALLUSERSPROFILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400dea29
mov qword [rdi], rbx
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], bl
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], bl
jne 0x1400dea10
mov rdx, rax
mov rcx, rdi
call fcn.14003ebf0
jmp 0x1400deb03
mov qword [rsp + 0x38], rbx
movdqa xmm0, xmmword [0x140105e40]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], bx
mov dword [rsp + 0x30], 2
lea rcx, [rsp + 0x38]
call fcn.1400d9f20
test eax, eax
jne 0x1400deb23
lea rbp, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
call fcn.1400e7464
mov r14d, eax
mov qword [rdi], rbx
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov dword [rsp + 0x30], Ordinal_41
test rsi, rsi
je 0x1400deaf9
cmp rsi, 0x7fffffff
ja 0x1400deb32
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
mov ecx, eax
call fcn.1400e74d4
mov rbx, rax
shr rax, 0x20
test eax, eax
jne 0x1400deb3d
movsxd rdx, ebx
xor r8d, r8d
mov rcx, rdi
call fcn.140071960
mov r9, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400deadf
mov r9, qword [rdi]
mov dword [rsp + 0x20], ebx
mov r8d, esi
mov rdx, rbp
mov ecx, r14d
call fcn.1400e74d4
shr rax, 0x20
test eax, eax
jne 0x1400deb1b
lea rcx, [rsp + 0x38]
call fcn.1400407d0
mov rax, rdi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, eax
call fcn.140040640
nop
mov edx, eax
lea rcx, str.current_path__
call fcn.1400da910
nop
mov ecx, reloc.WLDAP32.dll_Ordinal_22
call fcn.1400401f0
int3
mov ecx, eax
call fcn.140040640
int3
Function at 0x1400e5990
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
xor r8d, r8d
mov rdx, rcx
mov qword [rsp + 0x20], rbx
cmp byte [rcx + 0xa], r8b
je 0x1400e59c3
mov ecx, r8d
nop dword [rax]
lea eax, [rcx + 0x6d]
xor byte [rdx + rcx], al
inc rcx
cmp rcx, 9
jb 0x1400e59b0
mov byte [rdx + 0xa], r8b
lea rcx, [rdx + 9]
mov qword [rbx], r8
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r8b
cmp rdx, rcx
je 0x1400e59ec
mov r8d, 9
mov rcx, rbx
call fcn.14003ebf0
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x1400e6b60
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8d, dword [rcx + 0x28]
mov rdi, rdx
mov rbx, rcx
cmp r8d, 0x40
jae 0x1400e6d03
lea ecx, [r8*8]
add qword [rbx], rcx
mov byte [r8 + rbx + 0x2c], 0x80
inc dword [rbx + 0x28]
mov eax, dword [rbx + 0x28]
cmp eax, 0x38
jbe 0x1400e6bc5
cmp eax, 0x40
jae 0x1400e6bb0
nop
mov byte [rax + rbx + 0x2c], 0
inc dword [rbx + 0x28]
mov eax, dword [rbx + 0x28]
cmp eax, 0x40
jb 0x1400e6ba0
lea rdx, [rbx + 0x2c]
mov rcx, rbx
call fcn.1400e6e20
mov dword [rbx + 0x28], 0
jmp 0x1400e6bd0
jae 0x1400e6be1
nop word [rax + rax]
mov eax, dword [rbx + 0x28]
mov byte [rax + rbx + 0x2c], 0
inc dword [rbx + 0x28]
cmp dword [rbx + 0x28], 0x38
jb 0x1400e6bd0
movzx eax, byte [rbx + 7]
lea rdx, [rbx + 0x2c]
mov byte [rbx + 0x64], al
mov rcx, rbx
movzx eax, byte [rbx + 6]
mov byte [rbx + 0x65], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 0x66], al
movzx eax, byte [rbx + 4]
mov byte [rbx + 0x67], al
movzx eax, byte [rbx + 3]
mov byte [rbx + 0x68], al
movzx eax, byte [rbx + 2]
mov byte [rbx + 0x69], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 0x6a], al
movzx eax, byte [rbx]
mov byte [rbx + 0x6b], al
call fcn.1400e6e20
movzx eax, byte [rbx + 0xb]
mov byte [rdi], al
movzx eax, byte [rbx + 0xa]
mov byte [rdi + 1], al
movzx eax, byte [rbx + 9]
mov byte [rdi + 2], al
movzx eax, byte [rbx + 8]
mov byte [rdi + 3], al
movzx eax, byte [rbx + 0xf]
mov byte [rdi + 4], al
movzx eax, byte [rbx + 0xe]
mov byte [rdi + 5], al
movzx eax, byte [rbx + 0xd]
mov byte [rdi + 6], al
movzx eax, byte [rbx + 0xc]
mov byte [rdi + 7], al
movzx eax, byte [rbx + 0x13]
mov byte [rdi + 8], al
movzx eax, byte [rbx + 0x12]
mov byte [rdi + 9], al
movzx eax, byte [rbx + 0x11]
mov byte [rdi + 0xa], al
movzx eax, byte [rbx + 0x10]
mov byte [rdi + 0xb], al
movzx eax, byte [rbx + 0x17]
mov byte [rdi + 0xc], al
movzx eax, byte [rbx + 0x16]
mov byte [rdi + 0xd], al
movzx eax, byte [rbx + 0x15]
mov byte [rdi + 0xe], al
movzx eax, byte [rbx + 0x14]
mov byte [rdi + 0xf], al
movzx eax, byte [rbx + 0x1b]
mov byte [rdi + 0x10], al
movzx eax, byte [rbx + 0x1a]
mov byte [rdi + 0x11], al
movzx eax, byte [rbx + 0x19]
mov byte [rdi + 0x12], al
movzx eax, byte [rbx + 0x18]
mov byte [rdi + 0x13], al
movzx eax, byte [rbx + 0x1f]
mov byte [rdi + 0x14], al
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 0x15], al
movzx eax, byte [rbx + 0x1d]
mov byte [rdi + 0x16], al
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 0x17], al
movzx eax, byte [rbx + 0x23]
mov byte [rdi + 0x18], al
movzx eax, byte [rbx + 0x22]
mov byte [rdi + 0x19], al
movzx eax, byte [rbx + 0x21]
mov byte [rdi + 0x1a], al
movzx eax, byte [rbx + 0x20]
mov byte [rdi + 0x1b], al
movzx eax, byte [rbx + 0x27]
mov byte [rdi + 0x1c], al
movzx eax, byte [rbx + 0x26]
mov byte [rdi + 0x1d], al
movzx eax, byte [rbx + 0x25]
mov byte [rdi + 0x1e], al
movzx eax, byte [rbx + 0x24]
mov byte [rdi + 0x1f], al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e6d10
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov qword [rcx + 0x24], 0x5be0cd19
mov qword [rcx], rax
mov dword [rcx + 8], 0x6a09e667
mov dword [rcx + 0xc], 0xbb67ae85
mov dword [rcx + 0x10], 0x3c6ef372
mov dword [rcx + 0x14], 0xa54ff53a
mov dword [rcx + 0x18], 0x510e527f
mov dword [rcx + 0x1c], 0x9b05688c
mov dword [rcx + 0x20], 0x1f83d9ab
ret
Function at 0x140001a40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140002880
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002880
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400460a4]
mov rbx, rcx
test esi, esi
jle 0x140001be0
mov rax, qword [0x1400460a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001afb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001b85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001ae0
mov rcx, rbx
call fcn.140002520
mov rdi, rax
test rax, rax
je 0x140001c02
mov rax, qword [0x1400460a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002660
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400460a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001be7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001b7e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001b90
add dword [0x1400460a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400460a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001a40
nop dword [rax]
xor esi, esi
jmp 0x140001b08
mov rax, qword [0x1400460a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001a40
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001a40
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002190
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140046100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400460e0]
test rbx, rbx
je 0x1400021ec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400021e3
test eax, eax
jne 0x1400021e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400021c8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002520
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140043360]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002540
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002548
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002540
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000259d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002594
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002540
add rax, 0x28
cmp rax, r9
jne 0x140002580
xor eax, eax
ret

Function at 0x1400025a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140043360]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400025bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400025c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400025bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002660
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140043360]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000267f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002688
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1411f4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1411f41df
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 0x1411f4089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411f406f
add dl, dl
jne 0x1411f4096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411f40f6
xor eax, eax
add dl, dl
jne 0x1411f40a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411f41ad
add dl, dl
jne 0x1411f40b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411f40c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411f40d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411f40dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1411f40ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1411f407e
mov eax, 1
add dl, dl
jne 0x1411f4106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411f4113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411f40fb
sub eax, ebx
mov ebx, 1
jne 0x1411f414c
mov ecx, 1
add dl, dl
jne 0x1411f412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411f413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411f4123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411f407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1411f4168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411f4175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411f415d
cmp eax, 0x7d00
jae 0x1411f419b
cmp eax, 0x500
jb 0x1411f4196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411f407e
cmp eax, 0x7f
ja 0x1411f419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411f407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1411f41d2
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 0x1411f407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400d2e6f
Capabilities:
Hash data using fnv

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

Disassembly:
jmp 0x140280510
mov rax, rcx
neg rcx
test rax, 7
je 0x14028052d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140280588
test al, 7
jne 0x140280520
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 0x140280541
mov rdx, qword [rax - 8]
test dl, dl
je 0x1402805b2
test dh, dh
je 0x1402805ac
shr rdx, 0x10
test dl, dl
je 0x1402805a6
test dh, dh
je 0x1402805a0
shr rdx, 0x10
test dl, dl
je 0x14028059a
test dh, dh
je 0x140280594
shr edx, 0x10
test dl, dl
je 0x14028058e
test dh, dh
jne 0x140280541
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 0x1400d453f
Capabilities:
Query environment variable

Disassembly:
jmp 0x14025d340
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14025cec0
lea rcx, [rsp + 0x20]
call fcn.14025cf10
movzx eax, al
test eax, eax
jne 0x14025d385
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14025cef0
mov rax, qword [rsp + 0x40]
jmp 0x14025d47f
lea rcx, [rsp + 0x20]
call fcn.14025d010
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14025cfb0
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.1400d48b9
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400d3ecd
lea rcx, [rsp + 0x28]
call fcn.1400d4d91
movzx eax, al
test eax, eax
jne 0x14025d41f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400d629a
lea rcx, [rsp + 0x20]
call fcn.14025cef0
mov rax, qword [rsp + 0x50]
jmp 0x14025d47f
lea rcx, [rsp + 0x20]
call fcn.14025d010
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400d727b
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.1400d4800
lea rcx, [rsp + 0x28]
call fcn.1400d7bfe
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400d629a
lea rcx, [rsp + 0x20]
call fcn.14025cef0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400d4a58
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401a8300
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401a7c80
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401a833f
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 [0x1402f6020]
jmp 0x1401a8349
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400d4cbf
Capabilities:
Query environment variable

Disassembly:
jmp 0x14025d090
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14025cec0
lea rcx, [rsp + 0x40]
call fcn.14025d040
movzx eax, al
test eax, eax
jne 0x14025d0d8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14025cef0
mov rax, qword [rsp + 0x70]
jmp 0x14025d2a9
lea rcx, [rsp + 0x40]
call fcn.14025d010
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14025cfb0
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.14025d010
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.1400d5ebc
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14025d17e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14025cef0
mov rax, qword [rsp + 0x80]
jmp 0x14025d2a9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400d48b9
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400d469d
lea rcx, [rsp + 0x48]
call fcn.1400d40df
movzx eax, al
test eax, eax
jne 0x14025d1e5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400d2ce9
lea rcx, [rsp + 0x40]
call fcn.14025cef0
mov rax, qword [rsp + 0x88]
jmp 0x14025d2a9
lea rcx, [rsp + 0x48]
call fcn.1400d51bf
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14025d010
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.1400d5ebc
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14025d27b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400d2ce9
lea rcx, [rsp + 0x40]
call fcn.14025cef0
mov rax, qword [rsp + 0xa0]
jmp 0x14025d2a9
lea rcx, [rsp + 0x48]
call fcn.1400d4657
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400d2ce9
lea rcx, [rsp + 0x40]
call fcn.14025cef0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400d4cd8
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401a8230
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401a7c00
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401a8271
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 [0x1402f6020]
jmp 0x1401a8277
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400d4d9b
Capabilities:
Get geographical location

Disassembly:
jmp 0x14023b030
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.140239ed0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14023b08c
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.1400d7be0
jmp 0x14023b0ae
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400d4053
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 0x1400d4daf
Capabilities:
Terminate process

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

Disassembly:
jmp 0x14026a9f0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1402d8040]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14026aa19
jmp 0x14026aa9e
mov rcx, qword [rbp + 0x30]
call fcn.1400d44f9
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14026aa32
jmp 0x14026aa9e
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14026aa4f
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400d2f1e
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.1400d351d
test eax, eax
jne 0x14026aa9e
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400d47dd
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400d559d
Capabilities:
Set environment variable

Disassembly:
jmp 0x14025f1f0
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 0x1400d58e0
Capabilities:
Parse pe header

Disassembly:
jmp 0x140187640
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140187660
xor al, al
jmp 0x1401876e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140187673
xor al, al
jmp 0x1401876e1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14018769d
xor al, al
jmp 0x1401876e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1401876b1
xor al, al
jmp 0x1401876e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1401876c3
xor al, al
jmp 0x1401876e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1401876df
xor al, al
jmp 0x1401876e1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400d6182
Capabilities:
Terminate process

Disassembly:
jmp 0x1401a9300
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1401a932e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400d6d67
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400d6de4
Capabilities:
Print debug messages

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