Function at 0x41c650
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov dword [esp + 4], 0
jne 0x41c66e
mov eax, 0xffffff9a
pop esi
add esp, 8
ret
push ebx
mov ebx, dword [esi + 0x9c]
test ebx, ebx
jne 0x41c684
pop ebx
mov eax, 0xffffff9a
pop esi
add esp, 8
ret
cmp dword [ebx], 0
jne 0x41c694
pop ebx
mov eax, 0xffffff9c
pop esi
add esp, 8
ret
test ecx, ecx
jne 0x41c6a0
pop ebx
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x5c]
cmp ecx, eax
mov dword [ebx + 0x14], ecx
jbe 0x41c6be
mov edx, dword [ebx + 0x8c]
test edx, edx
jne 0x41c6be
mov dword [ebx + 0x14], eax
mov edx, dword [ebx + 0x58]
mov eax, dword [ebx + 8]
add eax, edx
cmp ecx, eax
jbe 0x41c6d7
mov ecx, dword [ebx + 0x8c]
test ecx, ecx
je 0x41c6d7
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x14]
test eax, eax
push ebp
push edi
ja 0x41c6f0
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
mov esi, dword [esp + 0x1c]
mov eax, dword [ebx + 8]
test eax, eax
jne 0x41c7d4
mov eax, dword [ebx + 0x58]
test eax, eax
jbe 0x41c7d4
mov edi, 0x4000
cmp eax, edi
mov dword [esp + 0x14], edi
jae 0x41c719
mov dword [esp + 0x14], eax
mov edi, eax
mov ecx, dword [ebx + 0x88]
mov ebp, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x80]
mov eax, dword [ebx + 0x7c]
push 0
add ecx, ebp
push ecx
push edx
push eax
call dword [ebx + 0x70]
add esp, 0x10
test eax, eax
jne 0x41c8fd
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x80]
mov eax, dword [ebx + 0x7c]
push edi
push ecx
push edx
push eax
call dword [ebx + 0x64]
add esp, 0x10
cmp eax, edi
jne 0x41c8fd
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x41c7bc
xor ebp, ebp
test edi, edi
jbe 0x41c7bc
add esi, 0xa4
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0xac]
mov edx, dword [ebx]
and eax, 0xfffd
or eax, 2
lea edi, [edx + ebp]
mov edx, eax
xor edx, 1
imul edx, eax
mov al, byte [edi]
shr edx, 8
xor al, dl
mov byte [edi], al
mov eax, dword [ebx]
movsx eax, byte [eax + ebp]
mov edi, dword [ecx + 0xb0]
call fcn.0041b750
mov ecx, dword [ebx]
mov byte [ecx + ebp], al
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, eax
jb 0x41c773
mov edi, eax
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x58]
mov edx, dword [ebx]
add ecx, edi
sub eax, edi
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x58], eax
mov dword [ebx + 4], edx
mov dword [ebx + 8], edi
mov eax, dword [ebx + 0x84]
test eax, eax
je 0x41c863
mov eax, dword [ebx + 0x8c]
test eax, eax
jne 0x41c863
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x10]
lea ecx, [ebx + 4]
push 2
push ecx
mov dword [esp + 0x1c], eax
call fcn.004183e0
mov ebp, eax
add esp, 8
test ebp, ebp
jl 0x41c816
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x41c816
mov ebp, 0xfffffffd
mov edi, dword [ebx + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x50]
sub edi, edx
test esi, esi
jne 0x41c82a
xor eax, eax
jmp 0x41c833
mov edx, edi
mov ecx, esi
call fcn.004163e0
mov edx, dword [ebx + 0x5c]
mov ecx, dword [esp + 0x10]
sub edx, edi
add ecx, edi
cmp ebp, 1
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x5c], edx
mov dword [esp + 0x10], ecx
je 0x41c6e0
test ebp, ebp
je 0x41c8e6
pop edi
mov eax, ebp
pop ebp
pop ebx
pop esi
add esp, 8
ret
mov eax, dword [ebx + 8]
test eax, eax
jne 0x41c875
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x41c6e0
mov edi, dword [ebx + 0x14]
cmp edi, eax
jb 0x41c87e
mov edi, eax
xor eax, eax
test edi, edi
jbe 0x41c895
mov edx, dword [ebx + 4]
mov dl, byte [eax + edx]
mov ecx, dword [ebx + 0x10]
mov byte [eax + ecx], dl
inc eax
cmp eax, edi
jb 0x41c884
mov ebp, dword [ebx + 0x10]
test ebp, ebp
mov eax, dword [ebx + 0x50]
jne 0x41c8a3
xor eax, eax
jmp 0x41c8ac
mov edx, edi
mov ecx, ebp
call fcn.004163e0
mov ecx, dword [ebx + 0x5c]
mov esi, dword [ebx + 0x14]
mov edx, dword [ebx + 4]
mov dword [ebx + 0x50], eax
mov eax, dword [ebx + 8]
sub ecx, edi
sub eax, edi
mov dword [ebx + 0x5c], ecx
mov ecx, dword [ebx + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x10]
sub esi, edi
add ebp, edi
add edx, edi
add ecx, edi
add eax, edi
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], ebp
mov dword [ebx + 4], edx
mov dword [ebx + 0x18], ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x14]
test eax, eax
ja 0x41c6ec
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
pop ebp
pop ebx
or eax, 0xffffffff
pop esi
add esp, 8
ret