joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004b300
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x488
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x400], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3e8], 0
mov qword [rbp + 0x3f0], 2
mov qword [rbp + 0x3f8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3d0], rax
mov qword [rbp + 0x3d8], 0
mov r13, qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, 0xffffffff
xor esi, esi
xor ebx, ebx
cmp r8, 0x201
jae 0x18004b3c0
jmp 0x18004b39f
jae 0x18004b4ac
cmp r8, 0x201
jae 0x18004b3c0
mov eax, 0x200
mov qword [rbp + 0x3c8], rax
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x18004b3fa
sub r8, rbx
sub rsi, rbx
cmp rsi, r8
jb 0x18004b46d
mov rsi, qword [rbp + 0x3d8]
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3f8], rbx
mov qword [rbp + 0x3c8], rbx
mov r15, qword [rbp + 0x3d0]
mov r12, rbx
xor ecx, ecx
call r13
mov ecx, r12d
mov rdx, r15
call rdi
test eax, eax
jne 0x18004b433
mov r14, rdi
mov rdi, r13
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, r13d
mov r13, rdi
mov rdi, r14
mov r14d, 0xffffffff
test ecx, ecx
jne 0x18004b51f
mov r8d, eax
cmp r12, r8
jne 0x18004b390
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18004b567
add r12, r12
cmp r12, r14
cmovae r12, r14
mov r8, r12
cmp r8, 0x201
jb 0x18004b39f
jmp 0x18004b3c0
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3e8]
mov rdx, rbx
call fcn.18006dc50
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x3d8], rax
mov rax, qword [rbp + 0x3f0]
mov qword [rbp + 0x3d0], rax
jmp 0x18004b3cf
mov rdx, qword [rbp + 0x3c8]
cmp rdx, r8
jb 0x18004b553
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.18004e510
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3e8]
test rdx, rdx
je 0x18004b508
mov rcx, qword [rbp + 0x3f0]
add rdx, rdx
mov r8d, 2
call fcn.1800033a0
mov rax, rsi
add rsp, 0x488
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3e8]
test rdx, rdx
jne 0x18004b4f3
jmp 0x18004b508
lea rax, str.std_src_syspalwindowsmod.rs
mov rcx, r8
mov r8, rax
call fcn.18006f410
jmp 0x18004b57f
lea rcx, str.internal_error:_entered_unreachable_code_rustc_d10a6823f4c3176be7a05a2454e5c33b861cb05flibrary_alloc_src_vecmod.rs
lea r8, str.std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.18006f0a0
ud2
Function at 0x180052414
Capabilities:
Get number of processors

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rsi, rcx
cmp byte [rcx + 0x19], 0
je 0x18005243e
mov byte [rbp + 0x2e], 3
jmp 0x180052469
mov eax, dword [0x18009f54c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x30], 1
jbe 0x180052461
mov byte [rbp + 0x2e], 1
jmp 0x180052469
call fcn.18004e6f0
mov byte [rbp + 0x2e], al
mov rax, qword [rsi + 0x10]
mov qword [rbp - 0x10], rax
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
call fcn.180052e50
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
mov eax, dword [0x18009f54c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rcx, qword [rax + 0x60]
cmp rcx, 3
jb 0x1800524c8
lea rax, [0x18009f3f8]
cmp rcx, rax
je 0x1800524dc
lock inc qword [rcx - 0x10]
jle 0x180052654
add rcx, 0xfffffffffffffff0
push 1
pop rdx
mov rax, rcx
jmp 0x1800524de
mov qword [rbp - 8], 2
push 9
pop rax
lea rcx, str._unnamed_thread__panicked_at__n
jmp 0x180052503
xor edx, edx
lea rcx, [rbp - 8]
mov qword [rcx], rdx
mov qword [rcx + 8], rax
call fcn.18004a360
test rax, rax
lea rcx, str._unnamed_thread__panicked_at__n
cmovne rcx, rax
push 9
pop rax
cmovne rax, rdx
lea rdx, [rbp - 0x60]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov qword [rbp - 0x50], rdx
lea rax, [rbp - 0x10]
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
lea rax, [rbp + 0x2e]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x38], eax
ud2

Function at 0x1800545d0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x18008c0b8]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x18005465f
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0xc0000011
jne 0x18005466c
xor edx, edx
xor eax, eax
jmp 0x180054696
cmp eax, 0x103
je 0x1800546a0
test eax, eax
js 0x18005467f
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x180054696
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.18004e110
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.180048000
mov ecx, 7
int 0x29
ud2
Function at 0x1800546f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x18008c0b8]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x180054786
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x1800547b3
test eax, eax
js 0x180054792
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x1800547a9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.18004e110
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.180048000
mov ecx, 7
int 0x29
ud2
Function at 0x180055b80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb 0x180055bec
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x180055bec
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x180055bec
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x180055c98
cmp byte [rdx], 0xed
jne 0x180055ca1
movzx r12d, byte [rdx + 1]
mov r8d, r12d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x180055ca1
movzx r13d, byte [rdx + 2]
cmp rbx, 3
jb 0x180055c31
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
and r13d, 0x3f
shl r12d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
sub rax, rbx
cmp rax, r8
jb 0x180055d8b
add rdx, 3
mov r15, rdx
and r12d, 0x3c0
or r14d, r13d
or r14d, r12d
add r14d, 0x10000
mov rcx, rsi
mov edx, r14d
call fcn.180051d40
add rdi, 0xfffffffffffffffd
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
sub rax, rbx
cmp rax, rdi
jb 0x180055db0
mov rcx, qword [rsi + 8]
add rcx, rbx
mov rdx, r15
jmp 0x180055d3e
test rdi, rdi
je 0x180055d30
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x180055cc8
add r9, 2
cmp r8, rax
cmovne r8, r9
nop word cs:[rax + rax]
mov r9, r8
cmp r8, rax
je 0x180055d30
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x180055cc0
cmp r10b, 0xe0
jb 0x180055caa
cmp r10b, 0xed
jne 0x180055cff
cmp r8, rax
je 0x180055d30
lea r8, [r9 + 2]
cmp r8, rax
je 0x180055d30
cmp byte [r9 + 1], 0x9f
ja 0x180055d2c
add r9, 3
mov r8, r9
jmp 0x180055cc0
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
cmp r10b, 0xf0
jb 0x180055cc0
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x180055cc0
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x180055d5e
add rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add rbx, rdi
mov qword [rsi + 0x10], rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.18006dc50
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x180055d3b
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r15, rdx
mov rdx, rbx
call fcn.18006dc50
mov rdx, r15
jmp 0x180055c4c
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.18006dc50
mov rbx, qword [rsi + 0x10]
jmp 0x180055c89
Function at 0x181126058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1811261df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x181126089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18112606f
add dl, dl
jne 0x181126096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1811260f6
xor eax, eax
add dl, dl
jne 0x1811260a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1811261ad
add dl, dl
jne 0x1811260b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1811260c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1811260d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1811260dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1811260ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18112607e
mov eax, 1
add dl, dl
jne 0x181126106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x181126113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1811260fb
sub eax, ebx
mov ebx, 1
jne 0x18112614c
mov ecx, 1
add dl, dl
jne 0x18112612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18112613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x181126123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18112607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x181126168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x181126175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18112615d
cmp eax, 0x7d00
jae 0x18112619b
cmp eax, 0x500
jb 0x181126196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18112607e
cmp eax, 0x7f
ja 0x18112619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18112607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1811261d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18112607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001bf8
Capabilities:
Parse pe header

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

Function at 0x14000637c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006178
Function at 0x14000943c
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 0x14000946c
xor eax, eax
jmp 0x14000952f
mov rbp, rbx
cmp word [rax], si
je 0x140009491
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140009478
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140009474
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.14000935c
movsxd r14, eax
test eax, eax
jne 0x1400094cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140009465
mov rcx, r14
call fcn.14000a318
mov rdi, rax
test rax, rax
jne 0x1400094e8
xor ecx, ecx
call fcn.1400079bc
jmp 0x1400094c4
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.14000935c
test eax, eax
jne 0x140009519
mov rcx, rdi
call fcn.1400079bc
jmp 0x140009523
xor ecx, ecx
call fcn.1400079bc
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 0x14000ca20
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.14000842c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000caaa
cmp byte [rbp - 0x21], r15b
je 0x14000caa5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000cae0
call fcn.14000ab28
test eax, eax
jne 0x14000cacc
cmp byte [rbp - 0x21], r15b
je 0x14000cac4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000cae0
cmp byte [rbp - 0x21], r15b
je 0x14000cadd
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.140007a0c
test eax, eax
jne 0x14000cb80
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000842c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000cb1f
cmp byte [rbp - 0x21], r15b
je 0x14000cb54
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000cb54
call fcn.14000ab28
test eax, eax
jne 0x14000cb40
cmp byte [rbp - 0x21], r15b
je 0x14000cb39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000cb54
cmp byte [rbp - 0x21], r15b
je 0x14000cb51
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.140007a0c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000cb80
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000cb83
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000cb91
mov rcx, rdi
call fcn.1400079bc
cmp byte [rbp + 0x3f], r15b
je 0x14000cba0
mov rcx, qword [rbp + 0x27]
call fcn.1400079bc
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 0x14000f9d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000f9f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000f9f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002360
Capabilities:
Enumerate processes
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x280
mov rax, qword [0x140067080]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r14, rcx
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400023ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateToolhelp32Snapshot_error:_0x_X_n
call fcn.140001020
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
jmp 0x1400024eb
xor esi, esi
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400024e0
mov ecx, Ordinal_26
call fcn.14004fc78
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140002449
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rsi
mov dword [rbx + 0x10], 1
lea rcx, [rsp + 0x5c]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x14000252a
jmp 0x14000244c
mov rbx, rsi
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x14000251f
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14000246f
mov rcx, qword [rbx]
call fcn.14004f9a0
mov qword [rbx + 8], rax
mov rcx, r14
sub rax, r14
movzx edi, byte [rcx]
movzx edx, byte [rcx + rax]
sub edi, edx
jne 0x140002487
inc rcx
test edx, edx
jne 0x140002475
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x1400024c6
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400024a7
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rsi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400024b9
call fcn.14004fc70
mov qword [rbx + 8], rsi
mov edx, Ordinal_26
mov rcx, rbx
call fcn.14004fc70
test edi, edi
je 0x140002519
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002402
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14004fc50
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov esi, dword [rsp + 0x38]
jmp 0x1400024e0
mov ecx, 0x8007000e
call fcn.14004f990
nop
mov ecx, 0x8007000e
call fcn.14004f990
int3
Function at 0x1400151d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x700], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x14001522e
mov dl, 1
call fcn.140005b70
mov rax, qword [rdi + 0x658]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x700]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.140005b70
mov eax, ebx
jmp 0x140015272
cmp ebx, 2
ja 0x140015270
mov r9, qword [rdi + 0x650]
lea rdx, [0x140053ed8]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x650]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140015290
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x140067080]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xf66], 0
mov rdi, rcx
jne 0x1400152d3
cmp qword [rcx + 0x660], 0
je 0x1400153b0
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.1400255b0
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140015301
mov rcx, qword [rdi + 0x660]
test rcx, rcx
je 0x140015348
cmp byte [rdi + 0x1693], 0
jne 0x140015348
lea rdx, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140015330
mov byte [rdi + 0x1693], 1
cmp byte [rdi + 0xf66], 0
je 0x1400153a8
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x140015403
cmp qword [rdi + 0x700], 0
mov byte [rsp + rbx + 0x30], 0
je 0x1400153c9
mov dl, 1
mov rcx, rdi
call fcn.140005b70
mov rax, qword [rdi + 0x658]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x700]
xor edx, edx
mov rcx, rdi
call fcn.140005b70
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14004fc50
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x650]
lea rcx, [0x140053ed8]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x650]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x1400153a8
call fcn.1400500ac
int3
Function at 0x140015410
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x140015576
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rdi
sub rsp, 0x860
mov rax, qword [0x140067080]
xor rax, rsp
mov qword [rsp + 0x840], rax
cmp byte [rcx + 0xf66], 0
mov rdi, rcx
je 0x14001555e
mov r8, rdx
mov qword [r11 - 0x10], rbx
mov edx, 0x801
lea r9, [r11 + 0x18]
lea rcx, [rsp + 0x30]
call fcn.1400255b0
movsxd rcx, eax
mov rbx, 0xffffffffffffffff
cmp rcx, 0x801
jb 0x1400154d1
mov rcx, qword [rsp + 0x878]
mov rax, rbx
nop word [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x140015490
cmp byte [rax + rcx - 1], 0xa
jne 0x1400154b8
lea r8, [0x140053ef0]
mov edx, 5
lea rcx, [rsp + 0x82c]
jmp 0x1400154cc
lea r8, [0x140053ef8]
mov edx, 4
lea rcx, [rsp + 0x82d]
call fcn.1400254a0
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400154d6
cmp qword [rdi + 0x700], 0
je 0x14001551e
mov dl, 1
mov rcx, rdi
call fcn.140005b70
mov rax, qword [rdi + 0x658]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x700]
xor edx, edx
mov rcx, rdi
call fcn.140005b70
jmp 0x140015556
mov r9, qword [rdi + 0x650]
lea rcx, [0x140053ed8]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x650]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.14004fc50
add rsp, 0x860
pop rdi
ret

Function at 0x140015610
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x140015652
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, Ordinal_60
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret