Function at 0x466490
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x108
mov ecx, dword [esp + 0x10c]
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x118]
push edi
mov edi, eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov edx, ebp
nop
mov eax, dword [ecx]
add dword [esp + eax*4 + 0x58], 1
lea eax, [esp + eax*4 + 0x58]
add ecx, 4
sub edx, 1
jne 0x466500
cmp dword [esp + 0x58], ebp
je 0x4d89f5
push esi
mov esi, dword [edi]
mov dword [esp + 0x10], esi
mov ecx, 1
lea esp, [esp]
cmp dword [esp + ecx*4 + 0x5c], ebx
jne 0x46653e
add ecx, 1
cmp ecx, 0xf
jbe 0x466530
cmp esi, ecx
mov edx, ecx
mov dword [esp + 0x34], edx
jb 0x4d8a07
mov eax, 0xf
cmp dword [esp + eax*4 + 0x5c], ebx
jne 0x46655c
sub eax, 1
jne 0x466551
cmp esi, eax
mov dword [esp + 0x28], eax
ja 0x466967
mov dword [edi], esi
mov esi, 1
shl esi, cl
cmp ecx, eax
jae 0x466588
sub esi, dword [esp + ecx*4 + 0x5c]
js 0x4d8a3a
add ecx, 1
add esi, esi
cmp ecx, eax
jb 0x466575
lea ecx, [eax*4]
lea edi, [esp + ecx + 0x5c]
mov dword [esp + 0x38], ecx
mov ecx, dword [edi]
sub esi, ecx
js 0x4d8a3a
add ecx, esi
sub eax, 1
mov dword [esp + 0x58], esi
mov dword [edi], ecx
mov dword [esp + 0xa0], ebx
je 0x4665d3
xor ecx, ecx
xor esi, esi
lea esp, [esp]
add ecx, dword [esp + esi + 0x60]
add esi, 4
sub eax, 1
mov dword [esp + esi + 0xa0], ecx
jne 0x4665c0
mov ebx, dword [esp + 0x11c]
xor ecx, ecx
lea esp, [esp]
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x466606
mov edi, dword [esp + eax*4 + 0x9c]
mov esi, dword [esp + 0x13c]
lea eax, [esp + eax*4 + 0x9c]
mov dword [esi + edi*4], ecx
add edi, 1
mov dword [eax], edi
add ecx, 1
cmp ecx, ebp
jb 0x4665e0
cmp edx, dword [esp + 0x28]
jg 0x466781
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + ecx + 0x9c]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x13c]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x120], eax
xor edi, edi
lea eax, [edx - 1]
neg ebx
mov dword [esp + 0x40], eax
xor ebp, ebp
lea eax, [esp + edx*4 + 0x5c]
mov dword [esp + 0x38], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xdc], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x4c], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x466764
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
sub dword [esp + 0x20], 1
lea eax, [ebx + ecx]
cmp edx, eax
jg 0x4667d7
mov ecx, dword [esp + 0x13c]
mov al, dl
sub al, bl
mov byte [esp + 0x2d], al
mov eax, dword [esp + 0x120]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x3c]
cmp eax, ecx
jae 0x4d8a1b
mov esi, dword [eax]
cmp esi, dword [esp + 0x124]
jae 0x4667aa
cmp esi, 0x100
jae 0x466972
mov byte [esp + 0x2c], 0
add eax, 4
mov dword [esp + 0x3c], eax
mov ecx, edx
sub ecx, ebx
mov edx, 1
shl edx, cl
mov eax, edi
mov ecx, ebx
shr eax, cl
cmp eax, ebp
jae 0x46671d
mov ecx, dword [esp + 0x14]
lea edi, [edx*8]
lea ecx, [ecx + eax*8]
mov ebp, dword [esp + 0x2c]
mov dword [ecx], ebp
mov ebp, dword [esp + 0x18]
mov dword [ecx + 4], esi
add eax, edx
add ecx, edi
cmp eax, ebp
jb 0x466704
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov eax, 1
shl eax, cl
test edi, eax
jne 0x4667a0
mov edx, 1
mov ecx, ebx
shl edx, cl
xor edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
sub edx, 1
and edx, edi
cmp edx, dword [esp + eax*4 + 0x9c]
jne 0x4668d2
cmp dword [esp + 0x20], 0
mov edx, dword [esp + 0x34]
jne 0x466681
mov eax, dword [esp + 0x4c]
add dword [esp + 0x40], 1
add edx, 1
add eax, 4
cmp edx, dword [esp + 0x28]
mov dword [esp + 0x34], edx
mov dword [esp + 0x4c], eax
jle 0x466673
cmp dword [esp + 0x58], 0
jne 0x4d8a25
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
xor edi, eax
shr eax, 1
test edi, eax
jne 0x4667a0
jmp 0x46672c
mov ecx, dword [esp + 0x124]
sub esi, ecx
mov ecx, dword [esp + 0x12c]
add esi, esi
add esi, esi
mov cl, byte [esi + ecx]
add cl, 0x50
mov byte [esp + 0x2c], cl
mov ecx, dword [esp + 0x128]
mov esi, dword [esi + ecx]
jmp 0x4666da
mov dword [esp + 0x44], eax
mov eax, ebx
sub eax, ecx
add dword [esp + 0x1c], 1
add dword [esp + 0x44], ecx
add eax, ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
add ebx, ecx
sub eax, ebx
cmp eax, ecx
ja 0x46695e
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x20]
mov ecx, edx
sub ecx, ebx
mov eax, 1
shl eax, cl
add ebp, 1
mov dword [esp + 0x24], ecx
cmp eax, ebp
ja 0x4668f9
mov ebp, 1
shl ebp, cl
mov ecx, dword [esp + 0x138]
mov eax, dword [ecx]
lea ecx, [eax + ebp]
cmp ecx, 0x5a0
ja 0x4d8a3a
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x134]
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 0x1c]
lea ecx, [esp + ecx*4 + 0xdc]
mov dword [ecx], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x138]
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], ebp
je 0x46694c
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x14]
mov dl, byte [esp + 0x10]
mov dword [esp + eax*4 + 0x9c], edi
mov al, byte [esp + 0x24]
mov byte [esp + 0x2c], al
mov eax, edi
shr eax, cl
mov ecx, dword [esp + 0x50]
mov ecx, dword [ecx - 4]
sub esi, ecx
mov byte [esp + 0x2d], dl
mov edx, dword [esp + 0x2c]
sar esi, 3
sub esi, eax
mov dword [ecx + eax*8], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + eax*8 + 4], esi
cmp edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
jle 0x466695
jmp 0x4d8a12
sub ebx, dword [esp + 0x10]
mov edx, 1
mov ecx, ebx
shl edx, cl
sub eax, 1
sub edx, 1
and edx, edi
cmp edx, dword [esp + eax*4 + 0x9c]
jne 0x4668d2
mov dword [esp + 0x1c], eax
jmp 0x466751
cmp ecx, dword [esp + 0x18]
jae 0x466820
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0x14]
or eax, 0xffffffff
sub eax, dword [esp + 0x20]
add ecx, 1
add ebp, eax
cmp ecx, dword [esp + 0x18]
jae 0x466943
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [eax]
add ebp, ebp
cmp ebp, eax
jbe 0x466943
add ecx, 1
sub ebp, eax
cmp ecx, dword [esp + 0x18]
jb 0x466925
mov dword [esp + 0x24], ecx
jmp 0x466820
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
jmp 0x4668bf
mov dword [esp + 0x18], ecx
jmp 0x466802
mov dword [esp + 0x10], eax
mov esi, eax
jmp 0x466568
mov byte [esp + 0x2c], 0x60
jmp 0x4666da
mov eax, dword [esp + 0x12c]
mov dword [eax], ebx
mov dword [edi], ebx
xor eax, eax
jmp 0x46678f
mov dword [esp + 0x10], ecx
mov esi, ecx
jmp 0x46654c
mov ecx, dword [esp + 0x10]
jmp 0x4667df
mov byte [esp + 0x2c], 0xc0
jmp 0x4666e1
cmp dword [esp + 0x28], 1
je 0x46678c
mov eax, 0xfffffffb
jmp 0x46678e
mov eax, 0xfffffffd
jmp 0x46678e