Function at 0x431d70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, ecx
mov dword [ebp - 0x10], edx
push ebx
mov dword [ebp - 4], eax
push esi
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp + 8]
mov esi, eax
push edi
mov dword [ebp - 8], ecx
mov ebx, dword [ecx + 0x48]
xor ebx, eax
mov dword [ebp - 0xc], ebx
test eax, eax
je 0x431dbd
jmp 0x431da0
movzx ecx, byte [edx + esi - 1]
mov eax, ebx
shl eax, 5
add ecx, eax
mov eax, ebx
shr eax, 2
add ecx, eax
xor ebx, ecx
sub esi, 1
jne 0x431da0
mov dword [ebp - 0xc], ebx
mov esi, dword [ebp - 8]
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
lea ecx, [edx - 1]
and ecx, ebx
mov edi, dword [eax + ecx*4]
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x14], ecx
test edi, edi
je 0x431e52
mov esi, dword [ebp + 8]
jmp 0x431de0
movzx eax, byte [edi + 7]
cmp esi, eax
jne 0x431e45
mov ecx, dword [ebp - 0x10]
lea edx, [edi + 0x10]
sub esi, 4
jb 0x431e04
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x431e0d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x431df3
cmp esi, 0xfffffffc
je 0x431ead
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x431e42
cmp esi, 0xfffffffd
je 0x431ead
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x431e42
cmp esi, 0xfffffffe
je 0x431ead
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x431e42
cmp esi, 0xffffffff
je 0x431ead
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x431ead
mov esi, dword [ebp + 8]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x431de0
mov esi, dword [ebp - 8]
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
cmp eax, edx
jl 0x431e9b
mov edi, dword [ebp - 4]
cmp eax, 0x7fffffff
jne 0x431e77
mov ecx, edi
call fcn.004303e0
cmp dword [esi + 0x1c], 0x7fffffff
je 0x431f4e
mov ecx, dword [esi + 0x20]
cmp ecx, 0x1fffffff
jg 0x431e8f
lea edx, [ecx + ecx]
mov ecx, edi
call fcn.00431ca0
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
and ecx, ebx
lea eax, [eax + ecx*4]
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov edi, dword [edi + 0x10]
add ebx, 0x11
jne 0x431ecb
xor esi, esi
jmp 0x431ef9
mov ecx, dword [ebp - 8]
mov al, byte [edi + 5]
mov cl, byte [ecx + 0x4c]
xor cl, 0x18
test al, cl
je 0x431ec2
xor al, 0x18
mov byte [edi + 5], al
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push ebx
push 4
push 0
push dword [edi + 4]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x431ef6
mov ecx, dword [ebp - 4]
xor edx, edx
push ebx
push 4
call fcn.00432820
mov esi, eax
add esp, 8
test esi, esi
je 0x431f4b
add dword [edi + 0xc], ebx
mov al, byte [edi + 0x4c]
lea ecx, [esi + 0x10]
mov ebx, dword [ebp + 8]
and al, 0x18
mov byte [esi + 5], al
mov byte [esi + 4], 4
mov eax, dword [edi + 0x58]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
push ebx
push dword [ebp - 0x10]
mov dword [edi + 0x58], esi
mov dword [esi + 8], eax
mov byte [esi + 6], 0
push ecx
mov byte [esi + ebx + 0x10], 0
call int.0048ac80
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov byte [esi + 7], bl
mov ecx, dword [eax]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 8]
mov dword [eax], esi
mov eax, esi
pop edi
pop esi
inc dword [ecx + 0x1c]
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
mov edx, 4
mov ecx, edi
call fcn.0042b780
int3