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

Disassembly:
cmp byte [ecx + 0x3c], 0
je 0x418337
ret
push ebp
push ebx
push edi
push esi
sub esp, 0xb4
mov edi, ecx
mov byte [ecx + 0x3c], 1
mov esi, dword [ecx + 0x38]
mov eax, dword [esi]
mov dword [esp], esi
lea ecx, [esp + 0x60]
call dword [eax + 0xb0]
sub esp, 4
mov eax, dword [esi]
lea ecx, [esp + 0xa8]
mov dword [esp], esi
call dword [eax + 0xb4]
sub esp, 4
mov eax, dword [esp + 0x68]
mov dword [esp + 0xa4], eax
movsd xmm0, qword [esp + 0x60]
movsd qword [esp + 0x9c], xmm0
mov dword [esp + 0x30], eax
movsd qword [esp + 0x28], xmm0
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x58], eax
mov dword [esp + 0x80], eax
movsd xmm0, qword [esp + 0xa8]
movsd qword [esp + 0x78], xmm0
lea eax, [edi + 0x40]
mov dword [esp + 0x44], eax
lea esi, [esp + 0x28]
lea ebx, [esp + 0x34]
mov dword [esp + 0x48], edi
jmp 0x418448
mov eax, dword [esp + 0x20]
test eax, eax
cmovne edi, eax
nop word cs:[eax + eax]
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], edi
mov ecx, dword [esp + 0x44]
call fcn.0041a800
sub esp, 8
mov edi, eax
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov eax, edx
sub eax, ecx
sar eax, 2
imul eax, eax, 0xaaaaaaab
bsr eax, eax
xor eax, 0x1f
add eax, eax
xor eax, 0x3e
cmp edx, ecx
mov esi, 0
cmove eax, esi
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00418b30
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
lea esi, [esp + 0x28]
mov dword [esp], esi
call dword [eax + 0x44]
sub esp, 4
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x30], eax
jne 0x41846a
mov eax, dword [esp + 0x28]
xor eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x2c]
xor ecx, dword [esp + 0x7c]
or ecx, eax
je 0x41871c
mov ecx, dword [edi + 0x38]
mov dword [esp], esi
call fcn.00550b94
sub esp, 4
mov dword [esp + 0x40], eax
mov ecx, dword [edi + 0x4c]
test ecx, ecx
je 0x418500
mov edx, dword [edi + 0x40]
mov esi, eax
shr esi, 4
mov edi, eax
shr edi, 9
xor edi, esi
dec ecx
and edi, ecx
mov esi, edi
shl esi, 4
lea ebp, [edx + esi]
mov esi, dword [edx + esi]
cmp eax, esi
je 0x41851b
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 1
cmp esi, 0xfffff000
je 0x41870e
xor esi, 0xffffe000
or esi, dword [esp + 0x20]
mov esi, dword [esp + 0x20]
cmove esi, ebp
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x24]
add edi, esi
inc esi
mov dword [esp + 0x24], esi
and edi, ecx
mov esi, edi
shl esi, 4
lea ebp, [edx + esi]
mov esi, dword [edx + esi]
cmp eax, esi
je 0x41851b
jmp 0x4184b4
xor ebp, ebp
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], ebp
mov ecx, dword [esp + 0x44]
call fcn.0041a800
sub esp, 8
mov ebp, eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
mov edx, dword [eax]
movsd xmm0, qword [esp + 0x34]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
lea ecx, [esp + 0x4c]
call dword [edx + 0x88]
sub esp, 0xc
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
mov edx, dword [eax]
movsd xmm0, qword [esp + 0x34]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
lea esi, [esp + 0x6c]
mov ecx, esi
call dword [edx + 0x8c]
sub esp, 0xc
mov eax, dword [esp + 0x54]
mov dword [esp + 0x68], eax
movsd xmm0, qword [esp + 0x4c]
movsd qword [esp + 0x60], xmm0
mov ecx, dword [ebp + 8]
mov dword [esp + 0x3c], eax
movsd qword [esp + 0x34], xmm0
mov eax, dword [esi + 8]
mov dword [esp + 0x54], eax
movsd xmm0, qword [esi]
movsd qword [esp + 0x4c], xmm0
mov dword [esp + 0x5c], ecx
movsd xmm0, qword [esp + 0x60]
movsd qword [esp + 0x90], xmm0
mov eax, dword [esp + 0x68]
mov dword [esp + 0x98], eax
movsd xmm0, qword [esi]
movsd qword [esp + 0x84], xmm0
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
xor ecx, dword [esp + 0x4c]
xor edx, dword [esp + 0x50]
mov dword [esp + 0x8c], eax
xor edi, edi
or edx, ecx
mov esi, 0
je 0x418637
xor esi, esi
nop word cs:[eax + eax]
inc esi
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov dword [esp], ebx
call dword [eax + 0x94]
sub esp, 4
mov eax, dword [esp + 0x34]
xor eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
xor ecx, dword [esp + 0x50]
or ecx, eax
jne 0x418610
add ebp, 4
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x18], eax
movsd xmm0, qword [esp + 0x84]
movsd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x98]
mov dword [esp + 0xc], eax
movsd xmm0, qword [esp + 0x90]
movsd qword [esp + 4], xmm0
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov dword [esp + 0x1c], esi
mov ecx, ebp
call fcn.00418730
sub esp, 0x20
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4183e0
mov ecx, dword [ecx + 0x40]
mov edx, dword [esp + 0x40]
mov esi, edx
shr esi, 4
mov ebp, edx
shr ebp, 9
xor ebp, esi
dec eax
and ebp, eax
mov esi, ebp
shl esi, 4
lea edi, [ecx + esi]
mov esi, dword [ecx + esi]
cmp edx, esi
je 0x4183f9
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 1
cmp esi, 0xfffff000
je 0x4183cb
xor esi, 0xffffe000
or esi, dword [esp + 0x20]
mov esi, dword [esp + 0x20]
cmove esi, edi
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x24]
add ebp, esi
inc esi
mov dword [esp + 0x24], esi
and ebp, eax
mov esi, ebp
shl esi, 4
lea edi, [ecx + esi]
mov esi, dword [ecx + esi]
cmp edx, esi
je 0x4183f9
jmp 0x4186cb
mov eax, dword [esp + 0x20]
test eax, eax
cmovne ebp, eax
jmp 0x418502
add esp, 0xb4
pop esi
pop edi
pop ebx
pop ebp
ret