joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000cc10
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x14000ccb0
jmp 0x14000cc9f
jae 0x14000cd70
cmp r8, 0x201
jae 0x14000ccb0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14000cd08
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14000ccdf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140025270
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14000cd31
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000cdd8
mov r8d, r14d
cmp r15, r8
jne 0x14000cc90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000ce05
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000cc9f
jmp 0x14000ccb0
cmp rsi, r8
jb 0x14000ce1f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14000f500
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x14000cdc1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.1400042e0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x14000cda9
jmp 0x14000cdc1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.1400260b0
jmp 0x14000ce34
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140026500
ud2
Function at 0x140013f60
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14002a258]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140013fa4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x140014003
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140014012
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14001404a
cmp eax, 0x103
je 0x140014054
test eax, eax
js 0x14001402f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14001404a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14000ef70
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14000afd0
mov ecx, 7
int 0x29
ud2
Function at 0x1400140c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14002a258]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140014104
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14001416a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400141a1
test eax, eax
js 0x14001417b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140014194
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14000ef70
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14000afd0
mov ecx, 7
int 0x29
ud2

Function at 0x140014af0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140014b28
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.140014b40
nop
add rsp, 0x38
ret

Function at 0x140014b40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140014b83
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14000d7b0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syspalwindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140025fe0
ud2
Function at 0x140022840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400228ba
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400228b0
cmp r11, r10
ja 0x140022945
cmp r10, rdx
ja 0x140022957
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400228b2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140022890
jmp 0x140022927
ja 0x1400228ba
mov r11, r10
cmp rax, r8
jne 0x140022862
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14002292b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140022900
mov r8, r10
sub ecx, r9d
jns 0x14002291e
jmp 0x14002292d
cmp r10, rdx
je 0x140022939
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002292d
xor al, 1
cmp r8, rdx
jne 0x1400228e0
jmp 0x14002292d
xor eax, eax
jmp 0x14002292d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140025f50
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140026580
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140026500
int3

Function at 0x140023ef0
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b594
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b594
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027dd4
cmp rax, 0xffffffffffffffff
je 0x140027dd4
xor edi, edi
test rbp, rbp
jle 0x140027d7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dea8
mov rbx, rax
test rax, rax
jne 0x140027d0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027d75
mov edx, 0x8000
mov ecx, r14d
call fcn.140018f00
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c270
cmp eax, 0xffffffff
je 0x140027d55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027d1c
mov edx, r15d
mov ecx, r14d
call fcn.140018f00
jmp 0x140027d75
cmp byte [rsi + 0x38], dil
je 0x140027d6c
cmp dword [rsi + 0x34], 5
jne 0x140027d6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027d75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019c58
jmp 0x140027de8
jns 0x140027de8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b594
cmp rax, 0xffffffffffffffff
jne 0x140027da0
cmp byte [rsi + 0x30], dil
je 0x140027de8
mov edi, dword [rsi + 0x2c]
jmp 0x140027de8
mov ecx, r14d
call fcn.140017a2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027de8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027de8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027de1
mov eax, dword [rsi + 0x2c]
jmp 0x140027de6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b594
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140028ee0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140028f08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140028f08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400019d0
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x140498bcd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140498bdd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140498bc5
lea eax, [rcx + 1]
jmp 0x140498beb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140498bfe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140498be4
sub eax, 3
jb 0x140498c1e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140498c6d
sar eax, 1
movsxd rbp, eax
jb 0x140498c54
jmp 0x140498c2c
add ebx, ebx
jne 0x140498c2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140498c54
inc ecx
add ebx, ebx
jne 0x140498c3a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140498c54
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140498c4d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140498c3c
add ecx, 2
jmp 0x140498c59
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140498b82
jmp 0x140498bcd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1fa000
mov dl, 0x46
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140498cbd
cmp rsi, rcx
jae 0x140498cc5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140498ca4
cmp al, 0x8f
ja 0x140498ca4
cmp byte [rsi - 2], 0xf
je 0x140498caa
sub al, 0xe8
cmp al, 1
ja 0x140498c8e
cmp rsi, rcx
jae 0x140498cc5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140498c94
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140498cc5
lodsb al, byte [rsi]
jmp 0x140498ca4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x474000]
mov eax, dword [rdi]
or eax, eax
je 0x140498d2e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4a6358]
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 0x140498cd2
jns 0x140498d07
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140498d11
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 0x140498d28
mov qword [rbx], rax
add rbx, 8
jmp 0x140498cf2
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 0x140498d72
cmp al, 0xef
ja 0x140498d5a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140498d3a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140498d49
mov eax, dword [rdi]
add rdi, 4
jmp 0x140498d49
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 + 0x24f]
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 0x140498dc6
sub rsp, 0xffffffffffffff80
jmp 0x1401d7524
Function at 0x1400e923e
Capabilities:
Hash data using fnv

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

Disassembly:
jmp 0x1402c5bc0
mov rax, rcx
neg rcx
test rax, 7
je 0x1402c5bdd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1402c5c38
test al, 7
jne 0x1402c5bd0
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 0x1402c5bf1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1402c5c62
test dh, dh
je 0x1402c5c5c
shr rdx, 0x10
test dl, dl
je 0x1402c5c56
test dh, dh
je 0x1402c5c50
shr rdx, 0x10
test dl, dl
je 0x1402c5c4a
test dh, dh
je 0x1402c5c44
shr edx, 0x10
test dl, dl
je 0x1402c5c3e
test dh, dh
jne 0x1402c5bf1
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 0x1400eaf3f
Capabilities:
Query environment variable

Disassembly:
jmp 0x1402a26f0
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1402a2270
lea rcx, [rsp + 0x20]
call fcn.1402a22c0
movzx eax, al
test eax, eax
jne 0x1402a2735
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1402a22a0
mov rax, qword [rsp + 0x40]
jmp 0x1402a282f
lea rcx, [rsp + 0x20]
call fcn.1402a23c0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1402a2360
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.1400eb3b3
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400ea70b
lea rcx, [rsp + 0x28]
call fcn.1400eb9e9
movzx eax, al
test eax, eax
jne 0x1402a27cf
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400ed3ac
lea rcx, [rsp + 0x20]
call fcn.1402a22a0
mov rax, qword [rsp + 0x50]
jmp 0x1402a282f
lea rcx, [rsp + 0x20]
call fcn.1402a23c0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400ee72f
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.1400eb2c8
lea rcx, [rsp + 0x28]
call fcn.1400ef364
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400ed3ac
lea rcx, [rsp + 0x20]
call fcn.1402a22a0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400eb5c5
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401eb440
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401eadc0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401eb47f
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 [0x140384020]
jmp 0x1401eb489
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400eb8ea
Capabilities:
Query environment variable

Disassembly:
jmp 0x1402a2440
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1402a2270
lea rcx, [rsp + 0x40]
call fcn.1402a23f0
movzx eax, al
test eax, eax
jne 0x1402a2488
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1402a22a0
mov rax, qword [rsp + 0x70]
jmp 0x1402a2659
lea rcx, [rsp + 0x40]
call fcn.1402a23c0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1402a2360
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.1402a23c0
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.1400ecede
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1402a252e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1402a22a0
mov rax, qword [rsp + 0x80]
jmp 0x1402a2659
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400eb3b3
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400eb0f2
lea rcx, [rsp + 0x48]
call fcn.1400ea9a9
movzx eax, al
test eax, eax
jne 0x1402a2595
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400e906d
lea rcx, [rsp + 0x40]
call fcn.1402a22a0
mov rax, qword [rsp + 0x88]
jmp 0x1402a2659
lea rcx, [rsp + 0x48]
call fcn.1400ebf0c
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1402a23c0
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.1400ecede
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1402a262b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400e906d
lea rcx, [rsp + 0x40]
call fcn.1402a22a0
mov rax, qword [rsp + 0xa0]
jmp 0x1402a2659
lea rcx, [rsp + 0x48]
call fcn.1400eb0a2
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400e906d
lea rcx, [rsp + 0x40]
call fcn.1402a22a0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400eb903
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401eb370
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401ead40
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401eb3b1
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 [0x140384020]
jmp 0x1401eb3b7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400eb9ee
Capabilities:
Get geographical location

Disassembly:
jmp 0x140281650
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.1402804f0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1402816ac
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.1400ef332
jmp 0x1402816ce
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400ea8f5
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 0x1400eba0c
Capabilities:
Terminate process

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