Function at 0x41d860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov dword [esp + 0x40], 0
mov ecx, dword [0x4439e4]
test ecx, ecx
je 0x41d89f
mov eax, dword [0x4439e8]
add eax, 8
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [eax - 8], 0x18dc7455
je 0x41d8ab
add eax, 0xc
dec ecx
jne 0x41d890
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esp + 0x20], 0
mov dword [esp + 0x1c], 0x900000c2
mov dword [esp + 0x18], 0xd2ff0000
mov dword [esp + 0x14], 0xba00
mov dword [esp + 0x10], 0xb8
mov eax, dword [eax]
mov dword [esp + 0x11], eax
mov eax, dword [0x4439ec]
mov dword [esp + 0x16], eax
mov word [esp + 0x1d], 0x10
mov dword [esp + 4], 0
mov dword [esp + 0x48], 0x10
lea eax, [esp + 0x48]
lea esi, [esp + 4]
push 0x40
push 0x3000
push eax
push 0
push esi
push 0xffffffffffffffff
call dword [0x4439f0]
mov eax, dword [esp + 4]
lea edx, [esp + 0x10]
mov edi, eax
mov ecx, 4
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
add eax, 0x10
xor ebx, ebx
lea edx, [esp + 0x20]
mov edi, eax
xor ecx, ecx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov edi, esi
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 5
call dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0x44], 0
lea eax, [esp + 0x44]
push 0x8000
push eax
push edi
push 0xffffffffffffffff
call dword [0x4439f4]
cmp esi, 0xc0000004
jne 0x41d8a1
lea ebx, [esp + 0x48]
lea eax, [esp + 0x20]
mov dword [esp + 8], eax
mov esi, edi
push dword [esp + 0x40]
call fcn.00430d10
add esp, 4
mov ecx, dword [0x4439e4]
test ecx, ecx
je 0x41d9bf
mov edx, dword [esp + 0x40]
mov dword [esp + 0xc], edx
mov edx, dword [0x4439e8]
add edx, 8
lea edi, [esp + 0x10]
nop
nop
nop
cmp dword [edx - 8], 0x18dc7455
je 0x41d9c6
add edx, 0xc
dec ecx
jne 0x41d9b0
xor ebx, ebx
jmp 0x41dd2e
mov byte [esp + 0x20], 0
mov dword [esp + 0x1c], 0x900000c2
mov dword [esp + 0x18], 0xd2ff0000
mov dword [esp + 0x14], 0xba00
mov dword [esp + 0x10], 0xb8
mov ecx, dword [edx]
mov dword [esp + 0x11], ecx
mov ecx, dword [0x4439ec]
mov dword [esp + 0x16], ecx
mov word [esp + 0x1d], 0x10
mov dword [esp + 4], 0
mov dword [esp + 0x48], 0x10
push 0x40
push 0x3000
push ebx
push 0
push esi
push 0xffffffffffffffff
mov esi, eax
call dword [0x4439f0]
mov eax, dword [esp + 4]
mov edx, edi
mov edi, eax
mov ecx, 4
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
add eax, 0x10
xor ebx, ebx
mov edi, eax
xor ecx, ecx
mov eax, dword [esp + 8]
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
push 0
push dword [esp + 0x10]
push esi
push 5
call dword [esp + 0x14]
mov edi, eax
mov dword [esp + 0x44], 0
push 0x8000
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0xc]
push eax
push 0xffffffffffffffff
call dword [0x4439f4]
test edi, edi
js 0x41db72
mov ecx, dword [esi]
xor eax, eax
mov dword [esp + 0xc], esi
mov edx, esi
nop
nop
nop
nop
lea esi, [edx + ecx]
mov ecx, dword [edx + ecx]
add eax, 0x208
add ebx, 0x104
mov edx, esi
test ecx, ecx
jne 0x41da90
test ebx, ebx
jns 0x41dab0
mov eax, 0xffffffff
push eax
call fcn.00408550
add esp, 4
mov edi, eax
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
mov dword [esp + 0x3c], edi
jmp 0x41dade
mov word [edi], 0xa
add edi, 2
mov edx, dword [eax]
test edx, edx
je 0x41db03
mov ecx, dword [eax + edx + 0x3c]
add eax, edx
movzx edx, word [ecx]
test dx, dx
je 0x41dad0
add ecx, 2
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41daf0
jmp 0x41dad0
mov eax, dword [esp + 0x3c]
cmp edi, eax
je 0x41dc54
mov word [edi], 0
movzx ecx, word [eax]
xor ebx, ebx
test cx, cx
jne 0x41db41
push 1
call fcn.00408550
add esp, 4
mov dword [esp + 0x4c], eax
jmp 0x41dc5b
mov ebx, edx
add ebx, esi
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x41db79
cmp eax, edi
jae 0x41db79
mov edx, ebx
movzx ebx, cx
xor ecx, ecx
cmp ebx, 0x800
setb byte [esp + 8]
mov esi, 1
cmp ebx, 0x80
jb 0x41db31
movzx ebx, byte [esp + 8]
mov cl, bl
xor ecx, 3
mov esi, ecx
jmp 0x41db31
mov eax, esi
jmp 0x41dd2e
lea esi, [ebx + 1]
push esi
call fcn.00408550
add esp, 4
test ebx, ebx
mov dword [esp + 0x4c], eax
jle 0x41dc5b
lea ecx, [eax + ebx]
mov dword [esp + 0x58], ecx
add esi, eax
mov dword [esp + 0x54], esi
mov edx, dword [esp + 0x3c]
mov esi, eax
jmp 0x41dbbc
mov byte [esi], cl
mov eax, 1
add edx, 2
add esi, eax
cmp esi, dword [esp + 0x58]
jae 0x41dc5d
cmp edx, edi
jae 0x41dc5d
movzx ecx, word [edx]
test cx, cx
je 0x41dc5d
cmp cx, 0x7f
jbe 0x41dba6
mov dword [esp + 0x50], esi
mov eax, esi
not eax
add eax, dword [esp + 0x54]
movzx esi, cx
mov dword [esp + 8], esi
cmp dword [esp + 8], 0x7ff
ja 0x41dc1a
cmp eax, 2
mov eax, 0
mov esi, dword [esp + 0x50]
jb 0x41dbad
mov eax, ecx
shr eax, 6
add al, 0xc0
mov byte [esi], al
and cl, 0x3f
or cl, 0x80
mov byte [esi + 1], cl
mov eax, 2
jmp 0x41dbad
cmp eax, 3
mov eax, 0
mov esi, dword [esp + 0x50]
jb 0x41dbad
mov eax, dword [esp + 8]
shr eax, 0xc
or al, 0xe0
mov byte [esi], al
mov eax, dword [esp + 8]
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [esi + 1], al
and cl, 0x3f
or cl, 0x80
mov byte [esi + 2], cl
mov eax, 3
jmp 0x41dbad
xor ebx, ebx
jmp 0x41dd21
mov esi, eax
mov ecx, dword [ebp + 8]
lea edi, [esp + 0x10]
mov byte [esi], 0
mov dword [esp + 0x10], 0xee9593f6
mov dword [esp + 0x14], 0xe49d9ce1
mov dword [esp + 0x18], 0xab98df9b
mov word [esp + 0x1c], 0x31a6
mov dword [esp + 0x1e], 0
mov dword [esp + 0x22], 0
mov dword [esp + 0x26], 0
mov dword [esp + 0x29], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x1c
ja 0x41dd06
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [esp + 4]
mov eax, dword [esp + 4]
movzx edx, byte [esp + eax + 0x10]
lea eax, [esi + edx]
add eax, 0xe4c83855
add esi, 0xe4c83855
and esi, edx
add esi, esi
sub eax, esi
mov edx, eax
xor edx, 0xac
and eax, 0x2c
lea eax, [edx + eax*2]
inc al
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x1d
jb 0x41dcc0
push ebx
mov esi, dword [esp + 0x50]
push esi
push edi
call fcn.00408e40
mov ebx, eax
push esi
call fcn.00408560
add esp, 4
mov eax, dword [esp + 0x3c]
push eax
call fcn.00408560
add esp, 4
mov eax, dword [esp + 0xc]
push eax
call fcn.00430e90
add esp, 4
jmp 0x41d8a1