Function at 0x4f36b0
Capabilities:
Encode data using xor

Disassembly:
mov dx, 1
sub esp, 0xb0
mov ecx, 0xffffffff
push ebx
push esi
push edi
push ebp
movsx eax, dx
inc dx
mov dword [esp + eax*4 + 0x48], ecx
movsx ebx, dx
cmp ebx, 9
jbe 0x4f36c3
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x48], 0x1fffffff
movsx eax, cx
inc cx
mov dword [esp + eax*4 + 0x20], edx
movsx ebx, cx
cmp ebx, 9
jbe 0x4f36e0
xor dx, dx
mov si, 4
mov di, 0x20
mov eax, dword [esp + 0xc4]
movsx ecx, si
test si, si
mov ebx, dword [eax + ecx*4]
jg 0x4f3712
mov di, 0x1e
test di, di
jle 0x4f374e
test bl, 1
je 0x4f3745
movsx eax, dx
movsx ecx, word [eax*2 + 0x652fd8]
mov ebp, dword [eax*4 + 0x652ae0]
or dword [esp + ecx*4 + 0x20], ebp
movsx ecx, word [eax*2 + 0x653114]
mov eax, dword [eax*4 + 0x652d58]
or dword [esp + ecx*4 + 0x20], eax
shr ebx, 1
inc dx
dec di
jne 0x4f3717
dec si
jns 0x4f36f8
xor ecx, ecx
xor edx, edx
movsx eax, cx
inc cx
mov dword [esp + eax*4 + 0x98], edx
movsx ebx, cx
cmp ebx, 9
jbe 0x4f3756
xor cx, cx
xor edx, edx
movsx eax, cx
inc cx
mov dword [esp + eax*4 + 0x70], edx
movsx ebx, cx
cmp ebx, 9
jbe 0x4f376f
mov dword [esp + 0x94], 1
mov word [esp + 0x14], 9
xor eax, eax
mov word [esp + 0x12], ax
mov word [esp + 0x16], ax
xor di, di
mov eax, dword [esp + 0x44]
and eax, 0xff
xor ecx, ecx
movzx dx, byte [eax + 0x6539d0]
add word [esp + 0x12], dx
mov al, 0x20
sub al, dl
mov byte [esp + 0x1c], al
movsx eax, di
movsx esi, cx
inc di
lea eax, [esp + eax*4 + 0x20]
mov cl, byte [esp + 0x1c]
mov ebx, dword [eax]
shl esi, cl
mov ebp, ebx
mov cl, dl
shr ebp, cl
mov cx, bx
or esi, ebp
mov dword [eax], esi
movsx eax, di
cmp eax, 9
jbe 0x4f37c1
cmp dx, 8
jne 0x4f37f7
test byte [esp + 0x44], 1
je 0x4f379e
xor dx, dx
xor ecx, ecx
movsx eax, dx
cmp dword [esp + eax*4 + 0x20], ecx
jne 0x4f380f
inc dx
movsx eax, dx
cmp eax, 9
jb 0x4f37fc
movsx eax, dx
cmp eax, 9
jb 0x4f3822
cmp dword [esp + 0x44], 1
je 0x4f3baa
movsx eax, word [esp + 0x16]
cmp dword [esp + eax*4 + 0x20], 0
jne 0x4f384b
xor ecx, ecx
movsx eax, word [esp + 0x16]
cmp dword [esp + eax*4 + 0x48], ecx
jne 0x4f384b
inc word [esp + 0x16]
movsx eax, word [esp + 0x16]
cmp dword [esp + eax*4 + 0x20], ecx
je 0x4f3830
movsx eax, word [esp + 0x16]
shl eax, 2
mov ecx, dword [esp + eax + 0x20]
cmp dword [esp + eax + 0x48], ecx
ja 0x4f3a1f
mov ax, word [esp + 0x16]
movsx ecx, ax
mov word [esp + 0x18], ax
mov dword [esp + 0x1c], ecx
cmp ecx, 9
ja 0x4f3896
movsx eax, word [esp + 0x18]
inc word [esp + 0x18]
shl eax, 2
movsx edx, word [esp + 0x18]
mov ecx, dword [esp + eax + 0x48]
xor dword [esp + eax + 0x20], ecx
cmp edx, 9
jbe 0x4f3877
mov ax, word [esp + 0x14]
movsx ecx, ax
mov word [esp + 0x18], ax
cmp ecx, 9
ja 0x4f38ca
movsx eax, word [esp + 0x18]
inc word [esp + 0x18]
shl eax, 2
movsx edx, word [esp + 0x18]
mov ecx, dword [esp + eax + 0x98]
xor dword [esp + eax + 0x70], ecx
cmp edx, 9
jbe 0x4f38a8
mov si, 9
mov eax, dword [esp + 0x44]
mov word [esp + 0x18], 0
and eax, 0xff
movzx dx, byte [eax + 0x6539d0]
add word [esp + 0x12], dx
cmp word [esp + 0x14], si
jg 0x4f3923
mov bl, 0x20
sub bl, dl
movsx eax, si
lea eax, [esp + eax*4 + 0x98]
dec si
mov cl, dl
mov edi, dword [eax]
mov ebp, edi
shl ebp, cl
movsx ecx, word [esp + 0x18]
or ebp, ecx
mov cl, bl
shr edi, cl
mov word [esp + 0x18], di
mov dword [eax], ebp
cmp word [esp + 0x14], si
jle 0x4f38f6
cmp word [esp + 0x18], 0
je 0x4f393f
movsx eax, word [esp + 0x18]
movsx ecx, si
mov word [esp + 0x14], si
mov dword [esp + ecx*4 + 0x98], eax
xor cx, cx
cmp dword [esp + 0x1c], 9
mov si, word [esp + 0x16]
ja 0x4f397d
mov bl, 0x20
sub bl, dl
movsx eax, si
inc si
lea edi, [esp + eax*4 + 0x20]
movsx eax, cx
mov ebp, dword [edi]
mov cl, bl
shl eax, cl
mov cl, dl
mov dword [esp + 0x18], ebp
shr ebp, cl
mov cx, word [esp + 0x18]
or eax, ebp
mov dword [edi], eax
movsx eax, si
cmp eax, 9
jbe 0x4f3952
cmp dx, 8
jne 0x4f398e
test byte [esp + 0x44], 1
je 0x4f38ca
mov ax, word [esp + 0x16]
cmp dword [esp + 0x1c], 9
mov word [esp + 0x18], ax
jae 0x4f39bb
xor ecx, ecx
movsx eax, word [esp + 0x18]
cmp dword [esp + eax*4 + 0x20], ecx
jne 0x4f39bb
inc word [esp + 0x18]
movsx eax, word [esp + 0x18]
cmp eax, 9
jb 0x4f39a1
movsx eax, word [esp + 0x18]
cmp eax, 9
jb 0x4f3822
cmp dword [esp + 0x44], 1
jne 0x4f3822
cmp word [esp + 0x18], 0
jg 0x4f3baa
movsx eax, word [esp + 0x16]
cmp dword [esp + eax*4 + 0x48], 0
jne 0x4f3a09
xor ecx, ecx
movsx eax, word [esp + 0x16]
cmp dword [esp + eax*4 + 0x20], ecx
jne 0x4f3a09
inc word [esp + 0x16]
movsx eax, word [esp + 0x16]
cmp dword [esp + eax*4 + 0x48], ecx
je 0x4f39ee
movsx eax, word [esp + 0x16]
shl eax, 2
mov ecx, dword [esp + eax + 0x20]
cmp dword [esp + eax + 0x48], ecx
jb 0x4f3861
mov ax, word [esp + 0x16]
movsx ecx, ax
mov word [esp + 0x18], ax
mov dword [esp + 0x1c], ecx
cmp ecx, 9
ja 0x4f3a54
movsx eax, word [esp + 0x18]
inc word [esp + 0x18]
shl eax, 2
movsx edx, word [esp + 0x18]
mov ecx, dword [esp + eax + 0x20]
xor dword [esp + eax + 0x48], ecx
cmp edx, 9
jbe 0x4f3a35
mov ax, word [esp + 0x14]
movsx ecx, ax
mov word [esp + 0x18], ax
cmp ecx, 9
ja 0x4f3a88
movsx eax, word [esp + 0x18]
inc word [esp + 0x18]
shl eax, 2
movsx edx, word [esp + 0x18]
mov ecx, dword [esp + eax + 0x70]
xor dword [esp + eax + 0x98], ecx
cmp edx, 9
jbe 0x4f3a66
mov si, 9
mov eax, dword [esp + 0x6c]
mov word [esp + 0x18], 0
and eax, 0xff
movzx dx, byte [eax + 0x6539d0]
add word [esp + 0x12], dx
cmp word [esp + 0x14], si
jg 0x4f3ade
mov bl, 0x20
sub bl, dl
movsx eax, si
lea eax, [esp + eax*4 + 0x70]
dec si
mov cl, dl
mov edi, dword [eax]
mov ebp, edi
shl ebp, cl
movsx ecx, word [esp + 0x18]
or ebp, ecx
mov cl, bl
shr edi, cl
mov word [esp + 0x18], di
mov dword [eax], ebp
cmp word [esp + 0x14], si
jle 0x4f3ab4
cmp word [esp + 0x18], 0
je 0x4f3af7
movsx eax, word [esp + 0x18]
movsx ecx, si
mov word [esp + 0x14], si
mov dword [esp + ecx*4 + 0x70], eax
xor cx, cx
cmp dword [esp + 0x1c], 9
mov si, word [esp + 0x16]
ja 0x4f3b35
mov bl, 0x20
sub bl, dl
movsx eax, si
inc si
lea edi, [esp + eax*4 + 0x48]
movsx eax, cx
mov ebp, dword [edi]
mov cl, bl
shl eax, cl
mov cl, dl
mov dword [esp + 0x18], ebp
shr ebp, cl
mov cx, word [esp + 0x18]
or eax, ebp
mov dword [edi], eax
movsx eax, si
cmp eax, 9
jbe 0x4f3b0a
cmp dx, 8
jne 0x4f3b46
test byte [esp + 0x6c], 1
je 0x4f3a88
mov ax, word [esp + 0x16]
cmp dword [esp + 0x1c], 9
mov word [esp + 0x18], ax
jae 0x4f3b73
xor ecx, ecx
movsx eax, word [esp + 0x18]
cmp dword [esp + eax*4 + 0x48], ecx
jne 0x4f3b73
inc word [esp + 0x18]
movsx eax, word [esp + 0x18]
cmp eax, 9
jb 0x4f3b59
movsx eax, word [esp + 0x18]
cmp eax, 9
jb 0x4f39e0
cmp dword [esp + 0x6c], 1
jne 0x4f39e0
xor dx, dx
movsx eax, dx
shl eax, 2
inc dx
mov ecx, dword [esp + eax + 0x98]
mov dword [esp + eax + 0x70], ecx
movsx eax, dx
cmp eax, 9
jbe 0x4f3b8f
lea eax, [esp + 0x70]
mov esi, 0x13d
push eax
mov ax, word [esp + 0x16]
cwd
idiv si
movsx eax, dx
sub esi, eax
lea eax, [esp + 0x74]
push esi
push eax
call fcn.004f3560
add esp, 0xc
test byte [esp + 0x94], 1
je 0x4f3bed
mov edx, dword [esp + 0xc8]
push edx
call fcn.004fa770
add esp, 4
jmp 0x4f3c0b
xor cx, cx
movsx eax, cx
inc cx
mov edx, dword [esp + 0xc8]
mov dword [edx + eax*4], 0
movsx eax, cx
cmp eax, 5
jb 0x4f3bf0
xor bx, bx
mov si, 4
xor edi, edi
mov eax, 1
test si, si
mov edx, 0xffffffff
jg 0x4f3c28
mov edx, 0x3fffffff
movsx ecx, bx
movsx ebp, word [ecx*2 + 0x652fd8]
mov ebp, dword [esp + ebp*4 + 0x70]
test dword [ecx*4 + 0x652ae0], ebp
je 0x4f3c42
xor edi, eax
inc bx
add eax, eax
test edx, eax
jne 0x4f3c28
mov edx, dword [esp + 0xc8]
movsx eax, si
xor dword [edx + eax*4], edi
dec si
jns 0x4f3c12
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xb0
ret