Function at 0x4183e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x20], 0x4bc1553a
mov dword [esp + 0x24], 0x4fd949de
mov dword [esp + 0x28], 0x432b4dd8
mov dword [esp + 0x2c], 0x47db41db
mov dword [esp + 0x30], 0x7b20452a
mov dword [esp + 0x34], 0x7fe279e1
mov dword [esp + 0x38], 0x73f77d19
mov dword [esp + 0x3c], 0x77e471ee
lea eax, [esp + 0x40]
mov word [esp + 0x40], 0x7576
mov dword [esp + 0x42], 0
mov dword [esp + 0x46], 0
mov dword [esp + 0x49], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x2c
ja 0x4184b0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 8]
mov edx, dword [esp + 8]
movzx edx, byte [esp + edx + 0x20]
mov esi, 0xb2
sub esi, ecx
add ecx, 0x4694f84d
xor esi, ecx
and esi, edx
xor esi, ecx
mov dword [esp + 0x70], esi
mov ecx, dword [esp + 0x70]
add cl, 0xe5
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x20], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x2d
jb 0x418470
lea edi, [esp + 0x70]
lea edx, [esp + 0x20]
mov ecx, 8
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x90]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov edi, dword [ebx + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x4184e0
cmp eax, 0xffffffdd
jge 0x4184f7
mov eax, 0xffffffff
jmp 0x4184fa
add eax, 0x22
push eax
call fcn.004090a0
add esp, 4
mov esi, eax
movzx ecx, word [edi]
test cx, cx
je 0x418531
add edi, 2
mov eax, esi
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 0x418520
mov word [eax], 0
movzx ecx, word [esp + 0x70]
test cx, cx
je 0x418561
lea edx, [esp + 0x72]
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 0x418550
mov word [eax], 0
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0x836d816d
mov dword [esp + 0x24], 0x87ab857e
mov dword [esp + 0x28], 0x8b72896d
mov dword [esp + 0x2c], 0x8f6b8d78
mov dword [esp + 0x30], 0x9361917e
mov dword [esp + 0x34], 0x9779957d
mov dword [esp + 0x38], 0x9bb19976
mov dword [esp + 0x3c], 0x9fb59db7
mov dword [esp + 0x40], 0xa37ca18a
mov dword [esp + 0x44], 0xa755a551
mov dword [esp + 0x48], 0xab58a94d
mov dword [esp + 0x4c], 0xaf41ad6f
mov dword [esp + 0x50], 0xb346b15e
mov dword [esp + 0x54], 0xb74eb551
mov dword [esp + 0x58], 0xbb73b94c
mov dword [esp + 0x5c], 0xbf83bd58
mov dword [esp + 0x60], 0x4342416a
mov byte [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x48
ja 0x41866e
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x20]
mov edx, 0xbf
sub edx, eax
add eax, 0xc67db340
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x1c]
add al, 0x40
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x20], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x49
jb 0x418630
lea eax, [esp + 8]
push eax
push 0x418ad0
lea eax, [esp + 0x28]
push eax
push esi
call fcn.004190c0
add esp, 0x10
jmp dword [0x43ce88]