joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ef900
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rdi, rcx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x1400ef92c
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ef95f
test al, 0x10
jne 0x1400efa41
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.1400efb40
xor edi, edi
jmp 0x1400efb15
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movzx r9d, byte [rdi + 0x17]
mov rax, rdi
test r9b, r9b
jns 0x1400ef984
mov rax, qword [rdi]
mov r9, qword [rdi + 8]
add r9, r9
test r9, r9
je 0x1400ef9e3
movzx ecx, word [rax + r9 - 2]
add r9, 0xfffffffffffffffe
cmp cx, 0x5c
je 0x1400ef9a2
cmp cx, 0x2f
jne 0x1400ef987
cmp r9, 0xfffffffffffffffe
je 0x1400ef9e3
sar r9, 1
lea rax, [rdi + 0x18]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.1400b9ce0
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
call fcn.1400ef900
test al, al
je 0x1400efa5f
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x1400efb04
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp eax, 0xb7
jne 0x1400efaf0
movabs rbp, 0x7fffffffffffffef
mov rcx, rsi
call fcn.1401d0678
cmp rax, rbp
ja 0x1400efb33
mov rbx, rax
cmp rax, 0xb
jae 0x1400efa70
lea r15, [rsp + 0x28]
mov byte [r15 + 0x17], bl
test rbx, rbx
jne 0x1400efa9a
jmp 0x1400efaab
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.1400efb40
mov dil, 1
jmp 0x1400efb15
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.1400efb40
jmp 0x1400efb02
lea r12, [rbx + 8]
and r12, 0xfffffffffffffff8
lea rcx, [r12 + r12]
call fcn.1401a2e6c
mov r15, rax
mov qword [rsp + 0x28], rax
add rbp, 0x11
or rbp, r12
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbx
mov r8, rbx
add r8, rbx
mov rcx, r15
mov rdx, rsi
call fcn.1401a6090
mov word [r15 + rbx*2], 0
cmp byte [rsp + 0x3f], 0
jns 0x1400efac0
mov rcx, qword [rsp + 0x28]
jmp 0x1400efac5
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
setne al
and ebx, 0x10
shr ebx, 4
and bl, al
cmp byte [rsp + 0x3f], 0
jns 0x1400efaec
mov rcx, qword [rsp + 0x28]
call fcn.1401a2ea8
test bl, bl
jne 0x1400efb04
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, r14d
call fcn.1400efb40
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x1400efb15
mov rcx, qword [rsp + 0x40]
call fcn.1401a2ea8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401a4270
mov eax, edi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x28]
call fcn.1400b7d50
int3
Function at 0x1400efb40
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
lea rdi, [rsp + 0x68]
mov qword [rdi], rdx
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r9
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.14019db40
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x140394820]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.1401a7d98
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401a4270
nop
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x1400f1c50
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea r9, [0x1400f1c80]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
add rsp, 0x38
ret

Function at 0x1400f1da0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 1
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400f1dc0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rdx, rcx
mov rcx, qword [0x140395030]
test rcx, rcx
je 0x1400f1dec
call fcn.14012d2a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400f3630
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xf8
movaps xmmword [rsp + 0xe0], xmm6
mov rcx, r9
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0xd8], rax
call fcn.14012d7d0
test al, al
jne 0x1400f371c
call fcn.14007f690
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x28]
mov rcx, rax
mov rax, rdx
call qword [case.0x1401f58d0.0]
test al, al
je 0x1400f371c
xorps xmm6, xmm6
lea rsi, [rsp + 0x70]
movaps xmmword [rsi], xmm6
movaps xmmword [rsi + 0x50], xmm6
movaps xmmword [rsi + 0x40], xmm6
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
mov qword [rsi + 0x60], 0
mov dword [rsi], 0x68
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140232ef0]
movaps xmmword [rdi], xmm0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rsi
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 0
xor ecx, ecx
mov rdx, rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400f371c
mov rcx, qword [rsp + 0x50]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rsp + 0x58]
call rsi
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1401a4270
mov al, 1
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rdi
pop rsi
ret
Function at 0x1400fbca0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x54], 0
cmp qword [rdx + 8], 0
je 0x1400fbd51
movups xmm0, xmmword [rdx]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
lea rdx, [rsp + 0x54]
call fcn.1400d4470
test al, al
je 0x1400fbd51
movsxd rbx, dword [rsp + 0x54]
mov qword [rsp + 0x28], 0
test rbx, rbx
je 0x1400fbd1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400fbd14
mov qword [rsp + 0x28], rbx
call fcn.1400c5840
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.1400fbf40
mov rcx, rsi
mov rdx, rdi
call fcn.1400fbe10
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401a4270
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
call fcn.1400fbdf0
jmp 0x1400fbd39

Function at 0x1400fbe90
Capabilities:
Check if file exists

Disassembly:
mov dword [rcx], 0
mov qword [rcx + 8], 0
jmp fcn.1400fbeb0

Function at 0x1400fbeb0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [rdx]
mov dword [rcx], eax
mov dword [rdx], 0
mov rbx, qword [rdx + 8]
mov qword [rdx + 8], 0
lea rdi, [rbx + 1]
cmp rdi, 2
jb 0x1400fbee0
call fcn.1400c5840
cmp qword [rsi + 8], rbx
je 0x1400fbf28
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jb 0x1400fbf11
call fcn.1400c5840
mov rcx, qword [rsi + 8]
call fcn.1400e21b0
mov qword [rsi + 8], 0
cmp rdi, 2
jb 0x1400fbf20
mov qword [rsi + 8], rbx
call fcn.1400c5840
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x1400fbf40
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov dword [rcx], 1
xor eax, eax
mov qword [rcx + 8], rax
mov rbx, qword [rdx]
mov qword [rdx], rax
lea rbp, [rbx + 1]
cmp rbp, 2
jb 0x1400fbf71
call fcn.1400c5840
cmp qword [rsi + 8], rbx
je 0x1400fbfbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jb 0x1400fbfa3
call fcn.1400c5840
mov rcx, qword [rsi + 8]
call fcn.1400e21b0
mov qword [rsi + 8], 0
cmp rbp, 2
jb 0x1400fbfb2
mov qword [rsi + 8], rbx
call fcn.1400c5840
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rdi]
inc rax
cmp rax, 2
jb 0x1400fbfdb
call fcn.1400c5840
mov rcx, qword [rdi]
call fcn.1400e21b0
mov qword [rdi], 0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x1400fc0f0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp dword [rdx], 0x10
jb 0x1400fc118
mov eax, dword [rdx + 4]
cmp eax, 3
je 0x1400fc13e
test eax, eax
mov dword [rsi], 0
mov qword [rsi + 8], 0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401a4270
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [rdx + 8]
mov rcx, rax
shl rcx, 0x20
mov qword [rsp + 0x20], 0
je 0x1400fc17b
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400fc173
mov qword [rsp + 0x20], rbx
call fcn.1400c5840
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400fbf40
jmp 0x1400fc126

Function at 0x1401028e0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
mov r15, qword [rsp + 0x120]
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rax, qword [rcx]
inc rax
cmp rax, 1
ja 0x1401029b0
mov r14d, r9d
mov ebp, edx
mov rsi, rcx
xor ecx, ecx
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov rbx, rax
cmp qword [rsi], rax
je 0x14010297d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14010295e
call fcn.1400c5840
mov rcx, qword [rsi]
call fcn.1400e21b0
mov qword [rsi], 0
mov rax, rbx
inc rax
cmp rax, 2
jb 0x140102972
mov qword [rsi], rbx
call fcn.1400c5840
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi]
lea rax, [rbx + 1]
cmp rax, 1
ja 0x1401029ba
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1401a4270
nop
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x4df
jmp case.0x1401029fd.4
xor r12d, r12d
lea rcx, [rsp + 0x28]
mov r8d, 0x90
xor edx, edx
call fcn.1401a64a0
cmp ebp, 4
ja case.default.0x1401029fd
mov edi, 0xa0
mov eax, 0xc8
mov r8d, 0xd8
mov r9d, 8
mov ecx, ebp
lea rbp, [0x140102ab4]
movsxd rdx, dword [rbp + rcx*4]
add rdx, rbp
xor ecx, ecx
jmp rdx
mov r8d, 0xff
mov r9d, 0x408
mov dword [rsp + 0x50], 1
mov r12d, r9d
mov eax, r8d
mov ecx, r12d
mov dword [rsp + 0x20], eax
mov r12d, eax
test r15, r15
je 0x140102a36
or ecx, 0x100
mov qword [rsp + 0x98], r15
or ecx, 0x2000
mov dword [rsp + 0x38], ecx
lea r8, [rsp + 0x28]
mov rcx, rbx
mov edx, 9
mov r9d, 0x90
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
je 0x140102a85
not r14d
and r12d, r14d
lea r8, [rsp + 0x20]
mov dword [r8], r12d
mov rcx, qword [rsi]
mov edx, 4
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
xor edi, edi
test eax, eax
jne case.0x1401029fd.4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1401a4270
mov eax, edi
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14010d8e0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, r8
mov r14, rdx
mov r12, rcx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov ebx, 0xffffffff
lea r15, [rsp + 0x34]
mov r13, qword [sym.imp.KERNEL32.dll_WriteFile]
mov rsi, rcx
cmp rcx, rdi
jae 0x14010d969
mov dword [rsp + 0x34], 0xaaaaaaaa
mov r8, rdi
sub r8, rsi
cmp r8, rbx
cmovae r8, rbx
lea rdx, [r14 + rsi]
mov qword [rsp + 0x20], 0
mov rcx, r12
mov r9, r15
call r13
test eax, eax
mov ecx, dword [rsp + 0x34]
cmove ecx, eax
add rcx, rsi
test eax, eax
jne 0x14010d91a
xor eax, eax
cmp rsi, 1
sbb eax, eax
or eax, esi
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401a4270
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14010d990
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, r8
mov r14, rdx
mov r12, rcx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov ebx, 0xffffffff
lea r15, [rsp + 0x34]
mov r13, qword [sym.imp.KERNEL32.dll_ReadFile]
mov rsi, rcx
cmp rcx, rdi
jae 0x14010da19
mov dword [rsp + 0x34], 0xaaaaaaaa
mov r8, rdi
sub r8, rsi
cmp r8, rbx
cmovae r8, rbx
lea rdx, [r14 + rsi]
mov qword [rsp + 0x20], 0
mov rcx, r12
mov r9, r15
call r13
test eax, eax
mov ecx, dword [rsp + 0x34]
cmove ecx, eax
add rcx, rsi
test eax, eax
jne 0x14010d9ca
xor eax, eax
cmp rsi, 1
sbb eax, eax
or eax, esi
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401a4270
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14010e300
Capabilities:
Create thread
Resume thread

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rdi, rcx
mov rcx, r9
shr rcx, 0x20
je 0x14010e32f
call fcn.1401bae2c
mov r8d, dword [rax]
lea rdx, str.NaClThreadCtor:__beginthreadex_failed__stack_request_out_of_range_n
mov ecx, 0xfffffffd
call fcn.1401f7e70
xor esi, esi
jmp 0x14010e386
mov rax, r8
mov r8, rdx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
xor esi, esi
xor ecx, ecx
mov edx, r9d
mov r9, rax
call fcn.1401b6e38
test rax, rax
je 0x14010e36d
mov qword [rdi], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, 1
jmp 0x14010e386
call fcn.1401bae2c
mov r8d, dword [rax]
lea rdx, str.NaClThreadCtor:__beginthreadex_failed__errno__d_n
mov ecx, 0xfffffffd
call fcn.1401f7e70
mov eax, esi
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x14010e5a0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x170], rax
movaps xmm0, xmmword [0x140232ef0]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdi, [rsp + 0x5c]
xor esi, esi
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call fcn.1401a64a0
mov dword [rdi - 4], 0x114
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14010e631
cmp dword [rsp + 0x5c], 5
jb 0x14010e631
jne 0x14010e60e
cmp dword [rsp + 0x60], 0
je 0x14010e631
lea rsi, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsi]
cmp ax, 9
sete cl
test ax, ax
sete al
or al, cl
movzx esi, al
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1401a4270
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret

Function at 0x14010e880
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
movzx eax, byte [r8 + 0x17]
test al, al
mov rcx, qword [r8]
cmovns rcx, r8
lea rdx, [rsp + 0x60]
mov qword [rdx], rcx
cmovs rax, qword [r8 + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x70]
mov rcx, rsi
call fcn.14019f320
cmp byte [rsi + 0x17], 0
jns 0x14010e8db
mov rsi, qword [rsp + 0x70]
movaps xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x48]
mov rcx, rdi
call fcn.14019f320
cmp byte [rdi + 0x17], 0
jns 0x14010e900
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [rsp + 0x5f], 0
jns 0x14010e91f
mov rcx, qword [rsp + 0x48]
call fcn.1401a2ea8
cmp byte [rsp + 0x87], 0
jns 0x14010e933
mov rcx, qword [rsp + 0x70]
call fcn.1401a2ea8
test esi, esi
setne bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1401a4270
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x14010e960
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x58
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.14019f320
cmp byte [rsi + 0x17], 0
jns 0x14010e998
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [rsp + 0x4f], 0
jns 0x14010e9b6
mov rcx, qword [rsp + 0x38]
call fcn.1401a2ea8
test esi, esi
setne bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401a4270
mov eax, ebx
add rsp, 0x58
pop rbx
pop rsi
ret

Function at 0x14010e9e0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x58]
mov rcx, rdi
call fcn.14019f320
cmp byte [rdi + 0x17], 0
jns 0x14010ea21
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x6f], 0
jns 0x14010ea42
mov rcx, qword [rsp + 0x58]
call fcn.1401a2ea8
test r14, r14
je 0x14010eaf1
test edi, edi
je 0x14010eaf1
mov ecx, edi
add rcx, rcx
call fcn.1401a2edc
mov rbx, rax
movups xmm0, xmmword [rsi]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rsi, [rsp + 0x58]
mov rcx, rsi
call fcn.14019f320
cmp byte [rsi + 0x17], 0
jns 0x14010ea83
mov rsi, qword [rsp + 0x58]
mov rcx, rsi
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x6f], 0
jns 0x14010eaa3
mov rcx, qword [rsp + 0x58]
call fcn.1401a2ea8
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x14010eb0f
mov rcx, rbx
call fcn.1401d0678
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.14019f5b0
cmp byte [r14 + 0x17], 0
jns 0x14010ead7
mov rcx, qword [r14]
call fcn.1401a2ea8
mov rax, qword [rsp + 0x68]
mov qword [r14 + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [r14], xmm0
mov rcx, rbx
call fcn.1401a2ee4
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401a4270
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
int3

Function at 0x140110b80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x140110bab
xor ecx, ecx
lea r9, [0x140249550]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x140110b90
ret
Function at 0x1401182a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140396930]
mov ecx, dword [0x14036bfd8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401182d5
lea rcx, [0x140396928]
add rsp, 0x28
jmp fcn.1400d8da0
lea rcx, [0x140396930]
call fcn.1401a2fc0
cmp dword [0x140396930], 0xffffffff
jne 0x1401182c5
mov qword [0x140396928], 0
lea rcx, [0x140396928]
xor edx, edx
call fcn.1400d8e30
lea rcx, [0x140396930]
call fcn.1401a3058
jmp 0x1401182c5

Function at 0x1401191c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rcx + 0x30]
lea rdx, [rsi + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0x90]
call qword [case.0x1401f58d0.0]
mov byte [rsi + 0x431], 1
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
call qword [case.0x1401f58d0.0]
test rax, rax
je 0x140119232
mov eax, dword [0x140396930]
mov ecx, dword [0x14036bfd8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140119239
lea rcx, [0x140396928]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.1400d8de0
nop
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140396930]
call fcn.1401a2fc0
cmp dword [0x140396930], 0xffffffff
jne 0x14011921e
mov qword [0x140396928], 0
lea rcx, [0x140396928]
xor edx, edx
call fcn.1400d8e30
lea rcx, [0x140396930]
call fcn.1401a3058
jmp 0x14011921e
Function at 0x14011e640
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 8]
cmp rbx, qword [rcx]
je 0x14011e667
mov r14, rbx
jmp 0x14011e757
mov r15, qword [rsi + 0x10]
mov rax, qword [rsi + 0x18]
cmp r15, rax
jae 0x14011e6bc
sub rax, r15
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r12, [rax + rcx]
inc r12
sar r12, 1
lea r14, [r15 + r12*8]
sub r15, rbx
je 0x14011e6ab
sub r14, r15
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.1401a6090
mov rbx, qword [rsi + 0x10]
mov qword [rsi + 8], r14
lea rax, [rbx + r12*8]
mov qword [rsi + 0x10], rax
jmp 0x14011e757
mov rcx, rax
sub rcx, rbx
sar rcx, 2
cmp rax, rbx
mov r13d, 1
cmovne r13, rcx
mov rax, r13
shr rax, 0x3d
jne 0x14011e774
lea r12, [r13 + 3]
shr r12, 2
lea rcx, [r13*8]
call fcn.1401a2e6c
lea r14, [rax + r12*8]
lea r8, [rax + r13*8]
mov r9, r14
sub r15, rbx
je 0x14011e737
mov r10, rdi
mov rcx, r15
sar rcx, 3
and r15, 0xfffffffffffffff8
mov r9, r15
add r9, r14
shl rcx, 3
lea rdx, [rax + r12*8]
xor edi, edi
mov rbp, qword [rbx + rdi]
mov qword [rdx + rdi], rbp
add rdi, 8
cmp rcx, rdi
jne 0x14011e723
mov rdi, r10
mov qword [rsi], rax
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r9
mov qword [rsi + 0x18], r8
test rbx, rbx
je 0x14011e757
mov rcx, rbx
call fcn.1401a2ea8
mov r14, qword [rsi + 8]
mov rax, qword [rdi]
mov qword [r14 - 8], rax
add qword [rsi + 8], 0xfffffffffffffff8
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1401bfdb0
int3

Function at 0x140120530
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140120545
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret