Function at 0x43764a
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
pxor xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
mov dword [esp + 0x28], 0x10325476
mov dword [esp + 0x1c], 0x98badcfe
mov eax, 0xefcdab89
mov dword [esp + 0x30], 0x67452301
test edx, edx
je 0x4370c0
mov esi, dword [edx]
mov edi, dword [edx + 4]
mov ebx, esi
or ebx, edi
jne 0x4370ac
xor edi, edi
cmp dword [edx + 8], 0
jne 0x4370ac
cmp dword [edx + 0xc], 0
je 0x4370c0
mov eax, dword [edx + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], esi
mov eax, edi
mov edx, dword [ebp + 0x18]
cmp ecx, 5
ja case.default.0x4370d8
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x20], edx
mov dl, 1
mov dword [esp + 0x24], edx
jmp dword [ecx*4 + 0x4a6c70]
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
test ebx, ebx
je 0x437951
cmp ebx, 1
jne 0x43796f
mov dword [esp + 0xc], 0x12a3fe2d
mov ecx, 0x37abe8f9
mov eax, dword [ebp + 0xc]
test bl, 1
je 0x437a47
cmp byte [esp + 0x24], 0
je 0x437a28
mov eax, dword [esp + 0x20]
movsx eax, byte [eax]
jmp 0x437a2b
mov dword [edx], 0
mov eax, 0x7f2bb759
jmp 0x437a6c
mov dword [esp + 0x24], 0
test ebx, ebx
jle 0x437a4d
xor ecx, ecx
mov dword [esp + 0xc], eax
mov edx, ebx
jmp 0x4373e4
mov eax, dword [esp + 0x28]
mov ecx, eax
mov edx, dword [esp + 0x1c]
xor ecx, edx
mov ebx, dword [esp + 0xc]
and ecx, ebx
xor ecx, eax
add ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x44]
mov dword [esp + 0x10], esi
add ecx, eax
rol ecx, 3
mov dword [esp + 0x1c], edx
mov esi, edx
xor esi, ebx
and esi, ecx
xor esi, edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
add eax, edx
add esi, eax
rol esi, 7
mov edx, ecx
mov dword [esp + 0xc], ebx
xor edx, ebx
and edx, esi
xor edx, ebx
mov edi, dword [esp + 0x48]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
add eax, edi
add edx, eax
rol edx, 0xb
mov eax, esi
xor eax, ecx
and eax, edx
xor eax, ecx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x34], ebx
mov edi, dword [esp + 0xc]
add edi, ebx
add eax, edi
rol eax, 0x13
mov edi, edx
xor edi, esi
and edi, eax
xor edi, esi
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x2c], ebx
add ecx, ebx
add ecx, edi
rol ecx, 3
mov edi, eax
xor edi, edx
and edi, ecx
xor edi, edx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x3c], ebx
add esi, ebx
add esi, edi
rol esi, 7
mov edi, ecx
xor edi, eax
and edi, esi
xor edi, eax
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x38], ebx
add edx, ebx
add edx, edi
rol edx, 0xb
mov edi, esi
xor edi, ecx
and edi, edx
xor edi, ecx
mov ebx, dword [esp + 0x5c]
add eax, ebx
mov dword [esp + 0x60], ebx
add eax, edi
rol eax, 0x13
mov edi, eax
and edi, edx
add ecx, dword [esp + 0x10]
add ecx, edi
mov edi, eax
xor edi, edx
and edi, esi
add ecx, edi
add ecx, 0x5a827999
rol ecx, 3
mov edi, ecx
and edi, eax
add esi, dword [esp + 0x34]
add esi, edi
mov edi, ecx
xor edi, eax
and edi, edx
add esi, edi
add esi, 0x5a827999
rol esi, 5
mov edi, esi
and edi, ecx
add edx, dword [esp + 0x3c]
add edx, edi
mov edi, esi
xor edi, ecx
and edi, eax
add edx, edi
add edx, 0x5a827999
rol edx, 9
mov edi, edx
and edi, esi
add eax, ebx
add eax, edi
mov edi, edx
xor edi, esi
and edi, ecx
add eax, edi
add eax, 0x5a827999
rol eax, 0xd
mov edi, eax
and edi, edx
add ecx, dword [esp + 0x14]
add ecx, edi
mov edi, eax
xor edi, edx
and edi, esi
add ecx, edi
add ecx, 0x5a827999
rol ecx, 3
mov edi, ecx
and edi, eax
add esi, dword [esp + 0x18]
add esi, edi
mov edi, ecx
xor edi, eax
and edi, edx
add esi, edi
add esi, 0x5a827999
rol esi, 5
mov edi, esi
and edi, ecx
add edx, dword [esp + 0x2c]
add edx, edi
mov edi, esi
xor edi, ecx
and edi, eax
add edx, edi
add edx, 0x5a827999
rol edx, 9
mov edi, edx
and edi, esi
add eax, dword [esp + 0x38]
add eax, edi
mov ebx, edx
xor ebx, esi
mov edi, ebx
and edi, ecx
add edi, eax
add edi, 0x5a827999
add ecx, dword [esp + 0x34]
rol edi, 0xd
xor ebx, edi
add ebx, ecx
add ebx, 0x6ed9eba1
add esi, dword [esp + 0x60]
rol ebx, 3
mov eax, ebx
xor eax, edi
mov ecx, eax
xor ecx, edx
add esi, ecx
add esi, 0x6ed9eba1
add edx, dword [esp + 0x18]
rol esi, 9
xor eax, esi
add eax, edx
add eax, 0x6ed9eba1
add edi, dword [esp + 0x38]
rol eax, 0xb
mov ecx, esi
xor ecx, ebx
xor ecx, eax
add ecx, edi
add ecx, 0x6ed9eba1
rol ecx, 0xf
add ebx, dword [esp + 0x10]
mov edx, eax
xor edx, esi
xor edx, ecx
add edx, ebx
add edx, 0x6ed9eba1
add esi, dword [esp + 0x3c]
rol edx, 3
mov edi, ecx
xor edi, eax
xor edi, edx
add esi, edi
add esi, 0x6ed9eba1
rol esi, 9
add eax, dword [esp + 0x14]
mov edi, edx
xor edi, ecx
xor edi, esi
add eax, edi
add eax, 0x6ed9eba1
add ecx, dword [esp + 0x2c]
mov edi, esi
xor edi, edx
rol eax, 0xb
xor edi, eax
add ecx, edi
add ecx, 0x6ed9eba1
rol ecx, 0xf
add dword [esp + 0x30], edx
add dword [esp + 0xc], ecx
add dword [esp + 0x1c], eax
add dword [esp + 0x28], esi
add dword [esp + 0x20], 0x20
mov ecx, dword [esp + 0x68]
add ecx, 1
mov eax, dword [esp + 0x64]
cmp eax, 0x20
lea edx, [eax - 0x20]
mov ebx, dword [ebp + 0x10]
jle 0x437a51
cmp edx, 0x20
mov eax, 0x20
cmovb eax, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x68], ecx
mov eax, ecx
shl eax, 5
mov ecx, ebx
sub ecx, eax
cmp ecx, 0x20
mov eax, 0x20
cmovae ecx, eax
mov eax, edx
shl eax, 8
mov dword [esp + 0x64], edx
or eax, edx
mov ebx, eax
shl ebx, 0x10
or ebx, eax
mov dword [esp + 0x14], 8
mov eax, 0
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x40]
mov dword [esp + 0x2c], ecx
cmp ecx, 1
jne 0x4374b0
test byte [esp + 0x2c], 1
mov edi, dword [esp + 0x18]
je 0x437470
mov ecx, dword [esp + 0x20]
movsx ecx, byte [ecx + eax]
movzx esi, cl
cmp byte [esp + 0x24], 0
cmovne esi, ecx
shl ebx, 8
add ebx, esi
not eax
test al, 3
jne 0x437470
mov dword [edx], ebx
add edx, 4
add dword [esp + 0x14], 0xffffffff
mov ebx, edi
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x437160
mov dword [edx], ebx
cmp eax, 1
je 0x437160
mov ebx, eax
sub ebx, 2
mov eax, 0
cmovb ebx, eax
add ebx, 1
cmp ebx, 8
jae 0x437521
mov eax, dword [esp + 0x14]
jmp 0x43761b
and dword [esp + 0x10], 0x3e
mov dword [esp + 0x14], 8
xor eax, eax
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x40]
jmp 0x4374df
add eax, 2
mov edi, ebx
cmp dword [esp + 0x10], eax
je 0x43743b
mov esi, dword [esp + 0x20]
movsx ecx, byte [esi + eax]
movzx ebx, cl
shl edi, 8
cmp byte [esp + 0x24], 0
cmovne ebx, ecx
movsx ecx, byte [esi + eax + 1]
movzx esi, cl
cmovne esi, ecx
add ebx, edi
shl ebx, 8
add ebx, esi
lea ecx, [eax + 1]
not ecx
test cl, 3
jne 0x4374d0
mov dword [edx], ebx
add edx, 4
add dword [esp + 0x14], 0xffffffff
mov ebx, dword [esp + 0x18]
jmp 0x4374d0
mov eax, ebx
and eax, 0xfffffff8
movd xmm0, edi
pshufd xmm0, xmm0, 0
mov dword [esp + 0x10], eax
lea esi, [eax - 8]
mov edi, esi
shr edi, 3
add edi, 1
mov ecx, edi
and ecx, 7
xor eax, eax
cmp esi, 0x38
jb 0x4375e0
and edi, 0xfffffff8
xor eax, eax
nop word cs:[eax + eax]
nop dword [eax]
movdqu xmmword [edx + eax*4 + 4], xmm0
movdqu xmmword [edx + eax*4 + 0x14], xmm0
movdqu xmmword [edx + eax*4 + 0x24], xmm0
movdqu xmmword [edx + eax*4 + 0x34], xmm0
movdqu xmmword [edx + eax*4 + 0x44], xmm0
movdqu xmmword [edx + eax*4 + 0x54], xmm0
movdqu xmmword [edx + eax*4 + 0x64], xmm0
movdqu xmmword [edx + eax*4 + 0x74], xmm0
movdqu xmmword [edx + eax*4 + 0x84], xmm0
movdqu xmmword [edx + eax*4 + 0x94], xmm0
movdqu xmmword [edx + eax*4 + 0xa4], xmm0
movdqu xmmword [edx + eax*4 + 0xb4], xmm0
movdqu xmmword [edx + eax*4 + 0xc4], xmm0
movdqu xmmword [edx + eax*4 + 0xd4], xmm0
movdqu xmmword [edx + eax*4 + 0xe4], xmm0
movdqu xmmword [edx + eax*4 + 0xf4], xmm0
add eax, 0x40
add edi, 0xfffffff8
jne 0x437560
test ecx, ecx
je 0x437602
lea eax, [edx + eax*4]
add eax, 0x14
shl ecx, 5
xor edi, edi
nop
movdqu xmmword [eax + edi - 0x10], xmm0
movdqu xmmword [eax + edi], xmm0
add edi, 0x20
cmp ecx, edi
jne 0x4375f0
mov ecx, dword [esp + 0x10]
cmp ebx, ecx
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
je 0x437160
sub eax, ecx
lea edx, [edx + ecx*4]
add eax, 1
add edx, 4
nop word cs:[eax + eax]
nop dword [eax + eax]
mov dword [edx], edi
add eax, 0xffffffff
add edx, 4
cmp eax, 2
ja 0x437630
jmp 0x437160
mov dword [esp + 0x24], 0
test ebx, ebx
jle 0x43795e
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
xor ecx, ecx
mov edx, ebx
nop word cs:[eax + eax]
nop dword [eax]
cmp edx, 0x10
mov eax, 0x10
cmovb eax, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], ecx
mov eax, ecx
shl eax, 4
mov esi, ebx
sub esi, eax
cmp esi, 0x10
mov eax, 0x10
cmovae esi, eax
mov eax, edx
shl eax, 8
mov dword [esp + 0x34], edx
or eax, edx
mov ecx, eax
shl ecx, 0x10
or ecx, eax
mov dword [esp + 0x18], 4
mov ebx, 0
mov dword [esp + 0x14], ecx
mov eax, ecx
lea edi, [esp + 0x40]
mov dword [esp + 0x28], esi
cmp esi, 1
jne 0x4378e0
test byte [esp + 0x28], 1
je 0x437701
mov ecx, dword [esp + 0x20]
movsx ecx, byte [ecx + ebx]
movzx edx, cl
cmp byte [esp + 0x24], 0
cmovne edx, ecx
shl eax, 8
add eax, edx
not ebx
test bl, 3
jne 0x437701
mov dword [edi], eax
add edi, 4
add dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test edx, edx
mov ecx, dword [esp + 0x14]
jle 0x43783d
mov dword [edi], eax
cmp edx, 1
je 0x43783d
mov esi, edx
sub esi, 2
mov eax, 0
cmovb esi, eax
add esi, 1
cmp esi, 8
jb 0x437827
mov eax, esi
and eax, 0xfffffff8
movd xmm0, ecx
pshufd xmm0, xmm0, 0
mov dword [esp + 0x10], eax
add eax, 0xfffffff8
mov ebx, eax
shr ebx, 3
add ebx, 1
mov edx, ebx
and edx, 7
xor ecx, ecx
cmp eax, 0x38
jb 0x4377f0
and ebx, 0xfffffff8
xor ecx, ecx
nop word [eax + eax]
movdqu xmmword [edi + ecx*4 + 4], xmm0
movdqu xmmword [edi + ecx*4 + 0x14], xmm0
movdqu xmmword [edi + ecx*4 + 0x24], xmm0
movdqu xmmword [edi + ecx*4 + 0x34], xmm0
movdqu xmmword [edi + ecx*4 + 0x44], xmm0
movdqu xmmword [edi + ecx*4 + 0x54], xmm0
movdqu xmmword [edi + ecx*4 + 0x64], xmm0
movdqu xmmword [edi + ecx*4 + 0x74], xmm0
movdqu xmmword [edi + ecx*4 + 0x84], xmm0
movdqu xmmword [edi + ecx*4 + 0x94], xmm0
movdqu xmmword [edi + ecx*4 + 0xa4], xmm0
movdqu xmmword [edi + ecx*4 + 0xb4], xmm0
movdqu xmmword [edi + ecx*4 + 0xc4], xmm0
movdqu xmmword [edi + ecx*4 + 0xd4], xmm0
movdqu xmmword [edi + ecx*4 + 0xe4], xmm0
movdqu xmmword [edi + ecx*4 + 0xf4], xmm0
add ecx, 0x40
add ebx, 0xfffffff8
jne 0x437770
test edx, edx
je 0x437812
lea eax, [edi + ecx*4]
add eax, 0x14
shl edx, 5
xor ecx, ecx
nop
movdqu xmmword [eax + ecx - 0x10], xmm0
movdqu xmmword [eax + ecx], xmm0
add ecx, 0x20
cmp edx, ecx
jne 0x437800
mov eax, dword [esp + 0x10]
cmp esi, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
je 0x43783d
sub edx, eax
lea edi, [edi + eax*4]
add edx, 1
add edi, 4
nop dword [eax]
mov dword [edi], ecx
add edx, 0xffffffff
add edi, 4
cmp edx, 2
ja 0x437830
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], eax
mov esi, 0x9e3779b9
mov edi, 0xfffffff0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
nop
mov ecx, eax
shl eax, 4
add eax, dword [esp + 0x10]
lea ebx, [ecx + esi]
xor ebx, eax
mov eax, ecx
shr eax, 5
add eax, dword [esp + 0x14]
xor eax, ebx
add edx, eax
mov eax, edx
shl eax, 4
add eax, dword [esp + 0x18]
lea ebx, [esi + edx]
xor ebx, eax
mov eax, edx
shr eax, 5
add eax, dword [esp + 0x28]
xor eax, ebx
add eax, ecx
add esi, 0x9e3779b9
inc edi
jne 0x437870
add dword [esp + 0xc], edx
add dword [esp + 0x1c], eax
add dword [esp + 0x20], 0x10
mov ecx, dword [esp + 0x2c]
add ecx, 1
mov eax, dword [esp + 0x34]
cmp eax, 0x10
lea edx, [eax - 0x10]
mov ebx, dword [ebp + 0x10]
jg 0x437670
jmp 0x437a51
and dword [esp + 0x10], 0x1e
mov dword [esp + 0x18], 4
xor ebx, ebx
mov ecx, dword [esp + 0x14]
lea edi, [esp + 0x40]
jmp 0x43790f
add ebx, 2
mov ecx, eax
cmp dword [esp + 0x10], ebx
je 0x4376cd
mov esi, dword [esp + 0x20]
movsx edx, byte [esi + ebx]
movzx eax, dl
shl ecx, 8
cmp byte [esp + 0x24], 0
cmovne eax, edx
movsx edx, byte [esi + ebx + 1]
movzx esi, dl
cmovne esi, edx
add eax, ecx
shl eax, 8
add eax, esi
lea ecx, [ebx + 1]
not ecx
test cl, 3
jne 0x437900
mov dword [edi], eax
add edi, 4
add dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x14]
jmp 0x437900
mov dword [esp + 0xc], 0x2547fc5a
jmp 0x437a51
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], eax
jmp 0x437a51
mov edx, ebx
and edx, 0xfffffffe
mov dword [esp + 0xc], 0x12a3fe2d
mov ecx, 0x37abe8f9
mov eax, dword [ebp + 0xc]
jmp 0x4379cd
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x20]
movsx esi, byte [edi]
add edi, 1
mov dword [esp + 0x20], edi
imul esi, esi, 0x6d22f5
xor esi, ecx
mov edi, esi
mov eax, dword [esp + 0xc]
add edi, eax
lea eax, [esi + eax - 0x7fffffff]
cmovns eax, edi
mov dword [esp + 0xc], eax
add edx, 0xfffffffe
mov eax, dword [esp + 0x10]
je 0x437110
cmp byte [esp + 0x24], 0
je 0x4379f0
mov edi, dword [esp + 0x20]
movsx esi, byte [edi]
add edi, 1
mov dword [esp + 0x20], edi
jmp 0x4379f6
movzx esi, byte [eax]
add eax, 1
imul esi, esi, 0x6d22f5
xor esi, dword [esp + 0xc]
mov edi, esi
add edi, ecx
lea ecx, [esi + ecx - 0x7fffffff]
cmovns ecx, edi
cmp byte [esp + 0x24], 0
jne 0x437990
movzx esi, byte [eax]
add eax, 1
mov dword [esp + 0x10], eax
jmp 0x4379a2
movzx eax, byte [eax]
imul eax, eax, 0x6d22f5
xor eax, dword [esp + 0xc]
lea edx, [eax + ecx]
add edx, 0x80000001
add eax, ecx
cmovns edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add eax, eax
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0xc]
and ecx, 0xfffffffe
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
xor eax, eax
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x437a6c
mov ecx, dword [esp + 0x1c]
mov dword [edx], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret