Function at 0x402370
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x50
mov eax, dword [0x452724]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
push esi
mov esi, dword [esp + 0x6c]
push edi
push 0
push 2
push eax
push 1
push 1
mov edi, ecx
call fcn.00401010
cmp dword [edi], 0
mov dword [esp + 0x18], ebx
je 0x4023c1
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00414b1e
add esp, 0x50
ret 0x10
cmp dword [edi + 8], 1
je 0x4023e1
pop edi
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00414b1e
add esp, 0x50
ret 0x10
test ebx, ebx
je 0x4034f2
mov eax, dword [esp + 0x6c]
test eax, eax
jle 0x4034f2
mov ecx, eax
and ecx, 0x8000000f
jns 0x402404
dec ecx
or ecx, 0xfffffff0
inc ecx
je 0x402420
pop edi
pop esi
pop ebp
mov eax, 0xfffffff9
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00414b1e
add esp, 0x50
ret 0x10
cdq
and edx, 0xf
add eax, edx
mov ebp, eax
mov eax, dword [edi + 4]
sar ebp, 4
sub eax, 0
mov dword [esp + 0x38], ebp
je 0x402cda
sub eax, 1
je 0x402458
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00414b1e
add esp, 0x50
ret 0x10
push 0x10
lea edx, [edi + 0xc]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00414bb0
lea eax, [ebp - 1]
add esp, 0xc
test eax, eax
mov dword [esp + 0x24], eax
jle 0x4028a6
lea ebx, [ebx]
mov ecx, dword [edi + 0x1c]
lea edx, [ecx + 2]
shl edx, 4
mov eax, dword [edx + edi]
xor eax, dword [ebx]
shl ecx, 4
mov edx, dword [ecx + edi + 0x2c]
xor edx, dword [ebx + 0xc]
mov ebp, dword [ecx + edi + 0x28]
xor ebp, dword [ebx + 8]
add ecx, edi
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 0x24]
xor eax, dword [ebx + 4]
mov ecx, edx
shr ecx, 8
mov ebx, ebp
shr ebx, 0x10
movzx ebx, bl
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x440500]
xor ecx, dword [ebx*4 + 0x440900]
mov ebx, eax
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x440d00]
movzx ebx, byte [esp + 0x4c]
xor ecx, dword [ebx*4 + 0x440100]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
mov dword [esp + 0x54], ebp
shr ebp, 0x18
mov dword [esp + 0x10], ebp
mov ebp, dword [ebx*4 + 0x440900]
mov ebx, dword [esp + 0x10]
xor ebp, dword [ebx*4 + 0x440d00]
mov ebx, dword [esp + 0x4c]
shr ebx, 8
movzx ebx, bl
xor ebp, dword [ebx*4 + 0x440500]
movzx ebx, al
xor ebp, dword [ebx*4 + 0x440100]
mov ebx, eax
mov dword [esp + 0x58], edx
shr edx, 0x18
shr ebx, 8
movzx ebx, bl
mov dword [esp + 0x10], ebx
mov ebx, dword [edx*4 + 0x440d00]
mov edx, dword [esp + 0x10]
xor ebx, dword [edx*4 + 0x440500]
mov edx, dword [esp + 0x4c]
shr edx, 0x10
movzx edx, dl
xor ebx, dword [edx*4 + 0x440900]
movzx edx, byte [esp + 0x54]
xor ebx, dword [edx*4 + 0x440100]
mov edx, dword [esp + 0x54]
shr eax, 0x10
shr edx, 8
movzx eax, al
movzx edx, dl
mov dword [esp + 0x10], eax
mov eax, dword [edx*4 + 0x440500]
mov edx, dword [esp + 0x10]
xor eax, dword [edx*4 + 0x440900]
mov edx, dword [esp + 0x4c]
shr edx, 0x18
xor eax, dword [edx*4 + 0x440d00]
movzx edx, byte [esp + 0x58]
xor eax, dword [edx*4 + 0x440100]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x1c]
add eax, 0xffffffff
cmp eax, 1
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebx
jle 0x402707
mov edx, eax
shl edx, 4
lea edx, [edx + edi + 0x24]
add eax, 0xffffffff
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
jmp 0x4025e4
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 4]
xor eax, ecx
mov ecx, dword [edx]
mov edx, dword [edx + 4]
xor edx, ebx
mov ebx, dword [esp + 0x20]
xor ecx, ebp
mov ebp, dword [ebx + 8]
xor ebp, dword [esp + 0x48]
mov dword [esp + 0x10], edx
mov ebx, ebp
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x440500]
shr edx, 0x10
mov dword [esp + 0x58], ebp
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x440900]
mov edx, dword [esp + 0x10]
mov ebp, ecx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x440d00]
movzx ebp, al
xor ebx, dword [ebp*4 + 0x440100]
mov ebp, edx
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x58]
shr ebx, 0x10
mov dword [esp + 0x10], edx
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x440900]
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x440d00]
mov edx, eax
shr edx, 8
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x440500]
movzx ebp, cl
xor ebx, dword [ebp*4 + 0x440100]
mov edx, ecx
shr edx, 8
movzx ebp, dl
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x58]
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x440d00]
xor ebx, dword [ebp*4 + 0x440500]
sub dword [esp + 0x20], 0x10
mov edx, eax
shr edx, 0x10
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x440900]
mov edx, dword [esp + 0x10]
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x440100]
mov ebp, dword [esp + 0x40]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x440500]
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x440900]
mov ecx, dword [esp + 0x3c]
shr eax, 0x18
xor edx, dword [eax*4 + 0x440d00]
movzx eax, byte [esp + 0x58]
xor edx, dword [eax*4 + 0x440100]
sub dword [esp + 0x1c], 1
mov dword [esp + 0x48], edx
jne 0x4025e0
mov dword [esp + 0x44], ebx
mov eax, dword [edi + 0x30]
mov edx, dword [edi + 0x38]
xor edx, ebx
xor eax, ecx
mov ecx, dword [edi + 0x34]
xor ecx, ebp
mov ebp, dword [edi + 0x3c]
xor ebp, dword [esp + 0x48]
movzx ebx, al
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x3c], bl
mov ebx, ebp
shr ebx, 8
movzx ebx, bl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x3d], bl
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x3e], bl
mov ebx, ecx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x3f], bl
movzx ebx, cl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x40], bl
mov ebx, eax
shr ebx, 8
movzx ebx, bl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x41], bl
mov ebx, ebp
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x42], bl
mov ebx, edx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x43], bl
movzx ebx, dl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x44], bl
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x45], bl
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x46], bl
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x441100]
mov ebx, ebp
shr ebx, 0x18
movzx ebx, byte [ebx + 0x441100]
shr ecx, 0x10
mov byte [esp + 0x47], bl
movzx ecx, cl
mov dword [esp + 0x58], ebp
movzx ebx, byte [esp + 0x58]
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x49], dl
movzx edx, byte [ecx + 0x441100]
mov ecx, dword [esp + 0x40]
xor ecx, dword [edi + 0x24]
shr eax, 0x18
mov al, byte [eax + 0x441100]
mov byte [esp + 0x4b], al
mov eax, dword [esp + 0x3c]
xor eax, dword [edi + 0x20]
mov byte [esp + 0x4a], dl
mov edx, dword [esp + 0x44]
xor edx, dword [edi + 0x28]
mov byte [esp + 0x48], bl
mov ebx, dword [esp + 0x48]
xor ebx, dword [edi + 0x2c]
xor ecx, dword [esp + 0x2c]
xor ebx, dword [esp + 0x34]
xor eax, dword [esp + 0x28]
xor edx, dword [esp + 0x30]
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x18]
push 0x10
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x2c]
push ebx
push ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], edx
call fcn.00414bb0
push 0x10
lea edx, [esp + 0x4c]
push edx
push esi
call fcn.00414bb0
mov eax, dword [esp + 0x3c]
sub eax, 1
add ebx, 0x10
add esp, 0x18
add esi, 0x10
test eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], eax
jg 0x402480
mov ecx, dword [edi + 0x1c]
lea eax, [ecx + 2]
shl ecx, 4
mov edx, dword [ecx + edi + 0x28]
xor edx, dword [ebx + 8]
lea ebp, [ecx + edi]
mov ecx, dword [ebp + 0x24]
xor ecx, dword [ebx + 4]
mov ebp, dword [ebp + 0x2c]
xor ebp, dword [ebx + 0xc]
shl eax, 4
mov eax, dword [eax + edi]
xor eax, dword [ebx]
mov dword [esp + 0x50], ecx
mov ecx, ebp
shr ecx, 8
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x440500]
xor ecx, dword [ebx*4 + 0x440900]
mov ebx, dword [esp + 0x50]
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x440d00]
movzx ebx, al
xor ecx, dword [ebx*4 + 0x440100]
mov ebx, ebp
shr ebx, 0x10
movzx ebx, bl
mov dword [esp + 0x54], edx
shr edx, 0x18
mov dword [esp + 0x10], edx
mov edx, dword [ebx*4 + 0x440900]
mov ebx, dword [esp + 0x10]
xor edx, dword [ebx*4 + 0x440d00]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edx, dword [ebx*4 + 0x440500]
movzx ebx, byte [esp + 0x50]
xor edx, dword [ebx*4 + 0x440100]
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x4c], eax
shr eax, 0x10
shr ebx, 8
movzx eax, al
mov dword [esp + 0x58], ebp
shr ebp, 0x18
movzx ebx, bl
mov dword [esp + 0x10], ebx
mov ebx, dword [ebp*4 + 0x440d00]
mov ebp, dword [esp + 0x10]
xor ebx, dword [ebp*4 + 0x440500]
mov dword [esp + 0x3c], ecx
xor ebx, dword [eax*4 + 0x440900]
mov eax, dword [esp + 0x54]
movzx ebp, al
xor ebx, dword [ebp*4 + 0x440100]
shr eax, 8
movzx ebp, al
mov eax, dword [esp + 0x50]
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x10], eax
mov eax, dword [ebp*4 + 0x440500]
mov ebp, dword [esp + 0x10]
xor eax, dword [ebp*4 + 0x440900]
mov dword [esp + 0x40], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
shr eax, 0x18
mov eax, dword [eax*4 + 0x440d00]
xor dword [esp + 0x18], eax
movzx eax, byte [esp + 0x58]
mov ebp, dword [esp + 0x18]
xor ebp, dword [eax*4 + 0x440100]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebp
add eax, 0xffffffff
cmp eax, 1
jle 0x402b36
mov ebp, eax
shl ebp, 4
lea ebp, [edi + ebp + 0x24]
add eax, 0xffffffff
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], eax
lea esp, [esp]
mov eax, dword [ebp - 4]
xor eax, ecx
mov ecx, dword [ebp]
xor ecx, edx
mov edx, dword [ebp + 4]
mov ebp, dword [ebp + 8]
xor ebp, dword [esp + 0x48]
xor edx, ebx
mov ebx, ebp
shr ebx, 8
mov dword [esp + 0x10], edx
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x440500]
shr edx, 0x10
mov dword [esp + 0x58], ebp
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x440900]
mov edx, dword [esp + 0x10]
mov ebp, ecx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x440d00]
movzx ebp, al
xor ebx, dword [ebp*4 + 0x440100]
mov ebp, edx
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x58]
shr ebx, 0x10
mov dword [esp + 0x10], edx
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x440900]
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x440d00]
mov edx, eax
shr edx, 8
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x440500]
movzx ebp, cl
xor ebx, dword [ebp*4 + 0x440100]
mov edx, ecx
shr edx, 8
movzx ebp, dl
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x58]
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x440d00]
xor ebx, dword [ebp*4 + 0x440500]
mov edx, eax
shr edx, 0x10
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x440900]
mov edx, dword [esp + 0x10]
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x440100]
mov ebp, dword [esp + 0x1c]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x440500]
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x440900]
mov ecx, dword [esp + 0x3c]
shr eax, 0x18
xor edx, dword [eax*4 + 0x440d00]
movzx eax, byte [esp + 0x58]
xor edx, dword [eax*4 + 0x440100]
sub ebp, 0x10
sub dword [esp + 0x18], 1
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x1c], ebp
jne 0x402a10
mov dword [esp + 0x44], ebx
mov eax, dword [edi + 0x30]
mov ebp, dword [edi + 0x3c]
xor ebp, dword [esp + 0x48]
xor eax, ecx
mov ecx, dword [edi + 0x34]
xor ecx, edx
mov edx, dword [edi + 0x38]
xor edx, ebx
movzx ebx, al
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x3c], bl
mov ebx, ebp
shr ebx, 8
movzx ebx, bl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x3d], bl
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x3e], bl
mov ebx, ecx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x3f], bl
movzx ebx, cl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x40], bl
mov ebx, eax
shr ebx, 8
movzx ebx, bl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x41], bl
mov ebx, ebp
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x42], bl
mov ebx, edx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x43], bl
movzx ebx, dl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x44], bl
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x45], bl
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x46], bl
shr edx, 8
mov ebx, ebp
shr ebx, 0x18
movzx ebx, byte [ebx + 0x441100]
movzx edx, dl
movzx edx, byte [edx + 0x441100]
shr ecx, 0x10
mov byte [esp + 0x47], bl
movzx ecx, cl
mov dword [esp + 0x58], ebp
movzx ebx, byte [esp + 0x58]
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x49], dl
movzx edx, byte [ecx + 0x441100]
mov ecx, dword [esp + 0x3c]
xor ecx, dword [edi + 0x20]
shr eax, 0x18
mov al, byte [eax + 0x441100]
mov byte [esp + 0x4a], dl
mov edx, dword [esp + 0x40]
xor edx, dword [edi + 0x24]
mov byte [esp + 0x48], bl
mov ebx, dword [esp + 0x44]
xor ebx, dword [edi + 0x28]
mov byte [esp + 0x4b], al
mov eax, dword [esp + 0x48]
xor eax, dword [edi + 0x2c]
xor ecx, dword [esp + 0x28]
xor eax, dword [esp + 0x34]
xor edx, dword [esp + 0x2c]
xor ebx, dword [esp + 0x30]
mov dword [esp + 0x48], eax
shr eax, 0x18
mov edi, eax
mov dword [esp + 0x3c], ecx
lea ecx, [edi - 1]
cmp ecx, 0xf
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebx
ja 0x402406
mov ecx, 0x10
sub ecx, edi
mov eax, ecx
cmp eax, 0x10
jge 0x4034c5
lea ebx, [ebx]
movzx edx, byte [esp + eax + 0x3c]
cmp edx, edi
jne 0x402406
add eax, 1
cmp eax, 0x10
jl 0x402cc0
jmp 0x4034c5
add ebp, 0xffffffff
test ebp, ebp
mov dword [esp + 0x24], ebp
jle 0x4030b8
mov ebp, ebx
sub ebp, esi
mov dword [esp + 0x20], ebp
jmp 0x402cf7
mov ebp, dword [esp + 0x20]
mov ecx, dword [edi + 0x1c]
lea edx, [ecx + 2]
shl edx, 4
mov eax, dword [edx + edi]
xor eax, dword [ebx]
shl ecx, 4
lea edx, [ecx + edi]
mov ecx, dword [esi + ebp + 4]
xor ecx, dword [edx + 0x24]
mov ebp, dword [edx + 0x28]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x20]
xor ebp, dword [edx + esi + 8]
mov dword [esp + 0x44], ebp
mov ebp, dword [edx + esi + 0xc]
mov edx, dword [esp + 0x10]
xor ebp, dword [edx + 0x2c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x44]
mov edx, ebp
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x440500]
mov dword [esp + 0x48], ebp
shr ebx, 0x10
movzx ebp, bl
xor edx, dword [ebp*4 + 0x440900]
mov ebp, ecx
shr ebp, 0x18
xor edx, dword [ebp*4 + 0x440d00]
movzx ebp, al
xor edx, dword [ebp*4 + 0x440100]
mov ebp, dword [esp + 0x44]
mov dword [esi], edx
mov edx, dword [esp + 0x48]
shr edx, 0x10
movzx edx, dl
mov edx, dword [edx*4 + 0x440900]
shr ebp, 0x18
xor edx, dword [ebp*4 + 0x440d00]
mov ebx, eax
shr ebx, 8
movzx ebp, bl
xor edx, dword [ebp*4 + 0x440500]
movzx ebp, cl
xor edx, dword [ebp*4 + 0x440100]
mov ebx, ecx
mov dword [esi + 4], edx
mov edx, dword [esp + 0x48]
shr edx, 0x18
mov edx, dword [edx*4 + 0x440d00]
shr ebx, 8
movzx ebp, bl
xor edx, dword [ebp*4 + 0x440500]
mov ebx, eax
shr ebx, 0x10
movzx ebp, bl
xor edx, dword [ebp*4 + 0x440900]
movzx ebp, byte [esp + 0x44]
xor edx, dword [ebp*4 + 0x440100]
mov ebx, dword [esp + 0x10]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x44]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x440500]
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x440900]
shr eax, 0x18
xor edx, dword [eax*4 + 0x440d00]
movzx eax, byte [esp + 0x48]
xor edx, dword [eax*4 + 0x440100]
mov dword [esi + 0xc], edx
mov eax, dword [edi + 0x1c]
sub eax, 1
cmp eax, 1
jle 0x402f61
mov ecx, eax
shl ecx, 4
lea ebx, [ecx + edi + 0x24]
add eax, 0xffffffff
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], eax
mov ebp, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
xor edx, dword [esi + 8]
xor ebp, dword [esi + 0xc]
xor ecx, dword [esi + 4]
xor eax, dword [esi]
mov dword [esp + 0x14], edx
mov ebx, ebp
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x440500]
shr edx, 0x10
mov dword [esp + 0x48], ebp
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x440900]
mov edx, dword [esp + 0x14]
mov ebp, ecx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x440d00]
movzx ebp, al
xor ebx, dword [ebp*4 + 0x440100]
mov ebp, edx
mov dword [esi], ebx
mov ebx, dword [esp + 0x48]
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x440900]
mov dword [esp + 0x14], edx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x440d00]
mov edx, eax
shr edx, 8
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x440500]
movzx ebp, cl
xor ebx, dword [ebp*4 + 0x440100]
mov edx, ecx
mov dword [esi + 4], ebx
mov ebx, dword [esp + 0x48]
shr edx, 8
movzx ebp, dl
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x440d00]
xor ebx, dword [ebp*4 + 0x440500]
mov edx, eax
shr edx, 0x10
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x440900]
mov edx, dword [esp + 0x14]
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x440100]
shr edx, 8
movzx edx, dl
mov dword [esi + 8], ebx
mov edx, dword [edx*4 + 0x440500]
mov ebx, dword [esp + 0x1c]
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x440900]
shr eax, 0x18
xor edx, dword [eax*4 + 0x440d00]
movzx eax, byte [esp + 0x48]
xor edx, dword [eax*4 + 0x440100]
sub ebx, 0x10
sub dword [esp + 0x10], 1
mov dword [esi + 0xc], edx
mov dword [esp + 0x1c], ebx
jne 0x402e44
mov ebx, dword [esp + 0x18]
mov eax, dword [edi + 0x30]
xor eax, dword [esi]
mov ebp, dword [esi + 8]
xor ebp, dword [edi + 0x38]
mov ecx, dword [esi + 4]
xor ecx, dword [edi + 0x34]
movzx edx, al
movzx edx, byte [edx + 0x441100]
mov dword [esp + 0x44], ebp
mov ebp, dword [esi + 0xc]
xor ebp, dword [edi + 0x3c]
mov byte [esi], dl
mov edx, ebp
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x441100]
mov byte [esi + 1], dl
mov edx, dword [esp + 0x44]
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x441100]
mov byte [esi + 2], dl
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + 0x441100]
mov byte [esi + 3], dl
movzx edx, cl
movzx edx, byte [edx + 0x441100]
mov byte [esi + 4], dl
mov edx, eax
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x441100]
mov byte [esi + 5], dl
mov edx, ebp
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x441100]
mov byte [esi + 6], dl
mov edx, dword [esp + 0x44]
shr edx, 0x18
movzx edx, byte [edx + 0x441100]
mov byte [esi + 7], dl
movzx edx, byte [esp + 0x44]
movzx edx, byte [edx + 0x441100]
mov byte [esi + 8], dl
mov edx, ecx
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x441100]
mov byte [esi + 9], dl
mov edx, eax
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x441100]
mov byte [esi + 0xa], dl
mov edx, ebp
shr edx, 0x18
movzx edx, byte [edx + 0x441100]
mov byte [esi + 0xb], dl
mov dword [esp + 0x48], ebp
movzx edx, byte [esp + 0x48]
movzx edx, byte [edx + 0x441100]
mov byte [esi + 0xc], dl
mov edx, dword [esp + 0x44]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x441100]
shr ecx, 0x10
mov byte [esi + 0xd], dl
movzx ecx, cl
movzx edx, byte [ecx + 0x441100]
mov byte [esi + 0xe], dl
shr eax, 0x18
mov al, byte [eax + 0x441100]
mov byte [esi + 0xf], al
mov ecx, dword [edi + 0x20]
xor dword [esi], ecx
mov edx, dword [edi + 0x24]
xor dword [esi + 4], edx
mov eax, dword [edi + 0x28]
xor dword [esi + 8], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 0x2c]
xor dword [esi + 0xc], ecx
sub eax, 1
add ebx, 0x10
add esi, 0x10
test eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], eax
jg 0x402cf3
mov ecx, dword [edi + 0x1c]
lea edx, [ecx + 2]
shl ecx, 4
lea ebp, [ecx + edi]
mov ecx, dword [ebp + 0x24]
xor ecx, dword [ebx + 4]
shl edx, 4
mov eax, dword [edx + edi]
xor eax, dword [ebx]
mov edx, dword [ebp + 0x28]
xor edx, dword [ebx + 8]
mov ebp, dword [ebp + 0x2c]
xor ebp, dword [ebx + 0xc]
mov dword [esp + 0x50], ecx
mov ecx, ebp
shr ecx, 8
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x440500]
xor ecx, dword [ebx*4 + 0x440900]
mov ebx, dword [esp + 0x50]
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x440d00]
movzx ebx, al
xor ecx, dword [ebx*4 + 0x440100]
mov ebx, ebp
shr ebx, 0x10
movzx ebx, bl
mov dword [esp + 0x54], edx
shr edx, 0x18
mov dword [esp + 0x14], edx
mov edx, dword [ebx*4 + 0x440900]
mov ebx, dword [esp + 0x14]
xor edx, dword [ebx*4 + 0x440d00]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edx, dword [ebx*4 + 0x440500]
movzx ebx, byte [esp + 0x50]
xor edx, dword [ebx*4 + 0x440100]
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x4c], eax
shr eax, 0x10
shr ebx, 8
movzx eax, al
mov dword [esp + 0x58], ebp
shr ebp, 0x18
movzx ebx, bl
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp*4 + 0x440d00]
mov ebp, dword [esp + 0x14]
xor ebx, dword [ebp*4 + 0x440500]
mov dword [esp + 0x3c], ecx
xor ebx, dword [eax*4 + 0x440900]
mov eax, dword [esp + 0x54]
movzx ebp, al
xor ebx, dword [ebp*4 + 0x440100]
shr eax, 8
movzx ebp, al
mov eax, dword [esp + 0x50]
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x14], eax
mov eax, dword [ebp*4 + 0x440500]
mov ebp, dword [esp + 0x14]
xor eax, dword [ebp*4 + 0x440900]
mov dword [esp + 0x40], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
shr eax, 0x18
mov eax, dword [eax*4 + 0x440d00]
xor dword [esp + 0x18], eax
movzx eax, byte [esp + 0x58]
mov ebp, dword [esp + 0x18]
xor ebp, dword [eax*4 + 0x440100]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebp
add eax, 0xffffffff
cmp eax, 1
jle 0x403346
mov ebp, eax
shl ebp, 4
lea ebp, [edi + ebp + 0x24]
add eax, 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], eax
lea ecx, [ecx]
mov eax, dword [ebp - 4]
xor eax, ecx
mov ecx, dword [ebp]
xor ecx, edx
mov edx, dword [ebp + 4]
mov ebp, dword [ebp + 8]
xor ebp, dword [esp + 0x48]
xor edx, ebx
mov ebx, ebp
shr ebx, 8
mov dword [esp + 0x14], edx
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x440500]
shr edx, 0x10
mov dword [esp + 0x58], ebp
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x440900]
mov edx, dword [esp + 0x14]
mov ebp, ecx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x440d00]
movzx ebp, al
xor ebx, dword [ebp*4 + 0x440100]
mov ebp, edx
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x58]
shr ebx, 0x10
mov dword [esp + 0x14], edx
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x440900]
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x440d00]
mov edx, eax
shr edx, 8
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x440500]
movzx ebp, cl
xor ebx, dword [ebp*4 + 0x440100]
mov edx, ecx
shr edx, 8
movzx ebp, dl
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x58]
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x440d00]
xor ebx, dword [ebp*4 + 0x440500]
mov edx, eax
shr edx, 0x10
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x440900]
mov edx, dword [esp + 0x14]
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x440100]
mov ebp, dword [esp + 0x10]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x440500]
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x440900]
mov ecx, dword [esp + 0x3c]
shr eax, 0x18
xor edx, dword [eax*4 + 0x440d00]
movzx eax, byte [esp + 0x58]
xor edx, dword [eax*4 + 0x440100]
sub ebp, 0x10
sub dword [esp + 0x1c], 1
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], ebp
jne 0x403220
mov dword [esp + 0x44], ebx
mov eax, dword [edi + 0x30]
mov ebp, dword [edi + 0x3c]
xor ebp, dword [esp + 0x48]
xor eax, ecx
mov ecx, dword [edi + 0x34]
xor ecx, edx
mov edx, dword [edi + 0x38]
xor edx, ebx
movzx ebx, al
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x3c], bl
mov ebx, ebp
shr ebx, 8
movzx ebx, bl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x3d], bl
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x3e], bl
mov ebx, ecx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x3f], bl
movzx ebx, cl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x40], bl
mov ebx, eax
shr ebx, 8
movzx ebx, bl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x41], bl
mov ebx, ebp
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x42], bl
mov ebx, edx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x43], bl
movzx ebx, dl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x44], bl
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x45], bl
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + 0x441100]
mov byte [esp + 0x46], bl
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x441100]
mov ebx, ebp
shr ebx, 0x18
movzx ebx, byte [ebx + 0x441100]
shr ecx, 0x10
movzx ecx, cl
mov byte [esp + 0x47], bl
mov byte [esp + 0x49], dl
movzx edx, byte [ecx + 0x441100]
mov ecx, dword [edi + 0x20]
xor dword [esp + 0x3c], ecx
mov dword [esp + 0x58], ebp
movzx ebx, byte [esp + 0x58]
movzx ebx, byte [ebx + 0x441100]
shr eax, 0x18
mov al, byte [eax + 0x441100]
mov byte [esp + 0x4a], dl
mov edx, dword [edi + 0x24]
xor dword [esp + 0x40], edx
mov byte [esp + 0x4b], al
mov eax, dword [edi + 0x28]
xor dword [esp + 0x44], eax
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x48]
xor eax, dword [edi + 0x2c]
mov dword [esp + 0x48], eax
shr eax, 0x18
mov edi, eax
cmp edi, 0x10
jge 0x402406
mov ecx, 0x10
sub ecx, edi
mov eax, ecx
cmp eax, 0x10
jge 0x4034c5
jmp 0x4034b0
movzx edx, byte [esp + eax + 0x3c]
cmp edx, edi
jne 0x402406
add eax, 1
cmp eax, 0x10
jl 0x4034b0
push ecx
lea eax, [esp + 0x40]
push eax
push esi
call fcn.00414bb0
mov eax, dword [esp + 0x44]
add esp, 0xc
shl eax, 4
sub eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00414b1e
add esp, 0x50
ret 0x10
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00414b1e
add esp, 0x50
ret 0x10