Function at 0x41e120
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], 0xb4b58a8b
mov word [esp + 0x18], 0
mov byte [esp + 0x1a], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x41e18e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x14]
add eax, 0x6e85675e
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x2a
mov ecx, dword [esp]
mov byte [esp + ecx + 0x14], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x41e160
mov eax, dword [esp + 0x14]
mov ecx, dword [0x442efc]
test ecx, ecx
je 0x41e1e4
xor edx, edx
mov esi, dword [0x442f00]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xcecd21fd
je 0x41e1c0
inc edx
cmp ecx, edx
jne 0x41e1b0
jmp 0x41e1e4
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x41e1e4
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 5
push 4
push dword [0x442f04]
push ecx
call fcn.00435810
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x41e290
push dword [esp + 0x28]
call fcn.00433570
add esp, 4
mov ebp, eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], 0xb4b58a8b
mov word [esp + 0x18], 0
mov byte [esp + 0x1a], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x41e25e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x14]
add eax, 0x6e85675e
xor eax, edx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x2a
mov edx, dword [esp]
mov byte [esp + edx + 0x14], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x41e230
mov eax, dword [esp + 0x14]
mov edx, dword [0x442efc]
test edx, edx
je 0x41e2b6
xor esi, esi
mov edi, dword [0x442f00]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xcecd21fd
je 0x41e297
inc esi
cmp edx, esi
jne 0x41e280
jmp 0x41e2b6
xor ebx, ebx
jmp 0x41e57d
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x41e2b6
push 0
push ecx
push ebp
push 5
push 4
push dword [0x442f04]
push edx
call fcn.00435810
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x41e574
mov edi, dword [ebp]
mov eax, edi
mov ecx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ecx + eax]
mov eax, dword [ecx + eax]
dec ebx
mov ecx, edx
test eax, eax
jne 0x41e2d0
lea eax, [ebx - 1]
and eax, 0x104
neg ebx
mov ecx, ebx
and ecx, 0xfffffefb
imul ecx, eax
mov eax, ebx
and eax, 0x104
or ebx, 0x104
imul ebx, eax
add ebx, ecx
mov dword [esp + 0x10], ebp
jns 0x41e311
mov ebx, 0xffffffff
jmp 0x41e313
add ebx, ebx
push ebx
call fcn.004097d0
add esp, 4
mov ebp, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
jmp 0x41e342
mov esi, ebp
add eax, edi
lea ebp, [esi + 2]
mov word [esi], 0xa
mov edi, dword [eax]
test edi, edi
je 0x41e373
mov ecx, dword [eax + edi + 0x3c]
movzx edx, word [ecx]
test dx, dx
je 0x41e330
add ecx, 2
mov esi, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], dx
add esi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41e360
jmp 0x41e332
xor ebx, ebx
mov eax, dword [esp + 4]
cmp ebp, eax
je 0x41e567
mov word [ebp], 0
movzx ecx, word [eax]
test cx, cx
je 0x41e3d4
xor ebx, ebx
mov eax, dword [esp + 4]
jmp 0x41e3ae
add ebx, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x41e3d4
cmp eax, ebp
jae 0x41e3d4
movzx edi, cx
cmp edi, 0x800
mov ecx, 3
sbb ecx, 0
mov edx, 1
cmp edi, 0x80
jb 0x41e3a0
mov edx, ecx
jmp 0x41e3a0
lea eax, [ebx + 1]
mov dword [esp + 0x2c], eax
push eax
call fcn.004097d0
add esp, 4
mov edx, eax
mov dword [esp + 0xc], eax
test ebx, ebx
jle 0x41e4d5
mov edx, dword [esp + 0xc]
cmp dword [esp + 4], ebp
jae 0x41e4d5
mov edx, dword [esp + 0xc]
lea eax, [edx + ebx]
mov dword [esp + 0x34], eax
add dword [esp + 0x2c], edx
mov ebp, dword [esp + 4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [ebp]
test cx, cx
je 0x41e4d5
cmp cx, 0x7f
ja 0x41e440
mov byte [edx], cl
mov edi, 1
jmp 0x41e4c0
mov eax, edx
not eax
add eax, dword [esp + 0x2c]
movzx edi, cx
cmp eax, 2
jb 0x41e480
cmp edi, 0x7ff
ja 0x41e480
mov eax, ecx
shr eax, 6
add al, 0xc0
mov byte [edx], al
and cl, 0x3f
or cl, 0x80
mov byte [edx + 1], cl
mov edi, 2
jmp 0x41e4c0
mov dword [esp + 0x30], edi
xor edi, edi
cmp eax, 3
jb 0x41e4c0
mov edi, dword [esp + 0x30]
mov eax, edi
shr eax, 0xc
or al, 0xe0
mov byte [edx], al
mov eax, edi
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [edx + 1], al
mov eax, ecx
not eax
or eax, 0x3f
add eax, ecx
add al, 0x81
mov byte [edx + 2], al
mov edi, 3
nop
nop
nop
nop
nop
nop
nop
nop
nop
add edx, edi
cmp edx, dword [esp + 0x34]
jae 0x41e4d5
lea eax, [ebp + 2]
cmp ebp, esi
mov ebp, eax
jb 0x41e420
mov byte [edx], 0
mov dword [esp + 0x14], 0x1c171534
mov dword [esp + 0x18], 0x2efee1f
mov dword [esp + 0x1c], 0xf1f249f1
mov word [esp + 0x20], 0x7bf4
mov dword [esp + 0x22], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x11
ja 0x41e53e
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x14]
add eax, 0x4fb659e9
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x73
mov ecx, dword [esp]
mov byte [esp + ecx + 0x14], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x12
jb 0x41e510
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x4c]
push ebx
mov esi, dword [esp + 0x10]
push esi
push eax
call fcn.0040a150
mov ebx, eax
push esi
call fcn.004097e0
add esp, 4
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 4]
jmp 0x41e56b
mov ebp, dword [esp + 0x10]
push eax
call fcn.004097e0
add esp, 4
push ebp
call fcn.00433600
add esp, 4
mov eax, ebx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret