joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029b84
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.14001d124
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d124
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029cd4
cmp rax, 0xffffffffffffffff
je 0x140029cd4
xor edi, edi
test rbp, rbp
jle 0x140029c7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fda4
mov rbx, rax
test rax, rax
jne 0x140029c0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029c75
mov edx, 0x8000
mov ecx, r14d
call fcn.14001aac0
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.14001de00
cmp eax, 0xffffffff
je 0x140029c55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c1c
mov edx, r15d
mov ecx, r14d
call fcn.14001aac0
jmp 0x140029c75
cmp byte [rsi + 0x38], dil
je 0x140029c6c
cmp dword [rsi + 0x34], 5
jne 0x140029c6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029c75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b404
jmp 0x140029ce8
jns 0x140029ce8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d124
cmp rax, 0xffffffffffffffff
jne 0x140029ca0
cmp byte [rsi + 0x30], dil
je 0x140029ce8
mov edi, dword [rsi + 0x2c]
jmp 0x140029ce8
mov ecx, r14d
call fcn.1400195f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029ce8
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 0x140029ce8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029ce1
mov eax, dword [rsi + 0x2c]
jmp 0x140029ce6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d124
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 0x14002ade0
Capabilities:
Parse pe header

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

Function at 0x140c082f8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140c08302
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140c0832b
pop rbp
sub rbp, 0x33
sub rbp, 0xc082f8
sub rsp, 0x20
jmp 0x140c0834a
mov rax, 0xc082f8
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0xffffffffd1540608
xor byte [rax], dl
inc rax
dec rcx
jne 0x140c08369
jmp 0x140c08380
and ecx, 0x8348183
or byte [rax], cl
mov ecx, ecx
add byte [rcx], cl
or byte [rax], cl
or ecx, esp
iretd
Function at 0x1401364a0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1404a7180]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r9, rcx
lea rdi, [rsp + 0x30]
xor eax, eax
mov esi, 0x40
cmp edx, esi
mov ecx, esi
rep stosb byte [rdi], al
cmovbe esi, edx
lea rcx, [rsp + 0x30]
mov ebx, r8d
movsxd rdi, esi
mov r8, rdi
mov rdx, r9
call fcn.140269240
xor r9d, r9d
test esi, esi
jle 0x14013651b
mov edx, r9d
nop dword [rax]
movzx eax, byte [rsp + rdx + 0x30]
lea ecx, [rax - 0x41]
cmp cl, 0x19
ja 0x140136513
add al, 0x20
mov byte [rsp + rdx + 0x30], al
inc rdx
cmp rdx, rdi
jl 0x140136500
lea rdx, [rsp + 0x30]
mov r8d, esi
cmp esi, 4
jl 0x140136565
mov edi, esi
shr rdi, 2
mov eax, edi
neg eax
lea r8d, [rsi + rax*4]
nop word [rax + rax]
imul eax, dword [rdx], 0x5bd1e995
add rdx, 4
imul ebx, ebx, 0x5bd1e995
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
xor ebx, ecx
sub rdi, 1
jne 0x140136540
sub r8d, 1
je 0x14013658a
sub r8d, 1
je 0x140136580
cmp r8d, 1
jne 0x140136590
movzx r9d, byte [rdx + 2]
shl r9d, 0x10
movzx eax, byte [rdx + 1]
shl eax, 8
xor r9d, eax
movzx eax, byte [rdx]
xor r9d, eax
imul ecx, r9d, 0x5bd1e995
imul edi, esi, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
imul eax, ebx, 0x5bd1e995
xor ecx, eax
mov eax, edi
shr eax, 0x18
xor eax, edi
imul edx, ecx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor edx, eax
mov eax, edx
shr eax, 0xd
xor eax, edx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401fd9f0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140136880
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r15, rcx
movsxd r12, r8d
mov ecx, pe_nt_image_headers64
mov rdi, rdx
call fcn.1401fda10
xor edx, edx
mov r8d, pe_nt_image_headers64
mov rcx, rax
mov rbx, rax
call fcn.1402698e0
movdqa xmm2, xmmword [0x1403f6510]
lea rdx, [rbx + 8]
movdqa xmm3, xmmword [0x1403f6520]
mov ecx, 8
nop word [rax + rax]
lea eax, [rcx - 8]
movd xmm0, eax
lea rdx, [rdx + 0x10]
pshufd xmm0, xmm0, 0
lea eax, [rcx - 4]
paddd xmm0, xmm2
movd xmm1, eax
pshufd xmm1, xmm1, 0
lea eax, [rcx + 4]
paddd xmm1, xmm2
andps xmm0, xmm3
andps xmm1, xmm3
packuswb xmm0, xmm0
packuswb xmm1, xmm1
packuswb xmm0, xmm0
movd dword [rdx - 0x18], xmm0
packuswb xmm1, xmm1
movd dword [rdx - 0x14], xmm1
movd xmm0, ecx
add ecx, 0x10
pshufd xmm0, xmm0, 0
paddd xmm0, xmm2
movd xmm1, eax
pshufd xmm1, xmm1, 0
andps xmm0, xmm3
paddd xmm1, xmm2
packuswb xmm0, xmm0
andps xmm1, xmm3
packuswb xmm0, xmm0
movd dword [rdx - 0x10], xmm0
lea eax, [rcx - 8]
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd dword [rdx - 0xc], xmm1
cmp eax, 0x100
jl 0x1401368e0
xor r10d, r10d
mov r11, rbx
mov r9d, r10d
mov esi, r10d
mov r14d, pe_nt_image_headers64
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [r15]
xor edx, edx
mov rcx, qword [r15 + 8]
mov rax, rsi
movzx ebp, byte [r11]
sub rcx, r8
div rcx
movzx eax, byte [rdx + r8]
add r9d, eax
add r9d, ebp
and r9d, 0x800000ff
jge 0x1401369c7
dec r9d
or r9d, 0xffffff00
inc r9d
movsxd rcx, r9d
inc rsi
movzx eax, byte [rcx + rbx]
mov byte [r11], al
inc r11
mov byte [rcx + rbx], bpl
sub r14, 1
jne 0x140136990
mov eax, r10d
mov r11, r12
test r12d, r12d
jle 0x140136a4d
nop dword [rax]
lea ecx, [r10 + 1]
and ecx, 0x800000ff
jge 0x140136a06
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd r10, ecx
movzx r8d, byte [r10 + rbx]
add eax, r8d
and eax, 0x800000ff
jge 0x140136a21
dec eax
or eax, 0xffffff00
inc eax
movsxd rdx, eax
movzx ecx, byte [rdx + rbx]
mov byte [r10 + rbx], cl
mov byte [rdx + rbx], r8b
movzx ecx, byte [r10 + rbx]
add r8, rcx
movzx r8d, r8b
movzx r9d, byte [r8 + rbx]
xor byte [rdi], r9b
inc rdi
sub r11, 1
jne 0x1401369f0
test rbx, rbx
je 0x140136a5f
mov edx, pe_nt_image_headers64
mov rcx, rbx
call fcn.1401fda4c
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1401f09e8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1401d8cea
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1401d8ccd
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1401d8cb8

Function at 0x1401f09fc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1401d8d22
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1401d8d05
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1401d8cf0

Function at 0x1401fc9cc
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.1402151e4
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x1401fca1e
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x1401fca1e
sub ecx, 1
je 0x1401fca17
cmp ecx, 1
je 0x1401fca10
xor eax, eax
jmp 0x1401fca23
mov eax, 3
jmp 0x1401fca23
mov eax, 1
jmp 0x1401fca23
mov eax, 2
add rsp, 0x28
ret

Function at 0x1401fe9c4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401fea0e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401fea0e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401fea0e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401fea0e
cmp dword [rcx + 0x84], 0xe
jbe 0x1401fea0e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401fea10
xor al, al
add rsp, 0x28
ret

Function at 0x14020e9bc
Capabilities:
Parse pe header

Disassembly:
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 0x14020ea2b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14020ea2b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14020ea2b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14020ea2b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14020ea2b
cmp dword [rcx + 0x84], 0xe
jbe 0x14020ea2b
cmp dword [rcx + 0xf8], 0
je 0x14020ea2b
mov ecx, ebx
call fcn.14020eb3c
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.14020e790
nop
cmp dword [rbp + 0x20], 0
je 0x14020ea79
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14020ea84
int3
xor r8d, r8d
xor edx, edx
jmp 0x14020e9bc
Function at 0x14020ec34
Capabilities:
Parse pe header

Disassembly:
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 0x14020ea2b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14020ea2b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14020ea2b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14020ea2b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14020ea2b
cmp dword [rcx + 0x84], 0xe
jbe 0x14020ea2b
cmp dword [rcx + 0xf8], 0
je 0x14020ea2b
mov ecx, ebx
call fcn.14020eb3c
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.14020e790
nop
cmp dword [rbp + 0x20], 0
je 0x14020ea79
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14020ea84
int3
xor r8d, r8d
xor edx, edx
jmp 0x14020e9bc
Function at 0x14024d294
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14024d2aa
mov al, 1
jmp 0x14024d30a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14024d2bb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14024d308
mov ecx, dword [rcx + 0x18]
nop
call fcn.140259c50
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14024d308
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14024d308
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14024d308
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14024d30a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1402582a8
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 0x1402582d8
xor eax, eax
jmp 0x14025839b
mov rbp, rbx
cmp word [rax], si
je 0x1402582fd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1402582e4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1402582e0
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.140254404
movsxd r14, eax
test eax, eax
jne 0x14025833b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1402582d1
mov rcx, r14
call fcn.1402492ec
mov rdi, rax
test rax, rax
jne 0x140258354
xor ecx, ecx
call fcn.140249354
jmp 0x140258330
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.140254404
test eax, eax
jne 0x140258385
mov rcx, rdi
call fcn.140249354
jmp 0x14025838f
xor ecx, ecx
call fcn.140249354
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 0x1402583b8
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 0x14025843f
mov rsi, rbx
cmp word [rax], bp
je 0x1402583fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1402583e8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1402583e4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1402492ec
mov rdi, rax
test rax, rax
je 0x14025842c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140269240
mov rbp, rdi
xor ecx, ecx
call fcn.140249354
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 0x14025c708
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.140249d5c
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 0x14025c7a9
cmp ebx, dword [rsp + 0x30]
je 0x14025c7a2
test esi, esi
je 0x14025c7a2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14025c77d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14025c78a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14025c767
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14025c78e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14025c7ab
mov eax, 1
jmp 0x14025c7ab
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14025f71c
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, [0x1404aac60]
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 0x14025f773
cmp word [rdx], r13w
jne 0x14025f773
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14025f778
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14025f89d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14025f8be
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14025f7b1
mov rdx, r9
mov word [rbx], cx
jmp 0x14025f7d8
cmp r9, r8
jae 0x14025f7e8
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 0x14025f792
jmp 0x14025f89d
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 0x14025f892
cmp dword [rsp + 0x80], esi
je 0x14025f892
lea r8, [0x1404aac60]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14025f86a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14025f83a
mov word [rbx], r13w
jmp 0x14025f89a
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 0x14025f847
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14025f89a
cmp word [rsp + 0x70], r13w
jne 0x14025f877
cmp rbx, r14
je 0x14025f834
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14025e8b8
cmp word [rsp + 0x70], r13w
je 0x14025f89d
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, [0x1404aac60]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14025f897
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14025f89d
Function at 0x140265ad4
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.140217fd4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140265b5e
cmp byte [rbp - 0x21], r15b
je 0x140265b59
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140265b94
call fcn.14024e304
test eax, eax
jne 0x140265b80
cmp byte [rbp - 0x21], r15b
je 0x140265b78
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140265b94
cmp byte [rbp - 0x21], r15b
je 0x140265b91
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.14023f424
test eax, eax
jne 0x140265c34
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140217fd4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140265bd3
cmp byte [rbp - 0x21], r15b
je 0x140265c08
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140265c08
call fcn.14024e304
test eax, eax
jne 0x140265bf4
cmp byte [rbp - 0x21], r15b
je 0x140265bed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140265c08
cmp byte [rbp - 0x21], r15b
je 0x140265c05
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.14023f424
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140265c34
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140265c37
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140265c45
mov rcx, rdi
call fcn.140249354
cmp byte [rbp + 0x3f], r15b
je 0x140265c54
mov rcx, qword [rbp + 0x27]
call fcn.140249354
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 0x1402668ac
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.14025e8b8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14025e8b8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1402669fc
cmp rax, 0xffffffffffffffff
je 0x1402669fc
xor edi, edi
test rbp, rbp
jle 0x1402669a7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14024f1f8
mov rbx, rax
test rax, rax
jne 0x140266934
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14026699d
mov edx, 0x8000
mov ecx, r14d
call fcn.140245df0
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.14024cc00
cmp eax, 0xffffffff
je 0x14026697d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140266944
mov edx, r15d
mov ecx, r14d
call fcn.140245df0
jmp 0x14026699d
cmp byte [rsi + 0x38], dil
je 0x140266994
cmp dword [rsi + 0x34], 5
jne 0x140266994
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14026699d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140249354
jmp 0x140266a10
jns 0x140266a10
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14025e8b8
cmp rax, 0xffffffffffffffff
jne 0x1402669c8
cmp byte [rsi + 0x30], dil
je 0x140266a10
mov edi, dword [rsi + 0x2c]
jmp 0x140266a10
mov ecx, r14d
call fcn.140259c50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140266a10
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 0x140266a10
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140266a09
mov eax, dword [rsi + 0x2c]
jmp 0x140266a0e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14025e8b8
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 0x140268de0
Capabilities:
Parse pe header

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