Function at 0x5af150
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xdb000]
push edi
mov ebp, esp
lea ebx, [esp - 0x3e80]
xor eax, eax
push eax
cmp esp, ebx
jne 0x5af168
inc esi
inc esi
push ebx
push 0x1ad5d5
push edi
add ebx, 4
push ebx
push 0xd3143
push esi
add ebx, 4
push ebx
push eax
mov dword [ebx], 0x20003
nop
nop
nop
nop
nop
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov edx, dword [esp + 0x90]
mov dword [esp + 0x74], 0
mov byte [esp + 0x73], 0
mov ebp, dword [esp + 0x9c]
lea eax, [edx + 4]
mov dword [esp + 0x78], eax
mov eax, 1
movzx ecx, byte [edx + 2]
mov ebx, eax
shl ebx, cl
mov ecx, ebx
dec ecx
mov dword [esp + 0x6c], ecx
movzx ecx, byte [edx + 1]
shl eax, cl
dec eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xa8]
movzx esi, byte [edx]
mov dword [ebp], 0
mov dword [esp + 0x60], 0
mov dword [eax], 0
mov eax, 0x300
mov dword [esp + 0x64], esi
mov dword [esp + 0x5c], 1
mov dword [esp + 0x58], 1
mov dword [esp + 0x54], 1
mov dword [esp + 0x50], 1
movzx ecx, byte [edx + 1]
add ecx, esi
shl eax, cl
lea ecx, [eax + 0x736]
cmp dword [esp + 0x74], ecx
jae 0x5af242
mov eax, dword [esp + 0x78]
mov word [eax], 0x400
add eax, 2
loop 0x5af238
mov ebx, dword [esp + 0x94]
xor edi, edi
mov dword [esp + 0x48], 0xffffffff
mov edx, ebx
add edx, dword [esp + 0x98]
mov dword [esp + 0x4c], edx
xor edx, edx
cmp ebx, dword [esp + 0x4c]
je 0x5afbe8
movzx eax, byte [ebx]
shl edi, 8
inc edx
inc ebx
or edi, eax
cmp edx, 4
jle 0x5af262
mov ecx, dword [esp + 0xa4]
cmp dword [esp + 0x74], ecx
jae 0x5afbf0
mov esi, dword [esp + 0x74]
and esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x78]
shl eax, 4
mov dword [esp + 0x44], esi
add eax, esi
cmp dword [esp + 0x48], 0xffffff
lea ebp, [edx + eax*2]
ja 0x5af2ca
cmp ebx, dword [esp + 0x4c]
je 0x5afbe8
shl dword [esp + 0x48], 8
movzx eax, byte [ebx]
shl edi, 8
inc ebx
or edi, eax
invalid
mov eax, dword [esp + 0x48]
mov dx, word [ebp]
lodsd eax, dword [esi]
jl 0x5af336
add al, 0x21
mov ebx, edi
push es
add ch, cl
sub al, 0x2c
add dword [ebp - 0x24], edi
inc ebx
xor byte [ecx - 0x1b], al
sahf
add eax, 0x9bc5d008
jge 0x5af2c9
sub dword [ebp - 0x5e9bdf10], 0
add byte [eax], al
add byte [eax], al
add byte [eax], al
lea eax, [edx + eax]
movzx edx, byte [esp + 0x73]
mov word [ebp], ax
mov eax, dword [esp + 0x74]
and eax, dword [esp + 0x68]
mov ebp, dword [esp + 0x78]
shl eax, cl
mov ecx, 8
sub ecx, dword [esp + 0x64]
sar edx, cl
add eax, edx
imul eax, eax, 0x600
cmp dword [esp + 0x60], 6
lea eax, [ebp + eax + 0xe6c]
mov dword [esp + 0x14], eax
jle 0x5af407
adc al, 0xf
mov cs, edx
add byte [eax], al
add byte [ebx + 0x2b742444], cl
inc esp
and al, 0x5c
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x5c]
mov edx, dword [esp + 0xa0]
movzx eax, byte [edx + eax]
mov dword [esp + 0x40], eax
shl dword [esp + 0x40], 1
mov ecx, dword [esp + 0x40]
lea edx, [esi + esi]
mov ebp, dword [esp + 0x14]
and ecx, 0x100
cmp dword [esp + 0x48], 0xffffff
lea eax, [ebp + ecx*2]
mov dword [esp + 0x3c], ecx
lea ebp, [eax + edx]
ja 0x5af396
cmp ebx, dword [esp + 0x4c]
je 0x5afbe8
shl dword [esp + 0x48], 8
movzx eax, byte [ebx]
shl edi, 8
inc ebx
or edi, eax
mov eax, dword [esp + 0x48]
mov cx, word [ebp + 0x200]
shr eax, 0xb
movzx esi, cx
imul eax, esi
cmp edi, eax
jae 0x5af3d1
mov dword [esp + 0x48], eax
mov eax, 0x800
sub eax, esi
mov esi, edx
sar eax, 5
cmp dword [esp + 0x3c], 0
lea eax, [ecx + eax]
mov word [ebp + 0x200], ax
je 0x5af3f1
jmp 0x5af3ff
sub dword [esp + 0x48], eax
sub edi, eax
mov eax, ecx
lea esi, [edx + 1]
shr ax, 5
sub cx, ax
cmp dword [esp + 0x3c], 0
mov word [ebp + 0x200], cx
je 0x5af3ff
cmp esi, 0xff
jle 0x5af354
jmp 0x5af478
cmp esi, 0xff
jg 0x5af478
lea edx, [esi + esi]
mov ebp, dword [esp + 0x14]
add ebp, edx
cmp dword [esp + 0x48], 0xffffff
ja 0x5af432
cmp ebx, dword [esp + 0x4c]
je 0x5afbe8
shl dword [esp + 0x48], 8
movzx eax, byte [ebx]
shl edi, 8
inc ebx
or edi, eax
mov eax, dword [esp + 0x48]
mov cx, word [ebp]
shr eax, 0xb
movzx esi, cx
imul eax, esi
cmp edi, eax
jae 0x5af460
mov dword [esp + 0x48], eax
mov eax, 0x800
sub eax, esi
mov esi, edx
sar eax, 5
lea eax, [ecx + eax]
mov word [ebp], ax
jmp 0x5af3ff
sub dword [esp + 0x48], eax
sub edi, eax
mov eax, ecx
lea esi, [edx + 1]
shr ax, 5
sub cx, ax
mov word [ebp], cx
jmp 0x5af3ff
mov edx, dword [esp + 0x74]
mov eax, esi
mov ecx, dword [esp + 0xa0]
mov byte [esp + 0x73], al
mov byte [edx + ecx], al
inc edx
cmp dword [esp + 0x60], 3
mov dword [esp + 0x74], edx
jg 0x5af4a5
mov dword [esp + 0x60], 0
jmp 0x5afbc0
cmp dword [esp + 0x60], 9
jg 0x5af4b6
sub dword [esp + 0x60], 3
jmp 0x5afbc0
sub dword [esp + 0x60], 6
jmp 0x5afbc0
mov eax, dword [esp + 0xa4]
cmp dword [esp + 0x74], eax
jb 0x5af28c
cmp dword [esp + 0x48], 0xffffff
ja 0x5afbf0
cmp ebx, dword [esp + 0x4c]
mov eax, 1
je 0x5afc0f
jmp 0x5afbef
mov eax, 1
jmp 0x5afc0f
inc ebx
sub ebx, dword [esp + 0x94]
xor eax, eax
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x74]
mov dword [edx], ebx
mov ebx, dword [esp + 0xa8]
mov dword [ebx], ecx
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
add esi, dword [ebx - 4]
add edi, dword [ebx - 8]
xor eax, eax
lea ecx, [esp - 0x100]
mov esp, ebp
push eax
cmp esp, ecx
jne 0x5afc27
mov esp, ebp
xor ecx, ecx
pop esi
mov edi, esi
mov ecx, 0x118a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5afc38
cmp byte [edi], 0x11
jne 0x5afc38
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5afc3d
lea edi, [esi + 0x1ac000]
mov eax, dword [edi]
or eax, eax
je 0x5afcb5
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1b87f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1b88f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5afc6a
mov ecx, edi
jns 0x5afc99
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1b88f8]
or eax, eax
je 0x5afcaf
mov dword [ebx], eax
add ebx, 4
jmp 0x5afc87
call dword [esi + 0x1b8908]
mov ebp, dword [esi + 0x1b88fc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5afce9
sub esp, 0xffffff80
jmp 0x41eef6