Function at 0x18041e540
Capabilities:
Encode data using base64
Get system information on windows

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 r15, rcx
mov rax, qword [rcx + 0x20]
cmp rax, 0x100
jb 0x18041e593
add rax, 0xffffffffffffff00
mov qword [r15 + 0x20], rax
mov rdx, qword [r15 + 8]
mov rdi, qword [r15 + 0x10]
mov r14, qword [rdx]
add rdx, 8
mov qword [r15 + 8], rdx
cmp rdi, qword [r15 + 0x18]
je 0x18041e6ba
mov qword [rdi], r14
jmp 0x18041eac4
mov rbx, qword [r15 + 0x10]
mov rax, qword [r15]
mov rdi, qword [r15 + 8]
mov rsi, rbx
sub rsi, rdi
mov r14, qword [r15 + 0x18]
mov rcx, r14
sub rcx, rax
cmp rsi, rcx
jae 0x18041e64a
mov ecx, 0x1000
call fcn.180424e20
mov rdi, rax
cmp r14, rbx
je 0x18041e715
test rdi, rdi
je 0x18041ec26
mov r8, qword [r15 + 0x10]
cmp r8, qword [r15 + 0x18]
jne 0x18041eac1
mov rax, qword [r15]
mov rdx, qword [r15 + 8]
mov rcx, rdx
sub rcx, rax
jbe 0x18041ea27
sar rcx, 3
lea rax, [rcx + 1]
shr rax, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov rsi, rax
neg rsi
shl rax, 3
mov rbx, rdx
sub rbx, rax
mov r14, r8
sub r14, rdx
je 0x18041e633
mov rcx, rbx
mov r8, r14
call fcn.180427a60
mov r8, qword [r15 + 8]
add rbx, r14
mov qword [r15 + 0x10], rbx
lea rax, [r8 + rsi*8]
mov qword [r15 + 8], rax
mov r8, rbx
jmp 0x18041eac1
sar rcx, 2
cmp r14, rax
mov r14d, 1
cmovne r14, rcx
mov rax, r14
shr rax, 0x3d
jne 0x18041ec2b
lea rcx, [r14*8]
cmp rcx, 1
adc rcx, 0
call fcn.180424e20
test rax, rax
je 0x18041ec26
mov r12, rax
mov ecx, 0x1000
call fcn.180424e20
test rax, rax
je 0x18041ec26
lea rcx, [r12 + r14*8]
mov rdx, r12
add rdx, rsi
cmp rdx, rcx
je 0x18041e7da
mov rbx, rdx
mov rdx, rcx
jmp 0x18041e8aa
mov rax, qword [r15]
mov rcx, rdx
sub rcx, rax
jbe 0x18041e733
sar rcx, 3
lea rax, [rcx + 1]
shr rax, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov rsi, rax
neg rsi
shl rax, 3
mov rbx, rdx
sub rbx, rax
sub rdi, rdx
je 0x18041e6fe
mov rcx, rbx
mov r8, rdi
call fcn.180427a60
mov rdx, qword [r15 + 8]
add rdi, rbx
mov qword [r15 + 0x10], rdi
lea rax, [rdx + rsi*8]
mov qword [r15 + 8], rax
mov qword [rdi], r14
jmp 0x18041eac4
test rdi, rdi
je 0x18041ec26
mov rdx, qword [r15 + 8]
cmp rdx, qword [r15]
je 0x18041e7f5
mov rbx, rdx
jmp 0x18041eb81
mov rcx, rdi
sub rcx, rax
sar rcx, 2
cmp rdi, rax
mov esi, 1
cmovne rsi, rcx
mov rax, rsi
shr rax, 0x3d
jne 0x18041ec2b
lea rcx, [rsi*8]
cmp rcx, 1
adc rcx, 0
call fcn.180424e20
test rax, rax
je 0x18041ec26
mov rcx, rsi
and rcx, 0xfffffffffffffffc
lea r8, [rax + rcx*2]
lea rdx, [rax + rsi*8]
mov rcx, qword [r15 + 8]
mov r9, qword [r15 + 0x10]
mov rdi, r8
sub r9, rcx
je 0x18041e7b1
lea rdi, [r9 + r8]
xor r10d, r10d
nop word [rax + rax]
mov r11, qword [rcx + r10]
mov qword [r8 + r10], r11
add r10, 8
cmp r9, r10
jne 0x18041e7a0
mov rcx, qword [r15]
mov qword [r15], rax
mov qword [r15 + 8], r8
mov qword [r15 + 0x10], rdi
mov qword [r15 + 0x18], rdx
test rcx, rcx
je 0x18041e58b
call fcn.1804267b0
mov rdi, qword [r15 + 0x10]
jmp 0x18041e58b
test rsi, rsi
jle 0x18041e84e
shr rsi, 1
add rsi, 4
and rsi, 0xfffffffffffffff8
mov rbx, rdx
sub rbx, rsi
jmp 0x18041e8aa
mov r8, qword [r15 + 0x10]
mov rax, qword [r15 + 0x18]
cmp r8, rax
jae 0x18041eada
sub rax, r8
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea rsi, [rax + rcx]
inc rsi
sar rsi, 1
lea rbx, [r8 + rsi*8]
mov rax, r8
sub rax, rdx
sub rbx, rax
sub r8, rdx
je 0x18041e83d
mov rcx, rbx
call fcn.180427a60
mov rdx, qword [r15 + 0x10]
mov qword [r15 + 8], rbx
lea rax, [rdx + rsi*8]
mov qword [r15 + 0x10], rax
jmp 0x18041eb81
mov r14, rax
sar rsi, 2
cmp rbx, rdi
mov edi, 1
cmovne rdi, rsi
movabs rax, 0x1fffffffffffffff
cmp rdi, rax
ja 0x18041ec2b
lea rcx, [rdi*8]
cmp rcx, 1
adc rcx, 0
call fcn.180424e20
test rax, rax
je 0x18041ec26
mov rbx, rax
lea rsi, [rax + rdi*8]
mov rcx, r12
call fcn.1804267b0
mov rdx, rsi
mov r12, rbx
mov rax, r14
mov qword [rbx], rax
lea rdi, [rbx + 8]
mov r13, qword [r15 + 0x10]
cmp r13, qword [r15 + 8]
je 0x18041e9f1
mov qword [rbp], r15
jmp 0x18041e8f6
mov r14, rbx
mov rsi, rdi
add r13, 0xfffffffffffffff8
mov rax, qword [r13]
mov qword [r14 - 8], rax
add r14, 0xfffffffffffffff8
mov rdi, rsi
mov rbx, r14
cmp r13, qword [r15 + 8]
je 0x18041e9f7
cmp rbx, r12
jne 0x18041e8d0
cmp rdi, rdx
jae 0x18041e94e
mov rax, rdx
sub rax, rdi
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
and rax, 0xfffffffffffffffe
lea rsi, [rdi + rax*4]
mov rax, rdi
sub rax, rbx
mov r14, rsi
sub r14, rax
mov r8, rdi
sub r8, rbx
je 0x18041e9e9
mov rcx, r14
mov rdi, rdx
mov rdx, rbx
call fcn.180427a60
mov rdx, rdi
mov r12, rbx
jmp 0x18041e8d6
mov r15, rdx
sub r15, rbx
sar r15, 2
cmp rdx, rbx
mov eax, 1
cmove r15, rax
movabs rax, 0x1fffffffffffffff
cmp r15, rax
ja 0x18041ec2b
lea rcx, [r15*8]
cmp rcx, 1
adc rcx, 0
call fcn.180424e20
test rax, rax
je 0x18041ec26
mov r12, rax
lea r14, [r15*2 + 6]
and r14, 0xfffffffffffffff8
add r14, rax
mov rsi, r14
sub rdi, rbx
je 0x18041e9d1
lea rsi, [rdi + r14]
xor eax, eax
nop word cs:[rax + rax]
mov rcx, qword [rbx + rax]
mov qword [r14 + rax], rcx
add rax, 8
cmp rdi, rax
jne 0x18041e9c0
lea rdi, [r12 + r15*8]
mov rcx, rbx
call fcn.1804267b0
mov rdx, rdi
mov r15, qword [rbp]
jmp 0x18041e8d6
mov r12, rdi
jmp 0x18041e8d6
mov r14, rbx
mov rsi, rdi
mov rcx, qword [r15]
mov qword [r15], r12
mov qword [r15 + 8], r14
mov qword [r15 + 0x10], rsi
mov qword [r15 + 0x18], rdx
test rcx, rcx
je 0x18041eac9
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.1804267b0
mov rcx, r8
sub rcx, rax
sar rcx, 2
cmp r8, rax
mov esi, 1
cmovne rsi, rcx
mov rax, rsi
shr rax, 0x3d
jne 0x18041ec2b
lea rcx, [rsi*8]
cmp rcx, 1
adc rcx, 0
call fcn.180424e20
test rax, rax
je 0x18041ec26
mov rcx, rsi
and rcx, 0xfffffffffffffffc
lea r9, [rax + rcx*2]
lea rdx, [rax + rsi*8]
mov rcx, qword [r15 + 8]
mov r10, qword [r15 + 0x10]
mov r8, r9
sub r10, rcx
je 0x18041eaa1
lea r8, [r10 + r9]
xor r11d, r11d
nop
mov rsi, qword [rcx + r11]
mov qword [r9 + r11], rsi
add r11, 8
cmp r10, r11
jne 0x18041ea90
mov rcx, qword [r15]
mov qword [r15], rax
mov qword [r15 + 8], r9
mov qword [r15 + 0x10], r8
mov qword [r15 + 0x18], rdx
test rcx, rcx
je 0x18041eac1
call fcn.1804267b0
mov r8, qword [r15 + 0x10]
mov qword [r8], rdi
add qword [r15 + 0x10], 8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rax
sub rcx, rdx
sar rcx, 2
cmp rax, rdx
mov esi, 1
cmovne rsi, rcx
mov rax, rsi
shr rax, 0x3d
jne 0x18041ec2b
lea rcx, [rsi*8]
cmp rcx, 1
adc rcx, 0
call fcn.180424e20
test rax, rax
je 0x18041ec26
lea rbx, [rsi*2 + 6]
and rbx, 0xfffffffffffffff8
add rbx, rax
lea rdx, [rax + rsi*8]
mov rcx, qword [r15 + 8]
mov r9, qword [r15 + 0x10]
mov r8, rbx
sub r9, rcx
je 0x18041eb61
lea r8, [r9 + rbx]
xor r10d, r10d
nop word cs:[rax + rax]
mov r11, qword [rcx + r10]
mov qword [rbx + r10], r11
add r10, 8
cmp r9, r10
jne 0x18041eb50
mov rcx, qword [r15]
mov qword [r15], rax
mov qword [r15 + 8], rbx
mov qword [r15 + 0x10], r8
mov qword [r15 + 0x18], rdx
test rcx, rcx
je 0x18041eb81
call fcn.1804267b0
mov rbx, qword [r15 + 8]
mov qword [rbx - 8], rdi
mov rdx, qword [r15 + 8]
mov rdi, qword [r15 + 0x10]
lea rax, [rdx - 8]
mov qword [r15 + 8], rax
mov r14, qword [rdx - 8]
mov qword [r15 + 8], rdx
cmp rdi, qword [r15 + 0x18]
jne 0x18041e58b
mov rax, qword [r15]
mov rcx, rdx
sub rcx, rax
ja 0x18041e6c5
mov rcx, rdi
sub rcx, rax
sar rcx, 2
cmp rdi, rax
mov esi, 1
cmovne rsi, rcx
mov rax, rsi
shr rax, 0x3d
jne 0x18041ec2b
lea rcx, [rsi*8]
call fcn.18041e230
mov rcx, rsi
and rcx, 0xfffffffffffffffc
lea r8, [rax + rcx*2]
lea rdx, [rax + rsi*8]
mov rcx, qword [r15 + 8]
mov r9, qword [r15 + 0x10]
mov rdi, r8
sub r9, rcx
je 0x18041e7b1
lea rdi, [r9 + r8]
xor r10d, r10d
nop dword [rax]
mov r11, qword [rcx + r10]
mov qword [r8 + r10], r11
add r10, 8
cmp r9, r10
jne 0x18041ec10
jmp 0x18041e7b1
call fcn.180424c50
call fcn.18041ec30