Function at 0x6151e4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x615201
cmp dword [ebx + 0x2c], 0
jne 0x615206
mov edi, ebx
mov dword [ebp + 0xc], edi
cmp dword [edi + 0x1c], ebx
je 0x61520e
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x40
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebx + 0x2e4], 0
mov dword [ebx + 0x2e8], 0
mov dword [ebp - 0x10], 0x40
call fcn.006119c4
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
jne 0x615264
push 0x660558
call fcn.006140a4
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x3c]
push edi
push ebx
mov dword [ebp - 4], esi
call eax
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x2f0]
push ebx
call eax
mov edi, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x1c], eax
cmp esi, edi
jbe 0x6153a2
cmp eax, 0x3c
je 0x61529c
cmp eax, 0xffffffff
jne 0x6153ab
mov edi, dword [ebp - 0x14]
mov byte [esi], 0
cmp edi, 2
je 0x6152ac
cmp edi, 0xffffffff
jne 0x6152ba
push dword [ebp + 8]
call fcn.00613424
add esp, 4
mov dword [ebp - 4], eax
push dword [ebp + 8]
xor esi, esi
call fcn.006127d4
add esp, 4
test eax, eax
je 0x615391
mov eax, edi
sub eax, 1
je 0x61533f
sub eax, 1
je 0x615323
sub eax, 1
jne 0x615391
cmp dword [ebx + 0x44], esi
je 0x615991
mov edi, dword [ebp - 8]
mov dword [edi + 0x18], 3
push dword [ebp + 8]
mov eax, dword [ebx + 0x44]
push edi
push ebx
call eax
add esp, 0xc
test eax, eax
jne 0x615391
push dword [edi]
push dword [ebp + 8]
push 0x6605a0
call fcn.006140a4
add esp, 0xc
jmp 0x615ad0
mov edi, dword [ebp - 8]
push 1
mov dword [edi + 0x18], 2
push dword [ebp + 8]
push edi
call fcn.00616ac4
add esp, 0xc
test eax, eax
jmp 0x61538b
cmp dword [ebx + 0x2e8], esi
je 0x615376
push dword [ebp + 8]
call fcn.00612a54
mov edi, dword [ebp - 8]
add esp, 4
cmp byte [eax], 0
je 0x615379
cmp dword [edi + 0x18], esi
jne 0x615379
mov dword [edi + 0x18], 1
push dword [ebp + 8]
push edi
call fcn.00614f34
add esp, 8
test eax, eax
jmp 0x61538b
mov edi, dword [ebp - 8]
push dword [ebp + 8]
push 0
push edi
call fcn.00614ed4
mov esi, eax
add esp, 0xc
test esi, esi
je 0x6159a3
mov eax, dword [ebp - 0xc]
test eax, eax
mov edi, dword [ebp + 8]
cmove eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x615aa2
cmp eax, 0x3c
jne 0x615952
mov eax, dword [ebx + 0x2f0]
push ebx
mov dword [ebp - 4], edi
call eax
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x6154dd
nop word [eax + eax]
push esi
call fcn.006139f4
add esp, 4
test eax, eax
jne 0x6154dd
cmp esi, 0x3e
je 0x6154dd
cmp esi, 0x2f
jne 0x6153fe
cmp edi, dword [ebp + 8]
ja 0x6154dd
jmp 0x61545e
cmp esi, 0x3c
je 0x6159bb
cmp esi, 0x26
jne 0x615446
push dword [ebp - 8]
push ebx
call fcn.00615f94
add esp, 8
cmp eax, 0xffffffff
je 0x615ad0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.006150c4
add esp, 0x10
test eax, eax
je 0x615ad0
mov edi, dword [ebp - 4]
jmp 0x6154c6
cmp esi, 0x30
jge 0x61545e
cmp esi, 0x21
je 0x61545e
cmp esi, 0x2d
je 0x61545e
cmp esi, 0x2e
jne 0x615ad0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.006150c4
add esp, 0x10
test eax, eax
je 0x615ad0
mov edi, dword [ebp - 4]
mov eax, edi
mov ecx, dword [ebp + 8]
sub eax, ecx
cmp eax, 1
jne 0x61548f
cmp byte [ecx], 0x3f
je 0x6154dd
cmp eax, 3
jne 0x6154aa
push eax
push 0x660610
push ecx
call 0x811f34
add esp, 0xc
test eax, eax
je 0x6154dd
mov ecx, dword [ebp + 8]
mov eax, edi
sub eax, ecx
cmp eax, 8
jne 0x6154c6
push eax
push 0x6602cc
push ecx
call 0x811f34
add esp, 0xc
test eax, eax
je 0x6154dd
mov eax, dword [ebx + 0x2f0]
push ebx
call eax
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
jne 0x6153d4
mov byte [edi], 0
mov ecx, 0x660610
mov eax, dword [ebp + 8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x615508
test dl, dl
je 0x615504
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x615508
add eax, 2
add ecx, 2
xchg esp, eax
outsb dx, byte [esi]
adc dh, cl
retf
in eax, 0xe
mov ah, 0x69
or byte [esi], 0xbd
dec edi
inc ecx
fsubp st(2)
or al, 0x64
into
xchg esi, eax
pop edi
add al, 0xae
adc al, 0xc5
and byte [ebx + 0x6dd34736], dl
iretd
dec ebx
loope 0x6159b6
retf
stc
push eax
sub eax, 0x9f92dd4c
invalid
fdiv st(4)
fiadd word [ebp + esi - 0x491b6ce5]
xor eax, 0xb6e4931b
inc eax
jg 0x61599e
sahf
stosd dword es:[edi], eax
out 0x52, al
bound eax, qword [eax - 0x11]
mov ch, byte [ebx]
pop ebp
add bh, byte [esi + edx*8 + 0x1d9fa2e8]
adc al, 0x5e
mov esp, 0x9fa2e8d6
sbb eax, 0x5e143e64
dec edi
xchg ah, dl
fld qword [ecx - 0x26271b6d]
cmpsd dword [esi], dword es:[edi]
int 0xa9
xchg esp, eax
sbb dword [esi + ebx*4 + 0x54], 0xffffffcf
clc
outsb dx, byte [esi]
invalid
cld
dec eax
pop ebp
add dword [edx - 0x2b], eax
outsb dx, byte [esi]
dec edx
adc edi, ebp
xor al, 0xef
xor esp, dword [edx + ecx]
and al, 0xa
and eax, 0xecb60ff
call [ecx + 0x7c7c95df]
jecxz 0x615af9
pop ebp
test eax, 0xd54e46ba
adc dh, byte [eax - 0x70310c3b]
pop ss
jne 0x615ac4
pushfd
mov al, byte [0x229fe3e]
adc al, byte [eax + 6]
pop edx
idiv dword [edi]
popal
pop esp
js 0x615a72
adc dword [esi + 0x44], edx
inc esp
lahf
push eax
mov ebp, 0x936c4664
mov ch, 0x1f
dec esp
aas
xchg esi, edx
inc esi
mov ebx, 0xe30466c7
scasd eax, dword es:[edi]
aam 0x12
push ss
xchg edi, eax
xchg esi, eax
pop edx
fist word [esi]
invalid
pop esp
out 0x71, eax
ja 0x615a64
test byte [ecx + 0x368b21bb], 0x16
je 0x615a90
push esp
out 0x61, al
ljmp 0x85fc
inc esi
fnstenv [ebx + 0x7f4606c1]
invalid