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

Disassembly:
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x40], 0xa
mov esi, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 4], esi
mov esi, dword [esp + 0x74]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], ebp
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x28], eax
mov dword [esp], ebx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x1c], ecx
mov ecx, edi
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x24], ebp
mov edi, dword [esp + 0x30]
mov dword [esp + 0x8c], edx
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
lea esi, [esi]
mov ebp, dword [esp]
add ebp, ebx
xor edx, ebp
rol edx, 0x10
add esi, edx
xor ebx, esi
rol ebx, 0xc
add ebp, ebx
xor edx, ebp
mov dword [esp], ebp
rol edx, 8
add esi, edx
mov dword [esp + 0x28], edx
xor ebx, esi
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 8]
rol ebx, 7
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x20]
add ebx, esi
xor ecx, ebx
rol ecx, 0x10
add eax, ecx
xor esi, eax
mov edx, esi
mov esi, dword [esp + 0x10]
rol edx, 0xc
add ebx, edx
xor ecx, ebx
mov dword [esp + 0x20], ebx
rol ecx, 8
add eax, ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 4]
xor edx, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
rol edx, 7
add eax, esi
xor edi, eax
rol edi, 0x10
add ecx, edi
xor esi, ecx
mov ebx, ecx
mov ecx, esi
mov esi, dword [esp + 0x18]
rol ecx, 0xc
add eax, ecx
mov dword [esp + 0x24], eax
xor edi, eax
mov eax, dword [esp + 0x14]
rol edi, 8
add esi, eax
mov dword [esp + 0x3c], edi
add edi, ebx
mov ebp, esi
mov esi, dword [esp + 0x1c]
xor ecx, edi
rol ecx, 7
xor esi, ebp
mov ebx, esi
mov esi, dword [esp + 0xc]
rol ebx, 0x10
add esi, ebx
xor eax, esi
rol eax, 0xc
add ebp, eax
xor ebx, ebp
mov dword [esp + 0x18], ebp
mov ebp, dword [esp]
rol ebx, 8
add ebp, edx
add esi, ebx
xor ebx, ebp
xor eax, esi
rol ebx, 0x10
rol eax, 7
add edi, ebx
xor edx, edi
rol edx, 0xc
add ebp, edx
xor ebx, ebp
mov dword [esp], ebp
rol ebx, 8
lea ebp, [edi + ebx]
mov dword [esp + 0x1c], ebx
xor edx, ebp
mov dword [esp + 4], ebp
mov ebp, edx
mov edx, dword [esp + 0x28]
rol ebp, 7
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x20]
lea ebx, [ebp + ecx]
xor edx, ebx
rol edx, 0x10
add esi, edx
xor ecx, esi
rol ecx, 0xc
lea ebp, [ebx + ecx]
xor edx, ebp
mov dword [esp + 0x20], ebp
rol edx, 8
lea ebp, [esi + edx]
xor ecx, ebp
mov dword [esp + 0xc], ebp
mov ebp, ecx
mov ecx, dword [esp + 0x34]
rol ebp, 7
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x3c]
lea ebx, [ebp + eax]
xor ecx, ebx
rol ecx, 0x10
add esi, ecx
xor eax, esi
rol eax, 0xc
lea ebp, [ebx + eax]
mov ebx, dword [esp + 0x30]
xor ecx, ebp
mov dword [esp + 0x24], ebp
rol ecx, 8
add esi, ecx
xor eax, esi
mov ebp, eax
mov eax, dword [esp + 0x38]
rol ebp, 7
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x18]
add ebp, ebx
xor edi, ebp
rol edi, 0x10
add eax, edi
xor ebx, eax
rol ebx, 0xc
add ebp, ebx
xor edi, ebp
mov dword [esp + 0x18], ebp
rol edi, 8
add eax, edi
xor ebx, eax
rol ebx, 7
sub dword [esp + 0x40], 1
jne 0x405cc5
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x30], edi
mov edi, dword [esp]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x20]
add edi, ebx
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp], edi
add esi, ebx
mov ebx, dword [esp + 0x5c]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x18]
add ebp, ebx
mov ebx, dword [esp + 0x60]
mov edx, dword [esp + 0x8c]
add esi, ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x68]
add edi, ebx
mov ebx, edi
mov edi, dword [esp + 8]
add edi, esi
mov esi, dword [esp + 0x10]
mov dword [esp + 8], edi
mov edi, dword [esp + 0x6c]
add esi, edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x70]
add edi, esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x74]
add esi, edi
mov edi, dword [esp + 0x78]
add eax, edi
mov dword [esp + 0x20], eax
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x7c]
xor ebp, dword [edx + 8]
xor ebx, dword [edx + 0x10]
add edi, eax
mov eax, dword [esp + 0x80]
mov dword [esp + 4], edi
mov edi, dword [esp + 0xc]
add edi, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x44]
add eax, edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
add eax, edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x84]
add eax, edi
mov edi, dword [esp]
xor edi, dword [edx]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x88]
add eax, ecx
mov ecx, dword [esp + 0x18]
xor ecx, dword [edx + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 8]
xor ecx, dword [edx + 0x14]
mov dword [esp + 0x30], eax
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
xor eax, dword [edx + 4]
xor ecx, dword [edx + 0x18]
mov dword [esp], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
xor ecx, dword [edx + 0x1c]
mov eax, dword [esp + 0x20]
xor esi, dword [edx + 0x20]
xor eax, dword [edx + 0x24]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 4]
xor ecx, dword [edx + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xc]
xor ecx, dword [edx + 0x2c]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x24]
xor ecx, dword [edx + 0x30]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
xor ecx, dword [edx + 0x34]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x2c]
xor ecx, dword [edx + 0x38]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x30]
xor ecx, dword [edx + 0x3c]
add dword [esp + 0x44], 1
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x44]
cmp ecx, 1
mov ecx, dword [esp + 0x50]
adc dword [esp + 0x4c], 0
mov dword [ecx], edi
mov eax, dword [esp]
mov edi, ecx
mov dword [ecx + 8], ebp
cmp dword [esp + 0x48], 0x40
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 8]
mov dword [edi + 0x20], esi
mov dword [edi + 0x14], ecx
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x24], eax
mov dword [edi + 0x18], ecx
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x1c], ecx
mov ecx, dword [esp + 4]
mov dword [edi + 0x28], ecx
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x2c], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x30], ecx
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x34], ecx
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x38], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x3c], ecx
jbe 0x4060bc
sub dword [esp + 0x48], 0x40
add edx, 0x40
add dword [esp + 0x50], 0x40
cmp dword [esp + 0x48], 0x3f
ja 0x405c1d
mov ebx, dword [esp + 0x48]
xor eax, eax
lea esi, cs:[esi]
nop
movzx ecx, byte [edx + eax]
mov byte [esp + eax + 0x9c], cl
add eax, 1
cmp ebx, eax
jne 0x40608d
mov eax, dword [esp + 0x50]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x50], eax
mov edx, eax
jmp 0x405c1d
mov eax, dword [esp + 0xf0]
mov edi, dword [esp + 0x94]
mov ebp, dword [esp + 0x98]
lea ecx, [eax - 1]
mov ebx, ecx
and ecx, 0xffffffc0
shr ebx, 6
sub eax, ecx
mov edx, eax
lea ebx, [ebx + edi + 1]
cmp eax, 0x40
je 0x40610d
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x90]
add edx, esi
lea esi, [esi]
movzx eax, byte [esi]
add esi, 1
add edi, 1
mov byte [edi - 1], al
cmp edx, esi
jne 0x4060fd
mov eax, dword [esp + 0x4c]
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x34], eax
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret