Function at 0x1017c4c8
Capabilities:
Packed with generic packer

Disassembly:
jmp 0x1017c6ce
xor ecx, ecx
pop esi
xchg dword [esi], ecx
jecxz 0x1017c4c3
sub esi, ecx
mov ebx, esi
lodsd eax, dword [esi]
sub ebx, eax
lodsd eax, dword [esi]
add eax, ebx
push eax
xchg edi, eax
lodsd eax, dword [esi]
xchg ecx, eax
rep movsd dword es:[edi], dword [esi]
pop esi
lodsd eax, dword [esi]
push esi
xchg ecx, eax
add dword [esi], ebx
lodsd eax, dword [esi]
loop 0x1017c4e3
lodsd eax, dword [esi]
lea ebp, [esi + 0x10]
add dword [ebp], ebx
lea edi, [ebp + 0x1c]
mov ch, 0x1c
rep stosd dword es:[edi], eax
pop esi
lodsd eax, dword [esi]
push ebx
push eax
push ecx
xchg edi, eax
pop eax
lea edx, [ebp + eax*4 + 0x5c]
call dword [esi]
jb 0x1017c55c
sub al, 3
jae 0x1017c50b
mov al, 0
cmp al, 7
jb 0x1017c511
sub al, 3
push eax
movzx ebx, byte [edi - 1]
shl ebx, 3
mov bl, 0
lea ebx, [ebx + ebx*2]
lea ebx, [ebp + ebx*4 + 0x100c]
mov al, 1
jecxz 0x1017c552
mov edx, edi
sub edx, dword [ebp + 0xc]
mov ch, byte [edx]
xor edx, edx
test cl, ch
setne dh
push edx
inc dh
mov dl, al
lea edx, [ebx + edx*4]
call dword [esi]
pop edx
lahf
adc al, al
shr cl, 1
je 0x1017c557
sahf
sbb dh, dl
je 0x1017c532
mov ah, 0
xor ecx, ecx
mov ch, 1
call dword [esi + 8]
xor ecx, ecx
jmp dword [esi + GetProcAddress]
mov cl, 0x30
mov ebx, dword [ebp + 0xc]
add edx, ecx
call dword [esi]
jae 0x1017c5b3
add edx, ecx
call dword [esi]
jb 0x1017c586
add edx, ecx
call dword [esi]
jb 0x1017c59c
cmp al, 7
mov al, 9
jb 0x1017c57b
mov al, 0xb
push eax
mov eax, edi
sub eax, dword [ebp + 0xc]
mov al, byte [eax]
jmp dword [esi + 0x18]
add edx, 0x60
call dword [esi]
xchg dword [ebp + 0x10], ebx
jae 0x1017c59c
add edx, ecx
call dword [esi]
xchg dword [ebp + 0x14], ebx
jae 0x1017c59c
xchg dword [ebp + 0x18], ebx
cmp al, 7
mov al, 8
jb 0x1017c5a4
mov al, 0xb
push eax
push ebx
mov edx, ebp
add edx, dword [esi + 0x38]
call dword [esi + LoadLibraryA]
pop ebx
xchg ecx, eax
jmp dword [esi + 0x30]
cmp al, 7
mov al, 7
jb 0x1017c5bb
mov al, 0xa
push eax
xchg dword [ebp + 0x10], ebx
xchg dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov edx, ebp
add edx, dword [esi + 0x3c]
call dword [esi + LoadLibraryA]
push 3
pop ecx
push eax
dec eax
cmp eax, ecx
jb 0x1017c5d8
mov eax, ecx
shl eax, 6
mov cl, pe_nt_image_headers32
lea ebx, [ebp + eax*4 + 0x37c]
call dword [esi + 4]
cmp al, 4
mov ebx, eax
jb 0x1017c64c
xor ebx, ebx
shr eax, 1
adc ebx, ebx
dec eax
inc ebx
xchg ecx, eax
inc ebx
shl ebx, cl
cmp cl, 5
lea edx, [ebp + ebx*4 + 0x17c]
jbe 0x1017c633
sub cl, 4
xor eax, eax
mov edx, dword [ebp]
shr dword [ebp + 8], 1
mov edx, dword [edx]
bswap edx
sub edx, dword [ebp + 4]
add eax, eax
cmp edx, dword [ebp + 8]
jb 0x1017c625
mov edx, dword [ebp + 8]
inc eax
add dword [ebp + 4], edx
call dword [esi + 0x10]
loop 0x1017c60a
mov cl, 4
shl eax, cl
add ebx, eax
lea edx, [ebp + 0x1c]
xor eax, eax
push ebx
inc eax
push ecx
shl eax, cl
mov ebx, edx
xchg ecx, eax
call dword [esi + 4]
xor edx, edx
pop ecx
shr eax, 1
adc edx, edx
loop 0x1017c643
pop ebx
add ebx, edx
inc ebx
pop ecx
mov dword [ebp + 0xc], ebx
push esi
mov esi, edi
sub esi, ebx
rep movsb byte es:[edi], byte [esi]
lodsb al, byte [esi]
pop esi
mov cl, 0x80
stosb byte es:[edi], al
cmp edi, dword [esi + 0x24]
jae 0x1017c665
jmp dword [esi + 0x20]
pop eax
mov ecx, dword [esi + 0x40]
pop edi
pop edx
push edi
jecxz 0x1017c689
mov al, byte [edi]
inc edi
add al, 0x18
cmp al, 2
jae 0x1017c66e
mov eax, dword [edi]
cmp al, 0x13
jne 0x1017c66e
mov al, 0
bswap eax
add eax, dword [esi + 0x14]
sub eax, edi
stosd dword es:[edi], eax
loop 0x1017c66e
mov ebx, dword [esi + 0x28]
push esi
push edx
mov esi, dword [esi + 0x2c]
inc esi
lodsd eax, dword [esi]
test eax, eax
pop edx
je 0x1017c6ba
add eax, edx
push edx
push esi
xchg edi, eax
call dword [ebx - 4]
xchg ebp, eax
lodsb al, byte [esi]
test al, al
jne 0x1017c6a1
cmp byte [esi], al
je 0x1017c691
mov eax, esi
jns 0x1017c6b3
inc esi
xor eax, eax
lodsw ax, word [esi]
push eax
push ebp
call dword [ebx]
stosd dword es:[edi], eax
jmp 0x1017c6a1
pop ecx
pop edi
mov ecx, dword [ecx + 0x44]
jecxz 0x1017c6ce
xor eax, eax
lodsb al, byte [esi]
cmp al, 4
jb 0x1017c6d4
add edi, eax
add dword [edi], edx
loop 0x1017c6c1
popal
jmp 0x10075d88
sub al, 1
jb 0x1017c6e0
je 0x1017c6e4
shl eax, 8
lodsb al, byte [esi]
jmp 0x1017c6c8
lodsw ax, word [esi]
jmp 0x1017c6c8
lodsd eax, dword [esi]
jmp 0x1017c6c8