Function at 0x10025890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100d92b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x2c]
push ebx
push esi
push edi
add eax, 0xc
xor edi, edi
call fcn.10057630
mov esi, dword [ebp + 0x24]
mov ebx, esp
mov byte [ebx], 0
test esi, esi
je 0x10025912
push edi
push ebx
push 4
push 3
call fcn.1003e9e0
push eax
mov eax, dword [esi]
push ebx
dec eax
push 4
push eax
call fcn.1003e9e0
push eax
mov eax, dword [esi + 4]
push ebx
dec eax
push 4
push eax
call fcn.1003e9e0
add esp, 0x30
mov edx, eax
add esi, 8
mov ecx, esi
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100258f0
push edx
push ebx
sub ecx, edi
push 8
push ecx
push esi
call fcn.1003f3e0
add esp, 8
push eax
call fcn.1003e9e0
add esp, 0x10
mov edi, eax
mov edx, dword [ebp + 0x28]
test edx, edx
je 0x10025936
cmp dword [ebp + 0xc], 0x29
push edi
push ebx
jge 0x10025925
push 4
jmp 0x10025927
push 3
push 5
call fcn.1003e9e0
mov edx, dword [ebp + 0x28]
mov edi, eax
add esp, 0x10
cmp dword [ebp + 0x20], 0
jle 0x1002597c
mov esi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
add esi, 4
push dword [ebp + 0x30]
push dword [esi + 4]
push edx
push dword [esi]
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
push ebx
call fcn.10025140
mov ecx, dword [ebp + 0x18]
lea esi, [esi + 0xc]
mov edx, dword [ebp + 0x28]
mov edi, eax
mov eax, dword [esi - 0xc]
add esp, 0x24
add dword [ebp + 0x14], eax
sub dword [ebp + 0x20], 1
lea ecx, [ecx + eax*4]
mov dword [ebp + 0x18], ecx
jne 0x10025945
mov ecx, dword [ebp + 0xc]
lea eax, [ecx - 0x49]
cmp eax, 3
ja 0x100259aa
push edi
push ebx
push dword [ebp + 8]
call fcn.10058800
add esp, 0xc
mov eax, edi
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10057052
mov esp, ebp
pop ebp
ret
mov edx, edi
and edx, 0x80000007
jns 0x100259b9
dec edx
or edx, 0xfffffff8
inc edx
mov eax, 8
sub eax, edx
neg edx
sbb edx, edx
and edx, eax
mov dword [ebp - 8], edx
lea eax, [edx + edi]
cdq
and edx, 7
lea esi, [edx + eax]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
sar esi, 3
test edx, edx
jne 0x100259e4
cmp esi, eax
jge 0x10025a1c
cmp ecx, 0x29
jge 0x100259f0
mov ecx, 4
jmp 0x10025a03
cmp ecx, 0x49
jge 0x100259fc
mov ecx, 3
jmp 0x10025a03
lea ecx, [ecx*2 - 0x8f]
cmp edx, ecx
jge 0x10025a0b
cmp esi, eax
je 0x10025a0d
mov edx, ecx
push edi
push ebx
push edx
push 0
call fcn.1003e9e0
add esp, 0x10
mov edi, eax
mov ecx, edi
and ecx, 0x80000007
jns 0x10025a2b
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, 8
sub eax, ecx
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 8], ecx
je 0x10025a5b
lea eax, [ecx + edi]
cdq
push edi
and edx, 7
push ebx
add eax, edx
push ecx
mov esi, eax
push 0
sar esi, 3
call fcn.1003e9e0
mov ecx, dword [ebp - 8]
add esp, 0x10
cmp dword [ebp + 0x30], 0
je 0x10025a72
push ecx
push ebx
push edi
push edi
push str.Terminated_binary___d_:__.s__padbits__d__n
call fcn.10007430
add esp, 0x14
mov edi, dword [ebp + 8]
xor edx, edx
test esi, esi
jle 0x10025ae6
lea ecx, [ebx + 2]
nop
mov byte [edx + edi], 0
xor al, al
cmp byte [ecx - 2], 0x31
jne 0x10025a92
mov byte [edx + edi], 0x80
mov al, 0x80
cmp byte [ecx - 1], 0x31
jne 0x10025a9d
or al, 0x40
mov byte [edx + edi], al
cmp byte [ecx], 0x31
jne 0x10025aa7
or al, 0x20
mov byte [edx + edi], al
cmp byte [ecx + 1], 0x31
jne 0x10025ab2
or al, 0x10
mov byte [edx + edi], al
cmp byte [ecx + 2], 0x31
jne 0x10025abd
or al, 8
mov byte [edx + edi], al
cmp byte [ecx + 3], 0x31
jne 0x10025ac8
or al, 4
mov byte [edx + edi], al
cmp byte [ecx + 4], 0x31
jne 0x10025ad3
or al, 2
mov byte [edx + edi], al
cmp byte [ecx + 5], 0x31
jne 0x10025ade
or al, 1
mov byte [edx + edi], al
inc edx
add ecx, 8
cmp edx, esi
jl 0x10025a80
mov ebx, dword [ebp + 0x10]
xor edx, edx
cmp esi, ebx
jge 0x10025b0e
nop
mov ecx, edx
mov eax, 0xec
xor ecx, 1
test edx, edx
mov edx, 0x11
cmovne eax, edx
mov edx, ecx
mov byte [esi + edi], al
inc esi
cmp esi, ebx
jl 0x10025af0
cmp dword [ebp + 0x30], 0
je 0x10025b54
push str.Resulting_codewords:_n_t
call fcn.10007430
add esp, 4
xor esi, esi
test ebx, ebx
jle 0x10025b47
nop word [eax + eax]
movzx eax, byte [esi + edi]
push eax
push str.0x_02X
call fcn.10007430
inc esi
add esp, 8
cmp esi, ebx
jl 0x10025b30
push 0x100864bc
call fcn.10007430
add esp, 4
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10057052
mov esp, ebp
pop ebp
ret