joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008dca0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.14008cf30
mov r11d, eax
lea edx, [rax*4]
movsxd r9, edx
test edx, edx
jle 0x14008dd1d
lea r8, [rbx + 8]
xor r10d, r10d
lea r8, [r8 + r9*4]
lea rcx, [rbx + 8]
nop
mov edx, dword [rcx - 8]
add r10, 4
mov eax, dword [r8 - 8]
lea r8, [r8 - 0x10]
mov dword [rcx - 8], eax
lea rcx, [rcx + 0x10]
mov eax, dword [r8 + 0xc]
sub r9, 4
mov dword [r8 + 8], edx
mov edx, dword [rcx - 0x14]
mov dword [rcx - 0x14], eax
mov eax, dword [r8 + 0x10]
mov dword [r8 + 0xc], edx
mov edx, dword [rcx - 0x10]
mov dword [rcx - 0x10], eax
mov eax, dword [r8 + 0x14]
mov dword [r8 + 0x10], edx
mov edx, dword [rcx - 0xc]
mov dword [rcx - 0xc], eax
mov dword [r8 + 0x14], edx
cmp r10, r9
jl 0x14008dcd0
cmp r11d, 1
jle 0x14008ded9
mov qword [rsp + 0x30], rdi
lea r10d, [r11 - 1]
lea rdi, [0x140000000]
add rbx, 4
nop dword [rax + rax]
mov r9d, dword [rbx + 0x10]
lea rbx, [rbx + 0x10]
mov edx, dword [rbx - 4]
movzx eax, byte [rbx - 3]
movzx ecx, byte [rdi + rax*4 + 0xbb6a0]
mov eax, edx
shr rax, 0x18
mov r8d, dword [rdi + rcx*4 + 0xbc2a0]
movzx eax, byte [rdi + rax*4 + 0xbb6a0]
xor r8d, dword [rdi + rax*4 + 0xbbaa0]
movzx eax, dl
movzx ecx, byte [rdi + rax*4 + 0xbb6a0]
movzx eax, byte [rbx - 2]
xor r8d, dword [rdi + rcx*4 + 0xbc6a0]
movzx ecx, byte [rdi + rax*4 + 0xbb6a0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0xbbea0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx - 4], r8d
movzx edx, byte [rdi + rcx*4 + 0xbb6a0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0xbbea0]
movzx eax, byte [rdi + rcx*4 + 0xbb6a0]
xor r8d, dword [rdi + rax*4 + 0xbc2a0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0xbb6a0]
movzx eax, r9b
mov r9d, dword [rbx + 4]
xor r8d, dword [rdi + rcx*4 + 0xbbaa0]
movzx ecx, byte [rdi + rax*4 + 0xbb6a0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0xbc6a0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx], r8d
movzx edx, byte [rdi + rcx*4 + 0xbb6a0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0xbbea0]
movzx eax, byte [rdi + rcx*4 + 0xbb6a0]
xor r8d, dword [rdi + rax*4 + 0xbc2a0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0xbb6a0]
movzx eax, r9b
mov r9d, dword [rbx + 8]
xor r8d, dword [rdi + rcx*4 + 0xbbaa0]
movzx ecx, byte [rdi + rax*4 + 0xbb6a0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0xbc6a0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx + 4], r8d
movzx edx, byte [rdi + rcx*4 + 0xbb6a0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0xbbea0]
movzx eax, byte [rdi + rcx*4 + 0xbb6a0]
xor r8d, dword [rdi + rax*4 + 0xbc2a0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0xbb6a0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0xbbaa0]
movzx ecx, byte [rdi + rax*4 + 0xbb6a0]
xor r8d, dword [rdi + rcx*4 + 0xbc6a0]
mov dword [rbx + 8], r8d
sub r10, 1
jne 0x14008dd40
mov rdi, qword [rsp + 0x30]
mov eax, r11d
add rsp, 0x20
pop rbx
ret
Function at 0x140097720
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.140044bfc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140044bfc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140097870
cmp rax, 0xffffffffffffffff
je 0x140097870
xor edi, edi
test rbp, rbp
jle 0x14009781b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400304d0
mov rbx, rax
test rax, rax
jne 0x1400977a8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140097811
mov edx, 0x8000
mov ecx, r14d
call fcn.14008457c
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.14008c290
cmp eax, 0xffffffff
je 0x1400977f1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400977b8
mov edx, r15d
mov ecx, r14d
call fcn.14008457c
jmp 0x140097811
cmp byte [rsi + 0x38], dil
je 0x140097808
cmp dword [rsi + 0x34], 5
jne 0x140097808
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140097811
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140030548
jmp 0x140097884
jns 0x140097884
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140044bfc
cmp rax, 0xffffffffffffffff
jne 0x14009783c
cmp byte [rsi + 0x30], dil
je 0x140097884
mov edi, dword [rsi + 0x2c]
jmp 0x140097884
mov ecx, r14d
call fcn.14006b708
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140097884
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140097884
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14009787d
mov eax, dword [rsi + 0x2c]
jmp 0x140097882
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140044bfc
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 0x1400980ec
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400efe00]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140098143
cmp word [rdx], r13w
jne 0x140098143
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140098148
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14009826d
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14009828e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140098181
mov rdx, r9
mov word [rbx], cx
jmp 0x1400981a8
cmp r9, r8
jae 0x1400981b8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140098162
jmp 0x14009826d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140098262
cmp dword [rsp + 0x80], esi
je 0x140098262
lea r8, [0x1400efe00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14009823a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14009820a
mov word [rbx], r13w
jmp 0x14009826a
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140098217
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14009826a
cmp word [rsp + 0x70], r13w
jne 0x140098247
cmp rbx, r14
je 0x140098204
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140044bfc
cmp word [rsp + 0x70], r13w
je 0x14009826d
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400efe00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140098267
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14009826d
Function at 0x140099220
Capabilities:
Encode data using xor

Disassembly:
push rdi
mov r10d, dword [rcx + 0xb94]
mov r11, rcx
mov ecx, 8
sub ecx, r10d
shr r8d, cl
mov ecx, r10d
mov eax, dword [r11 + 0xb98]
xor r10d, r10d
and eax, edx
shl eax, cl
mov ecx, dword [rsp + 0x38]
add r8d, eax
add ecx, 0x100
lea rdi, [r8 + r8*2]
shl rdi, 9
add rdi, r11
lea r11, [0x1400bcf60]
test r9b, r9b
jne 0x1400992a6
nop dword [rax]
mov r8d, ecx
shr ecx, 1
and r8d, 1
neg r8d
shr r8, 4
movzx r9d, word [rdi + rcx*2 + 0xb9c]
and r8d, 0x7f
shr r9, 4
xor r9, r8
movzx edx, byte [r9 + r11]
add r10d, edx
cmp ecx, 1
jne 0x140099270
mov eax, r10d
pop rdi
ret
mov qword [rsp + 0x10], rbx
mov r9d, 0x100
mov ebx, dword [rsp + 0x30]
nop word [rax + rax]
mov edx, ecx
add ebx, ebx
shr edx, 8
mov eax, r9d
and eax, ebx
add eax, r9d
add edx, eax
movzx r8d, word [rdi + rdx*2 + 0xb9c]
mov edx, ecx
shr edx, 7
add ecx, ecx
and edx, 1
shr r8, 4
neg edx
shr rdx, 4
and edx, 0x7f
xor r8, rdx
movzx eax, byte [r8 + r11]
add r10d, eax
mov eax, ebx
xor eax, ecx
not eax
and r9d, eax
cmp ecx, 0x10000
jb 0x1400992c0
mov rbx, qword [rsp + 0x10]
mov eax, r10d
pop rdi
ret
Function at 0x140099320
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov r14d, 4
lea rbx, [rcx + 0x10290]
mov ebp, r14d
lea rsi, [rcx + 0x10698]
mov r10, rcx
lea r15, [0x1400bcf60]
xor edi, edi
nop dword [rax + rax]
mov eax, dword [r10 + 0x10e90]
xor r11d, r11d
test eax, eax
je 0x1400993c7
nop
xor r9d, r9d
lea eax, [r11 + 0x40]
nop word [rax + rax]
mov edx, eax
shr eax, 1
and edx, 1
mov ecx, eax
add rcx, rdi
movzx r8d, word [r10 + rcx*2 + 0x6efc]
mov ecx, edx
neg ecx
shr r8, 4
shr rcx, 4
and ecx, 0x7f
xor r8, rcx
movzx ecx, byte [r8 + r15]
add r9d, ecx
cmp eax, 1
jne 0x140099380
mov dword [rbx + r11*4], r9d
inc r11d
mov eax, dword [r10 + 0x10e90]
cmp r11d, eax
jb 0x140099370
mov edx, recv
cmp eax, edx
jbe 0x1400993f0
mov eax, edx
lea rcx, [rbx + rax*4]
mov eax, edx
shr eax, 1
inc edx
shl eax, 4
sub eax, 0x50
add dword [rcx], eax
cmp edx, dword [r10 + 0x10e90]
jb 0x1400993d0
nop dword [rax]
mov eax, dword [rbx]
add rdi, 0x40
mov dword [rsi - 8], eax
mov eax, dword [rbx + 4]
mov dword [rsi - 4], eax
mov eax, dword [rbx + 8]
mov dword [rsi], eax
mov eax, dword [rbx + 0xc]
add rbx, 0x100
mov dword [rsi + 4], eax
add rsi, 0x200
sub rbp, 1
jne 0x140099360
lea rdi, [r10 + 0x10aa0]
nop dword [rax]
cmp r14d, 4
ja 0x14009943b
mov edx, r14d
jmp 0x14009944d
bsr edx, r14d
mov eax, r14d
lea ecx, [rdx - 1]
shr eax, cl
and eax, 1
lea edx, [rax + rdx*2]
mov r9d, edx
mov r11d, edx
shr r9d, 1
mov eax, edx
and eax, 1
dec r9d
or eax, 2
mov ecx, r9d
shl eax, cl
mov ebx, r14d
sub ebx, eax
mov ebp, eax
xor r8d, r8d
lea esi, [r8 + 1]
mov eax, esi
mov edx, ebx
sub rax, r11
shr ebx, 1
add rax, rbp
and edx, 1
movzx ecx, word [r10 + rax*2 + 0x70fa]
lea esi, [rdx + rsi*2]
mov eax, edx
shr rcx, 4
neg eax
shr rax, 4
and eax, 0x7f
xor rcx, rax
movzx eax, byte [rcx + r15]
add r8d, eax
add r9d, 0xffffffff
jne 0x140099474
mov ecx, dword [r10 + r11*4 + 0x10290]
inc r14d
add ecx, r8d
mov dword [rdi - 0x400], ecx
mov ecx, dword [r10 + r11*4 + 0x10390]
add ecx, r8d
mov dword [rdi - 0x200], ecx
mov ecx, dword [r10 + r11*4 + 0x10490]
add ecx, r8d
mov dword [rdi], ecx
mov ecx, dword [r10 + r11*4 + 0x10590]
add ecx, r8d
mov dword [rdi + 0x200], ecx
add rdi, 4
cmp r14d, 0x80
jb 0x140099430
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov dword [r10 + 0x10e94], r9d
pop r15
pop r14
ret
Function at 0x14009c844
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 0x14009c874
xor eax, eax
jmp 0x14009c937
mov rbp, rbx
cmp word [rax], si
je 0x14009c899
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14009c880
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14009c87c
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.14006d0e4
movsxd r14, eax
test eax, eax
jne 0x14009c8d7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14009c86d
mov rcx, r14
call fcn.140030584
mov rdi, rax
test rax, rax
jne 0x14009c8f0
xor ecx, ecx
call fcn.140030548
jmp 0x14009c8cc
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.14006d0e4
test eax, eax
jne 0x14009c921
mov rcx, rdi
call fcn.140030548
jmp 0x14009c92b
xor ecx, ecx
call fcn.140030548
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 0x14009c954
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 0x14009c9db
mov rsi, rbx
cmp word [rax], bp
je 0x14009c99a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14009c984
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14009c980
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140030584
mov rdi, rax
test rax, rax
je 0x14009c9c8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140016720
mov rbp, rdi
xor ecx, ecx
call fcn.140030548
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 0x14009f940
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x1400f471c], 0
jne 0x14009fa05
mov byte [0x1400f471c], 1
lea r9, [0x1400f4720]
xor r8d, r8d
nop
mov ecx, r8d
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
test r8b, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov ecx, edx
shr ecx, 1
mov eax, ecx
xor eax, 0xedb88320
test dl, 1
cmove eax, ecx
mov dword [r9 + r8*4], eax
inc r8
cmp r8, 0x100
jb 0x14009f960
ret
Function at 0x14009fb38
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.140033ddc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14009fbc2
cmp byte [rbp - 0x21], r15b
je 0x14009fbbd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14009fbf8
call fcn.140031748
test eax, eax
jne 0x14009fbe4
cmp byte [rbp - 0x21], r15b
je 0x14009fbdc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14009fbf8
cmp byte [rbp - 0x21], r15b
je 0x14009fbf5
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.14004a210
test eax, eax
jne 0x14009fc98
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140033ddc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14009fc37
cmp byte [rbp - 0x21], r15b
je 0x14009fc6c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14009fc6c
call fcn.140031748
test eax, eax
jne 0x14009fc58
cmp byte [rbp - 0x21], r15b
je 0x14009fc51
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14009fc6c
cmp byte [rbp - 0x21], r15b
je 0x14009fc69
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.14004a210
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14009fc98
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14009fc9b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14009fca9
mov rcx, rdi
call fcn.140030548
cmp byte [rbp + 0x3f], r15b
je 0x14009fcb8
mov rcx, qword [rbp + 0x27]
call fcn.140030548
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 0x140001364
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
call fcn.1400021c0
and dword [rbp + 0x6f], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x2f], xmm0
and qword [rbp + 0x3f], 0
and qword [rbp + 0x47], 0
mov r8d, 0xc
lea rdx, str.detected.sys
lea rcx, [rbp + 0x2f]
call fcn.140001664
lea rax, [rbp + 0x2f]
mov qword [rbp + 0x77], rax
lea rcx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 7
cmova rcx, qword [rbp + 0x2f]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400013f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400013f1
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 7
cmova rdx, qword [rbp + 0x2f]
lea rcx, str.____File__ls_doesnt_exist_n
call fcn.140001178
jmp 0x1400014ca
mov byte [rbp + 0x67], 0
lea rax, [rbp + 0x67]
mov qword [rbp + 7], rax
lea rax, [rbp + 0x68]
mov qword [rbp + 0xf], rax
movaps xmm0, xmmword [rbp + 7]
movdqa xmmword [rbp + 7], xmm0
lea rdx, [rbp + 7]
lea rcx, [rbp + 0x17]
call fcn.140001558
nop
lea rdx, [rbp + 0x17]
lea rcx, [rbp + 0x2f]
call fcn.140004340
test al, al
jne 0x14000147e
lea rcx, str.____Failed_to_read_image_to_memory_n
call fcn.140001178
mov rcx, qword [0x14004fb00]
test rcx, rcx
je 0x14000144b
call fcn.140007ce0
nop
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x1400014ca
mov rdx, qword [rbp + 0x27]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400014c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400014f8
jmp 0x1400014c4
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x48], rax
mov rbx, qword [rbp + 0x17]
mov rcx, rbx
call fcn.140002220
nop
test rbx, rbx
je 0x1400014ca
mov rdx, qword [rbp + 0x27]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400014c1
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400014f8
mov rcx, rbx
call fcn.14000efd0
nop
lea rcx, [rbp + 0x2f]
call fcn.140001600
mov rcx, qword [0x14004fb00]
test rcx, rcx
je 0x1400014e4
call fcn.140007ce0
mov eax, dword [rbp + 0x6f]
mov rbx, qword [rsp + 0xc8]
add rsp, 0xa0
pop rbp
ret
call fcn.14001704c
nop
int3
Function at 0x140004100
Capabilities:
Get common file path

Disassembly:
push rdi
push r14
sub rsp, 0x258
mov rax, qword [0x14004d080]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x20a
xor r14d, r14d
call fcn.14002fcd0
lea rdx, [rsp + 0x30]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x1400042f4
mov qword [rsp + 0x278], rbx
lea rcx, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop
cmp word [rcx + rax*2 + 2], r14w
lea rax, [rax + 1]
jne 0x140004170
cmp word [rsp + rax*2 + 0x2e], 0x5c
jne 0x14000419e
lea rax, [rax*2 - 2]
cmp rax, 0x20a
jae 0x140004327
mov word [rsp + rax + 0x30], r14w
xorps xmm0, xmm0
mov qword [rsp + 0x280], rbp
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
lea rax, [rsp + 0x30]
mov qword [rdi + 0x18], r14
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x1400041c0
movabs rbp, 0x7ffffffffffffffe
cmp rbx, rbp
ja 0x140004321
mov qword [rsp + 0x250], rsi
cmp rbx, 7
ja 0x140004214
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x30]
add rbx, rbx
mov qword [rdi + 0x18], 7
mov r8, rbx
mov rcx, rdi
call fcn.14002f630
mov word [rbx + rdi], r14w
jmp 0x1400042be
mov rax, rbx
or rax, 7
cmp rax, rbp
jbe 0x140004263
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x140004293
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000431b
mov rcx, rax
call fcn.14000ed54
test rax, rax
je 0x14000432d
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14000429b
mov ecx, 0xa
mov rbp, rax
cmp rax, rcx
movabs rax, 0x7fffffffffffffff
cmovb rbp, rcx
lea rcx, [rbp + 1]
cmp rcx, rax
ja 0x14000431b
add rcx, rcx
jne 0x14000422e
mov rsi, r14
jmp 0x14000429b
call fcn.14000ed54
mov rsi, rax
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x30]
add rbx, rbx
mov qword [rdi], rsi
mov r8, rbx
mov qword [rdi + 0x18], rbp
mov rcx, rsi
call fcn.14002f630
mov word [rbx + rsi], r14w
mov rsi, qword [rsp + 0x250]
mov rax, rdi
mov rbp, qword [rsp + 0x280]
mov rbx, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000f290
add rsp, 0x258
pop r14
pop rdi
ret
lea rcx, str.____Failed_to_get_temp_path_n
call fcn.140001178
xorps xmm0, xmm0
mov rax, rdi
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
jmp 0x1400042d9
call fcn.1400012a4
int3
call fcn.14000133c
int3
call fcn.14000f3b8
int3
call fcn.14001704c
int3