Function at 0x51b6fd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x8c], eax
call fcn.00513375
test eax, eax
jne 0x51baec
mov ebx, eax
mov eax, 5
call fcn.00491bf1
mov dword [esp], eax
mov dword [ebp - 0x90], eax
call fcn.00493e90
cmp dword [ebp - 0x5c], 0
jle 0x51b74e
cmp dword [ebp - 0x8c], 0
jne 0x51b75d
mov dword [0x67d200], 0
jmp 0x51b80c
cmp dword [0x67d200], 0
jne 0x51b7e3
mov dword [esp], 0
mov esi, str.expand_32_byte_kthstndrd
mov edi, 0x67d200
call fcn.00513711
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
test eax, eax
jne 0x51b790
mov ecx, 0xb
rep stosd dword es:[edi], eax
jmp 0x51b7c8
mov edx, dword [0x660cd4]
test edx, edx
je 0x51b7b2
mov esi, 0x67d214
mov ecx, 0xa
mov eax, ebx
mov dword [0x67d210], edx
mov edi, esi
rep stosd dword es:[edi], eax
jmp 0x51b7c8
mov dword [esp + 8], 0x67d210
mov dword [esp + 4], 0x2c
mov dword [esp], eax
call dword [eax + 0x38]
mov eax, dword [0x67d230]
mov byte [0x67d280], 0
mov dword [0x67d230], 0
mov dword [0x67d23c], eax
movzx ecx, byte [0x67d280]
cmp ecx, dword [ebp - 0x5c]
jl 0x51b824
sub ecx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x8c]
lea esi, [ecx + 0x67d240]
mov ecx, dword [ebp - 0x5c]
mov al, byte [ebp - 0x5c]
rep movsb byte es:[edi], byte [esi]
sub byte [0x67d280], al
mov eax, dword [ebp - 0x90]
mov dword [ebp + 8], eax
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00494bee
test cl, cl
je 0x51b845
mov edi, dword [ebp - 0x8c]
mov esi, 0x67d240
rep movsb byte es:[edi], byte [esi]
movzx eax, byte [0x67d280]
sub dword [ebp - 0x5c], eax
add dword [ebp - 0x8c], eax
mov eax, dword [0x67d230]
lea edi, [ebp - 0x58]
mov ecx, 0x10
mov esi, 0x67d200
mov dword [ebp - 0xa8], 0xa
inc eax
mov dword [0x67d230], eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x7c], esi
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x70], esi
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x88], esi
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x74], edi
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x84], esi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x80], ecx
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x6c], esi
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x78], edi
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x60], esi
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x68]
add esi, edx
xor eax, esi
rol eax, 0x10
add ebx, eax
xor edx, ebx
rol edx, 0xc
add esi, edx
xor eax, esi
mov dword [ebp - 0x68], esi
rol eax, 8
add ebx, eax
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x74]
xor edx, ebx
mov dword [ebp - 0x98], ebx
mov ebx, dword [ebp - 0x80]
rol edx, 7
mov dword [ebp - 0x9c], edx
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x74]
xor ebx, edx
rol ebx, 0x10
add ecx, ebx
xor eax, ecx
rol eax, 0xc
lea esi, [edx + eax]
mov edx, dword [ebp - 0x78]
xor ebx, esi
mov dword [ebp - 0x64], esi
mov esi, dword [ebp - 0x84]
rol ebx, 8
add ecx, ebx
mov dword [ebp - 0x80], ebx
mov ebx, dword [ebp - 0x70]
xor eax, ecx
mov dword [ebp - 0xa0], ecx
mov ecx, dword [ebp - 0x7c]
add ecx, dword [ebp - 0x78]
rol eax, 7
xor edi, ecx
rol edi, 0x10
add ebx, edi
xor edx, ebx
rol edx, 0xc
add ecx, edx
xor edi, ecx
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp - 0x60]
rol edi, 8
add ebx, edi
mov dword [ebp - 0xa4], edi
mov edi, dword [ebp - 0x88]
xor edx, ebx
add edi, dword [ebp - 0x84]
rol edx, 7
mov dword [ebp - 0x78], edx
mov edx, dword [ebp - 0x6c]
xor edx, edi
rol edx, 0x10
add ecx, edx
xor esi, ecx
rol esi, 0xc
add edi, esi
xor edx, edi
mov dword [ebp - 0x88], edi
rol edx, 8
add ecx, edx
xor esi, ecx
rol esi, 7
mov edi, esi
mov esi, dword [ebp - 0x68]
add esi, eax
xor edx, esi
rol edx, 0x10
add ebx, edx
xor eax, ebx
rol eax, 0xc
add esi, eax
xor edx, esi
mov dword [ebp - 0x68], esi
rol edx, 8
add ebx, edx
mov dword [ebp - 0x6c], edx
mov edx, dword [ebp - 0x64]
xor eax, ebx
add edx, dword [ebp - 0x78]
mov dword [ebp - 0x70], ebx
rol eax, 7
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x78]
xor eax, edx
rol eax, 0x10
add ecx, eax
xor ebx, ecx
rol ebx, 0xc
lea esi, [edx + ebx]
mov edx, dword [ebp - 0x80]
xor eax, esi
mov dword [ebp - 0x64], esi
mov esi, dword [ebp - 0xa4]
rol eax, 8
add ecx, eax
xor ebx, ecx
mov dword [ebp - 0x60], ecx
rol ebx, 7
mov dword [ebp - 0x78], ebx
mov ebx, dword [ebp - 0x7c]
lea ecx, [ebx + edi]
mov ebx, dword [ebp - 0x98]
xor edx, ecx
rol edx, 0x10
add ebx, edx
xor edi, ebx
rol edi, 0xc
add ecx, edi
xor edx, ecx
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp - 0xa0]
rol edx, 8
add ebx, edx
mov dword [ebp - 0x80], edx
mov edx, dword [ebp - 0x9c]
xor edi, ebx
rol edi, 7
mov dword [ebp - 0x84], edi
mov edi, dword [ebp - 0x88]
add edi, dword [ebp - 0x9c]
xor esi, edi
rol esi, 0x10
add ecx, esi
xor edx, ecx
rol edx, 0xc
add edi, edx
xor esi, edi
mov dword [ebp - 0x88], edi
rol esi, 8
add ecx, esi
mov edi, esi
xor edx, ecx
rol edx, 7
dec dword [ebp - 0xa8]
jne 0x51b8bd
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov edx, dword [eax*4 + 0x67d200]
add edx, dword [ebp + eax*4 - 0x58]
mov dword [eax*4 + 0x67d240], edx
inc eax
cmp eax, 0x10
jne 0x51bac8
mov byte [0x67d280], 0x40
jmp 0x51b7e3
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret