Function at 0x403820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x7c], esi
je 0x403d44
lea ecx, [ebp - 0x44]
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x8c], eax
mov eax, ebx
sub eax, ecx
mov dword [ebp - 0x70], eax
lea eax, [ebx + 0x3f]
mov dword [ebp - 0x88], eax
mov eax, ecx
sub eax, ebx
mov dword [ebp - 0x90], eax
lea ecx, [ecx]
movdqu xmm0, xmmword [edi]
mov dword [ebp - 0x80], 0xa
movdqu xmmword [ebp - 0xd4], xmm0
movdqu xmm0, xmmword [edi + 0x10]
movdqu xmmword [ebp - 0xc4], xmm0
movdqu xmm0, xmmword [edi + 0x20]
movdqu xmmword [ebp - 0xb4], xmm0
mov eax, dword [ebp - 0xac]
movdqu xmm0, xmmword [edi + 0x30]
mov ebx, dword [ebp - 0xa8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xcc]
movdqu xmmword [ebp - 0xa4], xmm0
mov edi, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp - 0x9c]
mov esi, dword [ebp - 0xa0]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x4c], eax
mov edi, edi
add eax, edi
mov edi, dword [ebp - 0x78]
rol eax, 7
xor dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x4c]
rol eax, 9
xor dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x5c]
rol eax, 0xd
xor edi, eax
mov eax, dword [ebp - 0x50]
add eax, edi
mov dword [ebp - 0x78], edi
ror eax, 0xe
xor dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x64]
rol eax, 7
xor dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
add eax, dword [ebp - 0x64]
rol eax, 9
xor esi, eax
mov edi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x60]
add eax, esi
rol eax, 0xd
xor dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
add eax, esi
ror eax, 0xe
xor dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x48]
add eax, edi
rol eax, 7
xor edx, eax
mov eax, dword [ebp - 0x48]
add eax, edx
rol eax, 9
xor dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
add eax, edx
rol eax, 0xd
xor edi, eax
mov eax, dword [ebp - 0x58]
add eax, edi
mov dword [ebp - 0x68], edi
mov edi, dword [ebp - 0x6c]
ror eax, 0xe
xor dword [ebp - 0x48], eax
lea eax, [ebx + ecx]
rol eax, 7
xor edi, eax
mov dword [ebp - 0x6c], edi
lea eax, [edi + ecx]
mov edi, dword [ebp - 0x74]
rol eax, 9
xor edi, eax
mov eax, dword [ebp - 0x6c]
add eax, edi
mov dword [ebp - 0x74], edi
rol eax, 0xd
xor ebx, eax
lea eax, [edi + ebx]
ror eax, 0xe
xor ecx, eax
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x6c]
rol eax, 7
xor dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xd0], eax
add eax, dword [ebp - 0x4c]
rol eax, 9
xor dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xcc], eax
add eax, dword [ebp - 0x54]
rol eax, 0xd
mov edi, dword [ebp - 0x6c]
xor edi, eax
mov eax, dword [ebp - 0x58]
add eax, edi
mov dword [ebp - 0x6c], edi
ror eax, 0xe
mov dword [ebp - 0xc8], edi
mov edi, dword [ebp - 0x4c]
xor edi, eax
mov eax, dword [ebp - 0x64]
add eax, dword [ebp - 0x5c]
rol eax, 7
xor dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xbc], eax
add eax, dword [ebp - 0x64]
rol eax, 9
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0xd4], edi
mov edi, dword [ebp - 0x74]
xor edi, eax
mov eax, dword [ebp - 0x68]
add eax, edi
mov dword [ebp - 0x74], edi
rol eax, 0xd
xor dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xc4], eax
add eax, edi
ror eax, 0xe
mov dword [ebp - 0xb8], edi
mov edi, dword [ebp - 0x64]
xor edi, eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0xc0], edi
mov edi, dword [ebp - 0x60]
add eax, edi
rol eax, 7
xor ebx, eax
mov eax, dword [ebp - 0x48]
add eax, ebx
rol eax, 9
xor dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xb4], eax
add eax, ebx
rol eax, 0xd
xor edi, eax
mov eax, edi
mov dword [ebp - 0x60], edi
mov edi, dword [ebp - 0x78]
mov dword [ebp - 0xb0], eax
add eax, dword [ebp - 0x50]
ror eax, 0xe
xor dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xac], eax
lea eax, [ecx + edx]
rol eax, 7
xor edi, eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0xa4], edi
lea eax, [ecx + edi]
rol eax, 9
xor esi, eax
lea eax, [esi + edi]
rol eax, 0xd
xor edx, eax
lea eax, [edx + esi]
ror eax, 0xe
xor ecx, eax
dec dword [ebp - 0x80]
mov eax, dword [ebp - 0x4c]
jne 0x403940
mov edi, dword [ebp - 0x84]
mov dword [ebp - 0x9c], edx
lea edx, [ebp - 0xd4]
mov dword [ebp - 0x98], ecx
xor ecx, ecx
mov dword [ebp - 0xa0], esi
mov esi, dword [ebp - 0x7c]
lea eax, [edi + 0x3c]
mov dword [ebp - 0xa8], ebx
mov ebx, dword [ebp - 0x94]
cmp edx, eax
ja 0x403b7c
lea eax, [ebp - 0x98]
cmp eax, edi
jb 0x403b7c
mov edx, edi
lea eax, [ebp - 0xd4]
sub edx, eax
lea eax, [edx + ecx*4]
mov eax, dword [ebp + eax - 0xd4]
add dword [ebp + ecx*4 - 0xd4], eax
inc ecx
cmp ecx, 0x10
jl 0x403b63
jmp 0x403baa
lea eax, [ebp - 0xd4]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov ecx, 4
lea ecx, [ecx]
lea eax, [eax + 0x10]
movdqu xmm0, xmmword [eax - 0x10]
movdqu xmm1, xmmword [eax + edx - 0x10]
paddd xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
dec ecx
jne 0x403b90
inc dword [edi + 0x20]
movdqu xmm0, xmmword [ebp - 0xd4]
movdqu xmmword [ebp - 0x44], xmm0
movdqu xmm0, xmmword [ebp - 0xc4]
movdqu xmmword [ebp - 0x34], xmm0
movdqu xmm0, xmmword [ebp - 0xb4]
movdqu xmmword [ebp - 0x24], xmm0
movdqu xmm0, xmmword [ebp - 0xa4]
movdqu xmmword [ebp - 0x14], xmm0
jne 0x403be6
inc dword [edi + 0x24]
xor edx, edx
cmp dword [ebp + 0xc], 0x40
jbe 0x403ca2
lea eax, [ebp - 5]
cmp esi, eax
ja 0x403c03
lea eax, [esi + 0x3f]
lea ecx, [ebp - 0x44]
cmp eax, ecx
jae 0x403c12
cmp esi, dword [ebp - 0x88]
ja 0x403c38
lea eax, [esi + 0x3f]
cmp eax, ebx
jb 0x403c38
mov edi, dword [ebp - 0x8c]
mov esi, dword [ebp - 0x70]
jmp 0x403c20
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor al, byte [ecx]
mov byte [edi + ecx], al
cmp edx, 0x40
jl 0x403c20
mov esi, dword [ebp - 0x7c]
jmp 0x403c6b
mov edi, dword [ebp - 0x90]
mov edx, esi
mov eax, ebx
sub edx, ebx
mov ecx, 4
lea esp, [esp]
lea eax, [eax + 0x10]
movdqu xmm0, xmmword [eax - 0x10]
movdqu xmm1, xmmword [edi + eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [edx + eax - 0x10], xmm1
dec ecx
jne 0x403c50
sub dword [ebp + 0xc], 0x40
add esi, 0x40
add dword [ebp - 0x8c], 0x40
add ebx, 0x40
add dword [ebp - 0x88], 0x40
sub dword [ebp - 0x90], 0x40
mov edi, dword [ebp - 0x84]
add dword [ebp - 0x70], 0x40
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x94], ebx
jmp 0x403880
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x403d44
cmp edi, 0x10
jb 0x403d27
lea ecx, [esi - 1]
xor edx, edx
lea eax, [ebp + edi - 0x45]
add ecx, edi
cmp esi, eax
ja 0x403cc8
lea eax, [ebp - 0x44]
cmp ecx, eax
jae 0x403d27
lea eax, [ebx - 1]
add eax, edi
cmp esi, eax
ja 0x403cd5
cmp ecx, ebx
jae 0x403d27
mov eax, edi
mov ecx, edi
mov edi, esi
and eax, 0xf
sub edi, ebx
lea esi, [ebp - 0x44]
sub ecx, eax
mov dword [ebp - 0x80], edi
mov edi, dword [ebp + 0xc]
sub esi, ebx
mov dword [ebp - 0x70], esi
mov eax, ebx
mov esi, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x70]
jmp 0x403d00
movdqu xmm0, xmmword [eax]
add edx, 0x10
lea eax, [eax + 0x10]
movdqu xmm1, xmmword [eax + ebx - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax + esi - 0x10], xmm1
cmp edx, ecx
jb 0x403d00
mov esi, dword [ebp - 0x7c]
mov ebx, dword [ebp - 0x94]
cmp edx, edi
jae 0x403d44
lea eax, [ebp - 0x44]
sub ebx, eax
sub esi, eax
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [ebx + ecx]
xor al, byte [ecx]
mov byte [esi + ecx], al
cmp edx, edi
jb 0x403d32
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004048b1
mov esp, ebp
pop ebp
ret