Function at 0x40fb10
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 0x40fb3e
cmp dword [esi + 0x34], 0
jne 0x40fb3e
mov dword [ecx + 0x1c], 3
jmp 0x4101a0
mov dword [esp + 4], esi
mov dword [esp + 0x4c], edx
movzx edx, word [esp + 0x70]
movzx ebp, word [esp + 0x68]
movzx edx, dx
movzx ebx, word [esp + 0x78]
mov dword [esp + 0x44], edx
mov esi, ebp
mov dword [esp + 0x48], ebp
lea esi, [edx + ebp]
add esi, ebx
mov ebp, dword [esp + 0xb0]
xor edx, edx
add esi, ebp
setb dl
add esi, edi
adc edx, 0
add esi, 0x2e
adc edx, 0
cmp esi, 0xffffffff
sbb edx, 0
jb 0x40fb94
mov dword [ecx + 0x1c], 0xf
jmp 0x4101a0
mov dword [esp + 0x3c], ebx
mov dword [esp], ecx
movzx edx, word [esp + 0x90]
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp + 0x20], xmm0
mov word [esp + 0x30], 0
mov dword [esp + 0xc], 0x2014b50
xor ecx, ecx
test dx, dx
mov dword [esp + 8], edi
mov ebx, 0x14
cmove ebx, ecx
mov byte [esp + 0x12], bl
movzx ebx, word [esp + 0x94]
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], bh
movzx ebx, word [esp + 0x9c]
mov byte [esp + 0x16], dl
mov byte [esp + 0x17], dh
movzx edx, word [esp + 0x98]
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], dh
mov edx, dword [esp + 0x8c]
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 + 0x88]
shr edx, 0x18
mov byte [esp + 0x1f], dl
mov edi, dword [esp + 0x84]
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 + 0x80]
shr edx, 0x18
mov byte [esp + 0x23], dl
mov edx, dword [esp + 0x7c]
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 + 0xa8]
shr ebx, 0x18
mov byte [esp + 0x27], bl
movzx esi, word [esp + 0x70]
lea ebx, [esi + ebp]
movzx esi, word [esp + 0x68]
mov edi, eax
mov eax, esi
mov byte [esp + 0x28], al
mov byte [esp + 0x29], ah
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], bh
movzx ebx, word [esp + 0x78]
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 + 8]
shr edx, 0x18
mov byte [esp + 0x35], dl
neg edi
sbb ecx, ecx
mov eax, dword [esp + 0xa0]
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
lea esi, [ebx + 0x2e]
mov ebp, dword [esp + 4]
mov eax, dword [ebp + 8]
cmp eax, esi
jae 0x40fd3e
test eax, eax
mov edi, 1
cmovne edi, eax
cmp edi, esi
jae 0x40fd47
mov edx, dword [esp]
nop
mov eax, edi
and eax, 2
mov ecx, edi
or edi, 2
imul edi, eax
xor eax, 2
and ecx, 0xfffffffd
imul ecx, eax
add edi, ecx
cmp edi, esi
jb 0x40fd20
jmp 0x40fd4a
mov eax, dword [ebp]
mov dword [esp + 0x40], eax
jmp 0x40fd73
mov edx, dword [esp]
push edi
push dword [ebp + 0xc]
push dword [ebp]
push dword [edx + 0x34]
call dword [edx + 0x30]
add esp, 0x10
test eax, eax
mov ecx, ebp
je 0x410170
mov dword [esp + 0x40], eax
mov dword [ecx], eax
mov dword [ecx + 8], edi
mov ebp, ecx
mov ebx, dword [esp + 8]
mov dword [ebp + 4], esi
mov ecx, dword [ebp + 0xc]
mov edx, ebx
not edx
and edx, ecx
mov esi, ecx
not esi
mov edi, ebx
and edi, esi
imul edi, edx
mov eax, ebp
mov ebp, ebx
mov ebx, ecx
and ebx, ebp
mov edx, ecx
or edx, ebp
mov ebp, eax
imul edx, ebx
add edx, dword [esp + 0x40]
add edx, edi
and esi, 0x2e
mov eax, ecx
and eax, 0xffffffd1
imul eax, esi
mov esi, ecx
and esi, 0x2e
or ecx, 0x2e
imul ecx, esi
add ecx, eax
lea eax, [esp + 0xc]
push ecx
push eax
push edx
call fcn.004178c0
add esp, 0xc
mov esi, dword [ebp + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x48]
lea edi, [esi + ecx]
cmp eax, edi
jae 0x40fe0e
test eax, eax
mov ebp, 1
cmovne ebp, eax
cmp ebp, edi
jae 0x40fe14
mov edx, dword [esp]
nop word [eax + eax]
mov eax, ebp
and eax, 2
mov ecx, ebp
or ebp, 2
imul ebp, eax
xor eax, 2
and ecx, 0xfffffffd
imul ecx, eax
add ebp, ecx
cmp ebp, edi
jb 0x40fdf0
jmp 0x40fe17
mov ecx, ebp
mov ebp, eax
jmp 0x40fe39
mov edx, dword [esp]
push ebp
mov ebx, dword [esp + 8]
push dword [ebx + 0xc]
push dword [ebx]
push dword [edx + 0x34]
call dword [edx + 0x30]
mov ecx, ebx
add esp, 0x10
test eax, eax
je 0x410170
mov dword [ecx], eax
mov dword [ecx + 8], ebp
movzx eax, word [esp + 0x68]
mov dword [ecx + 4], edi
test ax, ax
je 0x40fe97
mov eax, dword [ecx + 0xc]
mov edx, esi
not edx
and edx, eax
mov ebx, ecx
mov ecx, eax
not ecx
mov edi, esi
and edi, ecx
imul edi, edx
mov edx, eax
and edx, esi
or esi, eax
imul esi, edx
add esi, edi
add esi, dword [ebx]
mov edi, dword [esp + 0x48]
and ecx, edi
mov edx, edi
not edx
and edx, eax
imul edx, ecx
mov ecx, eax
and ecx, edi
or eax, edi
imul eax, ecx
add eax, edx
push eax
push dword [esp + 0x50]
push esi
call fcn.004178c0
add esp, 0xc
mov edi, dword [ebx + 4]
mov ebp, dword [ebx + 8]
mov eax, dword [esp + 0x44]
lea esi, [edi + eax]
cmp ebp, esi
jae 0x40fede
test ebp, ebp
mov ebx, 1
cmovne ebx, ebp
cmp ebx, esi
jae 0x40fee6
mov ebp, dword [esp + 4]
nop word cs:[eax + eax]
mov eax, ebx
and eax, 2
mov ecx, ebx
or ebx, 2
imul ebx, eax
xor eax, 2
and ecx, 0xfffffffd
imul ecx, eax
add ebx, ecx
cmp ebx, esi
jb 0x40fec0
jmp 0x40feea
mov ebx, ebp
mov ebp, dword [esp + 4]
jmp 0x40ff0f
mov ebp, dword [esp + 4]
push ebx
push dword [ebp + 0xc]
push dword [ebp]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
mov ecx, ebp
je 0x410170
mov dword [ecx], eax
mov dword [ecx + 8], ebx
mov ebp, ecx
movzx eax, word [esp + 0x70]
mov dword [ebp + 4], esi
test ax, ax
je 0x40ff6c
mov eax, dword [ebp + 0xc]
mov edx, edi
not edx
and edx, eax
mov ecx, eax
not ecx
mov esi, edi
and esi, ecx
imul esi, edx
mov edx, eax
and edx, edi
or edi, eax
imul edi, edx
add edi, esi
add edi, dword [ebp]
mov esi, dword [esp + 0x44]
and ecx, esi
mov edx, esi
not edx
and edx, eax
imul edx, ecx
mov ecx, eax
and ecx, esi
or eax, esi
imul eax, ecx
add eax, edx
push eax
push dword [esp + 0x70]
push edi
call fcn.004178c0
add esp, 0xc
mov esi, dword [ebp + 4]
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0xb0]
lea edi, [esi + eax]
cmp ebx, edi
jae 0x40ffae
test ebx, ebx
mov ebp, 1
cmovne ebp, ebx
cmp ebp, edi
jae 0x40ffb6
mov edx, dword [esp]
nop dword [eax + eax]
mov eax, ebp
and eax, 2
mov ecx, ebp
or ebp, 2
imul ebp, eax
xor eax, 2
and ecx, 0xfffffffd
imul ecx, eax
add ebp, ecx
cmp ebp, edi
jb 0x40ff90
jmp 0x40ffb9
mov ebp, ebx
mov ecx, dword [esp + 4]
jmp 0x40ffdb
mov edx, dword [esp]
push ebp
mov ebx, dword [esp + 8]
push dword [ebx + 0xc]
push dword [ebx]
push dword [edx + 0x34]
call dword [edx + 0x30]
mov ecx, ebx
add esp, 0x10
test eax, eax
je 0x410170
mov dword [ecx], eax
mov dword [ecx + 8], ebp
movzx eax, word [esp + 0x78]
mov dword [ecx + 4], edi
mov ebx, dword [esp + 0xb0]
test ebx, ebx
je 0x410047
mov eax, dword [ecx + 0xc]
mov edx, esi
not edx
and edx, eax
mov ebp, ecx
mov ecx, eax
not ecx
mov edi, esi
and edi, ecx
imul edi, edx
mov edx, eax
and edx, esi
or esi, eax
imul esi, edx
add esi, edi
add esi, dword [ebp]
and ecx, ebx
mov edx, ebx
not edx
and edx, eax
imul edx, ecx
mov ecx, eax
and ecx, ebx
or eax, ebx
imul eax, ecx
add eax, edx
push eax
push dword [esp + 0xb0]
push esi
call fcn.004178c0
movzx eax, word [esp + 0x84]
add esp, 0xc
mov edi, dword [ebp + 4]
mov ebp, dword [ebp + 8]
mov ebx, dword [esp + 0x3c]
lea esi, [edi + ebx]
cmp ebp, esi
jae 0x4100be
test ebp, ebp
mov ebx, 1
cmovne ebx, ebp
cmp ebx, esi
jae 0x41008e
mov ebp, dword [esp + 4]
nop word cs:[eax + eax]
mov eax, ebx
and eax, 2
mov ecx, ebx
or ebx, 2
imul ebx, eax
xor eax, 2
and ecx, 0xfffffffd
imul ecx, eax
add ebx, ecx
cmp ebx, esi
jb 0x410070
jmp 0x410092
mov ebp, dword [esp + 4]
push ebx
push dword [ebp + 0xc]
push dword [ebp]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
mov ecx, ebp
je 0x410170
mov dword [ecx], eax
mov dword [ecx + 8], ebx
mov ebx, dword [esp + 0x3c]
movzx eax, word [esp + 0x78]
mov ebp, dword [esp + 4]
mov dword [ebp + 4], esi
test ax, ax
je 0x410110
mov eax, dword [ebp + 0xc]
mov edx, edi
not edx
and edx, eax
mov ecx, eax
not ecx
mov esi, edi
and esi, ecx
imul esi, edx
mov edx, eax
and edx, edi
or edi, eax
imul edi, edx
add edi, esi
add edi, dword [ebp]
and ecx, ebx
mov edx, ebx
not edx
and edx, eax
imul edx, ecx
mov ecx, eax
and ecx, ebx
or eax, ebx
imul eax, ecx
add eax, edx
push eax
push dword [esp + 0x78]
push edi
call fcn.004178c0
add esp, 0xc
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
lea edi, [esi + 1]
cmp eax, edi
jae 0x4101aa
test eax, eax
mov ebx, 1
cmovne ebx, eax
cmp ebx, edi
jae 0x41014c
nop
mov eax, ebx
and eax, 2
mov ecx, ebx
or ebx, 2
imul ebx, eax
xor eax, 2
and ecx, 0xfffffffd
imul ecx, eax
add ebx, ecx
cmp ebx, edi
jb 0x410130
push ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
mov ecx, ebp
je 0x410170
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x18], ebx
mov ebp, ecx
jmp 0x4101ad
mov ebx, dword [esp + 8]
cmp dword [ecx + 8], ebx
mov esi, ecx
mov edi, dword [esp]
jae 0x410196
push ebx
push dword [esi + 0xc]
push dword [esi]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x410199
mov dword [esi], eax
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [edi + 0x1c], 0x10
xor eax, eax
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], edi
mov ecx, dword [ebp + 0x1c]
mov edi, esi
not edi
and edi, ecx
mov edx, ecx
not edx
mov ebx, esi
and ebx, edx
imul ebx, edi
mov edi, ecx
and edi, esi
or esi, ecx
imul esi, edi
add esi, eax
add esi, ebx
and edx, 1
neg edx
and edx, ecx
and edx, 0xfffffffe
mov eax, ecx
or eax, 1
and ecx, 1
neg ecx
and ecx, eax
add ecx, edx
lea eax, [esp + 0x50]
push ecx
push eax
push esi
call fcn.004178c0
add esp, 0xc
mov eax, 1
jmp 0x4101a2