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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [esp + 0xa0]
mov esi, dword [ecx + 0x48]
mov ebp, dword [esi + 4]
mov dword [esp + 0x4c], ebp
test eax, eax
je 0x40f9fe
cmp dword [esi + 0x34], 0
jne 0x40f9fe
mov dword [ecx + 0x1c], 3
jmp 0x410040
mov dword [esp], eax
mov dword [esp + 0x48], edx
movzx edx, word [esp + 0x6c]
movzx eax, word [esp + 0x64]
movzx edx, dx
movzx ebx, word [esp + 0x74]
mov dword [esp + 0x40], edx
mov edi, eax
mov dword [esp + 0x44], eax
lea edi, [eax + edx]
add edi, ebx
xor edx, edx
add edi, dword [esp + 0xac]
setb dl
add edi, ebp
adc edx, 0
add edi, 1
adc edx, 0xffffffff
add edi, 0x2e
adc edx, 0
cmp edi, 1
sbb edx, 0xffffffff
jae 0x40fa57
mov dword [ecx + 0x1c], 0xf
jmp 0x410040
mov dword [esp + 0x38], ebx
movzx edx, word [esp + 0x8c]
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
movups xmmword [esp + 0x1c], xmm0
mov word [esp + 0x2c], 0
mov dword [esp + 8], 0x2014b50
xor eax, eax
test dx, dx
mov dword [esp + 4], esi
mov ebx, 0x14
cmove ebx, eax
mov byte [esp + 0xe], bl
movzx ebx, word [esp + 0x90]
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], bh
movzx ebx, word [esp + 0x98]
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], dh
movzx edx, word [esp + 0x94]
mov byte [esp + 0x14], dl
mov byte [esp + 0x15], dh
mov edx, dword [esp + 0x88]
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 + 0x84]
shr edx, 0x18
mov byte [esp + 0x1b], dl
mov edi, dword [esp + 0x80]
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 + 0x7c]
shr edx, 0x18
mov byte [esp + 0x1f], dl
mov edx, dword [esp + 0x78]
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 + 0xa4]
shr ebx, 0x18
mov byte [esp + 0x23], bl
movzx eax, word [esp + 0x6c]
mov esi, dword [esp + 0xac]
lea ebx, [esi + eax]
movzx eax, word [esp + 0x64]
mov byte [esp + 0x24], al
mov byte [esp + 0x25], ah
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bh
movzx eax, word [esp + 0x74]
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 + 4]
shr edx, 0x18
mov byte [esp + 0x31], dl
neg dword [esp]
mov edx, 0
sbb edx, edx
mov eax, dword [esp + 0x9c]
or edx, eax
mov byte [esp + 0x32], dl
mov byte [esp + 0x33], dh
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x34], al
shr edx, 0x18
mov byte [esp + 0x35], dl
lea esi, [ebp + 0x2e]
mov eax, dword [ebx + 8]
cmp eax, esi
mov edx, ecx
mov dword [esp], ecx
mov dword [esp + 0x3c], ebp
jae 0x40fc32
test eax, eax
mov edi, 1
cmovne edi, eax
cmp edi, esi
jae 0x40fc0c
nop word [eax + eax]
mov eax, edi
or eax, 2
mov edx, edi
and edx, 2
imul eax, edx
xor edx, 2
and edi, 0xfffffffd
imul edi, edx
add edi, eax
cmp edi, esi
jb 0x40fbf0
push edi
push dword [ebx + 0xc]
push dword [ebx]
push dword [ecx + 0x34]
call dword [ecx + 0x30]
add esp, 0x10
test eax, eax
mov ecx, ebx
je 0x410010
mov dword [ecx], eax
mov dword [ecx + 8], edi
mov ebx, ecx
mov ebp, dword [esp + 0x3c]
jmp 0x40fc34
mov eax, dword [ebx]
mov dword [ebx + 4], esi
mov ecx, dword [ebx + 0xc]
mov edx, ecx
or edx, ebp
mov esi, ecx
and esi, ebp
imul esi, edx
add esi, eax
mov edx, ecx
not edx
mov edi, ebp
and edi, edx
mov eax, ebp
not eax
and eax, ecx
imul eax, edi
add eax, esi
mov esi, ecx
and esi, 0xffffffd1
and edx, 0x2e
imul edx, esi
mov esi, ecx
and esi, 0x2e
or ecx, 0x2e
imul ecx, esi
add ecx, edx
lea edx, [esp + 8]
push ecx
push edx
push eax
call fcn.004176b0
add esp, 0xc
mov esi, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x44]
lea edi, [esi + ecx]
cmp eax, edi
jae 0x40fce2
test eax, eax
mov ebp, 1
cmovne ebp, eax
cmp ebp, edi
jae 0x40fcbc
mov eax, ebp
or eax, 2
mov ecx, ebp
and ecx, 2
imul eax, ecx
xor ecx, 2
and ebp, 0xfffffffd
imul ebp, ecx
add ebp, eax
cmp ebp, edi
jb 0x40fca0
push ebp
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
mov ecx, ebx
je 0x410010
mov dword [ecx], eax
mov dword [ecx + 8], ebp
mov ebx, ecx
jmp 0x40fce4
mov ebp, eax
movzx eax, word [esp + 0x64]
mov dword [ebx + 4], edi
test ax, ax
je 0x40fd40
mov eax, dword [ebx + 0xc]
mov ecx, eax
or ecx, esi
mov edx, eax
and edx, esi
imul edx, ecx
mov ecx, eax
not ecx
mov edi, esi
and edi, ecx
not esi
and esi, eax
imul esi, edi
add esi, edx
add esi, dword [ebx]
mov edi, dword [esp + 0x44]
mov edx, edi
not edx
and edx, eax
and ecx, edi
imul ecx, edx
mov edx, eax
and edx, edi
or eax, edi
imul eax, edx
add eax, ecx
push eax
push dword [esp + 0x4c]
push esi
call fcn.004176b0
add esp, 0xc
mov edi, dword [ebx + 4]
mov ebp, dword [ebx + 8]
mov eax, dword [esp + 0x40]
lea esi, [edi + eax]
cmp ebp, esi
jae 0x40fd7e
test ebp, ebp
mov ebx, 1
cmovne ebx, ebp
cmp ebx, esi
jae 0x40fd84
mov edx, dword [esp]
nop dword [eax]
mov eax, ebx
or eax, 2
mov ecx, ebx
and ecx, 2
imul eax, ecx
xor ecx, 2
and ebx, 0xfffffffd
imul ebx, ecx
add ebx, eax
cmp ebx, esi
jb 0x40fd60
jmp 0x40fd87
mov ecx, ebx
mov ebx, ebp
jmp 0x40fdaa
mov edx, dword [esp]
push ebx
mov ebp, dword [esp + 8]
push dword [ebp + 0xc]
push dword [ebp]
push dword [edx + 0x34]
call dword [edx + 0x30]
mov ecx, ebp
add esp, 0x10
test eax, eax
je 0x410010
mov dword [ecx], eax
mov dword [ecx + 8], ebx
mov ebp, dword [esp + 0xac]
movzx eax, word [esp + 0x6c]
mov dword [ecx + 4], esi
test ax, ax
je 0x40fe0f
mov eax, dword [ecx + 0xc]
mov ebx, ecx
mov ecx, eax
or ecx, edi
mov edx, eax
and edx, edi
imul edx, ecx
mov ecx, eax
not ecx
mov esi, edi
and esi, ecx
not edi
and edi, eax
imul edi, esi
add edi, edx
add edi, dword [ebx]
mov esi, dword [esp + 0x40]
mov edx, esi
not edx
and edx, eax
and ecx, esi
imul ecx, edx
mov edx, eax
and edx, esi
or eax, esi
imul eax, edx
add eax, ecx
push eax
push dword [esp + 0x6c]
push edi
call fcn.004176b0
add esp, 0xc
mov esi, dword [ebx + 4]
mov ebx, dword [ebx + 8]
lea edi, [esi + ebp]
cmp ebx, edi
jae 0x40fe4e
test ebx, ebx
mov ebp, 1
cmovne ebp, ebx
cmp ebp, edi
jae 0x40fe56
mov ebx, dword [esp + 4]
nop dword [eax + eax]
mov eax, ebp
or eax, 2
mov ecx, ebp
and ecx, 2
imul eax, ecx
xor ecx, 2
and ebp, 0xfffffffd
imul ebp, ecx
add ebp, eax
cmp ebp, edi
jb 0x40fe30
jmp 0x40fe5a
mov ebp, ebx
mov ebx, dword [esp + 4]
jmp 0x40fe7e
mov ebx, dword [esp + 4]
push ebp
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
mov ecx, ebx
je 0x410010
mov dword [ecx], eax
mov dword [ecx + 8], ebp
mov ebx, ecx
movzx ecx, word [esp + 0x74]
mov dword [ebx + 4], edi
mov edx, dword [esp + 0xac]
test edx, edx
je 0x40fee9
mov eax, dword [ebx + 0xc]
mov ecx, eax
or ecx, esi
mov ebp, edx
mov edx, eax
and edx, esi
imul edx, ecx
mov ecx, eax
not ecx
mov edi, esi
and edi, ecx
not esi
and esi, eax
imul esi, edi
add esi, edx
add esi, dword [ebx]
mov edx, ebp
not edx
and edx, eax
and ecx, ebp
imul ecx, edx
mov edx, eax
and edx, ebp
or eax, ebp
imul eax, edx
add eax, ecx
push eax
push dword [esp + 0xac]
push esi
call fcn.004176b0
movzx ecx, word [esp + 0x80]
add esp, 0xc
mov edi, dword [ebx + 4]
mov ebp, dword [ebx + 8]
mov eax, dword [esp + 0x38]
lea esi, [edi + eax]
cmp ebp, esi
jae 0x40ff5b
test ebp, ebp
mov ebx, 1
cmovne ebx, ebp
cmp ebx, esi
jae 0x40ff2e
mov edx, dword [esp]
nop word cs:[eax + eax]
mov eax, ebx
or eax, 2
mov ecx, ebx
and ecx, 2
imul eax, ecx
xor ecx, 2
and ebx, 0xfffffffd
imul ebx, ecx
add ebx, eax
cmp ebx, esi
jb 0x40ff10
jmp 0x40ff31
mov edx, dword [esp]
push ebx
mov ebp, dword [esp + 8]
push dword [ebp + 0xc]
push dword [ebp]
push dword [edx + 0x34]
call dword [edx + 0x30]
mov ecx, ebp
add esp, 0x10
test eax, eax
je 0x410010
mov dword [ecx], eax
mov dword [ecx + 8], ebx
mov ebx, ecx
movzx ecx, word [esp + 0x74]
mov dword [ebx + 4], esi
test cx, cx
je 0x40ffac
mov eax, dword [ebx + 0xc]
mov ecx, eax
or ecx, edi
mov edx, eax
and edx, edi
imul edx, ecx
mov ecx, eax
not ecx
mov esi, edi
and esi, ecx
not edi
and edi, eax
imul edi, esi
add edi, edx
add edi, dword [ebx]
mov esi, dword [esp + 0x38]
mov edx, esi
not edx
and edx, eax
and ecx, esi
imul ecx, edx
mov edx, eax
and edx, esi
or eax, esi
imul eax, edx
add eax, ecx
push eax
push dword [esp + 0x74]
push edi
call fcn.004176b0
add esp, 0xc
mov esi, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
lea edi, [esi + 1]
cmp eax, edi
mov edx, dword [esp]
jae 0x41004a
test eax, eax
mov ebx, 1
cmovne ebx, eax
cmp ebx, edi
jae 0x40ffec
nop
mov eax, ebx
or eax, 2
mov ecx, ebx
and ecx, 2
imul eax, ecx
xor ecx, 2
and ebx, 0xfffffffd
imul ebx, ecx
add ebx, eax
cmp ebx, edi
jb 0x40ffd0
push ebx
mov ebp, dword [esp + 8]
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 0x410010
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x18], ebx
mov ebx, ecx
jmp 0x41004d
mov ebx, dword [esp + 0x3c]
cmp dword [ecx + 8], ebx
mov esi, ecx
mov edi, dword [esp]
jae 0x410036
push ebx
push dword [esi + 0xc]
push dword [esi]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x410039
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], edi
mov ecx, dword [ebx + 0x1c]
mov edi, ecx
or edi, esi
mov edx, ecx
and edx, esi
imul edx, edi
add edx, eax
mov eax, ecx
not eax
mov edi, esi
and edi, eax
not esi
and esi, ecx
imul esi, edi
add esi, edx
and eax, 1
neg eax
and eax, ecx
and eax, 0xfffffffe
mov edx, ecx
or edx, 1
and ecx, 1
neg ecx
and ecx, edx
add ecx, eax
lea eax, [esp + 0x4c]
push ecx
push eax
push esi
call fcn.004176b0
add esp, 0xc
mov eax, 1
jmp 0x410042