Function at 0x180015360
Capabilities:
Create directory
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov edi, dword [rcx + 0x168]
mov rbx, rcx
xor ecx, ecx
call fcn.1800392dc
mov ecx, eax
mov esi, eax
call fcn.1800392dc
mov ecx, edi
and ecx, 3
je 0x180014b9b
sub ecx, 1
je 0x180014b94
cmp ecx, 1
jne 0x180014ca4
mov edx, 0x12019f
jmp 0x180014ba0
mov edx, 0x120116
jmp 0x180014ba0
mov edx, 0x120089
test dil, 8
je 0x180014bac
and edx, 0xfffffffd
or edx, 4
xor r9d, r9d
mov eax, edi
and eax, 0x10000000
mov r10d, 7
mov eax, edi
cmovne r10d, r9d
and eax, 0x700
cmp eax, 0x400
jg 0x180014c08
test eax, 0xfffffbff
je 0x180014c00
cmp eax, 0x100
je 0x180014bf8
cmp eax, 0x200
je 0x180014c79
cmp eax, 0x300
jne 0x180014ca4
lea r8d, [r9 + 2]
jmp 0x180014c27
mov r8d, 4
jmp 0x180014c27
mov r8d, 3
jmp 0x180014c27
cmp eax, 0x500
je 0x180014c21
cmp eax, 0x600
je 0x180014c79
cmp eax, 0x700
jne 0x180014ca4
mov r8d, 1
mov ecx, 0x80
bt edi, 8
jae 0x180014c48
not sil
mov eax, 0x81
and sil, byte [rbx + 0x158]
and sil, 0x80
cmove ecx, eax
test dil, 0x40
je 0x180014c58
or ecx, 0x4000100
bts edx, 0x10
bt edi, 0xc
jae 0x180014c62
bts ecx, 8
mov eax, edi
and eax, 0x30
je 0x180014c85
cmp eax, 0x10
je 0x180014c81
cmp eax, 0x20
jne 0x180014ca4
bts ecx, 0x1b
jmp 0x180014c85
mov r8d, 5
jmp 0x180014c27
bts ecx, 0x1c
bt edi, 0x19
jae 0x180014c8f
bts ecx, 0x1d
mov eax, edi
and eax, 0xc000000
je 0x180014ccd
add eax, 0xfc000000
test eax, 0xfbffffff
je 0x180014cc9
mov qword [rbx + 0x88], 0xfffffffffffff019
mov dword [rbx + 0x14c], 0x57
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
bts ecx, 0x1f
bts ecx, 0x19
mov qword [rsp + 0x30], r9
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbx + 0x150]
mov dword [rsp + 0x20], r8d
mov r8d, r10d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180014d45
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x180014d32
and edi, 0x500
cmp edi, 0x100
jne 0x180014d32
mov qword [rbx + 0x88], 0xfffffffffffff01c
mov dword [rbx + 0x14c], eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x14c], eax
mov ecx, eax
jmp 0x180014dfc
mov edx, edi
mov rcx, rax
call fcn.180035b98
test eax, eax
jns 0x180014de0
call fcn.180035640
cmp dword [rax], 0x18
jne 0x180014d8f
mov rcx, rsi
mov qword [rbx + 0x88], 0xfffffffffffff01e
mov dword [rbx + 0x14c], 4
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x180014da9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x14c], eax
mov ecx, eax
jmp 0x180014db8
mov dword [rbx + 0x14c], 0xfffff002
mov ecx, 0xfffff002
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
mov rcx, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
cdqe
mov qword [rbx + 0x88], rax
cmp rax, 0xffffffffffffffff
jne 0x180014e0b
call fcn.180035620
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
push rbp
push rdi
sub rsp, 0x78
mov rdi, rcx
mov ecx, dword [rcx + 0x150]
mov rbp, qword [rdi + 0x180]
cmp ecx, 0xffffffff
jne 0x180014e58
mov qword [rdi + 0x88], 0xfffffffffffff00d
mov dword [rdi + 0x14c], 6
add rsp, 0x78
pop rdi
pop rbp
ret
mov qword [rsp + 0xa0], rbx
xor ebx, ebx
mov qword [rsp + 0x60], r13
mov r13d, ebx
mov qword [rsp + 0x50], r15
call fcn.180035b20
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x180014e9e
lea ecx, [rbx + 6]
mov dword [rdi + 0x14c], 6
call fcn.180019d80
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
jmp 0x180014fc5
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x58], r14
cmp rbp, 0xffffffffffffffff
je 0x180014ef2
xor eax, eax
lea r8, [rsp + 0x98]
mov rdx, rbx
mov qword [rsp + 0x30], rax
mov rcx, r15
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea r12, [rsp + 0x30]
lea r9d, [rax + 1]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180014ef5
mov r13d, 1
jmp 0x180014ef5
mov r12, rbx
mov esi, ebx
cmp rbp, 0xffffffffffffffff
je 0x180014f0e
mov eax, esi
add rax, rbp
mov dword [rsp + 0x40], eax
shr rax, 0x20
mov dword [rsp + 0x44], eax
mov rax, qword [rdi + 0x178]
lea r9, [rsp + 0x90]
mov ecx, ebx
add rcx, rcx
mov qword [rsp + 0x20], r12
mov r8d, dword [rax + rcx*8]
mov rdx, qword [rax + rcx*8 + 8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
add esi, dword [rsp + 0x90]
inc ebx
mov r14d, eax
test eax, eax
je 0x180014f51
cmp ebx, dword [rdi + 0x170]
jb 0x180014ef7
mov r12, qword [rsp + 0x68]
test r13d, r13d
je 0x180014f72
mov rdx, qword [rsp + 0x98]
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test r14d, r14d
mov r14, qword [rsp + 0x58]
jne 0x180014f95
test esi, esi
jne 0x180014f95
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x180014f95
mov dword [rdi + 0x14c], eax
mov ecx, eax
jmp 0x180014fb1
mov eax, esi
mov qword [rdi + 0x88], rax
cmp rax, 0xffffffffffffffff
jne 0x180014fc0
call fcn.180035620
mov ecx, dword [rax]
mov dword [rdi + 0x14c], ecx
call fcn.180019d80
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
mov rsi, qword [rsp + 0x70]
mov r13, qword [rsp + 0x60]
mov rbx, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x50]
add rsp, 0x78
pop rdi
pop rbp
ret
push rbp
push rdi
sub rsp, 0x78
mov rdi, rcx
mov ecx, dword [rcx + 0x150]
mov rbp, qword [rdi + 0x180]
cmp ecx, 0xffffffff
jne 0x180015018
mov qword [rdi + 0x88], 0xfffffffffffff00d
mov dword [rdi + 0x14c], 6
add rsp, 0x78
pop rdi
pop rbp
ret
mov qword [rsp + 0xa0], rbx
xor ebx, ebx
mov qword [rsp + 0x60], r13
mov r13d, ebx
mov qword [rsp + 0x50], r15
call fcn.180035b20
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x18001505e
lea ecx, [rbx + 6]
mov dword [rdi + 0x14c], 6
call fcn.180019d80
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
jmp 0x180015180
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x58], r14
cmp rbp, 0xffffffffffffffff
je 0x1800150b2
xor eax, eax
lea r8, [rsp + 0x98]
mov rdx, rbx
mov qword [rsp + 0x30], rax
mov rcx, r15
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea r12, [rsp + 0x30]
lea r9d, [rax + 1]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800150b5
mov r13d, 1
jmp 0x1800150b5
mov r12, rbx
mov esi, ebx
cmp rbp, 0xffffffffffffffff
je 0x1800150ce
mov eax, esi
add rax, rbp
mov dword [rsp + 0x40], eax
shr rax, 0x20
mov dword [rsp + 0x44], eax
mov rax, qword [rdi + 0x178]
lea r9, [rsp + 0x90]
mov ecx, ebx
add rcx, rcx
mov qword [rsp + 0x20], r12
mov r8d, dword [rax + rcx*8]
mov rdx, qword [rax + rcx*8 + 8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
add esi, dword [rsp + 0x90]
inc ebx
mov r14d, eax
test eax, eax
je 0x180015111
cmp ebx, dword [rdi + 0x170]
jb 0x1800150b7
mov r12, qword [rsp + 0x68]
test r13d, r13d
je 0x180015132
mov rdx, qword [rsp + 0x98]
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test r14d, r14d
mov r14, qword [rsp + 0x58]
jne 0x180015150
test esi, esi
jne 0x180015150
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x14c], eax
mov ecx, eax
jmp 0x18001516c
mov eax, esi
mov qword [rdi + 0x88], rax
cmp rax, 0xffffffffffffffff
jne 0x18001517b
call fcn.180035620
mov ecx, dword [rax]
mov dword [rdi + 0x14c], ecx
call fcn.180019d80
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
mov rsi, qword [rsp + 0x70]
mov r13, qword [rsp + 0x60]
mov rbx, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x50]
add rsp, 0x78
pop rdi
pop rbp
ret
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x180084088]
xor rax, rsp
mov qword [rsp + 0xb8], rax
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov rbx, rcx
mov dword [rsp + 0x28], 0x2200000
mov rcx, qword [rcx + 0x150]
mov edx, 0x10180
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18001521f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
jmp 0x180015335
lea rdx, [rsp + 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x18001523f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180015315
mov eax, dword [rsp + 0x80]
test al, 0x10
je 0x180015290
bt eax, 0xa
jb 0x180015260
mov ecx, 5
mov dword [rbx + 0x14c], ecx
jmp 0x18001531d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.180014910
test eax, eax
jns 0x180015289
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5b8
mov ecx, 5
cmove eax, ecx
jmp 0x180015315
mov eax, dword [rsp + 0x80]
test al, 1
je 0x1800152d9
xor ecx, ecx
mov dword [rsp + 0x20], 4
mov qword [rsp + 0x78], rcx
lea r8, [rsp + 0x58]
mov qword [rsp + 0x58], rcx
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x60], rcx
and eax, 0xfffffffe
lea r9d, [rcx + 0x28]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rcx
mov rcx, rdi
mov dword [rsp + 0x78], eax
call qword [0x1800931a8]
test eax, eax
js 0x18001530d
mov r9d, 1
mov byte [rsp + 0x40], 1
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], reloc.WS2_32.dll_listen
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [0x1800931a8]
test eax, eax
js 0x18001530d
mov qword [rbx + 0x40], 0
jmp 0x18001532c
mov ecx, eax
call qword [0x1800931d0]
mov dword [rbx + 0x14c], eax
mov ecx, eax
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.18002b180
mov rbx, qword [rsp + 0xd8]
add rsp, 0xc0
pop rdi
ret
push rbx
sub rsp, 0x40
mov rbx, rcx
or rax, 0xffffffffffffffff
mov rcx, qword [rcx + 0x150]
inc rax
cmp word [rcx + rax*2], 0
jne 0x180015374
mov qword [rsp + 0x68], rsi
cmp rax, 6
jb 0x1800156bb
lea rsi, [rcx + rax*2]
mov r8d, 6
lea rcx, [rsi - 0xc]
lea rdx, str.XXXXXX
call fcn.1800378a0
test eax, eax
jne 0x1800156bb
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x58]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1800153f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rbx
ret
mov qword [rsp + 0x60], rbp
movabs rbp, 0x842108421084211
mov qword [rsp + 0x38], rdi
mov edi, 0x7fffffff
mov qword [rsp + 0x30], r14
lea r14, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
nop dword [rax]
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x50]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x18001564c
mov rcx, qword [rsp + 0x50]
mov rax, rbp
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x3e
sub rcx, rax
movzx eax, word [r14 + rcx*2]
mov word [rsi - 0xc], ax
mov rax, rbp
mov rcx, qword [rsp + 0x50]
mul rcx
mov rax, rbp
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
mul rcx
mov qword [rsp + 0x50], rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x3e
sub rcx, rax
movzx eax, word [r14 + rcx*2]
mov word [rsi - 0xa], ax
mov rax, rbp
mov rcx, qword [rsp + 0x50]
mul rcx
mov rax, rbp
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
mul rcx
mov qword [rsp + 0x50], rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x3e
sub rcx, rax
movzx eax, word [r14 + rcx*2]
mov word [rsi - 8], ax
mov rax, rbp
mov rcx, qword [rsp + 0x50]
mul rcx
mov rax, rbp
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
mul rcx
mov qword [rsp + 0x50], rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x3e
sub rcx, rax
movzx eax, word [r14 + rcx*2]
mov word [rsi - 6], ax
mov rax, rbp
mov rcx, qword [rsp + 0x50]
mul rcx
mov rax, rbp
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
mul rcx
mov rax, rcx
mov qword [rsp + 0x50], rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x3e
sub rcx, rax
movzx eax, word [r14 + rcx*2]
mov word [rsi - 4], ax
mov rax, rbp
mov rcx, qword [rsp + 0x50]
mul rcx
mov rax, rbp
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
mul rcx
mov qword [rsp + 0x50], rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x3e
sub rcx, rax
movzx eax, word [r14 + rcx*2]
mov word [rsi - 2], ax
mov rax, rbp
mov rcx, qword [rsp + 0x50]
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
mov qword [rsp + 0x50], rcx
mov rcx, qword [rbx + 0x150]
call fcn.180035e30
test eax, eax
je 0x180015613
call fcn.180035640
cmp dword [rax], 0x11
jne 0x1800155f9
add edi, 0xffffffff
jne 0x180015420
jmp 0x180015669
mov qword [rbx + 0x88], 0xffffffffffffffff
call fcn.180035620
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
jmp 0x18001565a
mov rcx, qword [rbx + 0x98]
or rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x180015620
add rcx, 0xfffffffffffffffa
lea rdx, [rsi - 0xc]
add rcx, rax
mov r8d, 6
call fcn.1800377f4
mov qword [rbx + 0x88], 0
jmp 0x180015669
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x14c], eax
mov ecx, eax
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
mov rcx, qword [rsp + 0x58]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r14, qword [rsp + 0x30]
test edi, edi
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x60]
jne 0x1800156d0
mov qword [rbx + 0x88], 0xffffffffffffffff
call fcn.180035620
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rbx
ret
mov qword [rbx + 0x88], 0xfffffffffffff019
mov dword [rbx + 0x14c], 0x57
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rbx
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2090
call fcn.180043b00
sub rsp, rax
mov rax, qword [0x180084088]
xor rax, rsp
mov qword [rsp + 0x2088], rax
xor ebp, ebp
mov qword [rsp + 0x68], rcx
mov rbx, rcx
mov qword [rsp + 0x30], rbp
mov rcx, qword [rcx + 0x150]
xor r9d, r9d
mov dword [rsp + 0x28], 0x2000000
mov edx, 0x100001
lea r8d, [rbp + 7]
mov qword [rsp + 0x60], rbp
mov edi, ebp
mov dword [rsp + 0x20], 3
mov r14d, ebp
mov r12d, ebp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x70], rax
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180015a62
mov byte [rsp + 0x50], 1
lea rax, [rsp + 0x88]
mov qword [rsp + 0x48], rbp
xor r9d, r9d
mov byte [rsp + 0x40], dil
xor r8d, r8d
mov dword [rsp + 0x38], 1
xor edx, edx
mov dword [rsp + 0x30], 0x2000
mov rcx, rsi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [0x1800931b0]
cmp eax, 0xc000000d
jne 0x1800157d6
mov qword [rbx + 0x88], 0xfffffffffffff02c
mov dword [rbx + 0x14c], 0x10b
jmp 0x180015a7f
test eax, eax
js 0x1800159b5
nop
lea rsi, [rsp + 0x88]
mov r13, rbp
nop dword [rax + rax]
add rsi, r13
mov ebx, dword [rsi + 0x3c]
shr rbx, 1
mov r13d, dword [rsi]
je 0x180015816
lea rax, [rbx + 0x1f]
lea rax, [rsi + rax*2]
cmp word [rax], 0
jne 0x180015816
sub rax, 2
sub rbx, 1
jne 0x180015806
test rbx, rbx
je 0x18001593c
cmp rbx, 1
jne 0x18001582c
cmp word [rsi + 0x40], 0x2e
jmp 0x18001583e
cmp rbx, 2
jne 0x180015844
cmp word [rsi + 0x40], 0x2e
jne 0x180015844
cmp word [rsi + 0x42], 0x2e
je 0x18001593c
mov qword [rsp + 0x38], rbp
lea r8, [rsi + 0x40]
mov qword [rsp + 0x30], rbp
mov r9d, ebx
mov dword [rsp + 0x28], ebp
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbp, eax
test eax, eax
je 0x180015a5d
cmp r12, r14
jb 0x1800158aa
test r14, r14
jne 0x180015888
mov r14d, 0x20
jmp 0x18001588b
add r14, r14
lea rdx, [r14*8]
mov rcx, rdi
call qword [fcn.18002fc48]
test rax, rax
je 0x1800159eb
mov qword [rsp + 0x60], rax
lea rcx, [rbp + 8]
call qword [fcn.1800300a4]
mov rdi, rax
test rax, rax
je 0x1800159e6
mov rax, qword [rsp + 0x60]
lea rcx, [rdi + 4]
mov r9d, ebx
lea r8, [rsi + 0x40]
xor edx, edx
mov qword [rax + r12*8], rdi
xor eax, eax
mov qword [rsp + 0x38], rax
inc r12
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rcx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x180015a58
mov byte [rdi + rbp + 4], 0
mov eax, dword [rsi + 0x38]
test al, 0x40
je 0x180015917
mov dword [rdi], 6
xor ebp, ebp
jmp 0x180015937
bt eax, 0xa
jae 0x180015927
mov dword [rdi], 3
xor ebp, ebp
jmp 0x180015937
test al, 0x10
mov ebp, 0
mov eax, ebp
setne al
inc eax
mov dword [rdi], eax
mov rdi, qword [rsp + 0x60]
test r13, r13
jne 0x1800157f0
mov rsi, qword [rsp + 0x70]
lea rax, [rsp + 0x88]
mov byte [rsp + 0x50], r13b
xor r9d, r9d
mov qword [rsp + 0x48], rbp
xor r8d, r8d
mov byte [rsp + 0x40], r13b
xor edx, edx
mov dword [rsp + 0x38], 1
mov rcx, rsi
mov dword [rsp + 0x30], 0x2000
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [0x1800931b0]
test eax, eax
jne 0x1800159aa
cmp qword [rsp + 0x80], r13
jne 0x1800157e0
mov eax, 0x80000005
jmp 0x1800159bc
jns 0x1800157e0
mov rbx, qword [rsp + 0x68]
cmp eax, 0x80000006
je 0x180015a08
mov ecx, eax
call qword [0x1800931d0]
mov r8, qword [rsp + 0x68]
mov ecx, eax
mov dword [r8 + 0x14c], eax
call fcn.180019d80
movsxd rcx, eax
mov qword [r8 + 0x88], rcx
jmp 0x180015a7f
mov rdi, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov qword [r8 + 0x88], 0xfffffffffffff027
mov dword [r8 + 0x14c], recv
jmp 0x180015a7f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x90], rdi
test rdi, rdi
je 0x180015a24
or dword [rbx + 0x148], 8
mov qword [rbx + 0x88], r12
cmp r12, 0xffffffffffffffff
jne 0x180015a4d
call fcn.180035620
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
mov dword [rbx + 0x170], ebp
jmp 0x180015aea
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
mov rcx, qword [rsp + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x180015a90
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12, r12
je 0x180015ac9
nop word [rax + rax]
mov rbx, qword [rdi + r12*8 - 8]
dec r12
call fcn.180035640
mov rcx, rbx
mov edi, dword [rax]
call qword [fcn.18002fdc4]
call fcn.180035640
mov dword [rax], edi
mov rdi, qword [rsp + 0x60]
test r12, r12
jne 0x180015aa0
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x180015aea
call fcn.180035640
mov rcx, rdi
mov ebx, dword [rax]
call qword [fcn.18002fdc4]
call fcn.180035640
mov dword [rax], ebx
mov rcx, qword [rsp + 0x2088]
xor rcx, rsp
call fcn.18002b180
lea r11, [rsp + 0x2090]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x150]
cmp ecx, 0xffffffff
jne 0x180015edf
mov qword [rbx + 0x88], 0xfffffffffffff00d
mov dword [rbx + 0x14c], 6
add rsp, 0x20
pop rbx
ret
call fcn.180035b20
cmp rax, 0xffffffffffffffff
jne 0x180015f0c
lea ecx, [rax + 7]
mov dword [rbx + 0x14c], 6
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rdi
xor r8d, r8d
lea rdi, [rbx + 0xa0]
mov rcx, rax
mov rdx, rdi
call fcn.180015b20
test eax, eax
je 0x180015f52
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.180019d80
mov rdi, qword [rsp + 0x30]
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
add rsp, 0x20
pop rbx
ret
mov qword [rbx + 0x90], rdi
mov rdi, qword [rsp + 0x30]
mov qword [rbx + 0x88], 0
add rsp, 0x20
pop rbx
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x150]
cmp ecx, 0xffffffff
jne 0x180015f9f
mov qword [rbx + 0x88], 0xfffffffffffff00d
mov dword [rbx + 0x14c], 6
add rsp, 0x20
pop rbx
ret
call fcn.180035b20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
neg eax
sbb ecx, ecx
neg ecx
dec ecx
cmp ecx, 0xffffffff
jne 0x180015fca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x14c], eax
mov ecx, eax
jmp 0x180015fe7
movsxd rax, ecx
mov qword [rbx + 0x88], rax
cmp rax, 0xffffffffffffffff
jne 0x180015ff6
call fcn.180035620
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
add rsp, 0x20
pop rbx
ret
push rbx
sub rsp, 0x40
mov rbx, rcx
mov ecx, dword [rcx + 0x150]
cmp ecx, 0xffffffff
jne 0x18001602f
mov qword [rbx + 0x88], 0xfffffffffffff00d
mov dword [rbx + 0x14c], 6
add rsp, 0x40
pop rbx
ret
call fcn.180035b20
mov rcx, qword [rbx + 0x180]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x50], rcx
lea rdx, [rsp + 0x30]
mov rcx, rax
mov dword [rsp + 0x20], shutdown
mov r9d, 8
call qword [0x1800931a8]
test eax, eax
js 0x180016076
mov qword [rbx + 0x88], 0
add rsp, 0x40
pop rbx
ret
mov ecx, eax
call qword [0x1800931d0]
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
add rsp, 0x40
pop rbx
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov ebx, dword [rcx + 0x188]
mov ebp, 0x10000
mov r12d, dword [rcx + 0x150]
mov r15, rcx
mov r13d, dword [rcx + 0x16c]
cmp rbx, rbp
mov r14, qword [rcx + 0x180]
cmovb ebp, ebx
xor edi, edi
mov ecx, ebp
call qword [fcn.1800300a4]
mov rsi, rax
test rax, rax
je 0x1800161c4
cmp r14, 0xffffffffffffffff
je 0x180016115
xor r8d, r8d
mov rdx, r14
mov ecx, r12d
call fcn.180035e20
cmp rax, 0xffffffffffffffff
je 0x180016160
test rbx, rbx
je 0x180016163
nop word [rax + rax]
mov r8d, ebp
cmp rbx, rbp
mov rdx, rsi
mov ecx, r12d
cmovb r8d, ebx
call fcn.1800363b4
test eax, eax
je 0x180016163
cmp eax, 0xffffffff
je 0x180016160
movsxd rcx, eax
mov r8d, eax
sub rbx, rcx
mov rdx, rsi
mov ecx, r13d
call fcn.1800370f0
cmp eax, 0xffffffff
je 0x180016160
add edi, eax
test rbx, rbx
jne 0x180016120
jmp 0x180016163
or edi, 0xffffffff
call fcn.180035640
mov rcx, rsi
mov ebx, dword [rax]
call qword [fcn.18002fdc4]
call fcn.180035640
mov dword [rax], ebx
movsxd rax, edi
mov qword [r15 + 0x88], rax
cmp rax, 0xffffffffffffffff
jne 0x1800161a7
call fcn.180035620
mov ecx, dword [rax]
mov dword [r15 + 0x14c], ecx
call fcn.180019d80
movsxd rcx, eax
mov qword [r15 + 0x88], rcx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rdx, str.uv__malloc
mov ecx, recv
call fcn.180019cd0
int3
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x150]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18001621e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.180019d80
movsxd rdx, eax
mov qword [rbx + 0x88], rdx
add rsp, 0x20
pop rbx
ret
test byte [rbx + 0x158], 2
je 0x180016251
and al, 0x11
cmp al, 1
jne 0x180016251
mov ecx, 0xfffff030
mov dword [rbx + 0x14c], 0xfffff030
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
add rsp, 0x20
pop rbx
ret
mov qword [rbx + 0x88], 0
add rsp, 0x20
pop rbx
ret
push rbx
sub rsp, 0x70
mov rax, qword [0x180084088]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
mov ecx, dword [rcx + 0x150]
cmp ecx, 0xffffffff
jne 0x1800162bb
mov qword [rbx + 0x88], 0xfffffffffffff00d
mov dword [rbx + 0x14c], 6
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18002b180
add rsp, 0x70
pop rbx
ret
mov qword [rsp + 0x88], rdi
call fcn.180035b20
mov r9d, 0x28
mov dword [rsp + 0x20], 4
lea r8, [rsp + 0x40]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, rax
call qword [0x180093188]
test eax, eax
js 0x18001632f
mov ecx, dword [rsp + 0x60]
lea r8, [rsp + 0x40]
mov eax, ecx
mov dword [rsp + 0x20], 4
or ecx, 1
lea rdx, [rsp + 0x30]
and eax, 0xfffffffe
mov r9d, 0x28
test byte [rbx + 0x158], 0x80
cmovne ecx, eax
mov dword [rsp + 0x60], ecx
mov rcx, rdi
call qword [0x1800931a8]
test eax, eax
jns 0x180016350
mov ecx, eax
call qword [0x1800931d0]
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
jmp 0x180016358
mov qword [rbx + 0x40], 0
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18002b180
add rsp, 0x70
pop rbx
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov rbx, rcx
mov dword [rsp + 0x28], 0x2000000
mov rcx, qword [rcx + 0x150]
mov edx, 0x100
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800164a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
movsd xmm2, qword [rbx + 0x160]
mov rcx, rax
movsd xmm1, qword [rbx + 0x158]
call fcn.180016380
test eax, eax
je 0x1800164ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
mov rcx, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x88], 0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x150]
cmp ecx, 0xffffffff
jne 0x18001653f
mov qword [rbx + 0x88], 0xfffffffffffff00d
mov dword [rbx + 0x14c], 6
add rsp, 0x20
pop rbx
ret
call fcn.180035b20
cmp rax, 0xffffffffffffffff
jne 0x18001656c
lea ecx, [rax + 7]
mov dword [rbx + 0x14c], 6
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
add rsp, 0x20
pop rbx
ret
movsd xmm2, qword [rbx + 0x160]
mov rcx, rax
movsd xmm1, qword [rbx + 0x158]
call fcn.180016380
test eax, eax
je 0x1800165ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
add rsp, 0x20
pop rbx
ret
mov qword [rbx + 0x88], 0
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x50
or r15, 0xffffffffffffffff
mov r13, r8
xor r12d, r12d
mov rsi, rdx
mov dword [rsp + 0x98], r12d
mov rbp, rcx
mov rdi, r15
inc rdi
cmp word [rdx + rdi*2], r12w
jne 0x1800165f1
mov ebx, 4
lea rdx, str.__
mov r8d, ebx
mov rcx, rsi
call fcn.1800378a0
test eax, eax
sete r12b
test r12d, r12d
jne 0x180016669
cmp edi, 3
jl 0x18001664f
movzx ecx, word [rsi]
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x180016638
sub cx, 0x41
cmp cx, 0x19
ja 0x18001664f
cmp word [rsi + 2], 0x3a
jne 0x18001664f
movzx eax, word [rsi + 4]
cmp ax, 0x2f
je 0x180016669
cmp ax, 0x5c
je 0x180016669
mov qword [rbp + 0x88], 0xfffffffffffff019
mov dword [rbp + 0x14c], gethostname
jmp 0x180016901
lea eax, [rdi*4 + 0x20]
mov qword [rsp + 0x80], r14
movsxd rcx, eax
call qword [fcn.1800300a4]
mov r14, rax
test rax, rax
je 0x18001691a
mov r8, rbx
lea rdx, str.___
lea rcx, [rax + 0x10]
call fcn.180036934
xor r11d, r11d
mov eax, r12d
neg eax
mov r8d, r11d
sbb ecx, ecx
and ecx, ebx
movsxd r9, ecx
lea ecx, [r11 + 0x5c]
cmp word [rsi + r9*2], r8w
lea rdx, [rsi + r9*2]
je 0x18001670c
movzx eax, word [rdx]
cmp ax, 0x5c
je 0x1800166f8
cmp ax, 0x2f
je 0x1800166f8
test r8d, r8d
je 0x1800166e3
movsxd rax, ebx
mov r8d, r11d
inc ebx
mov word [r14 + rax*2 + 0x10], cx
movzx eax, word [rdx]
movsxd rcx, ebx
inc ebx
mov word [r14 + rcx*2 + 0x10], ax
mov ecx, 0x5c
jmp 0x1800166fe
mov r8d, 1
inc r9
cmp word [rsi + r9*2], r11w
lea rdx, [rsi + r9*2]
jne 0x1800166c1
movsxd rax, ebx
mov r8d, r11d
inc ebx
mov word [r14 + rax*2 + 0x10], cx
movzx eax, bx
add ax, ax
mov word [r14 + 8], r11w
mov word [r14 + 0xa], ax
movsxd rax, ebx
inc ebx
neg r12d
mov r10d, ebx
mov word [r14 + rax*2 + 0x10], r11w
sbb eax, eax
and eax, 4
movsxd r9, eax
cmp word [rsi + r9*2], r8w
lea rdx, [rsi + r9*2]
je 0x18001679b
nop
movzx eax, word [rdx]
cmp ax, 0x5c
je 0x180016787
cmp ax, 0x2f
je 0x180016787
test r8d, r8d
je 0x180016772
movsxd rax, ebx
mov r8d, r11d
inc ebx
mov word [r14 + rax*2 + 0x10], cx
movzx eax, word [rdx]
movsxd rcx, ebx
inc ebx
mov word [r14 + rcx*2 + 0x10], ax
mov ecx, 0x5c
jmp 0x18001678d
mov r8d, 1
inc r9
cmp word [rsi + r9*2], r11w
lea rdx, [rsi + r9*2]
jne 0x180016750
mov eax, ebx
sub eax, r10d
cmp eax, 2
jne 0x1800167b5
movsxd rax, ebx
inc ebx
mov word [r14 + rax*2 + 0x10], cx
mov eax, 3
add ax, ax
add r10w, r10w
mov word [r14 + 0xe], ax
xor edx, edx
movsxd rax, ebx
mov rcx, r13
mov word [r14 + 0xc], r10w
lea ebx, [rbx*2 + 0x12]
mov word [r14 + rax*2 + 0x10], r11w
lea eax, [rbx - 8]
mov word [r14 + 4], ax
mov dword [r14], 0xa0000003
mov word [r14 + 6], r11w
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180016815
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbp + 0x14c], eax
call fcn.180019d80
mov edi, dword [rsp + 0x98]
jmp 0x180016893
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], 0x2200000
mov edx, 0x40000000
mov rcx, r13
mov dword [rsp + 0x20], 3
mov edi, 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x180016880
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov r9d, ebx
mov dword [rsp + 0x28], r12d
mov r8, r14
mov edx, 0x900a4
mov qword [rsp + 0x20], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1800168d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbp + 0x14c], eax
call fcn.180019d80
movsxd rcx, eax
mov qword [rbp + 0x88], rcx
call fcn.180035640
mov rcx, r14
mov ebx, dword [rax]
call qword [fcn.18002fdc4]
call fcn.180035640
mov dword [rax], ebx
cmp r15, 0xffffffffffffffff
je 0x1800168c3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1800168f9
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1800168f9
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.180035640
mov rcx, r14
mov ebx, dword [rax]
call qword [fcn.18002fdc4]
call fcn.180035640
mov dword [rax], ebx
mov qword [rbp + 0x88], r12
mov r14, qword [rsp + 0x80]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
lea rdx, str.uv__malloc
mov ecx, recv
call fcn.180019cd0
int3
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x150]
mov rbx, rcx
mov rcx, qword [rcx + 0x160]
test byte [rbx + 0x168], 2
jne 0x1800169c7
mov edi, dword [reloc.WS2_32.dll_bind]
mov esi, 1
nop dword [rax]
nop dword [rax + rax]
mov r9, qword [0x180093190]
test r9, r9
je 0x180016a23
movzx eax, byte [rbx + 0x168]
and al, sil
cmovne edi, esi
mov r8d, edi
call r9
test al, al
jne 0x180016a08
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1800169e1
test dil, 2
je 0x1800169e1
mov rdx, qword [rbx + 0x150]
xor edi, edi
test byte [rbx + 0x168], 2
mov rcx, qword [rbx + 0x160]
mov dword [reloc.WS2_32.dll_bind], edi
je 0x180016970
mov r8, rcx
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1800165c0
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rbx + 0x88], 0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x38]
mov qword [rbx + 0x88], 0xfffffffffffff02a
mov dword [rbx + 0x14c], gethostname
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
mov qword [rsp + 0x30], 0
mov rcx, qword [rcx + 0x150]
xor r9d, r9d
mov dword [rsp + 0x28], 0x2200000
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180016abc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
lea rdx, [rbx + 0x90]
xor r8d, r8d
mov rcx, rax
call fcn.180014910
test eax, eax
je 0x180016af1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
jmp 0x180016b03
or dword [rbx + 0x148], 8
mov qword [rbx + 0x88], 0
mov rcx, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
push rbx
sub rsp, 0x40
cmp qword [0x1800931a0], 0
mov rbx, rcx
jne 0x180016c7e
mov qword [rcx + 0x88], 0xfffffffffffff02a
mov dword [rcx + 0x14c], gethostname
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rcx + 0x150]
xor r9d, r9d
mov qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0x2000080
xor edx, edx
mov dword [rsp + 0x20], 3
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180016cd8
lea rdx, [rbx + 0x90]
mov rcx, rax
call fcn.180016b20
mov rcx, rdi
cmp rax, 0xffffffffffffffff
jne 0x180016d00
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.180019d80
mov rdi, qword [rsp + 0x50]
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
add rsp, 0x40
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [rbx + 0x148], 8
mov rdi, qword [rsp + 0x50]
mov qword [rbx + 0x88], 0
add rsp, 0x40
pop rbx
ret
push rbx
sub rsp, 0x20
lea rbx, [rcx - 0x120]
mov eax, dword [rbx + 0x70]
dec eax
cmp eax, 0x1c
ja case.default.0x180016d5e
lea rcx, [0x180000000]
cdqe
mov edx, dword [rcx + rax*4 + 0x170c0]
add rdx, rcx
jmp rdx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x180014b50
mov ecx, dword [rbx + 0x150]
cmp ecx, 0xffffffff
je 0x180016d8f
cmp ecx, 2
jle case.0x180016d5e.26
call fcn.1800369f0
cmp eax, 0xffffffff
jne case.0x180016d5e.26
mov qword [rbx + 0x88], 0xfffffffffffff00d
mov dword [rbx + 0x14c], 6
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x180014e20
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x180014fe0
mov r8d, dword [rbx + 0x168]
mov rdx, qword [rbx + 0x160]
and r8d, 1
mov rcx, qword [rbx + 0x150]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne case.0x180016d5e.26
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x1800160a0
mov rcx, qword [rbx + 0x150]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x180016e26
cmp rax, 1
jbe 0x180016e59
cmp word [rcx + rax*2 - 4], 0x3a
je 0x180016e59
lea rdx, [rcx + rax*2]
movzx eax, word [rcx + rax*2 - 2]
cmp ax, 0x5c
je 0x180016e53
cmp ax, 0x2f
jne 0x180016e59
xor eax, eax
mov word [rdx - 2], ax
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.180015d90
mov rcx, qword [rbx + 0x150]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x180016e73
cmp rax, 1
jbe 0x180016ea6
cmp word [rcx + rax*2 - 4], 0x3a
je 0x180016ea6
lea rdx, [rcx + rax*2]
movzx eax, word [rcx + rax*2 - 2]
cmp ax, 0x5c
je 0x180016ea0
cmp ax, 0x2f
jne 0x180016ea6
xor eax, eax
mov word [rdx - 2], ax
mov edx, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.180015d90
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x180015eb0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x180016000
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x180016430
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x180016510
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x1800161e0
mov edx, dword [rbx + 0x158]
mov rcx, qword [rbx + 0x150]
call fcn.1800377fc
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
cmp rcx, 0xffffffffffffffff
jne case.default.0x180016d5e
call fcn.180035620
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x180016270
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x180015f70
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x1800151a0
mov rcx, qword [rbx + 0x150]
call fcn.180035e5c
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
cmp rcx, 0xffffffffffffffff
jne case.default.0x180016d5e
call fcn.180035620
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx + 0x150]
call fcn.180035e30
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
cmp rcx, 0xffffffffffffffff
jne case.default.0x180016d5e
call fcn.180035620
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x180015360
mov rdx, qword [rbx + 0x160]
mov r8d, 1
mov rcx, qword [rbx + 0x150]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne case.0x180016d5e.26
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x1800156e0
mov rdx, qword [rbx + 0x150]
xor r8d, r8d
mov rcx, qword [rbx + 0x160]
call qword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
jne case.0x180016d5e.26
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.180019d80
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x180016930
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x180016a50
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x180016c50
xor eax, eax
mov qword [rbx + 0x88], rax
add rsp, 0x20
pop rbx
ret