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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [esp + 0xa4]
mov esi, dword [ecx + 0x48]
mov edi, dword [esi + 4]
mov dword [esp + 0x50], edi
test eax, eax
je 0x40f9be
cmp dword [esi + 0x34], 0
jne 0x40f9be
mov dword [ecx + 0x1c], 3
jmp 0x40ffcd
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], edx
movzx eax, word [esp + 0x70]
movzx esi, word [esp + 0x68]
movzx eax, ax
mov dword [esp + 0x3c], eax
mov edx, esi
mov dword [esp + 0x40], esi
lea edx, [esi + eax]
xor ebx, ebx
add edx, edi
setb bl
add edx, 0x2e
adc ebx, 0
mov eax, dword [esp + 0xb0]
mov esi, edx
xor esi, eax
and edx, eax
mov dword [esp + 4], edi
mov edi, edx
shr edi, 0x1f
add edx, edx
movzx ebp, word [esp + 0x78]
mov eax, ebp
mov dword [esp + 0x38], ebp
add esi, ebp
adc ebx, 0
add esi, edx
adc ebx, edi
cmp esi, 0xffffffff
sbb ebx, 0
jb 0x40fa31
mov dword [ecx + 0x1c], 0xf
jmp 0x40ffcd
mov dword [esp], ecx
movzx edx, word [esp + 0x90]
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
movups xmmword [esp + 0x1c], xmm0
mov word [esp + 0x2c], 0
mov dword [esp + 8], 0x2014b50
xor ecx, ecx
test dx, dx
mov ebx, 0x14
cmove ebx, ecx
mov byte [esp + 0xe], bl
movzx ebx, word [esp + 0x94]
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], bh
movzx ebx, word [esp + 0x9c]
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], dh
movzx edx, word [esp + 0x98]
mov byte [esp + 0x14], dl
mov byte [esp + 0x15], dh
mov edx, dword [esp + 0x8c]
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], bh
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], dh
mov ebx, edx
shr ebx, 0x10
mov byte [esp + 0x1a], bl
mov esi, dword [esp + 0x88]
shr edx, 0x18
mov byte [esp + 0x1b], dl
mov edi, dword [esp + 0x84]
neg esi
mov edx, 0
sbb edx, edx
or edx, edi
mov byte [esp + 0x1c], dl
mov byte [esp + 0x1d], dh
mov ebx, edx
shr ebx, 0x10
mov byte [esp + 0x1e], bl
mov esi, dword [esp + 0x80]
shr edx, 0x18
mov byte [esp + 0x1f], dl
mov edx, dword [esp + 0x7c]
neg esi
mov ebx, 0
sbb ebx, ebx
or ebx, edx
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bh
mov edx, ebx
shr edx, 0x10
mov byte [esp + 0x22], dl
mov edx, dword [esp + 0xa8]
shr ebx, 0x18
mov byte [esp + 0x23], bl
movzx eax, word [esp + 0x70]
mov esi, dword [esp + 0xb0]
lea ebx, [esi + eax]
movzx eax, word [esp + 0x68]
mov byte [esp + 0x24], al
mov byte [esp + 0x25], ah
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bh
movzx eax, word [esp + 0x78]
mov byte [esp + 0x28], al
mov byte [esp + 0x29], ah
mov byte [esp + 0x2e], dl
mov byte [esp + 0x2f], dh
mov ebx, edx
shr ebx, 0x10
mov byte [esp + 0x30], bl
mov ebx, dword [esp + 0x48]
shr edx, 0x18
mov byte [esp + 0x31], dl
neg dword [esp + 0x4c]
sbb ecx, ecx
mov eax, dword [esp + 0xa0]
or ecx, eax
mov byte [esp + 0x32], cl
mov byte [esp + 0x33], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x34], al
shr ecx, 0x18
mov byte [esp + 0x35], cl
mov eax, dword [esp + 4]
lea esi, [eax + 0x2e]
mov ecx, dword [ebx + 8]
cmp ecx, esi
jae 0x40fbde
test ecx, ecx
mov eax, 1
cmovne eax, ecx
cmp eax, esi
jae 0x40fbe4
mov edi, eax
nop dword [eax + eax]
mov ecx, eax
or ecx, 2
and edi, 2
imul ecx, edi
and eax, 0xfffffffd
xor edi, 2
imul edi, eax
add edi, ecx
mov eax, edi
cmp edi, esi
jb 0x40fbc0
jmp 0x40fbe6
mov ebp, eax
mov eax, dword [ebx]
jmp 0x40fc0a
mov edi, eax
push edi
push dword [ebx + 0xc]
push dword [ebx]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x40ff9b
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov ebp, dword [esp + 4]
mov dword [ebx + 4], esi
mov ecx, dword [ebx + 0xc]
mov esi, ebp
not esi
and esi, ecx
mov edx, ecx
not edx
and edx, ebp
imul edx, esi
mov esi, ecx
and esi, ebp
imul edi, ecx, 0x2e
or ecx, ebp
imul ecx, esi
add ecx, eax
add ecx, edx
lea eax, [esp + 8]
push edi
push eax
push ecx
call fcn.004172b0
add esp, 0xc
mov ebp, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov eax, dword [esp + 0x40]
lea esi, [eax + ebp]
cmp edi, esi
jae 0x40fca0
test edi, edi
mov eax, 1
cmovne eax, edi
cmp eax, esi
jae 0x40fc7e
mov edi, eax
nop
mov ecx, eax
or ecx, 2
and edi, 2
imul ecx, edi
and eax, 0xfffffffd
xor edi, 2
imul edi, eax
add edi, ecx
mov eax, edi
cmp edi, esi
jb 0x40fc60
jmp 0x40fc80
mov edi, eax
push edi
push dword [ebx + 0xc]
push dword [ebx]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x40ff9b
mov dword [ebx], eax
mov dword [ebx + 8], edi
movzx eax, word [esp + 0x68]
mov dword [ebx + 4], esi
test ax, ax
je 0x40fce7
mov eax, dword [ebx + 0xc]
mov ecx, ebp
not ecx
and ecx, eax
mov edx, eax
not edx
and edx, ebp
imul edx, ecx
mov ecx, eax
and ecx, ebp
or ebp, eax
imul ebp, ecx
add ebp, edx
add ebp, dword [ebx]
mov ecx, dword [esp + 0x40]
imul ecx, eax
push ecx
push dword [esp + 0x48]
push ebp
call fcn.004172b0
add esp, 0xc
mov esi, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov eax, dword [esp + 0x3c]
lea ebp, [esi + eax]
cmp edi, ebp
mov edx, dword [esp + 0xb0]
jae 0x40fd57
test edi, edi
mov eax, 1
cmovne eax, edi
cmp eax, ebp
jae 0x40fd2e
mov edi, eax
nop dword [eax]
mov ecx, eax
or ecx, 2
and edi, 2
imul ecx, edi
and eax, 0xfffffffd
xor edi, 2
imul edi, eax
add edi, ecx
mov eax, edi
cmp edi, ebp
jb 0x40fd10
jmp 0x40fd30
mov edi, eax
push edi
push dword [ebx + 0xc]
push dword [ebx]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x40ff9b
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov edx, dword [esp + 0xb0]
movzx eax, word [esp + 0x70]
mov dword [ebx + 4], ebp
test ax, ax
je 0x40fda5
mov eax, dword [ebx + 0xc]
mov ecx, esi
not ecx
and ecx, eax
mov edx, eax
not edx
and edx, esi
imul edx, ecx
mov ecx, eax
and ecx, esi
or esi, eax
imul esi, ecx
add esi, edx
add esi, dword [ebx]
mov ecx, dword [esp + 0x3c]
imul ecx, eax
push ecx
push dword [esp + 0x70]
push esi
call fcn.004172b0
mov edx, dword [esp + 0xbc]
add esp, 0xc
mov ebp, dword [ebx + 4]
mov edi, dword [ebx + 8]
lea esi, [edx + ebp]
cmp edi, esi
jae 0x40fdde
test edi, edi
mov eax, 1
cmovne eax, edi
cmp eax, esi
jae 0x40fde5
mov edi, eax
nop dword [eax]
mov ecx, eax
or ecx, 2
and edi, 2
imul ecx, edi
and eax, 0xfffffffd
xor edi, 2
imul edi, eax
add edi, ecx
mov eax, edi
cmp edi, esi
jb 0x40fdc0
jmp 0x40fde7
movzx ecx, word [esp + 0x78]
jmp 0x40fe13
mov edi, eax
push edi
push dword [ebx + 0xc]
push dword [ebx]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x40ff9b
mov dword [ebx], eax
mov dword [ebx + 8], edi
movzx ecx, word [esp + 0x78]
mov edx, dword [esp + 0xb0]
mov dword [ebx + 4], esi
test edx, edx
je 0x40fe5d
mov eax, dword [ebx + 0xc]
mov ecx, ebp
not ecx
and ecx, eax
mov esi, edx
mov edx, eax
not edx
and edx, ebp
imul edx, ecx
mov ecx, eax
and ecx, ebp
or ebp, eax
imul ebp, ecx
add ebp, edx
add ebp, dword [ebx]
imul esi, eax
push esi
push dword [esp + 0xb0]
push ebp
call fcn.004172b0
movzx ecx, word [esp + 0x84]
add esp, 0xc
mov esi, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov eax, dword [esp + 0x38]
lea ebp, [esi + eax]
cmp edi, ebp
jae 0x40fec5
test edi, edi
mov eax, 1
cmovne eax, edi
cmp eax, ebp
jae 0x40fe9e
mov edi, eax
nop dword [eax + eax]
mov ecx, eax
or ecx, 2
and edi, 2
imul ecx, edi
and eax, 0xfffffffd
xor edi, 2
imul edi, eax
add edi, ecx
mov eax, edi
cmp edi, ebp
jb 0x40fe80
jmp 0x40fea0
mov edi, eax
push edi
push dword [ebx + 0xc]
push dword [ebx]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x40ff9b
mov dword [ebx], eax
mov dword [ebx + 8], edi
movzx ecx, word [esp + 0x78]
mov dword [ebx + 4], ebp
test cx, cx
je 0x40ff01
mov eax, dword [ebx + 0xc]
mov ecx, esi
not ecx
and ecx, eax
mov edx, eax
not edx
and edx, esi
imul edx, ecx
mov ecx, eax
and ecx, esi
or esi, eax
imul esi, ecx
add esi, edx
add esi, dword [ebx]
mov ecx, dword [esp + 0x38]
imul ecx, eax
push ecx
push dword [esp + 0x78]
push esi
call fcn.004172b0
add esp, 0xc
mov esi, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
lea edi, [esi + 1]
cmp ecx, edi
jae 0x40ff3e
test ecx, ecx
mov eax, 1
cmovne eax, ecx
cmp eax, edi
jae 0x40ff43
mov ebp, eax
nop
mov ecx, eax
or ecx, 2
and ebp, 2
imul ecx, ebp
and eax, 0xfffffffd
xor ebp, 2
imul ebp, eax
add ebp, ecx
mov eax, ebp
cmp ebp, edi
jb 0x40ff20
jmp 0x40ff45
mov eax, dword [ebx + 0x10]
jmp 0x40ff63
mov ebp, eax
push ebp
push dword [ebx + 0x1c]
push dword [ebx + 0x10]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x40ff9b
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], ebp
mov dword [ebx + 0x14], edi
mov ecx, dword [ebx + 0x1c]
mov edi, esi
not edi
and edi, ecx
mov edx, ecx
not edx
and edx, esi
imul edx, edi
mov edi, ecx
and edi, esi
or esi, ecx
imul esi, edi
add esi, eax
add esi, edx
lea eax, [esp + 0x50]
push ecx
push eax
push esi
call fcn.004172b0
add esp, 0xc
mov eax, 1
jmp 0x40ffcf
mov esi, dword [esp + 4]
cmp dword [ebx + 8], esi
jae 0x40ffc0
push esi
push dword [ebx + 0xc]
push dword [ebx]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x40ffc3
mov dword [ebx], eax
mov dword [ebx + 8], esi
mov dword [ebx + 4], esi
mov eax, dword [esp]
mov dword [eax + 0x1c], 0x10
xor eax, eax
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret