Function at 0x140058530
Capabilities:
Encode data using xor
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r13, rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x6c]
call fcn.14007a0e0
mov dword [rbp - 0x70], 0x238
lea rdx, [rbp - 0x70]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14005881e
lea r14, [rsi - 1]
mov ebx, 0x613b
mov qword [rsp + 0x70], rsi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], si
lea rax, [rbp - 0x44]
mov r8, r14
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400585c0
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x70]
call fcn.140060bd0
nop
mov dword [rsp + 0x60], 0x9eaf9e83
mov dword [rsp + 0x64], 0x9ead9eb1
mov dword [rsp + 0x68], 0x9e84
mov eax, esi
nop dword [rax]
nop dword [rax + rax]
movsxd rcx, eax
lea rdx, [rsp + 0x60]
lea rdx, [rdx + rcx*2]
movzx ecx, ax
sub cx, bx
xor word [rdx], cx
inc eax
cmp eax, 5
jb 0x140058600
mov word [rsp + 0x6a], si
lea rcx, [rsp + 0x60]
mov rax, r14
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140058630
lea rcx, [rsp + 0x70]
mov r12, qword [rbp - 0x78]
cmp r12, 8
setae bl
mov rdi, qword [rsp + 0x70]
cmovae rcx, rdi
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov r15, qword [rbp - 0x80]
mov rdx, r15
call fcn.140060f60
cmp rax, 0xffffffffffffffff
je 0x1400587d0
mov dword [rsp + 0x30], 0x9e929e82
mov dword [rsp + 0x34], 0x9e989e86
mov dword [rsp + 0x38], 0x9ea59ebb
mov dword [rsp + 0x3c], 0x9ea99ea8
mov dword [rsp + 0x40], 0x9ebd9ebe
mov dword [rsp + 0x44], 0x9eb59ee1
mov dword [rsp + 0x48], 0x9eb79ea9
xor eax, eax
mov word [rsp + 0x4c], ax
mov edx, esi
mov r8d, 0x613b
nop dword [rax]
movsxd rax, edx
lea rcx, [rsp + 0x30]
lea rcx, [rcx + rax*2]
movzx eax, dx
sub ax, r8w
xor word [rcx], ax
inc edx
cmp edx, 0xe
jb 0x1400586c0
mov word [rsp + 0x4c], si
lea rcx, [rsp + 0x30]
mov rax, r14
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400586f0
lea rcx, [rsp + 0x70]
test bl, bl
cmovne rcx, rdi
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, r15
call fcn.140060f60
cmp rax, 0xffffffffffffffff
jne 0x14005884a
mov dword [rsp + 0x30], 0x9ea79e82
mov dword [rsp + 0x34], 0x9ead9eaa
mov dword [rsp + 0x38], 0x9eb89e99
mov dword [rsp + 0x3c], 0x9eaf9ea4
mov dword [rsp + 0x40], 0x9ebd9ea8
mov dword [rsp + 0x44], 0x9efe9ebc
mov dword [rsp + 0x48], 0x9eaa9eb4
mov dword [rsp + 0x4c], 0x9eb6
mov edx, esi
mov r8d, 0x613b
nop dword [rax]
movsxd rax, edx
lea rcx, [rsp + 0x30]
lea rcx, [rcx + rax*2]
movzx eax, dx
sub ax, r8w
xor word [rcx], ax
inc edx
cmp edx, 0xf
jb 0x140058770
mov word [rsp + 0x4e], si
lea rcx, [rsp + 0x30]
mov rax, r14
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400587a0
lea rcx, [rsp + 0x70]
test bl, bl
cmovne rcx, rdi
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, r15
call fcn.140060f60
cmp rax, 0xffffffffffffffff
jne 0x14005884a
test bl, bl
je 0x140058809
lea rdx, [r12*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140058801
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058b1b
mov rcx, rdi
call fcn.1400775a8
lea rdx, [rbp - 0x70]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140058598
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov dword [rsp + 0x30], 0x9eaf9e83
mov dword [rsp + 0x34], 0x9ead9eb1
mov dword [rsp + 0x38], 0x9e959e84
mov dword [rsp + 0x3c], 0x9e989e8c
mov dword [rsp + 0x40], 0x9e9e9e8c
mov dword [rsp + 0x44], 0x9ebf9ebd
mov dword [rsp + 0x48], 0x9eb79eb2
mov dword [rsp + 0x4c], 0x9ea79ea0
mov dword [rsp + 0x50], 0x9eb39efb
mov dword [rsp + 0x54], 0x9ebd9eaf
xor eax, eax
mov word [rsp + 0x58], ax
mov edx, esi
mov r8d, 0x613b
nop dword [rax]
movsxd rax, edx
lea rcx, [rsp + 0x30]
lea rcx, [rcx + rax*2]
movzx eax, dx
sub ax, r8w
xor word [rcx], ax
inc edx
cmp edx, 0x14
jb 0x1400588b0
mov word [rsp + 0x58], si
lea rcx, [rsp + 0x30]
mov rax, r14
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400588e0
lea r9, [rsp + 0x70]
cmp r12, 8
setae bl
cmovae r9, rdi
cmp r15, rax
jne 0x140058954
mov rcx, r15
lea rax, [rsp + 0x30]
test r15, r15
je 0x140058b00
movzx edx, word [r9]
movzx r8d, word [rsp + 0x30]
cmp dx, r8w
jb 0x14005894e
lea r10, [rsp + 0x30]
sub r9, r10
cmp dx, r8w
ja 0x14005894e
cmp rcx, 1
je 0x140058b00
dec rcx
add rax, 2
movzx edx, word [r9 + rax]
movzx r8d, word [rax]
cmp dx, r8w
jae 0x14005892c
mov r8d, 0x613b
mov dword [rbp + 0x200], 0x9ea49e9a
xor eax, eax
mov word [rbp + 0x204], ax
mov edx, esi
nop dword [rax]
movsxd rax, edx
lea rcx, [rbp + 0x200]
lea rcx, [rcx + rax*2]
movzx eax, dx
sub ax, r8w
xor word [rcx], ax
inc edx
cmp edx, 2
jb 0x140058970
mov word [rbp + 0x204], si
lea rax, [rbp + 0x200]
nop dword [rax]
inc r14
cmp word [rax + r14*2], 0
jne 0x1400589a0
lea rcx, [rsp + 0x70]
test bl, bl
cmovne rcx, rdi
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x200]
xor r8d, r8d
mov rdx, r15
call fcn.140060f60
lea rcx, [rax + 2]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
cmp r15, rcx
jb 0x140058b21
sub r15, rcx
mov r8d, 4
cmp r15, r8
cmovb r8, r15
lea rax, [rsp + 0x70]
test bl, bl
cmovne rax, rdi
lea rdx, [rax + rcx*2]
lea rcx, [rsp + 0x30]
call fcn.140060bd0
nop
call fcn.140086004
mov rdi, rax
lea rbx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rbx, qword [rsp + 0x30]
mov dword [rax], esi
mov r8d, 0xa
lea rdx, [rbp + 0x200]
mov rcx, rbx
call fcn.14008b454
mov esi, eax
cmp rbx, qword [rbp + 0x200]
je 0x140058b27
cmp dword [rdi], 0x22
je 0x140058b0e
call fcn.1400196e0
mov dword [rax + 0x24], esi
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140058aae
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058aa9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058b34
call fcn.1400775a8
call fcn.1400196e0
mov byte [rax + 0x21], 0
mov esi, dword [rbp - 0x68]
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x14005881e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058af6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058b1b
call fcn.1400775a8
jmp 0x14005881e
call fcn.1400196e0
mov dword [rax + 0x24], 0x644
jmp 0x140058aae
lea rcx, str.stoi_argument_out_of_range
call fcn.140076478
nop
call fcn.1400871d4
nop
call fcn.14000cae0
nop
lea rcx, [0x1400b9820]
call fcn.140076430
nop
call fcn.1400871d4
int3