Function at 0x4316f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov dword [esp + 0x60], ecx
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x2c], 0x100000
mov dword [esp + 0xc], 0
mov dword [esp + 0x40], 0x3a393837
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov word [esp + 0x4c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xd
ja 0x43179e
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x40]
mov edx, 8
sub edx, eax
add eax, 0x4032cff7
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x3f
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x40], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xe
jb 0x431760
mov eax, dword [esp + 0x40]
mov ecx, dword [0x43f060]
test ecx, ecx
je 0x4317fe
xor edx, edx
mov esi, dword [0x43f064]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x72d34d92
je 0x4317d0
inc edx
cmp ecx, edx
jne 0x4317c0
jmp 0x4317fe
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x4317fe
lea eax, [esp + 0x2c]
lea edx, [esp + 0xc]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 6
push dword [0x43f068]
push ecx
call fcn.00432610
add esp, 0x24
test eax, eax
js 0x431e94
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x30], 0x10000
jmp 0x431867
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x40]
mov dword [esp + 0x30], eax
cmp eax, 0x7fffffff
jae 0x431dcc
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
mov dword [esp + 0x10], 0x3a393837
lea eax, [esp + 0x14]
mov word [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xd
ja 0x4318d9
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x10]
mov esi, 8
sub esi, eax
add eax, 0x4032cff7
xor esi, eax
and esi, edx
xor esi, eax
mov dword [esp + 4], esi
mov eax, dword [esp + 4]
add al, 0x3f
mov edx, dword [esp]
mov byte [esp + edx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xe
jb 0x4318a0
mov eax, dword [esp + 0x10]
mov edx, dword [0x43f060]
test edx, edx
je 0x431930
xor esi, esi
mov edi, dword [0x43f064]
nop
cmp dword [edi + esi*8], 0x175b5231
je 0x431900
inc esi
cmp edx, esi
jne 0x4318f0
jmp 0x431930
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x431930
push 0
push 0x1c
lea eax, [esp + 0x48]
push eax
push 0
push dword [esp + 0x40]
push ecx
push 6
push dword [0x43f068]
push edx
call fcn.00432610
add esp, 0x24
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0xbfffffff
ja 0x431dcc
test eax, eax
js 0x431850
cmp dword [esp + 0x50], 0x1000
jne 0x431850
cmp dword [esp + 0x54], 1
je 0x431850
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x4c], eax
jbe 0x431b1a
mov dword [esp + 0x10], 0x3a393837
lea eax, [esp + 0x14]
mov word [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xd
ja 0x4319d9
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, 8
sub edx, eax
add eax, 0x4032cff7
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0x3f
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xe
jb 0x4319a0
mov eax, dword [0x43f060]
test eax, eax
je 0x431a34
mov ecx, dword [esp + 0x10]
xor edx, edx
mov esi, dword [0x43f064]
nop
nop
cmp dword [esi + edx*8], 0xcf9c6479
je 0x431a0a
mov edi, edx
and edi, 1
xor edx, 1
lea edx, [edx + edi*2]
cmp edx, eax
jb 0x4319f0
jmp 0x431a34
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x431a34
push 0x8000
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x14]
push ecx
push 0xffffffffffffffff
push 4
push dword [0x43f068]
push eax
call fcn.00432610
add esp, 0x1c
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 0x3a393837
lea eax, [esp + 0x14]
mov word [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xd
ja 0x431ab9
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, 8
sub edx, eax
add eax, 0x4032cff7
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0x3f
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xe
jb 0x431a80
mov eax, dword [esp + 0x10]
mov ecx, dword [0x43f060]
test ecx, ecx
je 0x431b0e
xor edx, edx
mov esi, dword [0x43f064]
nop
cmp dword [esi + edx*8], 0x72d34d92
je 0x431ae0
inc edx
cmp ecx, edx
jne 0x431ad0
jmp 0x431b0e
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x431b0e
push 4
push 0x3000
lea eax, [esp + 0x34]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push 6
push dword [0x43f068]
push ecx
call fcn.00432610
add esp, 0x24
test eax, eax
js 0x431dcc
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x60]
lea edx, [esp + 4]
push edx
push eax
push dword [esp + 0x14]
push dword [esp + 0x3c]
call fcn.00431580
cmp eax, 0xbfffffff
ja 0x431850
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x10]
push dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
call fcn.00431ea0
add esp, 0x18
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x64], ecx
cmp eax, ecx
je 0x431850
mov ecx, dword [ebx + 8]
mov dword [esp + 0x24], ecx
mov esi, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x6c], eax
mov edi, eax
mov eax, ecx
mov edx, esi
mov ebx, ecx
jmp 0x431bab
add ecx, dword [esp + 0x30]
mov dword [edx + esi], ecx
add ebx, 4
add edi, 4
mov eax, ebx
mov esi, edx
cmp edi, dword [esp + 0x64]
je 0x431d97
mov dword [esp + 0x28], edx
mov ecx, dword [edi]
sub ecx, dword [esp + 0xc]
mov edx, eax
sub edx, esi
cmp eax, dword [esp + 0x24]
mov dword [esp + 8], edx
jne 0x431d3f
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ecx
mov ecx, edx
sar ecx, 2
lea eax, [ecx + 1]
mov ebx, ecx
shr ebx, 1
add ebx, ecx
cmp ebx, eax
ja 0x431be3
mov ebx, eax
lea eax, [ebx*4]
push eax
call fcn.00408a30
add esp, 4
test esi, esi
mov dword [esp + 0x28], eax
je 0x431d28
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], edi
cmp eax, esi
mov ecx, dword [esp + 0x34]
mov ebx, eax
mov edx, dword [esp + 8]
jbe 0x431ccf
cmp ecx, ebx
jbe 0x431ccf
test edx, edx
je 0x431d13
mov edx, dword [esp + 8]
lea eax, [esi + edx]
dec eax
mov ecx, dword [esp + 0x28]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x431c64
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x431c50
add eax, edx
add ecx, edx
add edx, dword [esp + 8]
mov edi, esi
sub edi, dword [esp + 0x34]
cmp edi, 0xfffffff8
ja 0x431d13
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x431c80
jmp 0x431d13
mov ecx, edx
shr ecx, 2
mov eax, esi
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, edx
and edx, 0xfffffffc
lea eax, [ebx + edx]
add edx, esi
shr ecx, 1
and ecx, 1
mov ebx, edx
mov dword [esp + 0x70], eax
mov edi, eax
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test byte [esp + 8], 1
je 0x431d13
mov ecx, dword [esp + 8]
and ecx, 2
movzx edx, byte [edx + ecx]
mov eax, dword [esp + 0x70]
mov byte [eax + ecx], dl
push esi
call fcn.00408a40
add esp, 4
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
lea ecx, [eax + ebx*4]
mov dword [esp + 0x24], ecx
mov ebx, eax
mov edx, dword [esp + 8]
add ebx, edx
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov edx, eax
not eax
and eax, esi
not esi
and esi, edx
sub esi, eax
cmp esi, dword [esp + 8]
mov edx, dword [esp + 0x28]
jae 0x431b90
lea eax, [edx + esi]
add edx, esi
add edx, 4
mov dword [esp + 8], edx
mov edx, eax
mov dword [esp + 0x38], edi
mov edi, dword [esp + 8]
mov dword [esp + 0x3c], ecx
xor ecx, ecx
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 8]
xor ecx, ecx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
jmp 0x431b90
mov eax, dword [ebp + 8]
mov dword [eax + 4], ebx
mov ebx, eax
mov dword [eax], edx
mov eax, dword [esp + 0x24]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x431850
cmp eax, dword [esp + 0x64]
je 0x431850
push eax
call fcn.00408a40
add esp, 4
jmp 0x431850
mov dword [esp + 0x10], 0x3a393837
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov word [esp + 0x1c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xd
ja 0x431e39
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, 8
sub edx, eax
add eax, 0x4032cff7
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0x3f
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xe
jb 0x431e00
mov eax, dword [0x43f060]
test eax, eax
je 0x431e94
mov ecx, dword [esp + 0x10]
xor edx, edx
mov esi, dword [0x43f064]
nop
nop
cmp dword [esi + edx*8], 0xcf9c6479
je 0x431e6a
mov edi, edx
and edi, 1
xor edx, 1
lea edx, [edx + edi*2]
cmp edx, eax
jb 0x431e50
jmp 0x431e94
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x431e94
push 0x8000
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x14]
push ecx
push 0xffffffffffffffff
push 4
push dword [0x43f068]
push eax
call fcn.00432610
add esp, 0x1c
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10