Function at 0x424640
Capabilities:
Packed with generic packer
Resolve function by parsing pe exports

Disassembly:
pushal
mov edx, section.UPX1
lea esi, [edx - 0x1a000]
xor ecx, ecx
push esi
lea edi, [esp - 0x3e80]
mov ebp, esp
push ecx
cmp esp, edi
jne 0x424658
inc edx
inc edx
push edi
push 0x22394
push esi
add edi, 4
push edi
sub edi, 0xfffffffc
push 0x962f
push edx
push edi
push ecx
mov dword [edi], 0x20003
nop
nop
nop
nop
nop
push ebp
push edi
mov ebp, 1
mov eax, ebp
push esi
push ebx
sub esp, 0x7c
mov ebx, dword [esp + 0x90]
lea esi, [ebx + 4]
mov dword [esp + 0x74], 0
mov byte [esp + 0x73], 0
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x78], esi
movzx ecx, byte [ebx + 2]
shl eax, cl
mov ecx, eax
dec ecx
mov dword [esp + 0x6c], ecx
movzx ecx, byte [ebx + 1]
shl ebp, cl
dec ebp
mov dword [esp + 0x68], ebp
mov eax, dword [esp + 0xa8]
movzx esi, byte [ebx]
mov ebp, 0x300
mov dword [edi], 0
mov dword [esp + 0x60], 0
mov dword [eax], 0
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 [ebx + 1]
add ecx, esi
shl ebp, cl
lea ecx, [ebp + 0x736]
cmp dword [esp + 0x74], ecx
jae 0x424732
mov edi, dword [esp + 0x78]
mov word [edi], 0x400
add edi, 2
loop 0x424728
mov esi, dword [esp + 0x94]
mov dword [esp + 0x48], 0xffffffff
xor ebp, ebp
mov eax, esi
add eax, dword [esp + 0x98]
mov dword [esp + 0x4c], eax
xor edx, edx
cmp esi, dword [esp + 0x4c]
je 0x4250d8
shl ebp, 8
movzx eax, byte [esi]
inc edx
inc esi
or ebp, eax
cmp edx, 4
jle 0x424752
mov edx, dword [esp + 0xa4]
cmp dword [esp + 0x74], edx
jae 0x4250e0
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
and ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x44], ecx
shl eax, 4
add eax, ecx
lea ebx, [edx + eax*2]
cmp dword [esp + 0x48], 0xffffff
ja 0x4247ba
cmp esi, dword [esp + 0x4c]
je 0x4250d8
shl dword [esp + 0x48], 8
shl ebp, 8
movzx eax, byte [esi]
inc esi
or ebp, eax
mov eax, dword [esp + 0x48]
mov dx, word [ebx]
shr eax, 0xb
movzx ecx, dx
imul eax, ecx
cmp ebp, eax
jae 0x4249b0
mov edi, 1
mov dword [esp + 0x48], eax
mov eax, 0x800
sub eax, ecx
mov cl, byte [esp + 0x64]
sar eax, 5
lea eax, [edx + eax]
movzx edx, byte [esp + 0x73]
mov word [ebx], ax
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x78]
and eax, dword [esp + 0x68]
shl eax, cl
mov ecx, 8
sub ecx, dword [esp + 0x64]
sar edx, cl
add eax, edx
imul eax, eax, 0x600
lea eax, [ebx + eax + 0xe6c]
cmp dword [esp + 0x60], 6
mov dword [esp + 0x14], eax
jle 0x4248f7
mov ecx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x74]
sub ebx, dword [esp + 0x5c]
movzx ebx, byte [ecx + ebx]
mov dword [esp + 0x40], ebx
shl dword [esp + 0x40], 1
lea edx, [edi + edi]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
and ecx, 0x100
cmp dword [esp + 0x48], 0xffffff
lea eax, [ebx + ecx*2]
mov dword [esp + 0x3c], ecx
lea ebx, [eax + edx]
ja 0x424886
cmp esi, dword [esp + 0x4c]
je 0x4250d8
shl dword [esp + 0x48], 8
shl ebp, 8
movzx edi, byte [esi]
inc esi
or ebp, edi
mov cx, word [ebx + 0x200]
movzx edi, cx
mov eax, dword [esp + 0x48]
shr eax, 0xb
imul eax, edi
cmp ebp, eax
jae 0x4248c1
mov dword [esp + 0x48], eax
mov eax, 0x800
sub eax, edi
sar eax, 5
cmp dword [esp + 0x3c], 0
mov edi, edx
lea eax, [ecx + eax]
mov word [ebx + 0x200], ax
je 0x4248e1
jmp 0x4248ef
lea edi, [edx + 1]
sub dword [esp + 0x48], eax
sub ebp, eax
mov eax, ecx
shr ax, 5
sub cx, ax
cmp dword [esp + 0x3c], 0
mov word [ebx + 0x200], cx
je 0x4248ef
cmp edi, 0xff
jle 0x424844
jmp 0x424968
cmp edi, 0xff
jg 0x424968
mov ebx, dword [esp + 0x14]
lea edx, [edi + edi]
add ebx, edx
cmp dword [esp + 0x48], 0xffffff
ja 0x424922
cmp esi, dword [esp + 0x4c]
je 0x4250d8
shl dword [esp + 0x48], 8
movzx eax, byte [esi]
shl ebp, 8
inc esi
or ebp, eax
mov eax, dword [esp + 0x48]
shr eax, 0xb
mov cx, word [ebx]
movzx edi, cx
imul eax, edi
cmp ebp, eax
jae 0x424950
mov dword [esp + 0x48], eax
mov eax, 0x800
sub eax, edi
sar eax, 5
lea eax, [ecx + eax]
mov word [ebx], ax
mov edi, edx
jmp 0x4248ef
lea edi, [edx + 1]
sub dword [esp + 0x48], eax
sub ebp, eax
mov edx, ecx
shr dx, 5
sub cx, dx
mov word [ebx], cx
jmp 0x4248ef
mov edx, dword [esp + 0x74]
mov eax, edi
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 0x424995
mov dword [esp + 0x60], 0
jmp 0x4250b0
cmp dword [esp + 0x60], 9
jg 0x4249a6
sub dword [esp + 0x60], 3
jmp 0x4250b0
sub dword [esp + 0x60], 6
jmp 0x4250b0
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x60]
sub ebp, eax
sub ecx, eax
mov eax, edx
shr ax, 5
sub dx, ax
mov word [ebx], dx
mov ebx, dword [esp + 0x78]
lea edi, [ebx + edi*2]
cmp ecx, 0xffffff
mov dword [esp + 0x38], edi
ja 0x4249f3
cmp esi, dword [esp + 0x4c]
je 0x4250d8
movzx ebx, byte [esi]
shl ebp, 8
shl ecx, 8
inc esi
or ebp, ebx
mov eax, ecx
shr eax, 0xb
mov edi, dword [esp + 0x38]
mov dx, word [edi + 0x180]
movzx edi, dx
imul eax, edi
cmp ebp, eax
jae 0x424a5f
mov ecx, dword [esp + 0x54]
mov ebx, eax
mov eax, 0x800
sub eax, edi
sar eax, 5
mov edi, dword [esp + 0x58]
lea eax, [edx + eax]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x78]
mov word [edx + 0x180], ax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], eax
xor eax, eax
cmp dword [esp + 0x60], 6
setg al
lea eax, [eax + eax*2]
mov dword [esp + 0x60], eax
add ecx, 0x664
jmp 0x424cd3
sub ebp, eax
mov edi, ecx
sub edi, eax
mov ebx, edx
mov eax, dword [esp + 0x38]
shr bx, 5
sub dx, bx
mov word [eax + 0x180], dx
cmp edi, 0xffffff
ja 0x424a97
cmp esi, dword [esp + 0x4c]
je 0x4250d8
movzx edx, byte [esi]
shl ebp, 8
shl edi, 8
inc esi
or ebp, edx
mov edx, edi
mov ecx, dword [esp + 0x38]
mov ax, word [ecx + 0x198]
shr edx, 0xb
movzx ecx, ax
imul edx, ecx
cmp ebp, edx
jae 0x424b98
mov dword [esp + 0x34], 0x800
mov edi, 0x800
mov ebx, edx
sub edi, ecx
mov ecx, edi
sar ecx, 5
lea ecx, [eax + ecx]
mov edi, dword [esp + 0x38]
mov word [edi + 0x198], cx
mov edi, dword [esp + 0x60]
shl edi, 5
add edi, dword [esp + 0x78]
mov eax, dword [esp + 0x44]
cmp edx, 0xffffff
lea ecx, [edi + eax*2]
ja 0x424b09
cmp esi, dword [esp + 0x4c]
je 0x4250d8
movzx edi, byte [esi]
shl ebp, 8
shl ebx, 8
inc esi
or ebp, edi
mov dx, word [ecx + 0x1e0]
movzx eax, dx
mov edi, ebx
shr edi, 0xb
imul edi, eax
cmp ebp, edi
jae 0x424b7f
sub dword [esp + 0x34], eax
sar dword [esp + 0x34], 5
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x48], edi
cmp dword [esp + 0x74], 0
lea eax, [edx + ebx]
mov word [ecx + 0x1e0], ax
je 0x4250d8
xor ecx, ecx
cmp dword [esp + 0x60], 6
mov edi, dword [esp + 0xa0]
setg cl
lea ecx, [ecx + ecx + 9]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x60], ecx
mov ebx, dword [esp + 0x74]
sub ebx, dword [esp + 0x5c]
mov bl, byte [edi + ebx]
mov byte [esp + 0x73], bl
mov byte [edx + edi], bl
inc edx
mov dword [esp + 0x74], edx
jmp 0x4250b0
mov eax, edx
sub ebx, edi
sub ebp, edi
shr ax, 5
sub dx, ax
mov word [ecx + 0x1e0], dx
jmp 0x424cb7
mov ecx, dword [esp + 0x38]
sub edi, edx
mov ebx, eax
shr bx, 5
sub ax, bx
sub ebp, edx
cmp edi, 0xffffff
mov word [ecx + 0x198], ax
ja 0x424bce
cmp esi, dword [esp + 0x4c]
je 0x4250d8
shl ebp, 8
shl edi, 8
movzx eax, byte [esi]
inc esi
or ebp, eax
mov ebx, dword [esp + 0x38]
mov ecx, edi
mov dx, word [ebx + 0x1b0]
shr ecx, 0xb
movzx eax, dx
imul ecx, eax
cmp ebp, ecx
jae 0x424c0b
mov edi, dword [esp + 0x38]
mov ebx, ecx
mov ecx, 0x800
sub ecx, eax
sar ecx, 5
lea ecx, [edx + ecx]
mov word [edi + 0x1b0], cx
mov edi, dword [esp + 0x58]
jmp 0x424cab
sub ebp, ecx
mov ebx, dword [esp + 0x38]
mov eax, edi
sub eax, ecx
mov ecx, edx
shr cx, 5
sub dx, cx
cmp eax, 0xffffff
mov word [ebx + 0x1b0], dx
ja 0x424c43
cmp esi, dword [esp + 0x4c]
je 0x4250d8
shl ebp, 8
movzx ecx, byte [esi]
shl eax, 8
inc esi
or ebp, ecx
mov edi, dword [esp + 0x38]
mov dx, word [edi + 0x1c8]
movzx edi, dx
mov ecx, eax
shr ecx, 0xb
imul ecx, edi
cmp ebp, ecx
jae 0x424c7d
mov ebx, ecx
mov ecx, 0x800
sub ecx, edi
sar ecx, 5
lea ecx, [edx + ecx]
mov edi, dword [esp + 0x38]
mov word [edi + 0x1c8], cx
mov edi, dword [esp + 0x54]
jmp 0x424ca3
sub ebp, ecx
mov ebx, eax
mov eax, edx
sub ebx, ecx
shr ax, 5
sub dx, ax
mov eax, dword [esp + 0x38]
mov word [eax + 0x1c8], dx
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], eax
xor eax, eax
cmp dword [esp + 0x60], 6
setg al
lea eax, [eax + eax*2 + 8]
mov ecx, dword [esp + 0x78]
add ecx, 0xa68
mov dword [esp + 0x60], eax
cmp ebx, 0xffffff
ja 0x424cf1
cmp esi, dword [esp + 0x4c]
je 0x4250d8
movzx eax, byte [esi]
shl ebp, 8
shl ebx, 8
inc esi
or ebp, eax
mov dx, word [ecx]
movzx edi, dx
mov eax, ebx
shr eax, 0xb
imul eax, edi
cmp ebp, eax
jae 0x424d32
mov dword [esp + 0x48], eax
mov eax, 0x800
sub eax, edi
shl dword [esp + 0x44], 4
mov dword [esp + 0x2c], 0
sar eax, 5
lea eax, [edx + eax]
mov word [ecx], ax
mov eax, dword [esp + 0x44]
lea ecx, [ecx + eax + 4]
mov dword [esp + 0x10], ecx
jmp 0x424da4
sub ebx, eax
sub ebp, eax
mov eax, edx
shr ax, 5
sub dx, ax
mov word [ecx], dx
cmp ebx, 0xffffff
ja 0x424d60
cmp esi, dword [esp + 0x4c]
je 0x4250d8
movzx eax, byte [esi]
shl ebp, 8
shl ebx, 8
inc esi
or ebp, eax
mov eax, ebx
mov dx, word [ecx + 2]
movzx edi, dx
shr eax, 0xb
imul eax, edi
cmp ebp, eax
jae 0x424dae
mov dword [esp + 0x48], eax
mov eax, 0x800
sub eax, edi
shl dword [esp + 0x44], 4
sar eax, 5
lea eax, [edx + eax]
mov dword [esp + 0x2c], 8
mov edi, dword [esp + 0x44]
mov word [ecx + 2], ax
lea ecx, [ecx + edi + 0x104]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], 3
jmp 0x424ddd
sub ebx, eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x2c], 0x10
sub ebp, eax
mov dword [esp + 0x30], 8
mov eax, edx
shr ax, 5
sub dx, ax
mov word [ecx + 2], dx
add ecx, 0x204
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov edx, 1
lea eax, [edx + edx]
mov edi, dword [esp + 0x10]
add edi, eax
cmp dword [esp + 0x48], 0xffffff
ja 0x424e15
cmp esi, dword [esp + 0x4c]
je 0x4250d8
shl dword [esp + 0x48], 8
shl ebp, 8
movzx ebx, byte [esi]
inc esi
or ebp, ebx
mov dx, word [edi]
movzx ecx, dx
mov ebx, dword [esp + 0x48]
shr ebx, 0xb
imul ebx, ecx
cmp ebp, ebx
jae 0x424e41
mov dword [esp + 0x48], ebx
mov ebx, 0x800
sub ebx, ecx
sar ebx, 5
lea ebx, [edx + ebx]
mov word [edi], bx
mov edx, eax
jmp 0x424e56
sub dword [esp + 0x48], ebx
sub ebp, ebx
mov ebx, edx
shr bx, 5
sub dx, bx
mov word [edi], dx
lea edx, [eax + 1]
mov ebx, dword [esp + 0x28]
dec ebx
mov dword [esp + 0x28], ebx
jne 0x424dea
mov cl, byte [esp + 0x30]
mov eax, 1
shl eax, cl
sub edx, eax
add edx, dword [esp + 0x2c]
cmp dword [esp + 0x60], 3
mov dword [esp + 0xc], edx
jg 0x425068
add dword [esp + 0x60], 7
cmp edx, 3
mov ecx, edx
jle 0x424e92
mov ecx, 3
shl ecx, 7
mov ebx, dword [esp + 0x78]
lea ecx, [ebx + ecx + 0x360]
mov eax, 1
mov dword [esp + 0x24], 6
mov dword [esp + 8], ecx
mov ebx, dword [esp + 8]
lea edi, [eax + eax]
add ebx, edi
cmp dword [esp + 0x48], 0xffffff
ja 0x424edc
cmp esi, dword [esp + 0x4c]
je 0x4250d8
shl dword [esp + 0x48], 8
movzx ecx, byte [esi]
shl ebp, 8
inc esi
or ebp, ecx
mov eax, dword [esp + 0x48]
mov dx, word [ebx]
movzx ecx, dx
shr eax, 0xb
imul eax, ecx
cmp ebp, eax
jae 0x424f08
mov dword [esp + 0x48], eax
mov eax, 0x800
sub eax, ecx
sar eax, 5
lea eax, [edx + eax]
mov word [ebx], ax
mov eax, edi
jmp 0x424f1d
sub dword [esp + 0x48], eax
sub ebp, eax
mov ecx, edx
shr cx, 5
sub dx, cx
lea eax, [edi + 1]
mov word [ebx], dx
mov ecx, dword [esp + 0x24]
dec ecx
mov dword [esp + 0x24], ecx
jne 0x424eb1
lea edx, [eax - 0x40]
cmp edx, 3
mov dword [esp], edx
jle 0x42505e
mov ebx, edx
mov edi, edx
sar edi, 1
lea ecx, [edi - 1]
and ebx, 1
or ebx, 2
cmp edx, 0xd
mov dword [esp + 0x20], ecx
jg 0x424f6b
shl ebx, cl
add edx, edx
mov ecx, dword [esp + 0x78]
lea eax, [ecx + ebx*2]
sub eax, edx
mov dword [esp], ebx
add eax, 0x55e
mov dword [esp + 4], eax
jmp 0x424fc1
lea edx, [edi - 5]
cmp dword [esp + 0x48], 0xffffff
ja 0x424f90
cmp esi, dword [esp + 0x4c]
je 0x4250d8
shl dword [esp + 0x48], 8
movzx ecx, byte [esi]
shl ebp, 8
inc esi
or ebp, ecx
shr dword [esp + 0x48], 1
add ebx, ebx
cmp ebp, dword [esp + 0x48]
jb 0x424fa3
sub ebp, dword [esp + 0x48]
or ebx, 1
dec edx
jne 0x424f6e
mov eax, dword [esp + 0x78]
shl ebx, 4
mov dword [esp], ebx
add eax, 0x644
mov dword [esp + 0x20], 4
mov dword [esp + 4], eax
mov dword [esp + 0x1c], 1
mov edi, 1
mov ecx, dword [esp + 4]
add edi, edi
mov dword [esp + 0x18], edi
add ecx, edi
cmp dword [esp + 0x48], 0xffffff
ja 0x424ffc
cmp esi, dword [esp + 0x4c]
je 0x4250d8
shl dword [esp + 0x48], 8
shl ebp, 8
movzx eax, byte [esi]
inc esi
or ebp, eax
mov edi, dword [esp + 0x48]
mov dx, word [ecx]
shr edi, 0xb
movzx ebx, dx
imul edi, ebx
cmp ebp, edi
jae 0x42502c
mov eax, 0x800
mov dword [esp + 0x48], edi
sub eax, ebx
sar eax, 5
lea eax, [edx + eax]
mov word [ecx], ax
mov edi, dword [esp + 0x18]
jmp 0x42504b
mov eax, edx
sub dword [esp + 0x48], edi
sub ebp, edi
shr ax, 5
sub dx, ax
mov edi, dword [esp + 0x18]
mov word [ecx], dx
mov edx, dword [esp + 0x1c]
inc edi
or dword [esp], edx
mov eax, dword [esp + 0x20]
shl dword [esp + 0x1c], 1
dec eax
mov dword [esp + 0x20], eax
jne 0x424fce
mov ecx, dword [esp]
inc ecx
mov dword [esp + 0x5c], ecx
je 0x4250c1
mov edi, dword [esp + 0xc]
add edi, 2
mov ebx, dword [esp + 0x74]
cmp dword [esp + 0x5c], ebx
ja 0x4250d8
mov edx, ebx
mov ecx, dword [esp + 0xa0]
sub ecx, dword [esp + 0x5c]
lea eax, [ecx + ebx]
add edx, dword [esp + 0xa0]
mov cl, byte [eax]
mov byte [esp + 0x73], cl
mov byte [edx], cl
inc eax
inc edx
inc dword [esp + 0x74]
dec edi
je 0x4250b0
mov ebx, dword [esp + 0xa4]
cmp dword [esp + 0x74], ebx
jb 0x425090
jmp 0x4250c1
mov eax, dword [esp + 0xa4]
cmp dword [esp + 0x74], eax
jb 0x42477c
cmp dword [esp + 0x48], 0xffffff
ja 0x4250e0
cmp esi, dword [esp + 0x4c]
mov ebx, 1
je 0x4250ff
jmp 0x4250df
mov edi, 1
jmp 0x4250ff
inc esi
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x9c]
sub esi, dword [esp + 0x94]
mov dword [edx], esi
xor edi, edi
mov esi, dword [esp + 0xa8]
mov dword [esi], ecx
add esp, 0x7c
pop ebx
pop ecx
add ecx, dword [ebx - 4]
pop eax
pop ebp
lea edi, [esp - 0x100]
add eax, dword [ebx - 8]
xor eax, eax
mov esp, ebp
push eax
cmp esp, edi
jne 0x425117
xor esi, esi
mov esp, ebp
mov ecx, 0xc8
pop esi
mov edi, esi
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x425128
cmp byte [edi], 4
jne 0x425128
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
mov bl, byte [edi + 4]
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42512d
lea edi, [esi + 0x22000]
mov eax, dword [edi]
or eax, eax
je 0x42519c
mov ebx, dword [edi + 4]
add ebx, esi
add edi, 8
lea eax, [eax + esi + 0x25000]
push eax
call dword [esi + 0x25064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42515a
dec eax
mov ecx, edi
push edi
push ebp
repne scasb al, byte es:[edi]
call dword [esi + 0x25068]
or eax, eax
je 0x425196
mov dword [ebx], eax
add ebx, 4
jmp 0x425177
call dword [esi + 0x25078]
mov edi, dword [esi + 0x2506c]
lea ebp, [esi - 0x1000]
push eax
mov esi, 0x1000
push esp
push 4
push esi
push ebp
call edi
lea ebx, [ebp + 0x1ef]
and byte [ebx], 0x7f
and byte [ebx + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push esi
push ebp
call edi
pop ebx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4251d0
sub esp, 0xffffff80
jmp section.UPX0