Function at 0x402bf7
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
and dword [ebp - 0x90], 0
lea eax, [0x403094]
mov ecx, ebx
inc ecx
mul ecx
mov dword [ebp - 0x94], eax
mov edi, eax
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x8c]
mov eax, ebx
shl eax, cl
mov esi, edx
add esi, eax
or edi, edi
jne 0x402d5a
add byte [eax], al
retf 0x5d
mov eax, dword [edi]
mov dword [ebp - 0x98], eax
add eax, ebx
xor eax, 0x5dac3752
mov dword [esi], eax
add edi, 4
add esi, 4
cmp dword [edi], 0
jne 0x402d43
lea edi, [ebp - 0x8c]
push ebx
lea eax, [0x402ea4]
lea ecx, [0x402ea4]
mov edx, ebx
sar edx, cl
mov ecx, eax
sub ecx, edx
push ecx
call fcn.00402ef5
mov dword [0x403140], eax
push ebx
lea eax, [0x402e98]
mov edx, ebx
dec edx
and eax, edx
push eax
call fcn.00402ef5
add esp, 0x10
mov dword [0x403138], eax
xor esi, esi
or esi, esi
jne 0x402db1
push edi
call dword [0x403138]
mov dword [ebp - 4], eax
jmp 0x402dce
push edi
push dword [ebp - 4]
call dword [0x403140]
mov dword [ebp - 0x98], eax
mov edx, dword [ebp + 0xc]
mov ecx, eax
or ecx, ebx
mov dword [edx + esi*4], ecx
jmp 0x402dce
inc edi
cmp byte [edi], 0
jne 0x402dcd
cmp byte [edi], 0
je 0x402ee1
add byte [edi + ebx*2], bl
add byte [eax], al
pop edi
add byte [eax], al
cmp bl, byte [edi]
add byte [eax], al
add byte [eax], al
add byte [edi], dl
add byte [eax], al
add byte [ebx], 0
add byte [eax - 0x7fffff8c], al
jae 0x402dfb
add byte [eax], al
jle 0x402e5d
add byte [eax], al
cwde
pop edx
add byte [eax], al
push edx
pop edx
add byte [eax], al
jb 0x402e69
add byte [eax], al
push 0x5a
add byte [eax], al
pushal
pop edx
add byte [eax], al
dec eax
pop edx
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov dl, 0x5a
add byte [eax], al
add byte [eax], al
add byte [eax], al
xchg esi, eax
pop edi
add byte [eax], al
sbb byte [edi], 0
jo 0x402e92
add byte [eax], al
add byte [eax], al
add byte [eax], al
out dx, al
add al, 0x6d
insd dword es:[edi], dx
jae 0x402ea5
je 0x402e42
add byte [edx], ch
pop edi
pop eax
arpl word [eax + 0x74], si
inc esi
imul ebp, dword [esp + esi*2 + 0x65], 0x4de0072
insd dword es:[edi], dx
popal
insb byte es:[edi], dx
insb byte es:[edi], dx
outsd dx, dword [esi]
arpl word [eax], ax
add byte [esi + 0x65726604], ah
jb 0x402ec5
add byte gs:[eax], al
aad 1
pop edi
imul ebp, dword [esi + 0x69], 0x72657474
insd dword es:[edi], dx
je 0x402edf
jb 0x402edb
add byte [ecx], al
add dword [edi + 0x61], ebx
insd dword es:[edi], dx
jae 0x402edd
pop edi
js 0x402ee3
je 0x402e7c
add byte [ebp + 0x73], ch
jbe 0x402ee4
jb 0x402ef7
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [eax], al
pop ecx
add dword [edi + 0x65], ebx
js 0x402ef2
jo 0x402f06
pop edi
push 0x6c646e61
jb 0x402ecf
pop edi
arpl word [edi + 0x6d], bp
insd dword es:[edi], dx
outsd dx, dword [esi]
outsb dx, byte [esi]
add byte [ebx + 5], bl
push edi
imul ebp, dword [esi + 0x53], 0x64416d71
push esp
outsd dx, dword [esi]
push ebx
je 0x402f25
popal
insd dword es:[edi], dx
add byte [esi + 0x74], ch
insb byte es:[edi], dx
insb byte es:[edi], dx
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [esi + 5], cl
insb byte es:[edi], dx
jae 0x402f3a
je 0x402f39
jb 0x402f34
insb byte es:[edi], dx
outsb dx, byte gs:[esi]
push edi
add byte [eax], al
ljmp 0x6946
inc edi
je 0x402f19
imul ebp, dword [ebp + 0x41], 0x69727474
bound esi, qword [ebp + 0x74]
jmp 0x402ee1
je 0x402eca
add dword [edi - 0x80], eax
aas
inc edi
cmp byte [edi], 0
add byte [edx + edi*8 + 0x46], dh
je 0x402ee0
inc esi
cmp esi, 6
jl 0x402da1
pop edi
pop esi
pop ebx
leave
ret
in eax, 0x51
push eax
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
add esi, 2
mov eax, dword [esi]
mov dword [ebp - 4], eax
inc ebp
cld
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
mov ecx, edi
or cl, 1
xor edx, edx
div ecx
mov dword [ebp - 8], eax
clc
mov ebx, eax
add edi, eax
mov esi, edi
mov eax, dword [esi]
mov esi, eax
add esi, dword [ebp + 0xc]
jne 0x402f33
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
xor al, 0x53
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
or byte [ebx - 0x17fa9bba], cl
add eax, dword [eax]
add byte [ecx + 0x460bf045], cl
push eax
mov eax, dword [esi + 0x64]
add eax, 0x3e8
mov dword [ebp - 0x10], eax
or eax, dword [esi + 0x64]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [esi + 0x68]
call dword [0x40312c]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x402f6c
xor eax, eax
jmp 0x40309f
and dword [ebp - 0x18], 0
push dword [esi + 0x64]
mov eax, dword [0x403188]
mov edx, dword [0x40318c]
sub edx, eax
push edx
push dword [0x403188]
call fcn.00402526
mov eax, dword [esi + 0x64]
push dword [esi + 0x64]
mov edx, dword [0x403190]
xor edx, eax
push edx
push 0x403194
call fcn.00402526
push dword [esi + 0x64]
push 0x1ce00
push 0x403194
call fcn.00402a3e
add esp, 0x24
cmp dword [esi + 0x64], 0
jne 0x40309d
mov eax, dword [0x403138]
mov dword [esi + 8], eax
mov eax, dword [0x403140]
mov dword [esi + 0xc], eax
lea eax, [0x4024a8]
mov dword [ebp - 0x24], eax
mov edi, eax
mov eax, dword [esi + 0x64]
mov ecx, edi
or cl, 1
xor edx, edx
div ecx
mov dword [ebp - 0x2c], eax
mov ebx, eax
add ebx, edi
mov dword [esi + 0x2c], ebx
lea eax, [0x402e88]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], eax
ror byte [ebx + 0x558b6446], 1
ror byte [ecx + 0x1c980d1], 1
mul ecx
mov dword [ebp - 0x34], eax
inc ebp
int3
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
sub eax, edx
mov dword [esi + 0x30], eax
lea eax, [0x402c29]
mov dword [ebp - 0x20], eax
cmp dword [esi + 0x64], 0
je 0x403031
mov ebx, eax
add ebx, eax
jmp 0x403034
mov ebx, dword [ebp - 0x20]
mov dword [esi + 0x34], ebx
mov dword [esi + 0x5c], 0
mov edi, dword [0x403184]
mov eax, dword [esi + 0x64]
mov ecx, edi
or cl, 1
cdq
idiv ecx
add edi, eax
mov dword [esi + 0x58], edi
and dword [ebp - 0x1c], 0
jmp 0x403078
mov edi, dword [ebp - 0x1c]
mov ebx, dword [esi + 0x64]
mov ecx, ebx
mov edx, edi
sar edx, cl
mov ecx, ebx
shl edi, cl
mov bl, byte [edi + 0x403144]
cmp eax, 0x403144
mov byte [edx + esi + 0x38], bl
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, 0x3f
jae 0x40308a
cmp byte [eax + 0x403144], 0
jne 0x40305a
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 0x38], 0
inc eax
mov dword [esi + 0x58], eax
jmp 0x40309d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4