joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140085980
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140085813
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140085813
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140085813
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140085813
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140085813
cmp dword [rcx + 0x84], 0xe
jbe 0x140085813
cmp dword [rcx + 0xf8], 0
je 0x140085813
mov ecx, ebx
call fcn.1400858b4
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400856a4
cmp dword [rbp + 0x20], 0
je 0x140085860
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140085868
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400857ac

Function at 0x140089958
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140089978
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140084f50
or eax, 0xffffffff
jmp 0x14008997a
xor eax, eax
add rsp, 0x28
ret

Function at 0x14008b2ec
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14008b30c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140084f50
or eax, 0xffffffff
jmp 0x14008b30e
xor eax, eax
add rsp, 0x28
ret
jmp 0x14008b2ec

Function at 0x14008b314
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14008b30c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140084f50
or eax, 0xffffffff
jmp 0x14008b30e
xor eax, eax
add rsp, 0x28
ret
jmp 0x14008b2ec
Function at 0x1400986d4
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1400983fa
call fcn.140084fc0
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140088550
jmp 0x140098545
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140098545
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140098545
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140098429
lock or dword [rcx + 0x14], 0x10
jmp 0x140098545
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14009843d
call fcn.14009cc50
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x14009844d
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x140098450
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.14008a7d0
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.140097e50
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140098533
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1400984e1
mov rcx, rbx
call fcn.14008a7d0
cmp eax, 0xffffffff
je 0x1400984cc
mov rcx, rbx
call fcn.14008a7d0
cmp eax, 0xfffffffe
je 0x1400984cc
mov rcx, rbx
call fcn.14008a7d0
movsxd rdi, eax
lea r14, [0x1400ee390]
mov rcx, rbx
sar rdi, 6
call fcn.14008a7d0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1400984d3
lea rdx, [0x1400ec2d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400984e1
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140098505
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140098505
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140098505
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x140098523
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x14009852e
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x14009854a
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1400983c4
Function at 0x1400012d0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x148
mov rsi, rcx
mov rax, qword [0x14004a0e0]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rdx, [rsp + 0x30]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, 0x103
nop word cs:[rax + rax]
cmp byte [rsp + rax + 0x30], 0x5c
lea rax, [rax - 1]
jne 0x140001310
add eax, 2
cdqe
mov byte [rsp + rax + 0x30], 0
mov dword [rsp + 0x20], 0x3b
lea rdx, [rsp + 0x24]
mov eax, dword [rsp + 0x20]
xor al, 0x32
mov byte [rsp + 0x24], al
mov eax, dword [rsp + 0x20]
inc al
xor al, 0x2e
mov byte [rsp + 0x25], al
mov eax, dword [rsp + 0x20]
add al, 2
xor al, 0x6a
mov byte [rsp + 0x26], al
mov eax, dword [rsp + 0x20]
add al, 3
xor al, 0x70
mov byte [rsp + 0x27], al
mov eax, dword [rsp + 0x20]
add al, 4
xor al, 0x67
mov byte [rsp + 0x28], al
mov byte [rsp + 0x29], 0
movzx eax, byte [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
xor cl, al
mov byte [rsp + 0x24], cl
movzx eax, byte [rsp + 0x25]
mov ecx, dword [rsp + 0x20]
inc cl
xor cl, al
mov byte [rsp + 0x25], cl
movzx eax, byte [rsp + 0x26]
mov ecx, dword [rsp + 0x20]
add cl, 2
xor cl, al
mov byte [rsp + 0x26], cl
movzx eax, byte [rsp + 0x27]
mov ecx, dword [rsp + 0x20]
add cl, 3
xor cl, al
mov byte [rsp + 0x27], cl
movzx eax, byte [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
add cl, 4
xor cl, al
mov byte [rsp + 0x28], cl
mov byte [rsp + 0x29], 0
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.14001c360
mov qword [rsp + 0x20], 0
lea r8, [0x1400324ec]
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.14001c574
test eax, eax
jne 0x14000143c
mov r9, qword [rsp + 0x20]
test r9, r9
je 0x14000143c
mov edx, 1
mov r8d, 0x4b062
mov rcx, rsi
call fcn.14001c82c
mov rcx, qword [rsp + 0x20]
call fcn.14001ca80
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140017da0
nop
add rsp, 0x148
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140017da0
mov ecx, 0xffffffff
call fcn.14001ce20
int3
Function at 0x140009660
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rax, qword [0x14004a0e0]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov dword [0x14004da54], 0
cmp rsi, rbx
jae 0x140009863
mov r14, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r15, [rsp + 0x20]
mov rdi, qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
lea r13, [0x14004b508]
lea r12, [0x14004c790]
jmp 0x140009738
mov ecx, dword [0x14004da54]
lea eax, [rcx + 1]
mov dword [0x14004da54], eax
movsxd rax, ecx
lea rax, [rax + rax*2]
shl rax, 4
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm2, xmmword [rsp + 0x40]
movups xmmword [rax + r12 + 0x20], xmm2
movups xmmword [rax + r12 + 0x10], xmm1
movups xmmword [rax + r12], xmm0
add rsi, qword [rsp + 0x38]
cmp rsi, rbx
jae 0x140009863
call r14
mov r9d, 0x30
mov rcx, rax
mov rdx, rsi
mov r8, r15
call rdi
cmp dword [rsp + 0x48], 0x20000
jne 0x14000972a
cmp dword [rsp + 0x40], 0x1000
jne 0x14000972a
mov eax, dword [rsp + 0x44]
cmp eax, 4
je 0x140009779
cmp eax, 0x40
je 0x1400096f0
cmp eax, 0x20
je 0x1400096f0
jmp 0x14000972a
cmp qword [rsp + 0x38], 0x19000
jb 0x14000972a
mov rax, qword [rsp + 0x28]
mov ecx, dword [0x14004da50]
test ecx, ecx
jle 0x1400097f1
cmp ecx, 1
je 0x1400097cd
mov rdx, rcx
shr rdx, 1
mov rbp, r13
nop word cs:[rax + rax]
cmp qword [rbp - 0x30], rax
je 0x14000972a
cmp qword [rbp], rax
je 0x14000972a
add rbp, 0x60
dec rdx
jne 0x1400097b0
mov edx, ecx
and edx, 0xfffffffe
cmp rdx, rcx
jae 0x1400097f1
lea rcx, [rdx + rdx*2]
shl rcx, 4
lea rdx, [0x14004b4d0]
cmp qword [rcx + rdx + 8], rax
je 0x14000972a
mov ecx, dword [0x14004da54]
test ecx, ecx
jle 0x14000972a
cmp ecx, 1
je 0x14000983d
mov rdx, rcx
shr rdx, 1
lea rbp, [0x14004c7c8]
nop word cs:[rax + rax]
cmp qword [rbp - 0x30], rax
je 0x1400096f6
cmp qword [rbp], rax
je 0x1400096f6
add rbp, 0x60
dec rdx
jne 0x140009820
mov edx, ecx
and edx, 0xfffffffe
cmp rdx, rcx
jae 0x14000972a
lea rdx, [rdx + rdx*2]
shl rdx, 4
cmp qword [rdx + r12 + 8], rax
jne 0x14000972a
jmp 0x1400096f6
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140017da0
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14001ce20
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 0x14001cc8b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001cc8b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001cc8b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001cc8b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001cc8b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001cc8b
cmp dword [rcx + 0xf8], 0
je 0x14001cc8b
mov ecx, ebx
call fcn.14001cd3c
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.14001cb18
nop
cmp dword [rbp + 0x20], 0
je 0x14001ccd9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001cce4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001cc1c
Function at 0x140022d54
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, [0x14004fe40]
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 0x140022dab
cmp word [rdx], r13w
jne 0x140022dab
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140022db0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140022ed5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140022ef6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140022de9
mov rdx, r9
mov word [rbx], cx
jmp 0x140022e10
cmp r9, r8
jae 0x140022e20
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 0x140022dca
jmp 0x140022ed5
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 0x140022eca
cmp dword [rsp + 0x80], esi
je 0x140022eca
lea r8, [0x14004fe40]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140022ea2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140022e72
mov word [rbx], r13w
jmp 0x140022ed2
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 0x140022e7f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140022ed2
cmp word [rsp + 0x70], r13w
jne 0x140022eaf
cmp rbx, r14
je 0x140022e6c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002a9e8
cmp word [rsp + 0x70], r13w
je 0x140022ed5
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, [0x14004fe40]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140022ecf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140022ed5
Function at 0x140028188
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 0x1400281b8
xor eax, eax
jmp 0x14002827b
mov rbp, rbx
cmp word [rax], si
je 0x1400281dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400281c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400281c0
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.1400280a8
movsxd r14, eax
test eax, eax
jne 0x14002821b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400281b1
mov rcx, r14
call fcn.14002503c
mov rdi, rax
test rax, rax
jne 0x140028234
xor ecx, ecx
call fcn.1400238b4
jmp 0x140028210
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.1400280a8
test eax, eax
jne 0x140028265
mov rcx, rdi
call fcn.1400238b4
jmp 0x14002826f
xor ecx, ecx
call fcn.1400238b4
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 0x14002d6bc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002d6d2
mov al, 1
jmp 0x14002d732
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002d6e3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002d730
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002903c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002d730
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002d730
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002d730
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002d732
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002e5f8
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.140027178
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002e682
cmp byte [rbp - 0x21], r15b
je 0x14002e67d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002e6b8
call fcn.1400249a0
test eax, eax
jne 0x14002e6a4
cmp byte [rbp - 0x21], r15b
je 0x14002e69c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002e6b8
cmp byte [rbp - 0x21], r15b
je 0x14002e6b5
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.140026758
test eax, eax
jne 0x14002e758
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140027178
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002e6f7
cmp byte [rbp - 0x21], r15b
je 0x14002e72c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002e72c
call fcn.1400249a0
test eax, eax
jne 0x14002e718
cmp byte [rbp - 0x21], r15b
je 0x14002e711
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002e72c
cmp byte [rbp - 0x21], r15b
je 0x14002e729
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.140026758
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002e758
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002e75b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002e769
mov rcx, rdi
call fcn.1400238b4
cmp byte [rbp + 0x3f], r15b
je 0x14002e778
mov rcx, qword [rbp + 0x27]
call fcn.1400238b4
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 0x14002ecf8
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.14002a9e8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002a9e8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002ee48
cmp rax, 0xffffffffffffffff
je 0x14002ee48
xor edi, edi
test rbp, rbp
jle 0x14002edf3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140024714
mov rbx, rax
test rax, rax
jne 0x14002ed80
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002ede9
mov edx, 0x8000
mov ecx, r14d
call fcn.140022024
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.14002b5d8
cmp eax, 0xffffffff
je 0x14002edc9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002ed90
mov edx, r15d
mov ecx, r14d
call fcn.140022024
jmp 0x14002ede9
cmp byte [rsi + 0x38], dil
je 0x14002ede0
cmp dword [rsi + 0x34], 5
jne 0x14002ede0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002ede9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400238b4
jmp 0x14002ee5c
jns 0x14002ee5c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002a9e8
cmp rax, 0xffffffffffffffff
jne 0x14002ee14
cmp byte [rsi + 0x30], dil
je 0x14002ee5c
mov edi, dword [rsi + 0x2c]
jmp 0x14002ee5c
mov ecx, r14d
call fcn.14002903c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002ee5c
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 0x14002ee5c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002ee55
mov eax, dword [rsi + 0x2c]
jmp 0x14002ee5a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002a9e8
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 0x140011203
Capabilities:
Terminate process

Disassembly:
jmp 0x140015270
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011280
Capabilities:
Create thread

Disassembly:
jmp 0x140011a90
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rcx, [0x1400220a4]
call fcn.14001138e
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140011285]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 8], rax
xor eax, eax
cmp eax, 1
je 0x140011ae8
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140011ad4
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140011294
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012f80
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012fa0
xor al, al
jmp 0x140013021
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012fb3
xor al, al
jmp 0x140013021
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140012fdd
xor al, al
jmp 0x140013021
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012ff1
xor al, al
jmp 0x140013021
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140013003
xor al, al
jmp 0x140013021
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001301f
xor al, al
jmp 0x140013021
mov al, 1
add rsp, 0x38
ret
Function at 0x140038ef0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140038f32
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x140038f3a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x140038f4b
jmp 0x140038f62
xor r10d, r10d
jmp 0x140038fed
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140038f62
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140038f79
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140038f99
add r11, r8
jmp 0x1400390ca
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140039062
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140039010
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x140039080
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x140039092
jmp 0x1400390ac
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x1400390ac
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x1400390c6
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret