Function at 0x41dc80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x40
mov edx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x58]
mov ecx, dword [ebp + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ecx + eax + 2], 0
lea eax, [eax + 2]
jne 0x41dca0
sar eax, 1
mov ebx, dword [edx + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x41dcc0
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x41dcde
mov eax, 0xffffffff
jmp 0x41dce7
add eax, ecx
lea eax, [eax*2 + 0x36]
push eax
call fcn.0040c770
add esp, 4
mov dword [esp + 8], 0x430e41fc
mov dword [esp + 0xc], 0x47e545eb
mov dword [esp + 0x10], 0x4be649e9
mov dword [esp + 0x14], 0x4f0b4d2c
mov dword [esp + 0x18], 0xb326b128
mov dword [esp + 0x1c], 0xb718b511
mov dword [esp + 0x20], 0xbb13b92b
mov dword [esp + 0x24], 0xbf10bd13
mov dword [esp + 0x28], 0xa311a1c0
mov dword [esp + 0x2c], 0xa732a501
mov dword [esp + 0x30], 0xab03a93c
mov dword [esp + 0x34], 0xaf09ad02
mov dword [esp + 0x38], 0x932e9103
mov dword [esp + 0x3c], 0x9594
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x37
ja 0x41ddb2
nop
mov esi, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, esi
xor edx, 0x2129d770
and esi, 0x2129d770
lea esi, [edx + esi*2]
lea edx, [esi + ecx]
and esi, ecx
add esi, esi
sub edx, esi
mov dword [esp + 4], edx
mov edx, dword [esp + 4]
add dl, 0xd0
mov ecx, dword [esp]
mov byte [esp + ecx + 8], dl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x38
jb 0x41dd70
mov ecx, dword [ebp + 4]
movzx edx, word [ecx]
mov edi, eax
test dx, dx
je 0x41dde1
add ecx, 2
mov edi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41ddd0
mov word [edi], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x41de11
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], cx
add edi, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x41de00
mov word [edi], 0
movzx ecx, word [ebx]
mov esi, eax
test cx, cx
je 0x41de41
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], cx
add edi, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x41de30
mov word [edi], 0
mov ebp, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [ebp + eax + 2], 0
lea eax, [eax + 2]
jne 0x41de50
sar eax, 1
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
cmp word [edx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x41de70
sar ecx, 1
lea ebx, [eax + ecx]
lea edx, [eax + ecx]
inc edx
lea ecx, [ebx*2 + 2]
xor edx, 0xd
mov eax, dword [esp + 0x5c]
mov ebx, dword [eax]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x41dea0
and ecx, 0x1a
add ecx, edx
sar eax, 1
add eax, ecx
jns 0x41debd
mov eax, 0xffffffff
jmp 0x41debf
add eax, eax
push eax
call fcn.0040c770
add esp, 4
mov edi, eax
movzx ecx, word [ebp]
test cx, cx
je 0x41def2
add ebp, 2
mov eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebp]
add ebp, 2
test cx, cx
jne 0x41dee0
mov word [eax], 0x2f
mov dword [esp + 8], 0x1c90735
mov dword [esp + 0xc], 0xdfe03f8
mov dword [esp + 0x10], 0x9f80fe3
mov dword [esp + 0x14], 0x15e10bf5
mov dword [esp + 0x18], 0x11e017e5
mov dword [esp + 0x1c], 0x1d2313ed
mov word [esp + 0x20], 0x1f1c
mov dword [esp + 0x22], 0
mov word [esp + 0x26], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x1f
ja 0x41df91
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
mov ebp, ecx
xor ebp, 0x11094c41
and ecx, 0x11094c41
lea ecx, [ecx*2]
add ecx, ebp
xor ecx, edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
add cl, 0xbb
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x20
jb 0x41df50
add eax, 2
mov ecx, dword [esp + 0x58]
mov ecx, dword [ecx + 8]
movzx edx, word [ecx]
test dx, dx
je 0x41dfc1
add ecx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41dfb0
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x41dff1
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x41dfe0
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x41e021
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x41e010
mov word [eax], 0
mov dword [esp + 8], 0x939291fa
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x41e07e
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
add eax, 0x31629624
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x4c
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x41e050
lea eax, [esp + 8]
push 0
push 0
push 0
push 0xc00000
push eax
push esi
push edi
push dword [esp + 0x70]
call fcn.00420b00
add esp, 0x20
mov ebx, eax
jmp dword [0x449230]