joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008fcc0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
mov al, byte [0x1401a1f18]
test al, 1
je 0x14008fcf2
call fcn.140095d00
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140093c00
test rsi, rsi
je 0x14008fd1f
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14008fd29
add rdi, rbx
sub rsi, rbx
jne 0x14008fcfd
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x140095a40
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140095a69
xor eax, eax
xor r9d, r9d
nop word [rax + rax]
movzx r10d, byte [rdx + rax]
xor r10b, byte [rcx + rax]
or r9b, r10b
inc rax
cmp r8, rax
jne 0x140095a50
movzx eax, r9b
ret
xor eax, eax
ret

Function at 0x140097a30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x1401a3e48]
cmp rsi, 1
jbe 0x140097a53
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14008e800
lea rcx, [0x1401a3e48]
call fcn.140057240
test al, al
je 0x140097a98
xorps xmm0, xmm0
movups xmmword [0x1401a3e50], xmm0
lea rdi, [0x1401a3e48]
lea rsi, [0x1401a3e50]
mov rcx, rsi
xor edx, edx
call fcn.140048510
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.140057300
jmp 0x140097a43
mov rsi, qword [0x1401a3e48]
jmp 0x140097a43

Function at 0x14009f710
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401a3f20]
mov ecx, dword [0x140198954]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14009f745
lea rcx, [0x1401a3f10]
add rsp, 0x28
jmp fcn.14008e7c0
lea rcx, [0x1401a3f20]
call fcn.1400b3f20
cmp dword [0x1401a3f20], 0xffffffff
jne 0x14009f735
xorps xmm0, xmm0
movups xmmword [0x1401a3f10], xmm0
lea rcx, [0x1401a3f10]
xor edx, edx
call fcn.140048510
lea rcx, [0x1401a3f20]
call fcn.1400b3fb8
jmp 0x14009f735
Function at 0x14009f780
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov r14, qword [rsi + 8]
sub r14, rcx
sar r14, 3
lea rdx, [r14 + 1]
mov rax, rdx
shr rax, 0x3d
jne 0x14009f8e0
movabs rax, 0x1fffffffffffffff
movabs rbx, 0x7ffffffffffffff8
mov r8, qword [rsi + 0x10]
sub r8, rcx
mov r15, r8
sar r15, 2
cmp r15, rdx
cmovbe r15, rdx
cmp r8, rbx
cmovae r15, rax
test r15, r15
je 0x14009f8d9
cmp r15, rax
ja 0x14009f8e5
lea rcx, [r15*8]
call fcn.1400b3dc4
shl r14, 3
add r14, rax
je 0x14009f8ea
lea rax, [rax + r15*8]
mov rcx, qword [rdi]
mov qword [r14], rcx
mov qword [rdi], 0
lea rcx, [r14 + 8]
mov rdi, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, rdi
je 0x14009f8aa
mov r8, qword [rdx - 8]
mov qword [r14 - 8], r8
mov qword [rdx - 8], 0
lea r8, [rdx - 8]
add r14, 0xfffffffffffffff8
mov rdx, r8
cmp r8, rdi
jne 0x14009f82d
mov rdi, qword [rsi]
mov r15, qword [rsi + 8]
mov qword [rsi], r14
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
cmp r15, rdi
je 0x14009f8b5
add r15, 0xfffffffffffffff8
add rbx, 7
test r15, r15
je 0x14009f916
mov rcx, qword [r15]
and rcx, rbx
mov rax, qword [0x14018b0e0]
and rax, rcx
cmp rax, qword [0x14018b0c8]
je 0x14009f8a3
mov qword [r15], 0
lea rax, [r15 - 8]
cmp r15, rdi
mov r15, rax
jne 0x14009f86c
jmp 0x14009f8b5
call fcn.140082c40
jmp 0x14009f88e
mov qword [rsi], r14
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
test rdi, rdi
jne 0x14009f8c6
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1400b3e00
xor eax, eax
jmp 0x14009f7ff
call fcn.1400c9320
call fcn.1400e6310
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.1400e78a0
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.1400e78a0
int3

Function at 0x1400a0590
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x140189028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400609b0]
lea r8, [rsp + 0x20]
mov qword [r8], rax
lea rcx, [0x1401a3f38]
lea rdx, [0x140060800]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400a0622
cmp dword [0x1401a3f40], 0
jne 0x1400a061e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x1401a3f44]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400a061e
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b51f0
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x1400a0606
call fcn.1400c9320
int3
Function at 0x1400a4630
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401a4090]
mov ecx, dword [0x140198954]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400a4696
lea rcx, [0x1401a4080]
xor edx, edx
call fcn.14008e800
mov eax, dword [0x1401a40a8]
mov ecx, dword [0x140198954]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400a46d1
lea rcx, [0x1401a4098]
xor edx, edx
add rsp, 0x28
jmp fcn.14008e800
lea rcx, [0x1401a4090]
call fcn.1400b3f20
cmp dword [0x1401a4090], 0xffffffff
jne 0x1400a4655
xorps xmm0, xmm0
movups xmmword [0x1401a4080], xmm0
lea rcx, [0x1401a4080]
xor edx, edx
call fcn.140048510
lea rcx, [0x1401a4090]
call fcn.1400b3fb8
jmp 0x1400a4655
lea rcx, [0x1401a40a8]
call fcn.1400b3f20
cmp dword [0x1401a40a8], 0xffffffff
jne 0x1400a4684
xorps xmm0, xmm0
movups xmmword [0x1401a4098], xmm0
lea rcx, [0x1401a4098]
xor edx, edx
call fcn.140048510
lea rcx, [0x1401a40a8]
call fcn.1400b3fb8
jmp 0x1400a4684

Function at 0x1400a4820
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x1401a40b0]
cmp rsi, 1
jbe 0x1400a4843
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14008e800
lea rcx, [0x1401a40b0]
call fcn.140057240
test al, al
je 0x1400a4888
xorps xmm0, xmm0
movups xmmword [0x1401a40b8], xmm0
lea rdi, [0x1401a40b0]
lea rsi, [0x1401a40b8]
mov rcx, rsi
xor edx, edx
call fcn.140048510
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.140057300
jmp 0x1400a4833
mov rsi, qword [0x1401a40b0]
jmp 0x1400a4833

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

Disassembly:
mov eax, ecx
test r8, r8
je 0x1400a4d0b
xor ecx, ecx
lea r9, [0x140177450]
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 0x1400a4cf0
ret
Function at 0x1400c3a60
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.1400daa30
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400daa30
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400c3bb0
cmp rax, 0xffffffffffffffff
je 0x1400c3bb0
xor edi, edi
test rbp, rbp
jle 0x1400c3b5b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140081c80
mov rbx, rax
test rax, rax
jne 0x1400c3ae8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400c3b51
mov edx, 0x8000
mov ecx, r14d
call fcn.1400c93f8
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.1400ccf7c
cmp eax, 0xffffffff
je 0x1400c3b31
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400c3af8
mov edx, r15d
mov ecx, r14d
call fcn.1400c93f8
jmp 0x1400c3b51
cmp byte [rsi + 0x38], dil
je 0x1400c3b48
cmp dword [rsi + 0x34], 5
jne 0x1400c3b48
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400c3b51
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140081be0
jmp 0x1400c3bc4
jns 0x1400c3bc4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400daa30
cmp rax, 0xffffffffffffffff
jne 0x1400c3b7c
cmp byte [rsi + 0x30], dil
je 0x1400c3bc4
mov edi, dword [rsi + 0x2c]
jmp 0x1400c3bc4
mov ecx, r14d
call fcn.1400c734c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400c3bc4
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 0x1400c3bc4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400c3bbd
mov eax, dword [rsi + 0x2c]
jmp 0x1400c3bc2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400daa30
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 0x1400c6e8c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400b5190
sub rsp, rax
mov rax, qword [0x140189028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400c6a80
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400c6edb
mov rax, rbp
jmp 0x1400c6fe3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x199850]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400daad4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x199850]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400c6fdf
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400c6fdf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400daad4
test rax, rax
js 0x1400c6fdf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400c6fdf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400c6fd1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400c6fd1
cmp byte [rcx], 0xd
jne 0x1400c6fb7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400c6fc6
cmp byte [rcx + 1], 0xa
jne 0x1400c6fc6
inc rcx
jmp 0x1400c6fc6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x189310]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400c6f99
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400c6fe3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400b51f0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400c8fc0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140199850]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400c901e
cmp word [rdx], r12w
jne 0x1400c901e
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400c9024
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400c917f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400c915a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400c905d
mov rcx, r9
jmp 0x1400c9080
cmp r9, rdx
jae 0x1400c9097
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400c9041
jmp 0x1400c917f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400c9154
cmp dword [rsp + 0x80], edi
je 0x1400c9154
mov rdx, r14
lea r11, [0x140199850]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400c912d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400c9100
mov word [rbx], r12w
jmp 0x1400c917b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400c9109
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400c917b
cmp word [rsp + 0x70], r12w
jne 0x1400c913a
cmp rbx, rsi
je 0x1400c90fa
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400daa30
cmp word [rsp + 0x70], r12w
je 0x1400c917f
mov word [rbx], r13w
jmp 0x1400c917b
lea r11, [0x140199850]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400c9177
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400c917f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400de51c
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 0x1400de54c
xor eax, eax
jmp 0x1400de60f
mov rbp, rbx
cmp word [rax], si
je 0x1400de571
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400de558
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400de554
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.1400de46c
movsxd r14, eax
test eax, eax
jne 0x1400de5af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400de545
mov rcx, r14
call fcn.140035650
mov rdi, rax
test rax, rax
jne 0x1400de5c8
xor ecx, ecx
call fcn.140081be0
jmp 0x1400de5a4
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.1400de46c
test eax, eax
jne 0x1400de5f9
mov rcx, rdi
call fcn.140081be0
jmp 0x1400de603
xor ecx, ecx
call fcn.140081be0
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 0x1400de62c
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 0x1400de6b3
mov rsi, rbx
cmp word [rax], bp
je 0x1400de672
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400de65c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400de658
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140035650
mov rdi, rax
test rax, rax
je 0x1400de6a0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400b6c70
mov rbp, rdi
xor ecx, ecx
call fcn.140081be0
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 0x1400e0c54
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.1400bdc58
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400e0cde
cmp byte [rbp - 0x21], r15b
je 0x1400e0cd9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400e0d14
call fcn.1400d79e4
test eax, eax
jne 0x1400e0d00
cmp byte [rbp - 0x21], r15b
je 0x1400e0cf8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400e0d14
cmp byte [rbp - 0x21], r15b
je 0x1400e0d11
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.1400c3238
test eax, eax
jne 0x1400e0db4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400bdc58
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400e0d53
cmp byte [rbp - 0x21], r15b
je 0x1400e0d88
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400e0d88
call fcn.1400d79e4
test eax, eax
jne 0x1400e0d74
cmp byte [rbp - 0x21], r15b
je 0x1400e0d6d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400e0d88
cmp byte [rbp - 0x21], r15b
je 0x1400e0d85
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.1400c3238
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400e0db4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400e0db7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400e0dc5
mov rcx, rdi
call fcn.140081be0
cmp byte [rbp + 0x3f], r15b
je 0x1400e0dd4
mov rcx, qword [rbp + 0x27]
call fcn.140081be0
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 0x1400e1790
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400e17c2
call fcn.1400c66c8
mov dword [rax], 0x16
call fcn.1400c8030
jmp 0x1400e18e1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400e18e1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400e18e1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400e17f1
lock or dword [rcx + 0x14], 0x10
jmp 0x1400e18e1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400e1805
call fcn.1400e2b6c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400c6a80
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400c8784
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400e18cf
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400e189a
mov rcx, rsi
call fcn.1400c6a80
cmp eax, edi
je 0x1400e1885
mov rcx, rsi
call fcn.1400c6a80
cmp eax, 0xfffffffe
je 0x1400e1885
mov rcx, rsi
call fcn.1400c6a80
movsxd rbx, eax
lea r14, [0x140199850]
mov rcx, rsi
sar rbx, 6
call fcn.1400c6a80
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400e188c
lea rdx, [0x140189510]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400e189a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400e18be
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400e18be
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400e18be
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400e18e4
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

Function at 0x1400fefd0
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.1400b3dc4
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1400ff040]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.1400c33b4
mov qword [rbx], rax
test rax, rax
je 0x1400ff027
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 0x1400ffb70
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x140189028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x14019b6a8], 0
je 0x1400ffbb6
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400b51f0
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x14019b680]
test rdi, rdi
je 0x1400ffc57
test byte [0x14018af48], 1
je 0x1400ffb99
cmp byte [rdi + 0x17], 0
jns 0x1400ffbd8
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 [0x14019b6a8], rax
inc rax
cmp rax, 1
ja 0x1400ffb99
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400b7320
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400ffd22
xor esi, esi
jmp 0x1400ffb99
mov ecx, 0x18
call fcn.1400b3dc4
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400b7320
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x140165260]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1400e5f60
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1400ffcbe
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
jmp 0x1400ffcc4
and eax, 0x7f
mov rcx, rdi
test rax, rax
jne 0x1400ffcea
lea rdx, [0x140169344]
mov r8d, 9
mov rcx, rdi
call fcn.14002bd10
mov qword [0x14019b680], rdi
jmp 0x1400ffbc6
lea r8, [rax + rax]
test r8, r8
je 0x1400ffcc9
lea rdx, [r8 - 2]
cmp word [rcx + r8 - 2], 0x5c
mov r8, rdx
jne 0x1400ffcee
cmp rdx, 0xfffffffffffffffe
je 0x1400ffcc9
sar rdx, 1
inc rdx
cmp rax, rdx
jb 0x1400ffde9
mov rcx, rdi
call fcn.1400ff900
jmp 0x1400ffcc9
mov rdi, qword [0x14019b680]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400d3030
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.14002b9f0
mov rcx, qword [0x14019b680]
call fcn.140029f20
cmp word [rax], 0x5c
je 0x1400ffd6f
mov rcx, qword [0x14019b680]
lea rdx, [0x140169340]
mov r8d, 1
call fcn.14002bd10
mov rcx, qword [0x14019b680]
lea rdx, [0x140169344]
mov r8d, 9
call fcn.14002bd10
mov rcx, qword [0x14019b680]
cmp byte [rcx + 0x17], 0
jns 0x1400ffd98
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 [0x14019b6a8], rax
inc rax
cmp rax, 1
ja 0x1400ffb99
mov qword [0x14019b6a8], 0
jmp 0x1400ffc50
call fcn.1400c9320
int3