Function at 0x1402b6580
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
push rdi
push rbp
lea rsi, section.UPX1
lea rdi, [rsi - 0x1e4000]
lea rax, [rdi + 0x282d88]
push qword [rax]
mov dword [rax], 0x625ecd3a
push rax
push rdi
mov eax, 0x2b4d99
push rax
mov rcx, rsp
mov rdx, rdi
mov rdi, rsi
mov esi, 0xd1575
push rbp
mov rbp, rsp
mov r9d, dword [rcx]
mov r8, rdx
mov rdx, rsi
lea rsi, [rdi + 2]
push rsi
mov al, byte [rdi]
dec edx
mov cl, al
and al, 7
shr cl, 3
mov rbx, 0xfffffffffffffd00
shl rbx, cl
mov cl, al
lea rbx, [rsp + rbx*2 - 0xe78]
and rbx, 0xffffffffffffffc0
push 0
cmp rsp, rbx
jne 0x1402b65ec
push rbx
lea rdi, [rbx + 8]
mov cl, byte [rsi - 1]
dec edx
mov byte [rdi + 2], al
mov al, cl
shr cl, 4
mov byte [rdi + 1], cl
and al, 0xf
mov byte [rdi], al
lea rcx, [rdi - 4]
push rax
push r15
lea rax, [rdi + 4]
xor r15d, r15d
push r14
mov r14d, 1
push r13
xor r13d, r13d
push r12
push rbp
push rbx
sub rsp, 0x48
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x20], rax
mov eax, 1
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x30], r8
mov ebx, eax
mov dword [rsp + 0x2c], r9d
movzx ecx, byte [rdi + 2]
shl ebx, cl
mov ecx, ebx
mov rbx, qword [rsp + 0x80]
dec ecx
mov dword [rsp + 0x1c], ecx
movzx ecx, byte [rdi + 1]
shl eax, cl
mov rcx, qword [rsp + 0x38]
dec eax
mov dword [rsp + 0x18], eax
movzx eax, byte [rdi]
mov dword [rcx], 0
mov dword [rsp + 0x10], 0
mov dword [rsp + 0xc], 1
mov dword [rsp + 8], 1
mov dword [rsp + 4], 1
mov dword [rbx], 0
mov dword [rsp + 0x14], eax
movzx ecx, byte [rdi + 1]
add ecx, eax
mov eax, 0x300
shl eax, cl
xor ecx, ecx
lea edi, [rax + 0x736]
cmp r15d, edi
jae 0x1402b66d6
mov rbx, qword [rsp + 0x20]
mov eax, ecx
inc ecx
cmp ecx, edi
mov word [rbx + rax*2], 0x400
jmp 0x1402b66c1
mov rdi, qword [rsp + 0x40]
mov eax, edx
xor r10d, r10d
or r11d, 0xffffffff
xor edx, edx
mov r12, rdi
add r12, rax
cmp rdi, r12
je 0x1402b6fe0
movzx eax, byte [rdi]
shl r10d, 8
inc edx
inc rdi
or r10d, eax
cmp edx, 4
jle 0x1402b66ec
cmp r15d, dword [rsp + 0x2c]
jae 0x1402b6fea
mov eax, dword [rsp + 0x1c]
movsxd rbx, dword [rsp + 0x10]
mov rdx, qword [rsp + 0x20]
and eax, r15d
mov dword [rsp], eax
movsxd rbp, dword [rsp]
mov rax, rbx
shl rax, 4
add rax, rbp
cmp r11d, 0xffffff
lea r9, [rdx + rax*2]
ja 0x1402b675d
cmp rdi, r12
je 0x1402b6fe0
movzx eax, byte [rdi]
shl r10d, 8
shl r11d, 8
inc rdi
or r10d, eax
movzx edx, word [r9]
mov eax, r11d
shr eax, 0xb
movzx ecx, dx
imul eax, ecx
cmp r10d, eax
jae 0x1402b693b
mov r11d, eax
mov eax, 0x800
mov rbx, qword [rsp + 0x20]
sub eax, ecx
movzx ecx, byte [rsp + 0x14]
mov esi, 1
sar eax, 5
lea eax, [rdx + rax]
movzx edx, r13b
mov word [r9], ax
mov eax, dword [rsp + 0x18]
and eax, r15d
shl eax, cl
mov ecx, 8
sub ecx, dword [rsp + 0x14]
sar edx, cl
add eax, edx
imul eax, eax, 0x300
cmp dword [rsp + 0x10], 6
mov eax, eax
lea r9, [rbx + rax*2 + 0xe6c]
jle 0x1402b6886
mov rdx, qword [rsp + 0x30]
mov eax, r15d
sub eax, r14d
movzx ebp, byte [rdx + rax]
add ebp, ebp
movsxd rdx, esi
mov ebx, ebp
and ebx, 0x100
cmp r11d, 0xffffff
movsxd rax, ebx
lea rax, [r9 + rax*2]
lea r8, [rax + rdx*2]
ja 0x1402b6818
cmp rdi, r12
je 0x1402b6fe0
movzx eax, byte [rdi]
shl r10d, 8
shl r11d, 8
inc rdi
or r10d, eax
movzx edx, word [r8 + 0x200]
mov eax, r11d
shr eax, 0xb
movzx ecx, dx
imul eax, ecx
cmp r10d, eax
jae 0x1402b6851
mov r11d, eax
mov eax, 0x800
add esi, esi
sub eax, ecx
sar eax, 5
test ebx, ebx
lea eax, [rdx + rax]
mov word [r8 + 0x200], ax
je 0x1402b6870
jmp 0x1402b687e
sub r11d, eax
sub r10d, eax
mov eax, edx
shr ax, 5
lea esi, [rsi + rsi + 1]
sub dx, ax
test ebx, ebx
mov word [r8 + 0x200], dx
je 0x1402b687e
cmp esi, 0xff
jle 0x1402b67dd
jmp 0x1402b68f6
cmp esi, 0xff
jg 0x1402b68f6
movsxd rax, esi
cmp r11d, 0xffffff
lea r8, [r9 + rax*2]
ja 0x1402b68b0
cmp rdi, r12
je 0x1402b6fe0
movzx eax, byte [rdi]
shl r10d, 8
shl r11d, 8
inc rdi
or r10d, eax
movzx edx, word [r8]
mov eax, r11d
shr eax, 0xb
movzx ecx, dx
imul eax, ecx
cmp r10d, eax
jae 0x1402b68dd
mov r11d, eax
mov eax, 0x800
add esi, esi
sub eax, ecx
sar eax, 5
lea eax, [rdx + rax]
mov word [r8], ax
jmp 0x1402b687e
sub r11d, eax
sub r10d, eax
mov eax, edx
shr ax, 5
lea esi, [rsi + rsi + 1]
sub dx, ax
mov word [r8], dx
jmp 0x1402b687e
mov rcx, qword [rsp + 0x30]
mov eax, r15d
inc r15d
mov r13d, esi
mov byte [rcx + rax], sil
cmp dword [rsp + 0x10], 3
jg 0x1402b691c
mov dword [rsp + 0x10], 0
jmp 0x1402b6fc0
mov edx, dword [rsp + 0x10]
mov eax, dword [rsp + 0x10]
sub edx, 3
sub eax, 6
cmp dword [rsp + 0x10], 9
cmovg edx, eax
mov dword [rsp + 0x10], edx
jmp 0x1402b6fc0
sub r11d, eax
sub r10d, eax
mov eax, edx
shr ax, 5
sub dx, ax
mov rax, qword [rsp + 0x20]
cmp r11d, 0xffffff
mov word [r9], dx
lea rsi, [rax + rbx*2]
ja 0x1402b697a
cmp rdi, r12
je 0x1402b6fe0
movzx eax, byte [rdi]
shl r10d, 8
shl r11d, 8
inc rdi
or r10d, eax
movzx edx, word [rsi + 0x180]
mov eax, r11d
shr eax, 0xb
movzx ecx, dx
imul eax, ecx
cmp r10d, eax
jae 0x1402b69e0
mov r11d, eax
mov eax, 0x800
mov r9, qword [rsp + 0x20]
sub eax, ecx
mov ecx, dword [rsp + 0xc]
mov dword [rsp + 0xc], r14d
sar eax, 5
lea eax, [rdx + rax]
mov edx, dword [rsp + 8]
mov dword [rsp + 8], ecx
mov word [rsi + 0x180], ax
xor eax, eax
cmp dword [rsp + 0x10], 6
mov dword [rsp + 4], edx
setg al
add r9, 0x664
lea eax, [rax + rax*2]
mov dword [rsp + 0x10], eax
jmp 0x1402b6c34
sub r11d, eax
sub r10d, eax
mov eax, edx
shr ax, 5
sub dx, ax
cmp r11d, 0xffffff
mov word [rsi + 0x180], dx
ja 0x1402b6a19
cmp rdi, r12
je 0x1402b6fe0
movzx eax, byte [rdi]
shl r10d, 8
shl r11d, 8
inc rdi
or r10d, eax
movzx edx, word [rsi + 0x198]
mov eax, r11d
shr eax, 0xb
movzx ecx, dx
imul eax, ecx
cmp r10d, eax
jae 0x1402b6b05
mov r8d, 0x800
mov r11d, eax
shl rbx, 5
mov eax, r8d
sub eax, ecx
sar eax, 5
lea eax, [rdx + rax]
mov word [rsi + 0x198], ax
mov rax, qword [rsp + 0x20]
add rax, rbx
cmp r11d, 0xffffff
lea rsi, [rax + rbp*2]
ja 0x1402b6a83
cmp rdi, r12
je 0x1402b6fe0
movzx eax, byte [rdi]
shl r10d, 8
shl r11d, 8
inc rdi
or r10d, eax
movzx edx, word [rsi + 0x1e0]
mov eax, r11d
shr eax, 0xb
movzx ecx, dx
imul eax, ecx
cmp r10d, eax
jae 0x1402b6aea
sub r8d, ecx
mov r11d, eax
sar r8d, 5
test r15d, r15d
lea eax, [rdx + r8]
mov word [rsi + 0x1e0], ax
je 0x1402b6fe0
xor eax, eax
cmp dword [rsp + 0x10], 6
mov rbx, qword [rsp + 0x30]
setg al
lea eax, [rax + rax + 9]
mov dword [rsp + 0x10], eax
mov eax, r15d
sub eax, r14d
movzx r13d, byte [rbx + rax]
mov eax, r15d
inc r15d
mov byte [rbx + rax], r13b
jmp 0x1402b6fc0
sub r11d, eax
sub r10d, eax
mov eax, edx
shr ax, 5
sub dx, ax
mov word [rsi + 0x1e0], dx
jmp 0x1402b6c16
sub r11d, eax
sub r10d, eax
mov eax, edx
shr ax, 5
sub dx, ax
cmp r11d, 0xffffff
mov word [rsi + 0x198], dx
ja 0x1402b6b3e
cmp rdi, r12
je 0x1402b6fe0
movzx eax, byte [rdi]
shl r10d, 8
shl r11d, 8
inc rdi
or r10d, eax
movzx edx, word [rsi + 0x1b0]
mov eax, r11d
shr eax, 0xb
movzx ecx, dx
imul eax, ecx
cmp r10d, eax
jae 0x1402b6b76
mov r11d, eax
mov eax, 0x800
sub eax, ecx
sar eax, 5
lea eax, [rdx + rax]
mov word [rsi + 0x1b0], ax
mov eax, dword [rsp + 0xc]
jmp 0x1402b6c0e
sub r11d, eax
sub r10d, eax
mov eax, edx
shr ax, 5
sub dx, ax
cmp r11d, 0xffffff
mov word [rsi + 0x1b0], dx
ja 0x1402b6baf
cmp rdi, r12
je 0x1402b6fe0
movzx eax, byte [rdi]
shl r10d, 8
shl r11d, 8
inc rdi
or r10d, eax
movzx edx, word [rsi + 0x1c8]
mov eax, r11d
shr eax, 0xb
movzx ecx, dx
imul eax, ecx
cmp r10d, eax
jae 0x1402b6be4
mov r11d, eax
mov eax, 0x800
sub eax, ecx
sar eax, 5
lea eax, [rdx + rax]
mov word [rsi + 0x1c8], ax
mov eax, dword [rsp + 8]
jmp 0x1402b6c06
sub r11d, eax
sub r10d, eax
mov eax, edx
shr ax, 5
sub dx, ax
mov eax, dword [rsp + 4]
mov word [rsi + 0x1c8], dx
mov edx, dword [rsp + 8]
mov dword [rsp + 4], edx
mov ecx, dword [rsp + 0xc]
mov dword [rsp + 8], ecx
mov dword [rsp + 0xc], r14d
mov r14d, eax
xor eax, eax
cmp dword [rsp + 0x10], 6
mov r9, qword [rsp + 0x20]
setg al
add r9, 0xa68
lea eax, [rax + rax*2 + 8]
mov dword [rsp + 0x10], eax
cmp r11d, 0xffffff
ja 0x1402b6c57
cmp rdi, r12
je 0x1402b6fe0
movzx eax, byte [rdi]
shl r10d, 8
shl r11d, 8
inc rdi
or r10d, eax
movzx edx, word [r9]
mov eax, r11d
shr eax, 0xb
movzx ecx, dx
imul eax, ecx
cmp r10d, eax
jae 0x1402b6c92
mov r11d, eax
mov eax, 0x800
xor r13d, r13d
sub eax, ecx
sar eax, 5
lea eax, [rdx + rax]
mov word [r9], ax
movsxd rax, dword [rsp]
shl rax, 4
lea r8, [r9 + rax + 4]
jmp 0x1402b6d09
sub r11d, eax
sub r10d, eax
mov eax, edx
shr ax, 5
sub dx, ax
cmp r11d, 0xffffff
mov word [r9], dx
ja 0x1402b6cc8
cmp rdi, r12
je 0x1402b6fe0
movzx eax, byte [rdi]
shl r10d, 8
shl r11d, 8
inc rdi
or r10d, eax
movzx edx, word [r9 + 2]
mov eax, r11d
shr eax, 0xb
movzx ecx, dx
imul eax, ecx
cmp r10d, eax
jae 0x1402b6d11
mov r11d, eax
mov eax, 0x800
mov r13d, 8
sub eax, ecx
sar eax, 5
lea eax, [rdx + rax]
mov word [r9 + 2], ax
movsxd rax, dword [rsp]
shl rax, 4
lea r8, [r9 + rax + 0x104]
mov r9d, 3
jmp 0x1402b6d38
sub r11d, eax
sub r10d, eax
mov eax, edx
shr ax, 5
lea r8, [r9 + 0x204]
mov r13d, 0x10
sub dx, ax
mov word [r9 + 2], dx
mov r9d, 8
mov ebx, r9d
mov ebp, 1
movsxd rax, ebp
cmp r11d, 0xffffff
lea rsi, [r8 + rax*2]
ja 0x1402b6d6a
cmp rdi, r12
je 0x1402b6fe0
movzx eax, byte [rdi]
shl r10d, 8
shl r11d, 8
inc rdi
or r10d, eax
movzx ecx, word [rsi]
mov eax, r11d
shr eax, 0xb
movzx edx, cx
imul eax, edx
cmp r10d, eax
jae 0x1402b6d95
mov r11d, eax
mov eax, 0x800
add ebp, ebp
sub eax, edx
sar eax, 5
lea eax, [rcx + rax]
mov word [rsi], ax
jmp 0x1402b6dab
sub r11d, eax
sub r10d, eax
mov eax, ecx
shr ax, 5
lea ebp, [rbp + rbp + 1]
sub cx, ax
mov word [rsi], cx
dec ebx
jne 0x1402b6d40
mov eax, 1
mov ecx, r9d
shl eax, cl
sub ebp, eax
add ebp, r13d
cmp dword [rsp + 0x10], 3
jg 0x1402b6f8b
add dword [rsp + 0x10], 7
mov eax, 3
cmp ebp, 4
cmovl eax, ebp
mov rbx, qword [rsp + 0x20]
mov r8d, 1
cdqe
shl rax, 7
lea r9, [rbx + rax + 0x360]
mov ebx, 6
movsxd rax, r8d
cmp r11d, 0xffffff
lea rsi, [r9 + rax*2]
ja 0x1402b6e21
cmp rdi, r12
je 0x1402b6fe0
movzx eax, byte [rdi]
shl r10d, 8
shl r11d, 8
inc rdi
or r10d, eax
movzx edx, word [rsi]
mov eax, r11d
shr eax, 0xb
movzx ecx, dx
imul eax, ecx
cmp r10d, eax
jae 0x1402b6e4d
mov r11d, eax
mov eax, 0x800
add r8d, r8d
sub eax, ecx
sar eax, 5
lea eax, [rdx + rax]
mov word [rsi], ax
jmp 0x1402b6e64
sub r11d, eax
sub r10d, eax
mov eax, edx
shr ax, 5
lea r8d, [r8 + r8 + 1]
sub dx, ax
mov word [rsi], dx
dec ebx
jne 0x1402b6df7
sub r8d, 0x40
cmp r8d, 3
mov r14d, r8d
jle 0x1402b6f86
and r14d, 1
mov eax, r8d
sar eax, 1
or r14d, 2
cmp r8d, 0xd
lea esi, [rax - 1]
jg 0x1402b6eb2
mov ecx, esi
mov rbx, qword [rsp + 0x20]
movsxd rax, r8d
shl r14d, cl
add rax, rax
mov edx, r14d
lea rdx, [rbx + rdx*2]
sub rdx, rax
lea r9, [rdx + 0x55e]
jmp 0x1402b6f03
lea esi, [rax - 5]
cmp r11d, 0xffffff
ja 0x1402b6ed8
cmp rdi, r12
je 0x1402b6fe0
movzx eax, byte [rdi]
shl r10d, 8
shl r11d, 8
inc rdi
or r10d, eax
shr r11d, 1
add r14d, r14d
cmp r10d, r11d
jb 0x1402b6eea
sub r10d, r11d
or r14d, 1
dec esi
jne 0x1402b6eb5
mov r9, qword [rsp + 0x20]
shl r14d, 4
mov esi, 4
add r9, 0x644
mov r13d, 1
mov ebx, 1
movsxd rax, ebx
cmp r11d, 0xffffff
lea r8, [r9 + rax*2]
ja 0x1402b6f38
cmp rdi, r12
je 0x1402b6fe0
movzx eax, byte [rdi]
shl r10d, 8
shl r11d, 8
inc rdi
or r10d, eax
movzx edx, word [r8]
mov eax, r11d
shr eax, 0xb
movzx ecx, dx
imul eax, ecx
cmp r10d, eax
jae 0x1402b6f65
mov r11d, eax
mov eax, 0x800
add ebx, ebx
sub eax, ecx
sar eax, 5
lea eax, [rdx + rax]
mov word [r8], ax
jmp 0x1402b6f7f
sub r11d, eax
sub r10d, eax
mov eax, edx
shr ax, 5
lea ebx, [rbx + rbx + 1]
or r14d, r13d
sub dx, ax
mov word [r8], dx
add r13d, r13d
dec esi
jne 0x1402b6f0e
inc r14d
je 0x1402b6fcb
add ebp, 2
cmp r14d, r15d
ja 0x1402b6fe0
mov rdx, qword [rsp + 0x30]
mov eax, r15d
sub eax, r14d
movzx r13d, byte [rdx + rax]
mov eax, r15d
inc r15d
dec ebp
mov byte [rdx + rax], r13b
setne dl
xor eax, eax
cmp r15d, dword [rsp + 0x2c]
setb al
test edx, eax
jne 0x1402b6f93
cmp r15d, dword [rsp + 0x2c]
jb 0x1402b6714
cmp r11d, 0xffffff
ja 0x1402b6fea
cmp rdi, r12
mov eax, 1
je 0x1402b7004
jmp 0x1402b6fe7
mov eax, 1
jmp 0x1402b7004
inc rdi
mov eax, edi
sub eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x80]
mov dword [rcx], eax
mov dword [rbx], r15d
xor eax, eax
add rsp, 0x48
pop rbx
pop rbp
pop r12
pop r13
pop r14
pop r15
leave
pop rax
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x159000
mov dl, 0x1c
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1402b7064
cmp rsi, rcx
jae 0x1402b706c
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1402b704b
cmp al, 0x8f
ja 0x1402b704b
cmp byte [rsi - 2], 0xf
je 0x1402b7051
sub al, 0xe8
cmp al, 1
ja 0x1402b7035
cmp rsi, rcx
jae 0x1402b706c
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1402b703b
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1402b706c
lodsb al, byte [rsi]
jmp 0x1402b704b
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2ad000]
mov eax, dword [rdi]
or eax, eax
je 0x1402b70c9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2b7568]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1402b7079
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1402b70c3
mov qword [rbx], rax
add rbx, 8
jmp 0x1402b7099
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1402b710d
cmp al, 0xef
ja 0x1402b70f5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1402b70d5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1402b70e4
mov eax, dword [rdi]
add rdi, 4
jmp 0x1402b70e4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.1402b718c], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1402b718c
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1402b717c
sub rsp, 0xffffffffffffff80
jmp 0x14005f4a0