Function at 0x416150
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 0x41662c
movzx edi, word [esp + 0x30]
test di, di
js 0x416590
fxam
wait
fnstsw ax
fstp st(0)
and ax, 0x4500
cmp ax, 0x500
je 0x416641
and di, 0x7fff
mov word [esp + 8], di
je 0x416340
mov esi, dword [ebx + 0xc]
sub word [esp + 8], 0x3fff
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
cmp esi, 0xe
ja 0x416602
test ebp, ebp
js 0x4161da
nop
lea esi, [esi]
shld ebp, edi, 1
add edi, edi
test ebp, ebp
jns 0x4161d0
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 0x4161f9
mov edx, eax
xor eax, eax
shrd edi, ebp, 1
shr ebp, 1
add eax, edi
adc edx, ebp
test edx, edx
js 0x416621
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 0x4162af
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jle 0x416275
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 0x416312
mov esi, dword [esp + 8]
add esi, 1
cmp eax, 9
jle 0x416336
add eax, 0x37
or al, byte [esp + 0x17]
mov ecx, dword [esp + 8]
mov byte [ecx], al
mov ecx, ebp
or ecx, edi
je 0x416385
mov eax, edi
and eax, 0xf
cmp edi, eax
jne 0x416260
cmp esi, dword [esp + 0x10]
ja 0x4162d5
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x4162d5
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], esi
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jle 0x4162df
lea ecx, [esi + 1]
mov byte [esi], 0x2e
mov dword [esp + 8], ecx
cmp ebp, 0
ja 0x4162e9
cmp edi, 1
jbe 0x416306
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 0x4162f0
xor edi, edi
xor ebp, ebp
test eax, eax
jne 0x416288
mov ebx, dword [esp + 0x10]
cmp dword [esp + 8], ebx
ja 0x41632f
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 0xc]
mov esi, dword [esp + 8]
test ecx, ecx
js 0x4162a5
mov esi, dword [esp + 8]
add esi, 1
add eax, 0x30
jmp 0x41629f
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov edx, ebp
or edx, edi
je 0x4165af
test ebp, ebp
js 0x416663
mov eax, 0xffffc001
nop
shld ebp, edi, 1
mov edx, eax
add edi, edi
sub eax, 1
test ebp, ebp
jns 0x416360
mov word [esp + 8], dx
mov esi, dword [ebx + 0xc]
cmp esi, 0xe
ja 0x41622f
jmp 0x4161da
cmp esi, dword [esp + 0x10]
mov word [esp + 8], dx
mov ebx, dword [esp + 0xc]
je 0x4165ca
mov eax, dword [ebx + 8]
test eax, eax
mov dword [esp + 0xc], eax
jle 0x41659c
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 0x416659
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 0x4163f2
movsx edi, di
mov eax, dword [esp + 0xc]
cmp eax, ebp
jle 0x416470
sub eax, ebp
test dword [esp + 0x18], 0x600
jne 0x4165e9
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 0x416430
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
test byte [esp + 0x18], 0x80
je 0x41647e
mov esi, esi
lea edi, [edi]
mov edx, ebx
mov eax, 0x2d
call dbg.__pformat_putc
jmp 0x416497
mov dword [ebx + 8], 0xffffffff
test byte [esp + 0x18], 0x80
jne 0x416460
test dword [esp + 0x18], 0x100
jne 0x4165f1
test byte [esp + 0x18], 0x40
jne 0x416610
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 0x4164e9
test byte [ebx + 5], 2
je 0x4164e9
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 0x4164d0
cmp esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x10]
ja 0x416517
jmp 0x41653c
movzx eax, word [ebx + 0x1c]
test ax, ax
mov word [esp + 0x26], ax
je 0x416513
lea eax, [esp + 0x26]
mov ecx, ebx
mov edx, 1
call dbg.__pformat_wputchars
cmp esi, ebp
je 0x41653c
sub esi, 1
movsx eax, byte [esi]
cmp eax, 0x2e
je 0x416580
cmp eax, 0x2c
je 0x4164f5
mov edx, ebx
call dbg.__pformat_putc
jmp 0x416513
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 0x416530
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 0x416513
or dword [ebx + 4], 0x80
jmp 0x416184
movsx eax, word [esp + 8]
mov edi, 2
mov dword [esp + 8], eax
jmp 0x416477
mov esi, dword [ebx + 0xc]
cmp esi, 0xe
jbe 0x4161d0
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 0x416672
lea eax, [esp + 0x39]
mov byte [esp + 0x38], 0x2e
lea esi, [eax + 1]
mov byte [eax], 0x30
jmp 0x416398
mov dword [ebx + 8], eax
jmp 0x416477
mov edx, ebx
mov eax, 0x2b
call dbg.__pformat_putc
jmp 0x416497
mov edx, ebp
or edx, edi
jne 0x41622f
jmp 0x4165bb
mov edx, ebx
mov eax, 0x20
call dbg.__pformat_putc
jmp 0x416497
add word [esp + 8], 1
jmp 0x416211
fstp st(0)
mov ecx, ebx
mov edx, 0x4aa31e
xor eax, eax
call dbg.__pformat_emit_inf_or_nan
jmp 0x41656f
mov eax, edi
mov ecx, ebx
mov edx, 0x4aa322
and eax, 0x8000
call dbg.__pformat_emit_inf_or_nan
jmp 0x41656f
mov edi, 2
jmp 0x41640e
mov eax, 0xffffc002
mov word [esp + 8], ax
jmp 0x416374
test dword [esp + 0x18], 0x800
mov eax, dword [esp + 0x10]
je 0x4165de
jmp 0x4165d5