Function at 0x417f30
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x5c
fld xword [esp + 0x70]
fld st(0)
fstp xword [esp + 0x28]
fxam
wait
fnstsw ax
and ax, 0x4500
cmp ax, 0x100
je 0x41840c
movzx edi, word [esp + 0x30]
test di, di
js 0x418370
fxam
wait
fnstsw ax
fstp st(0)
and ax, 0x4500
cmp ax, 0x500
je 0x418421
and di, 0x7fff
mov word [esp + 8], di
je 0x418120
mov esi, dword [ebx + 0xc]
sub word [esp + 8], 0x3fff
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
cmp esi, 0xe
ja 0x4183e2
test ebp, ebp
js 0x417fba
nop
lea esi, [esi]
shld ebp, edi, 1
add edi, edi
test ebp, ebp
jns 0x417fb0
mov ecx, 0xe
mov eax, 4
xor edx, edx
sub ecx, esi
shl ecx, 2
shld edx, eax, cl
shl eax, cl
test cl, 0x20
je 0x417fd9
mov edx, eax
xor eax, eax
shrd edi, ebp, 1
shr ebp, 1
add eax, edi
adc edx, ebp
test edx, edx
js 0x418401
shld edx, eax, 1
add eax, eax
mov ecx, 0xf
sub ecx, esi
xor esi, esi
shl ecx, 2
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
cmovne eax, edx
cmovne edx, esi
mov edi, eax
mov ebp, edx
mov eax, dword [ebx + 4]
lea edx, [esp + 0x38]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov esi, edx
mov edx, eax
mov dword [esp + 0x18], eax
and eax, 0x20
and edx, 0x800
mov byte [esp + 0x17], al
mov dword [esp + 0x1c], edx
movzx edx, word [esp + 8]
jmp 0x41808f
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jle 0x418055
mov ebx, dword [esp + 0xc]
sub ecx, 1
mov dword [ebx + 0xc], ecx
shrd edi, ebp, 4
shr ebp, 4
test eax, eax
mov dword [esp + 8], esi
je 0x4180f2
mov esi, dword [esp + 8]
add esi, 1
cmp eax, 9
jle 0x418116
add eax, 0x37
or al, byte [esp + 0x17]
mov ecx, dword [esp + 8]
mov byte [ecx], al
mov ecx, ebp
or ecx, edi
je 0x418165
mov eax, edi
and eax, 0xf
cmp edi, eax
jne 0x418040
cmp esi, dword [esp + 0x10]
ja 0x4180b5
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x4180b5
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], esi
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jle 0x4180bf
lea ecx, [esi + 1]
mov byte [esi], 0x2e
mov dword [esp + 8], ecx
cmp ebp, 0
ja 0x4180c9
cmp edi, 1
jbe 0x4180e6
lea ecx, [edx - 1]
lea esi, [esi]
shrd edi, ebp, 1
shr ebp, 1
mov edx, ecx
mov ebx, edi
mov esi, ebp
lea ecx, [edx - 1]
xor ebx, 1
or esi, ebx
jne 0x4180d0
xor edi, edi
xor ebp, ebp
test eax, eax
jne 0x418068
mov ebx, dword [esp + 0x10]
cmp dword [esp + 8], ebx
ja 0x41810f
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 0xc]
mov esi, dword [esp + 8]
test ecx, ecx
js 0x418085
mov esi, dword [esp + 8]
add esi, 1
add eax, 0x30
jmp 0x41807f
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov edx, ebp
or edx, edi
je 0x41838f
test ebp, ebp
js 0x418443
mov eax, 0xffffc001
nop
shld ebp, edi, 1
mov edx, eax
add edi, edi
sub eax, 1
test ebp, ebp
jns 0x418140
mov word [esp + 8], dx
mov esi, dword [ebx + 0xc]
cmp esi, 0xe
ja 0x41800f
jmp 0x417fba
cmp esi, dword [esp + 0x10]
mov word [esp + 8], dx
mov ebx, dword [esp + 0xc]
je 0x4183aa
mov eax, dword [ebx + 8]
test eax, eax
mov dword [esp + 0xc], eax
jle 0x41837c
mov eax, esi
sub eax, dword [esp + 0x10]
mov edx, dword [ebx + 0xc]
movsx edi, word [esp + 8]
test edx, edx
lea ecx, [eax + edx]
mov dword [esp + 8], edi
cmovg eax, ecx
xor edx, edx
test dword [esp + 0x18], 0x1c0
mov ecx, 0x66666667
setne dl
lea ebp, [eax + edx + 5]
mov eax, edi
imul ecx
mov eax, edi
sar eax, 0x1f
mov ecx, edx
sar ecx, 2
sub ecx, eax
je 0x418439
mov edi, 2
mov eax, 0x66666667
add ebp, 1
add edi, 1
imul ecx
sar ecx, 0x1f
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x4181d2
movsx edi, di
mov eax, dword [esp + 0xc]
cmp eax, ebp
jle 0x418250
sub eax, ebp
test dword [esp + 0x18], 0x600
jne 0x4183c9
sub eax, 1
mov dword [ebx + 8], eax
lea esi, [esi]
mov edx, ebx
mov eax, 0x20
call dbg.__pformat_putc
mov eax, dword [ebx + 8]
lea edx, [eax - 1]
test eax, eax
mov dword [ebx + 8], edx
jg 0x418210
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
test byte [esp + 0x18], 0x80
je 0x41825e
mov esi, esi
lea edi, [edi]
mov edx, ebx
mov eax, 0x2d
call dbg.__pformat_putc
jmp 0x418277
mov dword [ebx + 8], 0xffffffff
test byte [esp + 0x18], 0x80
jne 0x418240
test dword [esp + 0x18], 0x100
jne 0x4183d1
test byte [esp + 0x18], 0x40
jne 0x4183f0
mov edx, ebx
mov eax, 0x30
call dbg.__pformat_putc
mov eax, dword [ebx + 4]
mov edx, ebx
and eax, 0x20
or eax, 0x58
call dbg.__pformat_putc
mov eax, dword [ebx + 8]
test eax, eax
jle 0x4182c9
test byte [ebx + 5], 2
je 0x4182c9
sub eax, 1
mov dword [ebx + 8], eax
lea esi, [esi]
lea edi, [edi]
mov edx, ebx
mov eax, 0x30
call dbg.__pformat_putc
mov eax, dword [ebx + 8]
lea edx, [eax - 1]
test eax, eax
mov dword [ebx + 8], edx
jg 0x4182b0
cmp esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x10]
ja 0x4182f7
jmp 0x41831c
movzx eax, word [ebx + 0x1c]
test ax, ax
mov word [esp + 0x26], ax
je 0x4182f3
lea eax, [esp + 0x26]
mov ecx, ebx
mov edx, 1
call dbg.__pformat_wputchars
cmp esi, ebp
je 0x41831c
sub esi, 1
movsx eax, byte [esi]
cmp eax, 0x2e
je 0x418360
cmp eax, 0x2c
je 0x4182d5
mov edx, ebx
call dbg.__pformat_putc
jmp 0x4182f3
mov edx, ebx
mov eax, 0x30
call dbg.__pformat_putc
mov eax, dword [ebx + 0xc]
lea edx, [eax - 1]
test eax, eax
mov dword [ebx + 0xc], edx
jg 0x418310
mov eax, dword [ebx + 4]
mov edx, ebx
and eax, 0x20
or eax, 0x50
call dbg.__pformat_putc
mov eax, dword [esp + 8]
add dword [ebx + 8], edi
mov ecx, ebx
or dword [ebx + 4], 0x1c0
cdq
call sym.___pformat_int.isra.0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
call dbg.__pformat_emit_radix_point
jmp 0x4182f3
or dword [ebx + 4], 0x80
jmp 0x417f64
movsx eax, word [esp + 8]
mov edi, 2
mov dword [esp + 8], eax
jmp 0x418257
mov esi, dword [ebx + 0xc]
cmp esi, 0xe
jbe 0x417fb0
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x10], eax
mov edx, dword [ebx + 0xc]
test edx, edx
jle 0x418452
lea eax, [esp + 0x39]
mov byte [esp + 0x38], 0x2e
lea esi, [eax + 1]
mov byte [eax], 0x30
jmp 0x418178
mov dword [ebx + 8], eax
jmp 0x418257
mov edx, ebx
mov eax, 0x2b
call dbg.__pformat_putc
jmp 0x418277
mov edx, ebp
or edx, edi
jne 0x41800f
jmp 0x41839b
mov edx, ebx
mov eax, 0x20
call dbg.__pformat_putc
jmp 0x418277
add word [esp + 8], 1
jmp 0x417ff1
fstp st(0)
mov ecx, ebx
mov edx, 0x4ab41e
xor eax, eax
call dbg.__pformat_emit_inf_or_nan
jmp 0x41834f
mov eax, edi
mov ecx, ebx
mov edx, 0x4ab422
and eax, 0x8000
call dbg.__pformat_emit_inf_or_nan
jmp 0x41834f
mov edi, 2
jmp 0x4181ee
mov eax, 0xffffc002
mov word [esp + 8], ax
jmp 0x418154
test dword [esp + 0x18], 0x800
mov eax, dword [esp + 0x10]
je 0x4183be
jmp 0x4183b5