Function at 0x41d5b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x581980]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc4], eax
xor eax, eax
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xc8], edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
jmp 0x41d630
mov edx, dword [ecx]
inc dword [ebp + edx*4 - 0x48]
lea edx, [ebp + edx*4 - 0x48]
add ecx, 4
dec esi
jne 0x41d630
mov ecx, dword [ebp - 0xb4]
cmp dword [ebp - 0x48], ecx
jne 0x41d662
mov dword [ebx], eax
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f2889
mov esp, ebp
pop ebp
ret
mov edx, dword [edi]
mov dword [ebp - 0x8c], edx
mov ecx, 1
nop
cmp dword [ebp + ecx*4 - 0x48], eax
jne 0x41d67c
inc ecx
cmp ecx, 0xf
jbe 0x41d670
mov dword [ebp - 0x90], ecx
cmp edx, ecx
jae 0x41d68e
mov dword [ebp - 0x8c], ecx
mov edx, ecx
mov esi, 0xf
cmp dword [ebp + esi*4 - 0x48], eax
jne 0x41d69c
dec esi
jne 0x41d693
mov dword [ebp - 0xa8], esi
cmp edx, esi
jbe 0x41d6ae
mov dword [ebp - 0x8c], esi
mov edx, esi
mov dword [edi], edx
mov edi, 1
shl edi, cl
cmp ecx, esi
jae 0x41d6d1
jmp 0x41d6c0
sub edi, dword [ebp + ecx*4 - 0x48]
js 0x41d7c9
inc ecx
add edi, edi
cmp ecx, esi
jb 0x41d6c0
lea ecx, [esi*4]
lea ebx, [ebp + ecx - 0x48]
mov dword [ebp - 0xa4], ecx
mov ecx, dword [ebx]
sub edi, ecx
mov dword [ebp - 0xd4], edi
js 0x41d7c9
add ecx, edi
mov dword [ebx], ecx
xor ecx, ecx
dec esi
mov dword [ebp - 0x84], eax
je 0x41d714
xor edi, edi
add ecx, dword [ebp + edi - 0x44]
add edi, 4
dec esi
mov dword [ebp + edi - 0x84], ecx
jne 0x41d703
mov esi, dword [ebp - 0x9c]
xor edi, edi
lea esp, [esp]
mov ecx, dword [esi]
add esi, 4
mov dword [ebp - 0x94], esi
cmp ecx, eax
je 0x41d74f
mov esi, dword [ebp + ecx*4 - 0x88]
mov ebx, dword [ebp - 0xc4]
lea ecx, [ebp + ecx*4 - 0x88]
mov dword [ebx + esi*4], edi
inc esi
mov dword [ecx], esi
mov esi, dword [ebp - 0x94]
inc edi
cmp edi, dword [ebp - 0xb4]
jb 0x41d720
mov ecx, dword [ebp - 0xa4]
mov ecx, dword [ebp + ecx - 0x88]
mov dword [ebp - 0xb4], ecx
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x94], ecx
mov ecx, dword [ebp - 0x90]
mov ebx, edx
xor edi, edi
neg ebx
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x98], 0xffffffff
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa4], eax
cmp ecx, dword [ebp - 0xa8]
jg 0x41dac7
mov esi, dword [ebp - 0xb8]
lea ecx, [ebp + ecx*4 - 0x48]
mov dword [ebp - 0xac], ecx
jmp 0x41d7e2
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f2889
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xac]
mov ecx, dword [ecx]
mov dword [ebp - 0xa0], ecx
cmp ecx, eax
je 0x41daa5
jmp 0x41d800
dec dword [ebp - 0xa0]
lea eax, [ebx + edx]
cmp dword [ebp - 0x90], eax
jle 0x41d974
mov ecx, dword [ebp - 0xa0]
inc ecx
sub ebx, edx
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xc0], ebx
jmp 0x41d836
mov edx, dword [ebp - 0x8c]
add dword [ebp - 0xc0], edx
mov edx, dword [ebp - 0xa8]
inc dword [ebp - 0x98]
mov ebx, eax
mov eax, dword [ebp - 0x8c]
sub edx, ebx
cmp edx, eax
jbe 0x41d858
mov edx, eax
mov ecx, dword [ebp - 0x90]
sub ecx, ebx
mov eax, 1
shl eax, cl
cmp eax, dword [ebp - 0xd0]
jbe 0x41d8ae
or edi, 0xffffffff
sub edi, dword [ebp - 0xa0]
add eax, edi
mov edi, dword [ebp - 0xac]
cmp ecx, edx
jae 0x41d8ae
inc ecx
cmp ecx, edx
jae 0x41d8ae
jmp 0x41d896
mov edi, dword [ebp - 0x9c]
add edi, 4
mov dword [ebp - 0x9c], edi
mov edi, dword [edi]
add eax, eax
cmp eax, edi
jbe 0x41d8ae
inc ecx
sub eax, edi
cmp ecx, edx
jb 0x41d890
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax]
mov edx, 1
shl edx, cl
mov dword [ebp - 0xa4], edx
add edx, eax
cmp edx, 0x5a0
ja 0x41daee
mov edi, dword [ebp - 0xcc]
lea edi, [edi + eax*8]
mov eax, dword [ebp - 0x98]
lea eax, [ebp + eax*4 - 0x118]
mov dword [ebp - 0xdc], eax
mov dword [eax], edi
mov eax, dword [ebp - 0xc8]
mov dword [eax], edx
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x9c], edi
test eax, eax
je 0x41d951
mov esi, dword [ebp - 0xb0]
mov dl, byte [ebp - 0x8c]
mov dword [ebp + eax*4 - 0x88], esi
mov byte [ebp - 0xbc], cl
mov ecx, dword [ebp - 0xc0]
mov eax, esi
shr eax, cl
mov ecx, dword [ebp - 0xdc]
mov ecx, dword [ecx - 4]
mov esi, edi
sub esi, ecx
mov byte [ebp - 0xbb], dl
mov edx, dword [ebp - 0xbc]
sar esi, 3
sub esi, eax
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], esi
jmp 0x41d959
mov eax, dword [ebp - 0xd8]
mov dword [eax], edi
mov ecx, dword [ebp - 0x8c]
lea eax, [ebx + ecx]
cmp dword [ebp - 0x90], eax
jg 0x41d830
mov edi, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0xc4]
mov dl, cl
sub dl, bl
mov byte [ebp - 0xbb], dl
mov edx, dword [ebp - 0xb4]
lea edx, [eax + edx*4]
mov eax, dword [ebp - 0x94]
cmp eax, edx
jb 0x41d9a6
mov byte [ebp - 0xbc], 0xc0
jmp 0x41d9e8
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
cmp eax, edx
jae 0x41d9c6
cmp eax, 0x100
sbb dl, dl
and dl, 0xa0
add dl, 0x60
mov byte [ebp - 0xbc], dl
mov esi, eax
jmp 0x41d9e1
sub eax, edx
mov edx, dword [ebp + 0x14]
add eax, eax
add eax, eax
mov dl, byte [eax + edx]
add dl, 0x50
mov byte [ebp - 0xbc], dl
mov edx, dword [ebp + 0x10]
mov esi, dword [eax + edx]
add dword [ebp - 0x94], 4
sub ecx, ebx
mov edx, 1
shl edx, cl
mov eax, edi
mov ecx, ebx
shr eax, cl
cmp eax, dword [ebp - 0xa4]
jae 0x41da2c
mov ecx, dword [ebp - 0x9c]
lea ecx, [ecx + eax*8]
mov edi, dword [ebp - 0xbc]
mov dword [ecx], edi
lea edi, [edx*8]
mov dword [ecx + 4], esi
add eax, edx
add ecx, edi
cmp eax, dword [ebp - 0xa4]
jb 0x41da08
mov edi, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x90]
dec ecx
mov eax, 1
shl eax, cl
test edi, eax
je 0x41da48
mov edi, edi
xor edi, eax
shr eax, 1
test edi, eax
jne 0x41da40
mov edx, 1
mov ecx, ebx
shl edx, cl
xor edi, eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xb0], edi
dec edx
and edx, edi
cmp edx, dword [ebp + eax*4 - 0x88]
je 0x41da92
jmp 0x41da70
sub ebx, dword [ebp - 0x8c]
mov edx, 1
mov ecx, ebx
shl edx, cl
dec eax
dec edx
and edx, edi
cmp edx, dword [ebp + eax*4 - 0x88]
jne 0x41da70
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0xa0], 0
mov edx, dword [ebp - 0x8c]
jne 0x41d800
mov eax, dword [ebp - 0x90]
add dword [ebp - 0xac], 4
inc eax
mov dword [ebp - 0x90], eax
cmp eax, dword [ebp - 0xa8]
jle 0x41d7e0
xor eax, eax
cmp dword [ebp - 0xd4], eax
je 0x41dadd
cmp dword [ebp - 0xa8], 1
je 0x41dadd
mov eax, 0xfffffffb
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f2889
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0xfffffffc
pop ebx
call fcn.004f2889
mov esp, ebp
pop ebp
ret