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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50
mov ebp, dword [esp + 0xa0]
mov esi, dword [ecx + 0x48]
mov edi, dword [esi + 4]
mov dword [esp + 0x4c], edi
test ebp, ebp
je 0x40f3ee
cmp dword [esi + 0x34], 0
jne 0x40f3ee
mov dword [ecx + 0x1c], 3
jmp 0x40f971
mov dword [esp + 0x48], edx
movzx eax, word [esp + 0x6c]
movzx edx, word [esp + 0x64]
movzx eax, ax
movzx ebx, word [esp + 0x74]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
add eax, edx
add eax, ebx
xor edx, edx
add eax, dword [esp + 0xac]
setb dl
add eax, edi
adc edx, 0
add eax, 0x2e
adc edx, 0
cmp eax, 0xffffffff
sbb edx, 0
jb 0x40f43b
mov dword [ecx + 0x1c], 0xf
jmp 0x40f971
mov dword [esp + 0x3c], ebx
movzx edx, word [esp + 0x8c]
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp + 0x20], xmm0
mov word [esp + 0x30], 0
mov dword [esp + 0xc], 0x2014b50
xor eax, eax
test dx, dx
mov dword [esp], esi
mov dword [esp + 8], edi
mov ebx, 0x14
cmove ebx, eax
mov byte [esp + 0x12], bl
movzx ebx, word [esp + 0x90]
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], bh
movzx ebx, word [esp + 0x98]
mov byte [esp + 0x16], dl
mov byte [esp + 0x17], dh
movzx edx, word [esp + 0x94]
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], dh
mov edx, dword [esp + 0x88]
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bh
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 + 0x84]
shr edx, 0x18
mov byte [esp + 0x1f], dl
mov edi, dword [esp + 0x80]
neg esi
mov edx, 0
sbb edx, edx
or edx, edi
mov byte [esp + 0x20], dl
mov byte [esp + 0x21], dh
mov ebx, edx
shr ebx, 0x10
mov byte [esp + 0x22], bl
mov esi, dword [esp + 0x7c]
shr edx, 0x18
mov byte [esp + 0x23], dl
mov edx, dword [esp + 0x78]
neg esi
mov ebx, 0
sbb ebx, ebx
or ebx, edx
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bh
mov edx, ebx
shr edx, 0x10
mov byte [esp + 0x26], dl
mov edx, dword [esp + 0xa4]
shr ebx, 0x18
mov byte [esp + 0x27], bl
movzx eax, word [esp + 0x6c]
mov esi, dword [esp + 0xac]
lea ebx, [esi + eax]
movzx eax, word [esp + 0x64]
mov edi, ecx
mov byte [esp + 0x28], al
mov byte [esp + 0x29], ah
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], bh
movzx ebx, word [esp + 0x74]
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], bh
mov byte [esp + 0x32], dl
mov byte [esp + 0x33], dh
mov ebx, edx
shr ebx, 0x10
mov byte [esp + 0x34], bl
mov ebx, dword [esp]
shr edx, 0x18
mov byte [esp + 0x35], dl
neg ebp
mov ecx, 0
sbb ecx, ecx
mov eax, dword [esp + 0x9c]
or ecx, eax
mov byte [esp + 0x36], cl
mov byte [esp + 0x37], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x38], al
shr ecx, 0x18
mov byte [esp + 0x39], cl
mov ecx, dword [esp + 8]
mov eax, ecx
and eax, 0x2e
xor ecx, 0x2e
lea esi, [ecx + eax*2]
mov eax, dword [ebx + 8]
cmp eax, esi
mov dword [esp + 4], edi
jae 0x40f61e
mov edx, edi
test eax, eax
mov edi, 1
cmovne edi, eax
cmp edi, esi
jae 0x40f5fc
nop word [eax + eax]
mov eax, edi
and eax, 0xfffffffd
mov ecx, edi
and ecx, 2
or edi, 2
imul edi, ecx
xor ecx, 2
imul ecx, eax
add edi, ecx
cmp edi, esi
jb 0x40f5e0
push edi
push dword [ebx + 0xc]
push dword [ebx]
push dword [edx + 0x34]
call dword [edx + 0x30]
add esp, 0x10
test eax, eax
mov ecx, ebx
je 0x40f940
mov dword [ecx], eax
mov dword [ecx + 8], edi
mov ebx, ecx
jmp 0x40f620
mov eax, dword [ebx]
mov dword [ebx + 4], esi
mov ecx, dword [ebx + 0xc]
imul edx, ecx, 0x2e
imul ecx, dword [esp + 8]
add ecx, eax
lea eax, [esp + 0xc]
push edx
push eax
push ecx
call fcn.00416d80
add esp, 0xc
mov ebp, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov ecx, ebp
mov esi, dword [esp + 0x44]
and ecx, esi
mov edx, ebp
xor edx, esi
lea edi, [edx + ecx*2]
cmp eax, edi
jae 0x40f6b2
test eax, eax
mov esi, 1
cmovne esi, eax
cmp esi, edi
jae 0x40f68c
nop word cs:[eax + eax]
mov eax, esi
and eax, 0xfffffffd
mov ecx, esi
and ecx, 2
or esi, 2
imul esi, ecx
xor ecx, 2
imul ecx, eax
add esi, ecx
cmp esi, edi
jb 0x40f670
push esi
push dword [ebx + 0xc]
push dword [ebx]
mov eax, dword [esp + 0x10]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
mov ecx, ebx
je 0x40f940
mov dword [ecx], eax
mov dword [ecx + 8], esi
mov ebx, ecx
jmp 0x40f6b4
mov esi, eax
movzx eax, word [esp + 0x64]
mov dword [ebx + 4], edi
test ax, ax
je 0x40f6e4
mov eax, dword [ebx + 0xc]
imul ebp, eax
add ebp, dword [ebx]
mov ecx, dword [esp + 0x44]
imul ecx, eax
push ecx
push dword [esp + 0x4c]
push ebp
call fcn.00416d80
add esp, 0xc
mov edi, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov eax, edi
mov edx, dword [esp + 0x40]
and eax, edx
mov ecx, edi
xor ecx, edx
lea ebp, [ecx + eax*2]
cmp esi, ebp
jae 0x40f754
test esi, esi
mov ebx, 1
cmovne ebx, esi
cmp ebx, ebp
jae 0x40f72c
nop word cs:[eax + eax]
mov eax, ebx
and eax, 0xfffffffd
mov ecx, ebx
and ecx, 2
or ebx, 2
imul ebx, ecx
xor ecx, 2
imul ecx, eax
add ebx, ecx
cmp ebx, ebp
jb 0x40f710
push ebx
mov esi, dword [esp + 4]
push dword [esi + 0xc]
push dword [esi]
mov eax, dword [esp + 0x10]
push dword [eax + 0x34]
call dword [eax + 0x30]
mov ecx, esi
add esp, 0x10
test eax, eax
je 0x40f940
mov dword [ecx], eax
mov dword [ecx + 8], ebx
jmp 0x40f758
mov ecx, ebx
mov ebx, esi
movzx eax, word [esp + 0x6c]
mov dword [ecx + 4], ebp
test ax, ax
je 0x40f78a
mov eax, dword [ecx + 0xc]
imul edi, eax
add edi, dword [ecx]
mov esi, ecx
mov ecx, dword [esp + 0x40]
imul ecx, eax
push ecx
push dword [esp + 0x6c]
push edi
call fcn.00416d80
add esp, 0xc
mov ebp, dword [esi + 4]
mov ebx, dword [esi + 8]
mov eax, ebp
mov edx, dword [esp + 0xac]
and eax, edx
mov ecx, ebp
xor ecx, edx
lea edi, [ecx + eax*2]
cmp ebx, edi
jae 0x40f7de
test ebx, ebx
mov esi, 1
cmovne esi, ebx
cmp esi, edi
jae 0x40f7e5
mov ebx, dword [esp]
nop word cs:[eax + eax]
mov eax, esi
and eax, 0xfffffffd
mov ecx, esi
and ecx, 2
or esi, 2
imul esi, ecx
xor ecx, 2
imul ecx, eax
add esi, ecx
cmp esi, edi
jb 0x40f7c0
jmp 0x40f7e8
mov esi, ebx
mov ebx, dword [esp]
jmp 0x40f80c
mov ebx, dword [esp]
push esi
push dword [ebx + 0xc]
push dword [ebx]
mov eax, dword [esp + 0x10]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
mov ecx, ebx
je 0x40f940
mov dword [ecx], eax
mov dword [ecx + 8], esi
mov ebx, ecx
mov dword [ebx + 4], edi
mov eax, dword [esp + 0xac]
test eax, eax
je 0x40f83e
mov ecx, eax
mov eax, dword [ebx + 0xc]
imul ebp, eax
add ebp, dword [ebx]
imul ecx, eax
push ecx
push dword [esp + 0xac]
push ebp
call fcn.00416d80
add esp, 0xc
mov edi, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov eax, edi
mov edx, dword [esp + 0x3c]
and eax, edx
mov ecx, edi
xor ecx, edx
lea ebx, [ecx + eax*2]
cmp esi, ebx
jae 0x40f8a2
test esi, esi
mov ebp, 1
cmovne ebp, esi
cmp ebp, ebx
jae 0x40f87c
nop
mov eax, ebp
and eax, 0xfffffffd
mov ecx, ebp
and ecx, 2
or ebp, 2
imul ebp, ecx
xor ecx, 2
imul ecx, eax
add ebp, ecx
cmp ebp, ebx
jb 0x40f860
push ebp
mov esi, dword [esp + 4]
push dword [esi + 0xc]
push dword [esi]
mov eax, dword [esp + 0x10]
push dword [eax + 0x34]
call dword [eax + 0x30]
mov ecx, esi
add esp, 0x10
test eax, eax
je 0x40f940
mov dword [ecx], eax
mov dword [ecx + 8], ebp
mov eax, dword [esp]
mov dword [eax + 4], ebx
mov ebx, eax
cmp word [esp + 0x74], 0
je 0x40f8cf
mov eax, dword [ebx + 0xc]
imul edi, eax
add edi, dword [ebx]
mov ecx, dword [esp + 0x3c]
imul ecx, eax
push ecx
push dword [esp + 0x74]
push edi
call fcn.00416d80
add esp, 0xc
mov edi, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
mov ecx, edi
and ecx, 1
mov edx, edi
xor edx, 1
lea esi, [edx + ecx*2]
cmp eax, esi
mov edx, dword [esp + 4]
jae 0x40f97b
test eax, eax
mov ebx, 1
cmovne ebx, eax
cmp ebx, esi
jae 0x40f91c
nop dword [eax]
mov eax, ebx
and eax, 0xfffffffd
mov ecx, ebx
and ecx, 2
or ebx, 2
imul ebx, ecx
xor ecx, 2
imul ecx, eax
add ebx, ecx
cmp ebx, esi
jb 0x40f900
push ebx
mov ebp, dword [esp + 4]
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
push dword [edx + 0x34]
call dword [edx + 0x30]
mov ecx, ebp
add esp, 0x10
test eax, eax
je 0x40f940
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x18], ebx
mov ebx, ecx
jmp 0x40f97e
mov ebx, dword [esp + 8]
cmp dword [ecx + 8], ebx
mov esi, ecx
mov edi, dword [esp + 4]
jae 0x40f967
push ebx
push dword [esi + 0xc]
push dword [esi]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x40f96a
mov dword [esi], eax
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [edi + 0x1c], 0x10
xor eax, eax
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x14], esi
mov ecx, dword [ebx + 0x1c]
imul edi, ecx
add edi, eax
lea eax, [esp + 0x4c]
push ecx
push eax
push edi
call fcn.00416d80
add esp, 0xc
mov eax, 1
jmp 0x40f973