joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a17d0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140166028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140178780]
mov ecx, dword [0x140175c44]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400a1830
mov rsi, qword [0x140178778]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400c59b0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140178780]
call fcn.1400c47c0
cmp dword [0x140178780], 0xffffffff
jne 0x1400a180c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400c7ad0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1400c4664
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401787c8]
mov ecx, dword [0x140175c44]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400a18f0
lea r8, [0x140178798]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.140030170
mov qword [0x140178778], rsi
lea rcx, [0x140178780]
call fcn.1400c4858
jmp 0x1400a180c
lea rcx, [0x1401787c8]
call fcn.1400c47c0
cmp dword [0x1401787c8], 0xffffffff
jne 0x1400a18c1
xorps xmm0, xmm0
movups xmmword [0x1401787b8], xmm0
movups xmmword [0x1401787a8], xmm0
movups xmmword [0x140178798], xmm0
lea rcx, [0x140178798]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401787c8]
call fcn.1400c4858
jmp 0x1400a18c1

Function at 0x1400a79e0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1400a7a28
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400a7a31
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400a7a18
mov qword [rdi], rsi
call fcn.1400a33d0
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400a33d0
mov rcx, qword [rdi]
call fcn.1400ae980
mov qword [rdi], 0
jmp 0x1400a7a06
Function at 0x1400ac4b0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x140166028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.1400ac7f0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x14017ca40]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x1400ac50e
jnp 0x1400ac574
ucomisd xmm0, xmm6
jne 0x1400ac51a
jnp 0x1400ac689
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x14014f390]
subpd xmm1, xmmword [0x14014f3a0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x14014f3b0]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400c59b0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edi, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x14017ca50]
mov ecx, dword [0x140175c44]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400ac690
mov eax, dword [0x14017ca60]
mov ecx, dword [0x140175c44]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400ac6ca
rdtsc
mov rbx, rax
mov r14, rdx
xor r12d, r12d
lea r15, [rsp + 0x30]
mov qword [r15], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r13, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [r15], r12
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r13, qword [0x14017ca58]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x14014f388]
ucomisd xmm2, xmm1
ja 0x1400ac50e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x14017ca48]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x14014f390]
subpd xmm0, xmmword [0x14014f3a0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x14017ca40], xmm0
jmp 0x1400ac50e
xor eax, eax
jmp 0x1400ac54c
lea rcx, [0x14017ca50]
call fcn.1400c47c0
cmp dword [0x14017ca50], 0xffffffff
jne 0x1400ac5bd
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x14017ca48], rdx
lea rcx, [0x14017ca50]
call fcn.1400c4858
jmp 0x1400ac5bd
lea rcx, [0x14017ca60]
call fcn.1400c47c0
cmp dword [0x14017ca60], 0xffffffff
jne 0x1400ac5e2
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x14017ca58], rax
lea rcx, [0x14017ca60]
call fcn.1400c4858
jmp 0x1400ac5e2
Function at 0x1400b09d0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x1400b0a6a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400b0a54
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400b0a31
mov qword [rsi], rdi
call fcn.1400a33d0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 1
inc rax
cmp rax, 1
jbe 0x1400b0a6e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400a33d0
mov rcx, qword [rsi]
call fcn.1400ae980
mov qword [rsi], 0
jmp 0x1400b0a1f
mov byte [rsi + 8], 1
int3

Function at 0x1400b0c10
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov rbx, qword [rsi + 8]
sub rbx, rcx
sar rbx, 3
lea rdx, [rbx + 1]
mov rax, rdx
shr rax, 0x3d
jne 0x1400b0d63
movabs rax, 0x1fffffffffffffff
mov r8, qword [rsi + 0x10]
sub r8, rcx
mov r14, r8
sar r14, 2
cmp r14, rdx
cmovbe r14, rdx
movabs rcx, 0x7ffffffffffffff8
cmp r8, rcx
cmovae r14, rax
test r14, r14
je 0x1400b0d5c
cmp r14, rax
ja 0x1400b0d68
lea rcx, [r14*8]
call fcn.1400c4664
shl rbx, 3
add rbx, rax
je 0x1400b0d6d
lea rax, [rax + r14*8]
mov rcx, qword [rdi]
mov qword [rbx], rcx
mov qword [rdi], 0
lea rcx, [rbx + 8]
mov rdi, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, rdi
je 0x1400b0d31
mov r8, qword [rdx - 8]
mov qword [rbx - 8], r8
mov qword [rdx - 8], 0
lea r8, [rdx - 8]
add rbx, 0xfffffffffffffff8
mov rdx, r8
cmp r8, rdi
jne 0x1400b0cbb
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
cmp r14, rdi
je 0x1400b0d3c
add r14, 0xfffffffffffffff8
test r14, r14
je 0x1400b0d99
mov rcx, qword [r14]
mov rax, qword [0x140168020]
and rax, rcx
cmp rax, qword [0x140168008]
je 0x1400b0d2a
mov qword [r14], 0
lea rax, [r14 - 8]
cmp r14, rdi
mov r14, rax
jne 0x1400b0cf6
jmp 0x1400b0d3c
call fcn.1400a2130
jmp 0x1400b0d15
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
test rdi, rdi
jne 0x1400b0d4b
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400c46a0
xor eax, eax
jmp 0x1400b0c8d
call fcn.1400dc550
call fcn.1400f6640
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1400f6b10
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x3f
call fcn.1400f6b10
int3
Function at 0x1400b2bf0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140175968]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400b2c24
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x1400b2c24
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x1400b2c1e

Function at 0x1400b2c30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140175968]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400b2c6e
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x1400b2c67
call fcn.140078b80
jmp 0x1400b2c4e
Function at 0x1400b56c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400b57c9
mov rbx, rcx
mov rcx, qword [rcx + 8]
movsxd rax, dword [rcx + 0x3c]
cmp dword [rcx + rax + 0x84], 0
je 0x1400b57c9
add rcx, rax
xor eax, eax
cmp word [rcx + 0x14], 0x78
jb 0x1400b57f3
add rcx, 0x88
je 0x1400b57f3
mov rsi, r8
mov rdi, rdx
mov edx, dword [rcx]
mov rcx, rbx
call fcn.1400b56b0
test rax, rax
je 0x1400b57c9
cmp rdi, 0xffff
mov qword [rsp + 0x20], rsi
jbe 0x1400b57e9
mov r14, rax
mov edx, dword [rax + 0x20]
mov rcx, rbx
call fcn.1400b56b0
mov r15, rax
mov eax, dword [r14 + 0x18]
test rax, rax
je 0x1400b57c9
lea rsi, [r15 + rax*4]
lea r13, [rdi + 1]
mov rbp, r15
mov r12, rsi
sub r12, rbp
mov rax, r12
sar rax, 2
shr r12, 0x3f
add r12, rax
and r12, 0xfffffffffffffffe
mov edx, dword [rbp + r12*2]
mov rcx, rbx
call fcn.1400b56b0
mov cl, byte [rdi]
test cl, cl
je 0x1400b579d
mov rdx, r13
cmp cl, byte [rax]
jne 0x1400b579f
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x1400b578d
xor ecx, ecx
lea r12, [r12*2]
add r12, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x1400b57cd
movzx ecx, cl
sub ecx, eax
cmovs rsi, r12
add r12, 4
test ecx, ecx
cmovg rbp, r12
cmp rbp, rsi
jne 0x1400b575f
xor eax, eax
jmp 0x1400b57f3
mov edx, dword [r14 + 0x24]
mov rcx, rbx
call fcn.1400b56b0
sub r12, r15
sar r12, 1
movzx edi, word [rax + r12]
add di, word [r14 + 0x10]
mov rax, qword [rsp + 0x20]
mov word [rax], di
mov al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400ba410
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140180658]
mov ecx, dword [0x140175c44]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400ba445
lea rcx, [0x140180648]
add rsp, 0x28
jmp fcn.1400b2bf0
lea rcx, [0x140180658]
call fcn.1400c47c0
cmp dword [0x140180658], 0xffffffff
jne 0x1400ba435
xorps xmm0, xmm0
movups xmmword [0x140180648], xmm0
lea rcx, [0x140180648]
xor edx, edx
call fcn.140078d90
lea rcx, [0x140180658]
call fcn.1400c4858
jmp 0x1400ba435

Function at 0x1400bb6a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x1401806c8]
cmp rsi, 1
jbe 0x1400bb6c3
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400b2c30
lea rcx, [0x1401806c8]
call fcn.14008ce70
test al, al
je 0x1400bb708
xorps xmm0, xmm0
movups xmmword [0x1401806d0], xmm0
lea rdi, [0x1401806c8]
lea rsi, [0x1401806d0]
mov rcx, rsi
xor edx, edx
call fcn.140078d90
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14008cf30
jmp 0x1400bb6b3
mov rsi, qword [0x1401806c8]
jmp 0x1400bb6b3
Function at 0x1400bce80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x1400bceab
xor ecx, ecx
lea r9, [0x140155bd0]
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 0x1400bce90
ret

Function at 0x1400c14b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x140166028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400997e0]
mov qword [rsp + 0x20], rax
lea rcx, [0x140180780]
lea rdx, [0x140099660]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400c1544
cmp dword [0x140180788], 0
jne 0x1400c1540
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x14018078c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400c1540
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400c59b0
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x1400c1528
call fcn.1400dc550
int3

Function at 0x1400c29f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140180810]
cmp rsi, 1
jbe 0x1400c2a13
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400b2c30
lea rcx, [0x140180810]
call fcn.14008ce70
test al, al
je 0x1400c2a58
xorps xmm0, xmm0
movups xmmword [0x140180818], xmm0
lea rdi, [0x140180810]
lea rsi, [0x140180818]
mov rcx, rsi
xor edx, edx
call fcn.140078d90
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14008cf30
jmp 0x1400c2a03
mov rsi, qword [0x140180810]
jmp 0x1400c2a03

Function at 0x1400c4550
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140180880]
mov ecx, dword [0x140175c44]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c45b6
lea rcx, [0x140180870]
xor edx, edx
call fcn.1400b2c30
mov eax, dword [0x140180898]
mov ecx, dword [0x140175c44]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c45f1
lea rcx, [0x140180888]
xor edx, edx
add rsp, 0x28
jmp fcn.1400b2c30
lea rcx, [0x140180880]
call fcn.1400c47c0
cmp dword [0x140180880], 0xffffffff
jne 0x1400c4575
xorps xmm0, xmm0
movups xmmword [0x140180870], xmm0
lea rcx, [0x140180870]
xor edx, edx
call fcn.140078d90
lea rcx, [0x140180880]
call fcn.1400c4858
jmp 0x1400c4575
lea rcx, [0x140180898]
call fcn.1400c47c0
cmp dword [0x140180898], 0xffffffff
jne 0x1400c45a4
xorps xmm0, xmm0
movups xmmword [0x140180888], xmm0
lea rcx, [0x140180888]
xor edx, edx
call fcn.140078d90
lea rcx, [0x140180898]
call fcn.1400c4858
jmp 0x1400c45a4

Function at 0x1400d7c74
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400d7dc8
Function at 0x1400ee4b0
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400ee4e0
xor eax, eax
jmp 0x1400ee5a3
mov rbp, rbx
cmp word [rax], si
je 0x1400ee505
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400ee4ec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400ee4e8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400ee400
movsxd r14, eax
test eax, eax
jne 0x1400ee543
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400ee4d9
mov rcx, r14
call fcn.1400309a0
mov rdi, rax
test rax, rax
jne 0x1400ee55c
xor ecx, ecx
call fcn.1400a19c0
jmp 0x1400ee538
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400ee400
test eax, eax
jne 0x1400ee58d
mov rcx, rdi
call fcn.1400a19c0
jmp 0x1400ee597
xor ecx, ecx
call fcn.1400a19c0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400ee5c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400ee647
mov rsi, rbx
cmp word [rax], bp
je 0x1400ee606
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400ee5f0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400ee5ec
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400309a0
mov rdi, rax
test rax, rax
je 0x1400ee634
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400c7420
mov rbp, rdi
xor ecx, ecx
call fcn.1400a19c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f4a8c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400d22fc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400f4b16
cmp byte [rbp - 0x21], r15b
je 0x1400f4b11
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400f4b4c
call fcn.1400e7764
test eax, eax
jne 0x1400f4b38
cmp byte [rbp - 0x21], r15b
je 0x1400f4b30
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400f4b4c
cmp byte [rbp - 0x21], r15b
je 0x1400f4b49
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400d78d8
test eax, eax
jne 0x1400f4bec
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400d22fc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400f4b8b
cmp byte [rbp - 0x21], r15b
je 0x1400f4bc0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400f4bc0
call fcn.1400e7764
test eax, eax
jne 0x1400f4bac
cmp byte [rbp - 0x21], r15b
je 0x1400f4ba5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400f4bc0
cmp byte [rbp - 0x21], r15b
je 0x1400f4bbd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400d78d8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400f4bec
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400f4bef
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400f4bfd
mov rcx, rdi
call fcn.1400a19c0
cmp byte [rbp + 0x3f], r15b
je 0x1400f4c0c
mov rcx, qword [rbp + 0x27]
call fcn.1400a19c0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14010e5b0
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.1400c4664
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x14010e620]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.1400d7a54
mov qword [rbx], rax
test rax, rax
je 0x14010e607
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x1401175f0
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140072e20
test al, al
je 0x140117612
mov rcx, qword [rsi]
xor edx, edx
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x20
pop rsi
ret

Function at 0x14011ce20
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x140166028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x14017e9c8], 0
je 0x14011ce66
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400c59b0
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x14017e9a0]
test rdi, rdi
je 0x14011cf07
test byte [0x14017596c], 1
je 0x14011ce49
cmp byte [rdi + 0x17], 0
jns 0x14011ce88
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14017e9c8], rax
inc rax
cmp rax, 1
ja 0x14011ce49
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400c7ad0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x14011cfd2
xor esi, esi
jmp 0x14011ce49
mov ecx, 0x18
call fcn.1400c4664
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400c7ad0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x14014b720]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.140025820
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x14011cf6e
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
jmp 0x14011cf74
and eax, 0x7f
mov rcx, rdi
test rax, rax
jne 0x14011cf9a
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.140028c60
mov qword [0x14017e9a0], rdi
jmp 0x14011ce76
lea r8, [rax + rax]
test r8, r8
je 0x14011cf79
lea rdx, [r8 - 2]
cmp word [rcx + r8 - 2], 0x5c
mov r8, rdx
jne 0x14011cf9e
cmp rdx, 0xfffffffffffffffe
je 0x14011cf79
sar rdx, 1
inc rdx
cmp rax, rdx
jb 0x14011d099
mov rcx, rdi
call fcn.14010ebf0
jmp 0x14011cf79
mov rdi, qword [0x14017e9a0]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400e2e70
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.140028940
mov rcx, qword [0x14017e9a0]
call fcn.140026da0
cmp word [rax], 0x5c
je 0x14011d01f
mov rcx, qword [0x14017e9a0]
lea rdx, [0x140151ba2]
mov r8d, 1
call fcn.140028c60
mov rcx, qword [0x14017e9a0]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140028c60
mov rcx, qword [0x14017e9a0]
cmp byte [rcx + 0x17], 0
jns 0x14011d048
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14017e9c8], rax
inc rax
cmp rax, 1
ja 0x14011ce49
mov qword [0x14017e9c8], 0
jmp 0x14011cf00
call fcn.1400dc550
int3