Function at 0x417d60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x10], 0x4b0845fa
mov dword [esp + 0x14], 0x4fed49db
mov dword [esp + 0x18], 0xb3e04de9
mov dword [esp + 0x1c], 0xb7fbb1d2
mov dword [esp + 0x20], 0xbb20b52e
mov dword [esp + 0x24], 0xbf2ab911
mov dword [esp + 0x28], 0xa313bd2b
mov dword [esp + 0x2c], 0xa732a133
mov dword [esp + 0x30], 0xab11a5c6
mov dword [esp + 0x34], 0xaf3ca901
mov dword [esp + 0x38], 0x9303ad3a
mov dword [esp + 0x3c], 0x97399100
mov dword [esp + 0x40], 0x9b289503
lea eax, [esp + 0x44]
mov word [esp + 0x44], 0x999a
mov dword [esp + 0x46], 0
mov dword [esp + 0x4a], 0
mov dword [esp + 0x4e], 0
mov dword [esp + 0x52], 0
mov dword [esp + 0x56], 0
mov byte [esp + 0x5a], 0
mov dword [esp + 0x84], 0
mov ecx, dword [esp + 0x84]
cmp ecx, 0x4a
ja 0x417e79
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x84]
movzx esi, byte [esp + ecx + 0x10]
lea ecx, [edx + esi]
add ecx, 0x78814e75
add edx, 0x78814e75
and edx, esi
add edx, edx
sub ecx, edx
add cl, 0xcd
mov edx, dword [esp + 0x84]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0x84]
mov ecx, dword [esp + 0x84]
cmp ecx, 0x4b
jb 0x417e30
lea edi, [esp + 0x84]
lea edx, [esp + 0x10]
mov ecx, 0xd
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0xb8]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov esi, dword [ebx + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x417eb0
sar eax, 1
mov ecx, dword [ebp + 0x10]
mov edi, dword [ecx + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x417ed0
add eax, 0x1b
sar ecx, 1
mov edx, ecx
and edx, eax
xor ecx, eax
lea eax, [ecx + edx*2]
test eax, eax
jns 0x417ef4
mov eax, 0xffffffff
jmp 0x417ef6
add eax, eax
push eax
call fcn.00408810
add esp, 4
movzx ecx, word [esi]
mov dword [esp + 8], eax
test cx, cx
je 0x417f31
add esi, 2
mov eax, dword [esp + 8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x417f20
mov word [eax], 0
movzx ecx, word [esp + 0x84]
test cx, cx
je 0x417f61
lea edx, [esp + 0x86]
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x417f50
mov word [eax], 0
movzx ecx, word [edi]
test cx, cx
je 0x417f91
add edi, 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 [edi]
add edi, 2
test cx, cx
jne 0x417f80
mov word [eax], 0
mov dword [esp + 0x10], 0xa367ad9f
mov dword [esp + 0x14], 0xa752a128
mov dword [esp + 0x18], 0xbb48a541
mov dword [esp + 0x1c], 0xbf47b94f
mov dword [esp + 0x20], 0xb340bd4f
mov dword [esp + 0x24], 0xb785b147
lea eax, [esp + 0x28]
mov word [esp + 0x28], 0xb5b4
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0
mov dword [esp + 0x31], 0
mov dword [esp + 0x68], 0
mov ecx, dword [esp + 0x68]
cmp ecx, 0x24
ja 0x41803a
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x68]
movzx esi, byte [esp + ecx + 0x10]
lea ecx, [edx + esi]
add ecx, 0x5d10b266
add edx, 0x5d10b266
and edx, esi
add edx, edx
sub ecx, edx
add cl, 0x36
mov edx, dword [esp + 0x68]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0x68]
mov ecx, dword [esp + 0x68]
cmp ecx, 0x25
jb 0x418000
lea edi, [esp + 0x68]
lea edx, [esp + 0x10]
mov ecx, 6
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x80]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov edi, dword [ebx]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x418070
mov esi, dword [ebx + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x418090
sar eax, 1
add eax, 0xe
mov edx, dword [ebp + 0x10]
mov ebx, dword [edx]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
cmp word [ebx + edx + 2], 0
lea edx, [edx + 2]
jne 0x4180b0
sar ecx, 1
add eax, ecx
sar edx, 1
mov ecx, edx
and ecx, eax
xor edx, eax
lea eax, [edx + ecx*2]
test eax, eax
jns 0x4180d5
mov eax, 0xffffffff
jmp 0x4180d7
add eax, eax
push eax
call fcn.00408810
add esp, 4
movzx ecx, word [edi]
mov dword [esp + 0xc], eax
test cx, cx
je 0x418111
add edi, 2
mov eax, dword [esp + 0xc]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x418100
mov word [eax], 0x2f
add eax, 2
movzx ecx, word [esi]
test cx, cx
je 0x418141
add esi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x418130
mov word [eax], 0
movzx ecx, word [esp + 0x68]
test cx, cx
je 0x418173
lea edx, [esp + 0x6a]
mov esi, dword [esp + 8]
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 0x418160
jmp 0x418177
mov esi, dword [esp + 8]
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x4181a1
add ebx, 2
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 0x418190
mov word [eax], 0
mov dword [esp + 0x10], 0x73726d02
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x418205
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
add al, 0xce
xor al, byte [esp + ecx + 0x10]
add al, 0x5e
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x4181e0
push 0
push 0xc00000
lea eax, [esp + 0x18]
push eax
push esi
push dword [esp + 0x1c]
push dword [ebp + 8]
call fcn.0041afc0
add esp, 0x18
mov ebx, eax
mov eax, dword [0x442c7c]
mov ecx, 0x984e74dc
xor ecx, dword [0x442c84]
add eax, ecx
inc eax
jmp eax