Function at 0x5cdb10
Capabilities:
Encode data using xor
Get hostname
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb8
mov eax, dword [0x659af8]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc4]
xor ebx, ebx
push esi
push edi
push 0xff
mov dword [esp + 0x30], ebp
xor edi, edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
call fcn.005ccd10
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x5ce25e
movzx eax, word [ebp + 2]
movzx ecx, byte [ebp + 0x11]
and eax, 1
mov dword [esp + 0x18], eax
movzx eax, byte [ebp + 0x10]
shl ecx, 8
add ecx, eax
push 0x94
mov dword [esp + 0x3c], ecx
call fcn.005ccd10
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x5ce25e
lea eax, [esp + 0x30]
push eax
push 0x1c
push 1
call fcn.005cce00
cmp dword [esp + 0x30], edi
jne 0x5cdbbc
push ebx
call fcn.00540e24
push dword [esp + 0x18]
call fcn.00540e24
add esp, 8
jmp 0x5ce29c
push 0x94
mov dword [0x6587c0], eax
push 0
push ebx
mov dword [eax], 4
mov dword [eax + 0x18], ebx
call fcn.0060a6d0
mov dword [ebx + 0x20], 0xffffffff
add esp, 0xc
mov dword [0x6587a4], 4
movzx eax, word [ebp + 0x20]
mov dword [ebx + 0x34], eax
push dword [ebp + 0x1c]
push ebp
call fcn.005d1a60
push dword [ebp + 0x14]
mov edi, eax
push ebp
mov dword [esp + 0x18], edi
call fcn.005d1a60
mov esi, eax
test edi, edi
jne 0x5cdccb
test esi, esi
je 0x5ce25e
push 0x105
call fcn.005ccd10
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
test edi, edi
je 0x5ce25e
push dword [esp + 0x18]
mov dword [esp + 0x24], 1
push 0x200
push esi
call fcn.005d1850
mov dword [esp + 0x28], eax
test eax, eax
je 0x5ce25e
cmp dword [esp + 0x18], 0
je 0x5cdcae
push eax
call fcn.005ccd10
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x5ce25e
push dword [esp + 0x18]
push esi
push dword [esp + 0x30]
push eax
call fcn.005d1800
mov esi, dword [esp + 0x1c]
push 0x4985d8
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x105
push edi
push esi
push 0xa
call fcn.005cd380
push esi
call fcn.00540e24
add esp, 0x1c
jmp 0x5cdccb
push 0x4985d8
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x105
push edi
push esi
push 0xa
call fcn.005cd380
add esp, 0x18
movzx edi, word [ebp + 0x12]
mov dword [esp + 0x1c], edi
cmp edi, 0xfffe
jne 0x5cdd11
test esi, esi
jne 0x5cdcee
mov dword [0x6587a4], 4
jmp 0x5ce25a
push esi
push 8
call fcn.005cd290
test eax, eax
jne 0x5cdd09
mov dword [0x6587a4], 0x29
jmp 0x5ce25a
dec eax
movzx eax, ax
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
xor esi, 1
and esi, dword [esp + 0x18]
push esi
push 0x105
push edi
call fcn.005d1850
mov dword [esp + 0x28], eax
test eax, eax
je 0x5ce25e
push eax
call fcn.005ccd10
add esp, 4
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x5ce25e
push esi
push edi
push dword [esp + 0x30]
push eax
call fcn.005d1800
cmp dword [esp + 0x20], 0
je 0x5cdd70
push edi
call fcn.00540e24
add esp, 4
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x5ce244
push eax
push ebp
call fcn.005d1a60
push 0
push 0
push 3
movups xmm0, xmmword [eax]
push 0
push 3
movups xmmword [ebx + 0x74], xmm0
push 0xc0000000
movups xmm0, xmmword [eax + 0x10]
push dword [ebx + 0x1c]
movups xmmword [ebx + 0x84], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx + 0x20], eax
cmp eax, 0xffffffff
jne 0x5cddc3
mov dword [0x6587a4], 0x60
jmp 0x5ce25e
push 0x40
lea eax, [esp + 0x88]
push eax
push 0x20
push ebx
call fcn.005cd790
test eax, eax
je 0x5ce25e
lea ecx, [esp + 0x84]
mov eax, dword [ecx]
cmp eax, dword [0x658800]
jne 0x5ce238
mov eax, dword [ecx + 4]
cmp eax, dword [0x658804]
jne 0x5ce238
movzx eax, byte [esp + 0x8c]
mov byte [ebx + 0x18], al
movzx eax, byte [esp + 0x8d]
mov byte [ebx + 0x19], al
movzx eax, word [esp + 0x90]
mov dword [ebx + 8], eax
cmp byte [esp + 0x8c], 2
jb 0x5cde36
mov eax, dword [esp + 0x9c]
mov dword [ebx + 0x2c], eax
push ebx
call fcn.005cd550
test eax, eax
je 0x5ce25e
movzx ecx, byte [ebx + 0x18]
movzx eax, byte [ebx + 0x19]
shl ecx, 8
add ecx, eax
cmp ecx, 0x120
je 0x5cde61
cmp ecx, 0x200
jne 0x5cde67
cmp dword [esp + 0x38], ecx
jbe 0x5cde76
mov dword [0x6587a4], 0xd
jmp 0x5ce25e
movzx eax, word [ebp + 0x22]
test ax, ax
je 0x5cdf3d
movzx ebp, word [ebp + 0x20]
mov ebx, eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 0x3c]
push eax
call fcn.005cd520
movzx ecx, word [esp + 0x42]
mov esi, eax
push ecx
movzx ecx, word [esp + 0x42]
push ecx
movzx ecx, word [esp + 0x44]
push ecx
call fcn.005d2e20
imul edi, eax, 0xa8c0
add edi, esi
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x40]
mov eax, ecx
and eax, 0x1f
push eax
mov eax, ecx
shr ecx, 9
shr eax, 5
and ecx, 0x7f
and eax, 0xf
add ecx, 0x7bc
push eax
push ecx
call fcn.005d2e20
imul ecx, eax, 0xa8c0
lea edx, [ebp*2]
mov eax, dword [esi + 0x44]
add eax, ecx
mov ecx, edi
sub ecx, eax
mov esi, eax
sub esi, edi
cmp eax, edi
mov edi, dword [esp + 0x10]
mov eax, ebx
cmovbe esi, ecx
mov ecx, ebx
shl ecx, 4
shl eax, 4
sub ecx, ebx
sub eax, ebx
shl ecx, 2
mov ebx, dword [esp + 0x24]
add eax, eax
cmp ecx, edx
cmovae ebp, eax
cmp esi, ebp
jbe 0x5cdf39
mov dword [0x6587a4], 0x63
jmp 0x5ce25e
mov ebp, dword [esp + 0x2c]
movzx eax, word [esp + 0x8e]
add eax, 0x20
test dword [esp + 0xd0], 0x100000
mov dword [ebx + 0x58], eax
je 0x5cdf70
mov dword [ebx], 0xffffffff
mov dword [ebx + 0x5c], eax
mov dword [0x6587a4], 0
jmp 0x5ce25e
push dword [ebx + 8]
movzx eax, word [esp + 0x92]
xor edi, edi
push dword [esp + 0x18]
add eax, 0x20
mov dword [esp + 0x20], edi
push eax
push ebx
or esi, 0xffffffff
call fcn.005cd790
test eax, eax
je 0x5ce25a
mov ecx, dword [ebx + 8]
xor eax, eax
mov dword [esp + 0x38], ecx
test ecx, ecx
jle 0x5cdfe4
mov edx, dword [esp + 0x1c]
xor ebp, ebp
mov ebx, dword [esp + 0x14]
mov cl, byte [eax + ebx]
cmp cl, 0xff
jne 0x5cdfc9
test esi, esi
jns 0x5cdfc6
cmp edx, 0xffff
cmove esi, eax
inc edi
jmp 0x5cdfcf
cmp cl, 0xfe
je 0x5cdfcf
inc ebp
mov ecx, dword [esp + 0x38]
inc eax
cmp eax, ecx
jl 0x5cdfb1
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
add eax, edi
cmp eax, dword [ebx + 4]
ja 0x5ce250
mov eax, dword [esp + 0x1c]
cmp eax, 0xffff
je 0x5ce021
cmp eax, ecx
mov ecx, dword [esp + 0x14]
jae 0x5ce025
mov dl, byte [eax + ecx]
cmp dl, 0xfe
je 0x5ce025
mov esi, eax
cmp dl, 0xff
je 0x5ce025
test byte [ebp], 1
je 0x5ce025
mov byte [eax + ecx], 0xff
jmp 0x5ce025
mov ecx, dword [esp + 0x14]
cmp esi, 0xffffffff
je 0x5ce22c
cmp byte [esi + ecx], 0xff
jne 0x5ce22c
movzx eax, si
mov dword [ebx], eax
movzx eax, di
dec eax
mov dword [ebx + 0xc], eax
movzx eax, word [esp + 0x94]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x58]
add eax, esi
mov dword [ebx + 0x5c], eax
movzx eax, word [esp + 0x94]
movzx ecx, word [esp + 0x92]
add ecx, eax
movzx eax, word [esp + 0x90]
imul ecx, esi
push 0x1c
add ecx, eax
movzx eax, word [esp + 0x92]
add eax, 0x20
add ecx, eax
mov dword [ebx + 0x60], ecx
movzx eax, word [esp + 0x96]
mov dword [ebx + 0x64], eax
lea eax, [esp + 0x64]
push eax
lea eax, [ecx + 0x14]
push eax
push ebx
call fcn.005cd790
test eax, eax
je 0x5ce25a
cmp word [esp + 0x60], 0
je 0x5ce0f8
mov eax, dword [esp + 0x60]
lea edx, [esp + 0x64]
add eax, dword [esp + 0x62]
mov esi, 0x18
movzx eax, ax
xor byte [edx], al
lea edx, [edx + 1]
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
sub esi, 1
jne 0x5ce0c6
cmp dword [esp + 0x78], esi
jne 0x5ce250
movzx eax, word [esp + 0x64]
xorps xmm0, xmm0
inc eax
movlpd qword [esp + 0x4c], xmm0
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0xa2]
mov ecx, dword [esp + 0xa0]
mov word [esp + 0x5e], ax
mov word [esp + 0x62], ax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x50]
movlpd qword [esp + 0x58], xmm0
push eax
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x84], xmm0
mov word [esp + 0x64], cx
mov word [esp + 0x68], cx
mov dword [esp + 0x40], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ax, word [ebx + 0x54]
lea edx, [esp + 0x64]
mov word [esp + 0x64], ax
mov esi, 0x18
mov eax, dword [esp + 0xa0]
add eax, dword [esp + 0xa2]
movzx eax, ax
xor byte [edx], al
lea edx, [edx + 1]
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
sub esi, 1
jne 0x5ce188
push 0x38
lea eax, [esp + 0x50]
push eax
push dword [ebx + 0x60]
push ebx
call fcn.005cf0a0
test eax, eax
je 0x5ce25a
mov al, byte [ebx + 0x50]
push 1
mov byte [esp + 0x3b], al
lea eax, [esp + 0x3b]
push eax
push dword [ebx + 0x5c]
push ebx
call fcn.005cf0a0
test eax, eax
je 0x5ce25a
mov dword [ebx + 0x14], esi
movzx eax, word [esp + 0xa0]
mov dword [ebx + 0x38], eax
movzx eax, word [esp + 0xa2]
mov dword [ebx + 0x3c], eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 0x3c]
push eax
call fcn.005cd4f0
movzx eax, ax
mov dword [ebx + 0x48], eax
lea eax, [esp + 0x3c]
push eax
call fcn.005cd520
mov dword [ebx + 0x4c], eax
mov dword [0x6587a4], esi
jmp 0x5ce25a
mov dword [0x6587a4], 0x66
jmp 0x5ce25a
mov dword [0x6587a4], 0x65
jmp 0x5ce25e
mov dword [0x6587a4], 4
jmp 0x5ce25e
mov dword [0x6587a4], 0x65
mov edi, dword [esp + 0x10]
push dword [esp + 0x14]
call fcn.00540e24
add esp, 4
cmp dword [esp + 0x20], 0
je 0x5ce27a
push edi
call fcn.00540e24
add esp, 4
test ebx, ebx
je 0x5ce29c
cmp dword [ebx + 0x24], 0
je 0x5ce29c
push 0
push 0x24
push 0
push 0x3c
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov dword [ebx + 0x24], 0
cmp dword [0x6587a4], 0
mov eax, dword [esp + 0x30]
je 0x5ce303
test eax, eax
je 0x5ce301
push eax
call fcn.005cd190
mov edi, eax
mov esi, dword [edi + 0x18]
cmp dword [esi + 0x24], 0
je 0x5ce2d6
push 0
push 0x24
push 0
push 0x3c
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x5ce2e5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x68]
call fcn.005cd0f0
push dword [edi + 0x18]
call fcn.00540e24
add esp, 8
push dword [esp + 0x30]
call fcn.005ccfe0
xor eax, eax
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00608a00
add esp, 0xb8
ret 8