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

Disassembly:
sub esp, 0xb8
mov eax, dword [0x10205ac8]
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.10178d20
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x1017a26e
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.10178d20
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x1017a26e
lea eax, [esp + 0x30]
push eax
push 0x1c
push 1
call fcn.10178e10
cmp dword [esp + 0x30], edi
jne 0x10179bcc
push ebx
call fcn.100ecdf4
push dword [esp + 0x18]
call fcn.100ecdf4
add esp, 8
jmp 0x1017a2ac
push 0x94
mov dword [0x102047c0], eax
push 0
push ebx
mov dword [eax], 4
mov dword [eax + 0x18], ebx
call fcn.101b66d0
mov dword [ebx + 0x20], 0xffffffff
add esp, 0xc
mov dword [0x102047a4], 4
movzx eax, word [ebp + 0x20]
mov dword [ebx + 0x34], eax
push dword [ebp + 0x1c]
push ebp
call fcn.1017da60
push dword [ebp + 0x14]
mov edi, eax
push ebp
mov dword [esp + 0x18], edi
call fcn.1017da60
mov esi, eax
test edi, edi
jne 0x10179cdb
test esi, esi
je 0x1017a26e
push 0x105
call fcn.10178d20
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
test edi, edi
je 0x1017a26e
push dword [esp + 0x18]
mov dword [esp + 0x24], 1
push 0x200
push esi
call fcn.1017d850
mov dword [esp + 0x28], eax
test eax, eax
je 0x1017a26e
cmp dword [esp + 0x18], 0
je 0x10179cbe
push eax
call fcn.10178d20
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1017a26e
push dword [esp + 0x18]
push esi
push dword [esp + 0x30]
push eax
call fcn.1017d800
mov esi, dword [esp + 0x1c]
push 0x100445c8
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x105
push edi
push esi
push 0xa
call fcn.10179390
push esi
call fcn.100ecdf4
add esp, 0x1c
jmp 0x10179cdb
push 0x100445c8
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x105
push edi
push esi
push 0xa
call fcn.10179390
add esp, 0x18
movzx edi, word [ebp + 0x12]
mov dword [esp + 0x1c], edi
cmp edi, 0xfffe
jne 0x10179d21
test esi, esi
jne 0x10179cfe
mov dword [0x102047a4], 4
jmp 0x1017a26a
push esi
push 8
call fcn.101792a0
test eax, eax
jne 0x10179d19
mov dword [0x102047a4], 0x29
jmp 0x1017a26a
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.1017d850
mov dword [esp + 0x28], eax
test eax, eax
je 0x1017a26e
push eax
call fcn.10178d20
add esp, 4
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x1017a26e
push esi
push edi
push dword [esp + 0x30]
push eax
call fcn.1017d800
cmp dword [esp + 0x20], 0
je 0x10179d80
push edi
call fcn.100ecdf4
add esp, 4
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x1017a254
push eax
push ebp
call fcn.1017da60
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 0x10179dd3
mov dword [0x102047a4], 0x60
jmp 0x1017a26e
push 0x40
lea eax, [esp + 0x88]
push eax
push 0x20
push ebx
call fcn.101797a0
test eax, eax
je 0x1017a26e
lea ecx, [esp + 0x84]
mov eax, dword [ecx]
cmp eax, dword [0x10204800]
jne 0x1017a248
mov eax, dword [ecx + 4]
cmp eax, dword [0x10204804]
jne 0x1017a248
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 0x10179e46
mov eax, dword [esp + 0x9c]
mov dword [ebx + 0x2c], eax
push ebx
call fcn.10179560
test eax, eax
je 0x1017a26e
movzx ecx, byte [ebx + 0x18]
movzx eax, byte [ebx + 0x19]
shl ecx, 8
add ecx, eax
cmp ecx, 0x120
je 0x10179e71
cmp ecx, 0x200
jne 0x10179e77
cmp dword [esp + 0x38], ecx
jbe 0x10179e86
mov dword [0x102047a4], 0xd
jmp 0x1017a26e
movzx eax, word [ebp + 0x22]
test ax, ax
je 0x10179f4d
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.10179530
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.1017ee20
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.1017ee20
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 0x10179f49
mov dword [0x102047a4], 0x63
jmp 0x1017a26e
mov ebp, dword [esp + 0x2c]
movzx eax, word [esp + 0x8e]
add eax, 0x20
test dword [esp + 0xd0], 0x100000
mov dword [ebx + 0x58], eax
je 0x10179f80
mov dword [ebx], 0xffffffff
mov dword [ebx + 0x5c], eax
mov dword [0x102047a4], 0
jmp 0x1017a26e
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.101797a0
test eax, eax
je 0x1017a26a
mov ecx, dword [ebx + 8]
xor eax, eax
mov dword [esp + 0x38], ecx
test ecx, ecx
jle 0x10179ff4
mov edx, dword [esp + 0x1c]
xor ebp, ebp
mov ebx, dword [esp + 0x14]
mov cl, byte [eax + ebx]
cmp cl, 0xff
jne 0x10179fd9
test esi, esi
jns 0x10179fd6
cmp edx, 0xffff
cmove esi, eax
inc edi
jmp 0x10179fdf
cmp cl, 0xfe
je 0x10179fdf
inc ebp
mov ecx, dword [esp + 0x38]
inc eax
cmp eax, ecx
jl 0x10179fc1
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 0x1017a260
mov eax, dword [esp + 0x1c]
cmp eax, 0xffff
je 0x1017a031
cmp eax, ecx
mov ecx, dword [esp + 0x14]
jae 0x1017a035
mov dl, byte [eax + ecx]
cmp dl, 0xfe
je 0x1017a035
mov esi, eax
cmp dl, 0xff
je 0x1017a035
test byte [ebp], 1
je 0x1017a035
mov byte [eax + ecx], 0xff
jmp 0x1017a035
mov ecx, dword [esp + 0x14]
cmp esi, 0xffffffff
je 0x1017a23c
cmp byte [esi + ecx], 0xff
jne 0x1017a23c
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.101797a0
test eax, eax
je 0x1017a26a
cmp word [esp + 0x60], 0
je 0x1017a108
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 0x1017a0d6
cmp dword [esp + 0x78], esi
jne 0x1017a260
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 0x1017a198
push 0x38
lea eax, [esp + 0x50]
push eax
push dword [ebx + 0x60]
push ebx
call fcn.1017b0b0
test eax, eax
je 0x1017a26a
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.1017b0b0
test eax, eax
je 0x1017a26a
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.10179500
movzx eax, ax
mov dword [ebx + 0x48], eax
lea eax, [esp + 0x3c]
push eax
call fcn.10179530
mov dword [ebx + 0x4c], eax
mov dword [0x102047a4], esi
jmp 0x1017a26a
mov dword [0x102047a4], 0x66
jmp 0x1017a26a
mov dword [0x102047a4], 0x65
jmp 0x1017a26e
mov dword [0x102047a4], 4
jmp 0x1017a26e
mov dword [0x102047a4], 0x65
mov edi, dword [esp + 0x10]
push dword [esp + 0x14]
call fcn.100ecdf4
add esp, 4
cmp dword [esp + 0x20], 0
je 0x1017a28a
push edi
call fcn.100ecdf4
add esp, 4
test ebx, ebx
je 0x1017a2ac
cmp dword [ebx + 0x24], 0
je 0x1017a2ac
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 [0x102047a4], 0
mov eax, dword [esp + 0x30]
je 0x1017a313
test eax, eax
je 0x1017a311
push eax
call fcn.101791a0
mov edi, eax
mov esi, dword [edi + 0x18]
cmp dword [esi + 0x24], 0
je 0x1017a2e6
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 0x1017a2f5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x68]
call fcn.10179100
push dword [edi + 0x18]
call fcn.100ecdf4
add esp, 8
push dword [esp + 0x30]
call fcn.10178ff0
xor eax, eax
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101b4a00
add esp, 0xb8
ret 8