Function at 0x50bc60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x10]
mov al, byte [ecx]
xor ebp, ebp
test al, al
push edi
je 0x50bc99
movsx eax, al
mov edx, eax
xor edx, ebp
xor edx, 0x946a4f
shl edx, 8
add edx, ebp
xor edx, 0x573ed587
add edx, eax
mov al, byte [ecx + 1]
inc ecx
test al, al
mov ebp, edx
jne 0x50bc75
mov ecx, dword [esi + 4]
mov eax, dword [esi]
push ebx
push 0
mov edi, ecx
xor edi, eax
push 0
xor edi, 0x946a4f
push 0
shl edi, 8
add edi, ecx
push 8
push str.DB_ROW_ID
xor edi, 0x573ed587
push esi
add edi, eax
mov dword [esi + 0x64], 1
call fcn.00513cf0
push 0
push 0
push 1
push 8
push str.DB_TRX_ID
push esi
call fcn.00513cf0
push 0
push 0
push 2
push 8
push str.DB_ROLL_PTR
push esi
call fcn.00513cf0
add esp, 0x48
push 0
push 0
push 3
push 8
push str.DB_MIX_ID
push esi
call fcn.00513cf0
mov eax, dword [0x6314ec]
mov ecx, dword [eax + 0x34]
mov ebx, ebp
xor ebx, 0x62946a4f
xor edx, edx
mov eax, ebx
div dword [ecx]
mov ecx, dword [ecx + 4]
add esp, 0x18
mov dword [esp + 0x20], ebx
mov edx, dword [ecx + edx*4]
test edx, edx
je 0x50bd72
mov ebp, dword [esi + 0x10]
mov eax, dword [edx + 0x10]
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [ebp]
jne 0x50bd5e
test cl, cl
je 0x50bd5a
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [ebp + 1]
jne 0x50bd5e
add eax, 2
add ebp, 2
test cl, cl
jne 0x50bd39
xor eax, eax
jmp 0x50bd63
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x50bd6e
mov edx, dword [edx + 0x18]
test edx, edx
jne 0x50bd33
mov ebx, dword [esp + 0x20]
mov ecx, dword [0x631438]
xor eax, eax
test edx, edx
sete al
add eax, ecx
jne 0x50be0e
push 0x620ad0
call fcn.004e70c0
add esp, 4
push 0x30c
push str.C:4017_buildmysql_4.0.17innobasedictdict0dict.c
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
call fcn.004d1950
add esp, 4
push eax
push str.__InnoDB:_Assertion_failure_in_thread__lu_in_file__s_line__lu_n
push 0x620ad0
call fcn.00599e71
push str.InnoDB:_Failing_assertion:_table2__NULL
push 0x620ad0
call fcn.00599e71
push str._nInnoDB:_We_intentionally_generate_a_memory_trap._n
push 0x620ad0
call fcn.00599e71
push str.InnoDB:_Send_a_detailed_bug_report_to_mysql_lists.mysql.com_n
push 0x620ad0
call fcn.00599e71
mov ecx, dword [0x631440]
mov dword [0x63143c], 1
mov eax, dword [ecx]
add esp, 0x2c
test eax, eax
je 0x50be17
mov dword [0x631440], 0
jmp 0x50be17
mov eax, dword [0x63143c]
test eax, eax
je 0x50be4c
push 0x30c
push str.C:4017_buildmysql_4.0.17innobasedictdict0dict.c
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
call fcn.004d1950
add esp, 4
push eax
push str.InnoDB:_Thread__lu_stopped_in_file__s_line__lu_n
push 0x620ad0
call fcn.00599e71
push 0x3b9aca00
call fcn.004e7040
add esp, 0x18
mov edx, dword [0x6314ec]
mov ecx, dword [edx + 0x38]
mov eax, edi
xor eax, 0x62946a4f
xor edx, edx
mov dword [esp + 0x10], eax
div dword [ecx]
mov eax, dword [ecx + 4]
mov edx, dword [eax + edx*4]
test edx, edx
je 0x50be8b
mov edi, dword [esi]
mov ebp, dword [esi + 4]
mov eax, dword [edx]
cmp eax, edi
mov ecx, dword [edx + 4]
ja 0x50be84
jb 0x50be84
cmp ecx, ebp
ja 0x50be84
jae 0x50be8b
mov edx, dword [edx + 0x1c]
test edx, edx
jne 0x50be73
mov eax, dword [0x631438]
xor ecx, ecx
test edx, edx
sete cl
add ecx, eax
jne 0x50bf26
push 0x620ad0
call fcn.004e70c0
add esp, 4
push 0x314
push str.C:4017_buildmysql_4.0.17innobasedictdict0dict.c
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
call fcn.004d1950
add esp, 4
push eax
push str.__InnoDB:_Assertion_failure_in_thread__lu_in_file__s_line__lu_n
push 0x620ad0
call fcn.00599e71
push str.InnoDB:_Failing_assertion:_table2__NULL
push 0x620ad0
call fcn.00599e71
push str._nInnoDB:_We_intentionally_generate_a_memory_trap._n
push 0x620ad0
call fcn.00599e71
push str.InnoDB:_Send_a_detailed_bug_report_to_mysql_lists.mysql.com_n
push 0x620ad0
call fcn.00599e71
mov edx, dword [0x631440]
mov dword [0x63143c], 1
mov eax, dword [edx]
add esp, 0x2c
test eax, eax
je 0x50bf2f
mov dword [0x631440], 0
jmp 0x50bf2f
mov eax, dword [0x63143c]
test eax, eax
je 0x50bf64
push 0x314
push str.C:4017_buildmysql_4.0.17innobasedictdict0dict.c
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
call fcn.004d1950
add esp, 4
push eax
push str.InnoDB:_Thread__lu_stopped_in_file__s_line__lu_n
push 0x620ad0
call fcn.00599e71
push 0x3b9aca00
call fcn.004e7040
add esp, 0x18
cmp dword [esi + 8], 2
jne 0x50c06e
mov eax, dword [esi + 0x80]
cmp eax, 0x80
mov ecx, dword [esi + 0x84]
mov dword [esp + 0x18], ecx
jae 0x50bf8c
mov eax, 1
jmp 0x50bfb2
cmp eax, 0x4000
jae 0x50bf9a
mov eax, 2
jmp 0x50bfb2
cmp eax, 0x200000
jae 0x50bfa8
mov eax, 3
jmp 0x50bfb2
cmp eax, 0x10000000
sbb eax, eax
add eax, 5
mov ebx, dword [esi + 0x84]
add eax, 4
mov dword [esi + 0x8c], eax
mov eax, dword [esi + 0x80]
cmp eax, 0x80
lea ebp, [esi + 0x90]
jae 0x50bfde
mov byte [ebp], al
mov eax, 1
jmp 0x50c04c
cmp eax, 0x4000
jae 0x50bffc
or eax, 0x8000
mov edx, eax
shr edx, 8
mov byte [ebp + 1], al
mov byte [ebp], dl
mov eax, 2
jmp 0x50c04c
cmp eax, 0x200000
jae 0x50c019
or eax, 0xc00000
push eax
push ebp
call fcn.0050c180
add esp, 8
mov eax, 3
jmp 0x50c04c
cmp eax, 0x10000000
jae 0x50c036
or eax, 0xe0000000
push eax
push ebp
call fcn.004f9d20
add esp, 8
mov eax, 4
jmp 0x50c04c
push eax
lea eax, [ebp + 1]
push eax
mov byte [ebp], 0xf0
call fcn.004f9d20
add esp, 8
mov eax, 5
mov ecx, ebx
shr ecx, 0x18
mov byte [eax + ebp], cl
mov edx, ebx
mov ecx, ebx
shr edx, 0x10
shr ecx, 8
mov byte [eax + ebp + 3], bl
mov ebx, dword [esp + 0x20]
mov byte [eax + ebp + 1], dl
mov byte [eax + ebp + 2], cl
mov eax, dword [esi + 0x24]
xor ebp, ebp
test eax, eax
jbe 0x50c093
xor edi, edi
mov edx, dword [esi + 0x28]
add edx, edi
push edx
push esi
call fcn.0050c8a0
mov eax, dword [esi + 0x24]
add esp, 8
inc ebp
add edi, 0x2c
cmp ebp, eax
jb 0x50c079
mov dword [esi + 0x18], 0
mov eax, dword [0x6314ec]
mov ecx, dword [eax + 0x34]
mov eax, ebx
xor edx, edx
div dword [ecx]
mov ecx, dword [ecx + 4]
xor edi, edi
pop ebx
lea eax, [ecx + edx*4]
mov ecx, dword [eax]
cmp ecx, edi
jne 0x50c0bb
mov dword [eax], esi
jmp 0x50c0ce
mov eax, dword [ecx + 0x18]
cmp eax, edi
je 0x50c0cb
mov ecx, eax
mov eax, dword [ecx + 0x18]
cmp eax, edi
jne 0x50c0c2
mov dword [ecx + 0x18], esi
mov eax, dword [esp + 0xc]
mov dword [esi + 0x1c], edi
mov edx, dword [0x6314ec]
mov ecx, dword [edx + 0x38]
xor edx, edx
div dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [eax + edx*4]
cmp ecx, edi
lea eax, [eax + edx*4]
jne 0x50c0f3
mov dword [eax], esi
jmp 0x50c106
mov eax, dword [ecx + 0x1c]
cmp eax, edi
je 0x50c103
mov ecx, eax
mov eax, dword [ecx + 0x1c]
cmp eax, edi
jne 0x50c0fa
mov dword [ecx + 0x1c], esi
mov eax, dword [0x6314ec]
inc dword [eax + 0x44]
mov ecx, dword [0x6314ec]
mov edx, dword [ecx + 0x48]
mov dword [esi + 0x54], edx
mov dword [esi + 0x50], edi
mov eax, dword [0x6314ec]
mov eax, dword [eax + 0x48]
cmp eax, edi
je 0x50c12c
mov dword [eax + 0x50], esi
mov ecx, dword [0x6314ec]
mov dword [ecx + 0x48], esi
mov edx, dword [0x6314ec]
cmp dword [edx + 0x4c], edi
jne 0x50c149
mov dword [edx + 0x4c], esi
mov edx, dword [0x6314ec]
mov esi, dword [esi + 0xc]
xor ecx, ecx
cmp esi, edi
mov eax, esi
je 0x50c160
mov ebp, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
add ecx, ebp
cmp eax, edi
jne 0x50c154
cmp dword [esi + 0x38], edi
pop edi
pop esi
pop ebp
je 0x50c16e
add ecx, 0x4000
add dword [edx + 0x50], ecx
add esp, 0xc
ret