joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400861a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
movzx r11d, word [rdx + 2]
mov r14, rcx
movzx r9d, word [r8 + 2]
cmp rdx, r8
je 0x1400862f7
mov r10, qword [rcx + 0x20]
cmp byte [r10 + r11*8 + 5], 0x1e
lea rbx, [r10 + r11*8]
jne 0x1400861d7
movzx r11d, word [rbx]
lea rbx, [r10 + r11*8]
cmp byte [r10 + r9*8 + 5], 0x1e
lea rcx, [r10 + r9*8]
jne 0x1400861eb
movzx r9d, word [rcx]
lea rcx, [r10 + r9*8]
movzx edi, byte [rdx + 5]
lea eax, [rdi - 0x38]
cmp al, 1
jbe 0x1400861fb
movzx eax, word [rdx]
jmp 0x140086203
movzx eax, word [rdx]
movzx eax, word [r10 + rax*8]
movzx edx, ax
movzx eax, byte [r8 + 5]
sub al, 0x38
cmp al, 1
jbe 0x140086217
movzx eax, word [r8]
jmp 0x140086220
movzx eax, word [r8]
movzx eax, word [r10 + rax*8]
movzx r8d, ax
cmp r11d, r9d
jne 0x140086242
cmp edx, r8d
je 0x1400862f7
mov rcx, r14
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp fcn.140085ff0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r15
mov r15d, 0x8000
cmp r11d, r15d
jae 0x140086265
cmp r9d, r15d
jb 0x1400862e9
cmp dil, 0x38
jne 0x1400862de
xor esi, esi
mov ebp, r11d
cmp byte [rbx + 5], 0x29
mov edi, esi
jne 0x140086292
movzx eax, word [rbx + 2]
cmp ax, r15w
jae 0x140086292
movzx ebp, word [rbx]
mov esi, dword [r10 + rax*8]
cmp ebp, r9d
jne 0x140086292
test esi, esi
jne 0x1400862e9
cmp byte [rcx + 5], 0x29
jne 0x1400862b3
movzx eax, word [rcx + 2]
cmp ax, r15w
jae 0x1400862b3
movzx r9d, word [rcx]
mov edi, dword [r10 + rax*8]
cmp r11d, r9d
jne 0x1400862b3
test edi, edi
jne 0x1400862e9
cmp ebp, r9d
jne 0x1400862bc
cmp esi, edi
jne 0x1400862e9
cmp edx, r8d
jne 0x1400862ed
mov eax, 1
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
movzx eax, byte [rcx + 4]
xor al, byte [rbx + 4]
test al, 0x1f
je 0x1400862bc
xor eax, eax
jmp 0x1400862c6
mov rcx, r14
call fcn.140085ff0
jmp 0x1400862c6
mov eax, 2
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
Function at 0x1400877a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x20
mov r10, qword [rcx + 0x20]
mov esi, r9d
movzx r14d, dx
mov r12d, r8d
mov r9d, edx
mov rbp, rcx
movzx r15d, byte [r10 + r14*8 + 5]
cmp r15d, 0x35
jb 0x1400878df
cmp r15d, r8d
jg 0x1400878df
xor edx, edx
add rcx, 0xb24
nop word [rax + rax]
cmp word [rcx], r14w
jne 0x14008780a
mov eax, dword [rcx + 4]
cmp eax, esi
jb 0x14008780a
xor eax, esi
test eax, 0xfff
je 0x1400878ce
inc rdx
add rcx, 8
cmp rdx, 0x10
jl 0x1400877f0
movzx edx, word [r10 + r14*8]
mov r9d, esi
mov qword [rsp + 0x40], rbx
mov rcx, rbp
movzx ebx, word [r10 + r14*8 + 2]
mov qword [rsp + 0x48], rdi
call fcn.1400877a0
mov r9d, esi
mov r8d, r12d
mov edx, ebx
mov rcx, rbp
mov edi, eax
call fcn.1400877a0
mov ecx, 0xf4
mov word [rbp + 0xb8], di
add r15w, cx
mov word [rbp + 0xba], ax
movzx edx, r15w
mov ecx, 0x100
imul edx, ecx
mov r8d, esi
shr r8d, 5
mov rcx, rbp
and r8w, 0x1f
or r8w, dx
mov word [rbp + 0xbc], r8w
call fcn.140084a10
mov ecx, dword [rbp + 0xba4]
mov r9d, eax
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rdx, [rcx*8]
lea eax, [rcx + 1]
and eax, 0xf
mov dword [rbp + 0xba4], eax
mov word [rdx + rbp + 0xb24], r14w
mov word [rdx + rbp + 0xb26], r9w
mov dword [rdx + rbp + 0xb28], esi
jmp 0x14008791c
movzx ecx, word [rcx + 2]
movzx eax, byte [r10 + rcx*8 + 4]
shl eax, 0x18
add eax, ecx
jmp 0x14008791f
bt esi, 0xb
jae 0x14008791c
movzx ecx, byte [r10 + r14*8 + 4]
mov eax, 0x605fd9
and ecx, 0x1f
shr eax, cl
test al, 1
jne 0x14008791c
mov rcx, rbp
mov word [rbp + 0xbc], 0x5b15
mov word [rbp + 0xb8], r14w
mov word [rbp + 0xba], si
call fcn.140084a10
mov r9d, eax
mov eax, r9d
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14008fcf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
mov edx, 0x14
call fcn.14007b1c0
mov rcx, rdi
mov word [rdi + 0xbc], 0x548a
mov word [rdi + 0xb8], ax
mov word [rdi + 0xba], bx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140084a10
Function at 0x14009ee64
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14009efac
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14009f01b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14009f01b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14009f01b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14009f01b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14009f01b
cmp dword [rcx + 0x84], 0xe
jbe 0x14009f01b
cmp dword [rcx + 0xf8], 0
je 0x14009f01b
mov ecx, ebx
call fcn.14009eee4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14009f140
nop
cmp dword [rbp + 0x20], 0
je 0x14009f069
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14009ef78
int3

Function at 0x14009efac
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14009efac
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14009f01b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14009f01b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14009f01b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14009f01b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14009f01b
cmp dword [rcx + 0x84], 0xe
jbe 0x14009f01b
cmp dword [rcx + 0xf8], 0
je 0x14009f01b
mov ecx, ebx
call fcn.14009eee4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14009f140
nop
cmp dword [rbp + 0x20], 0
je 0x14009f069
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14009ef78
int3
Function at 0x1400a1a24
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.140081720
sub rsp, rax
mov rax, qword [0x1400f5180]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400b69d4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400a1a73
mov rax, rbp
jmp 0x1400a1b7b
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 + 0xf79a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400ba258
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xf79a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400a1b77
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 0x1400a1b77
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400ba258
test rax, rax
js 0x1400a1b77
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400a1b77
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400a1b69
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400a1b69
cmp byte [rcx], 0xd
jne 0x1400a1b4f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400a1b5e
cmp byte [rcx + 1], 0xa
jne 0x1400a1b5e
inc rcx
jmp 0x1400a1b5e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xf5f40]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400a1b31
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400a1b7b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140031a40
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 0x1400aa33c
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.140094e0c
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x1400aa387
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x1400aa3bb
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400aa3bb
call fcn.1400b2248
xor ebx, ebx
test eax, eax
jne 0x1400aa3a9
cmp byte [rbp - 0x48], bl
je 0x1400aa3a2
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x1400aa3bb
cmp byte [rbp - 0x48], bl
je 0x1400aa3b9
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.140095030
mov esi, eax
test eax, eax
je 0x1400aa3f7
call fcn.1400a12ec
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x1400aa450
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.140095030
mov edi, eax
test eax, eax
je 0x1400aa433
call fcn.1400a12ec
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x1400aa442
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.1400c0148
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x1400aa450
mov rcx, qword [rbp - 0x50]
call fcn.1400b1600
cmp byte [rbp - 8], bl
je 0x1400aa45e
mov rcx, qword [rbp - 0x20]
call fcn.1400b1600
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x1400ae0c0
Capabilities:
Parse pe header

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

Function at 0x1400b24f8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400d6c60]
mov edi, ecx
lea rdx, str.GetTempPath2W
mov ecx, 5
lea r8, [0x1400d6c58]
call fcn.1400b2b90
test rax, rax
je 0x1400b2542
movabs r10, 0xa3e5bf4030d1b870
mov rdx, rbx
mov ecx, edi
call qword [0x1400e3288]
jmp 0x1400b254d
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b9510
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400b186c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400b95b1
cmp ebx, dword [rsp + 0x30]
je 0x1400b95aa
test esi, esi
je 0x1400b95aa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400b9585
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400b9592
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400b956f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400b9596
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400b95b3
mov eax, 1
jmp 0x1400b95b3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bb510
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, [0x1400f79a0]
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 0x1400bb567
cmp word [rdx], r13w
jne 0x1400bb567
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400bb56c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400bb691
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400bb6b2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400bb5a5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400bb5cc
cmp r9, r8
jae 0x1400bb5dc
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 0x1400bb586
jmp 0x1400bb691
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 0x1400bb686
cmp dword [rsp + 0x80], esi
je 0x1400bb686
lea r8, [0x1400f79a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400bb65e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400bb62e
mov word [rbx], r13w
jmp 0x1400bb68e
mov ecx, 0xd
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 0x1400bb63b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400bb68e
cmp word [rsp + 0x70], r13w
jne 0x1400bb66b
cmp rbx, r14
je 0x1400bb628
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400ba1b4
cmp word [rsp + 0x70], r13w
je 0x1400bb691
mov ecx, 0xd
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, [0x1400f79a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400bb68b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400bb691
Function at 0x1400bb6d0
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 0x1400bb700
xor eax, eax
jmp 0x1400bb7c3
mov rbp, rbx
cmp word [rax], si
je 0x1400bb725
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400bb70c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400bb708
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.1400b172c
movsxd r14, eax
test eax, eax
jne 0x1400bb763
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400bb6f9
mov rcx, r14
call fcn.1400b163c
mov rdi, rax
test rax, rax
jne 0x1400bb77c
xor ecx, ecx
call fcn.1400b1600
jmp 0x1400bb758
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.1400b172c
test eax, eax
jne 0x1400bb7ad
mov rcx, rdi
call fcn.1400b1600
jmp 0x1400bb7b7
xor ecx, ecx
call fcn.1400b1600
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 0x1400bb7e0
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 0x1400bb867
mov rsi, rbx
cmp word [rax], bp
je 0x1400bb826
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400bb810
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400bb80c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400b163c
mov rdi, rax
test rax, rax
je 0x1400bb854
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400c81d0
mov rbp, rdi
xor ecx, ecx
call fcn.1400b1600
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 0x1400bef40
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400bef56
mov al, 1
jmp 0x1400befb6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400bef67
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400befb4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400bcef0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400befb4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400befb4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400befb4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400befb6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400c0120
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400c0140
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a132c
or eax, 0xffffffff
jmp 0x1400c0142
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400c64ec
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.140094e0c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400c6576
cmp byte [rbp - 0x21], r15b
je 0x1400c6571
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400c65ac
call fcn.1400b2248
test eax, eax
jne 0x1400c6598
cmp byte [rbp - 0x21], r15b
je 0x1400c6590
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400c65ac
cmp byte [rbp - 0x21], r15b
je 0x1400c65a9
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.140095030
test eax, eax
jne 0x1400c664c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140094e0c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400c65eb
cmp byte [rbp - 0x21], r15b
je 0x1400c6620
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400c6620
call fcn.1400b2248
test eax, eax
jne 0x1400c660c
cmp byte [rbp - 0x21], r15b
je 0x1400c6605
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400c6620
cmp byte [rbp - 0x21], r15b
je 0x1400c661d
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.140095030
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400c664c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400c664f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400c665d
mov rcx, rdi
call fcn.1400b1600
cmp byte [rbp + 0x3f], r15b
je 0x1400c666c
mov rcx, qword [rbp + 0x27]
call fcn.1400b1600
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 0x1400c72c4
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.1400ba1b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400ba1b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400c7414
cmp rax, 0xffffffffffffffff
je 0x1400c7414
xor edi, edi
test rbp, rbp
jle 0x1400c73bf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400b3ae8
mov rbx, rax
test rax, rax
jne 0x1400c734c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400c73b5
mov edx, 0x8000
mov ecx, r14d
call fcn.1400a3f08
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.1400be0b0
cmp eax, 0xffffffff
je 0x1400c7395
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400c735c
mov edx, r15d
mov ecx, r14d
call fcn.1400a3f08
jmp 0x1400c73b5
cmp byte [rsi + 0x38], dil
je 0x1400c73ac
cmp dword [rsi + 0x34], 5
jne 0x1400c73ac
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400c73b5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400b1600
jmp 0x1400c7428
jns 0x1400c7428
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400ba1b4
cmp rax, 0xffffffffffffffff
jne 0x1400c73e0
cmp byte [rsi + 0x30], dil
je 0x1400c7428
mov edi, dword [rsi + 0x2c]
jmp 0x1400c7428
mov ecx, r14d
call fcn.1400bcef0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400c7428
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 0x1400c7428
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400c7421
mov eax, dword [rsi + 0x2c]
jmp 0x1400c7426
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400ba1b4
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 0x1800028c0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x1800028f2
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x1800028f2
nop word cs:[rax + rax]
jmp 0x1800028f0
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x1800029c8
mov rsi, r10
test r8b, r8b
je 0x1800029e0
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180002960
test r9b, r9b
je 0x1800029f0
sub rsi, rcx
je 0x1800029c4
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x1800029c0
test ebp, ebp
jne 0x1800029c0
add rbx, 1
cmp rsi, rbx
jne 0x180002980
jmp 0x1800029c4
test ebp, ebp
jne 0x18000294c
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x1800029e0
jmp 0x1800029f0