Function at 0x409370
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, 1
mov ebp, 2
xor eax, eax
mov edx, dword [esp + 0x48]
jmp 0x409393
inc esi
inc ebp
inc eax
mov ch, byte [edx + eax]
movzx edi, ch
lea ebx, [edi - 9]
cmp ebx, 5
jb 0x409390
cmp edi, 0x20
je 0x409390
mov dword [esp + 0x1c], ebp
mov byte [esp + 3], ch
add ch, 0xd5
xor ebx, ebx
test ch, 0xfd
sete bl
add ebx, edx
mov dword [esp + 0x14], ebx
xor ebp, ebp
mov ecx, 0xffffffff
jmp 0x4093d3
mov ebp, edx
inc ebp
mov edi, dword [esp + 0x14]
mov edx, ebp
add edi, ebp
movzx ebp, byte [esi + edi - 1]
lea ebx, [ebp - 0x30]
cmp ebx, 0xa
jb 0x4093d0
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebp
cmp ebp, 0x2e
mov edi, ecx
mov ebp, edx
jne 0x409402
mov ecx, ebp
test edi, edi
jns 0x409402
inc ebp
jmp 0x4093d3
xor ebx, ebx
test edi, edi
setns ch
jns 0x40940d
mov edi, ebp
mov bl, ch
mov edx, ebp
sub edx, ebx
movzx ecx, byte [esp + 3]
je 0x409458
mov dword [esp + 0x20], edi
neg ebx
cmp edx, 9
mov dword [esp + 0x18], ebp
mov dword [esp + 0xc], ebx
jle 0x40946d
mov dword [esp + 0x10], edx
lea ecx, [edx - 0xa]
mov dword [esp + 4], ecx
mov edi, dword [esp + 0x14]
lea ecx, [edi + esi]
movzx edx, byte [edi + esi - 1]
cmp dl, 0x2e
jne 0x40947e
movzx edx, byte [ecx]
mov ebx, dword [esp + 0x1c]
add edi, ebx
mov ebx, dword [esp + 0xc]
jmp 0x409480
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x409466
mov edx, dword [esp + 0x48]
mov dword [eax], edx
fldz
jmp 0x4097c9
fldz
test edx, edx
mov edi, dword [esp + 0x14]
jle 0x4094a6
add edi, eax
jmp 0x409608
mov edi, ecx
movsx edx, dl
lea ecx, [edx - 0x30]
cmp dword [esp + 4], 0
je 0x409600
movzx ebx, byte [edi]
cmp bl, 0x2e
jne 0x4094ad
movzx ebx, byte [edi + 1]
mov byte [esp + 4], bl
add edi, 2
jmp 0x4094b2
fld st(0)
jmp 0x40967b
inc edi
mov byte [esp + 4], bl
mov ebx, ecx
or ebx, 0xa
and edx, 0xa
imul ebx, edx
and ecx, 0xfffffff5
xor edx, 0xa
imul edx, ecx
movsx ecx, byte [esp + 4]
add edx, ebx
add ecx, edx
add ecx, 0xffffffd0
mov edx, dword [esp + 0x10]
cmp edx, 0xc
jl 0x4095fc
add edx, 0xfffffff4
movzx ebx, byte [edi]
cmp bl, 0x2e
mov dword [esp + 4], edx
jne 0x4094fb
movzx edx, byte [edi + 1]
mov byte [esp + 0xb], dl
add edi, 2
jmp 0x409500
inc edi
mov byte [esp + 0xb], bl
mov ebx, ecx
or ebx, 0xa
mov edx, ecx
and edx, 0xa
imul ebx, edx
and ecx, 0xfffffff5
xor edx, 0xa
imul edx, ecx
movsx ecx, byte [esp + 0xb]
add edx, ebx
add ecx, edx
add ecx, 0xffffffd0
cmp dword [esp + 4], 0
je 0x4095fc
movzx edx, byte [edi]
cmp dl, 0x2e
jne 0x409542
movzx edx, byte [edi + 1]
mov byte [esp + 4], dl
add edi, 2
jmp 0x409547
inc edi
mov byte [esp + 4], dl
mov ebx, ecx
or ebx, 0xa
mov edx, ecx
and edx, 0xa
imul ebx, edx
and ecx, 0xfffffff5
xor edx, 0xa
imul edx, ecx
movsx ecx, byte [esp + 4]
add edx, ebx
add ecx, edx
add ecx, 0xffffffd0
mov edx, dword [esp + 0x10]
cmp edx, 0xe
jl 0x4095fc
add edx, 0xfffffff2
movzx ebx, byte [edi]
cmp bl, 0x2e
mov dword [esp + 0x10], edx
jne 0x409592
movzx edx, byte [edi + 1]
mov byte [esp + 4], dl
add edi, 2
jmp 0x409597
inc edi
mov byte [esp + 4], bl
mov ebx, ecx
or ebx, 0xa
mov edx, ecx
and edx, 0xa
imul ebx, edx
and ecx, 0xfffffff5
xor edx, 0xa
imul edx, ecx
movsx ecx, byte [esp + 4]
add edx, ebx
add ecx, edx
add ecx, 0xffffffd0
cmp dword [esp + 0x10], 0
je 0x4095fc
movzx edx, byte [edi]
cmp dl, 0x2e
jne 0x4095d5
movzx edx, byte [edi + 1]
mov byte [esp + 0x10], dl
add edi, 2
jmp 0x4095da
inc edi
mov byte [esp + 0x10], dl
mov ebx, ecx
or ebx, 0xa
mov edx, ecx
and edx, 0xa
imul ebx, edx
and ecx, 0xfffffff5
xor edx, 0xa
imul edx, ecx
movsx ecx, byte [esp + 0x10]
add edx, ebx
add ecx, edx
add ecx, 0xffffffd0
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
lea edx, [ebx + ebp]
cmp edx, 9
jl 0x409615
mov edx, 9
inc edx
xor ebx, ebx
jmp 0x409661
mov ch, byte [edi + 1]
add edi, 2
mov dword [esp + 0x10], edi
mov edi, ebx
and edi, 0xa
mov ebp, ebx
or ebx, 0xa
imul ebx, edi
xor edi, 0xa
and ebp, 0xfffffff5
imul ebp, edi
add ebx, ebp
movsx edi, ch
mov ebp, edi
or ebp, 0xffffffcf
and edi, 0xffffffcf
add edi, ebx
lea ebx, [edi + ebp]
inc ebx
dec edx
cmp edx, 1
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
jle 0x40966b
mov ch, byte [edi]
cmp ch, 0x2e
je 0x409620
inc edi
jmp 0x409626
mov dword [esp + 0x2c], ebx
fild dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
fxch st(1)
fmul dword [str._knN]
faddp st(1)
mov edx, dword [esp + 0x28]
or edx, 0x20
cmp edx, 0x65
jne 0x4096b0
mov eax, dword [esp + 0x24]
movzx eax, byte [esi + eax]
mov edx, eax
add dl, 0xd5
test dl, 0xfd
je 0x4096b8
mov edi, dword [esp + 0x14]
add edi, esi
mov edx, edi
lea esi, [edi + ebp]
jmp 0x4096c4
add eax, ebp
add edi, eax
xor edx, edx
jmp 0x40971f
mov esi, dword [esp + 0x14]
add esi, dword [esp + 0x1c]
mov edx, esi
add esi, ebp
mov edi, ebp
mov ebp, esi
movzx ebx, byte [edx + edi]
lea esi, [ebx - 0x30]
xor edx, edx
cmp esi, 9
ja 0x40970f
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, edx
or esi, 0xa
mov edi, edx
and edi, 0xa
imul esi, edi
and edx, 0xfffffff5
xor edi, 0xa
imul edi, edx
movsx edx, bl
add edx, esi
add edx, edi
add edx, 0xffffffd0
movzx ebx, byte [ebp + 1]
inc ebp
mov esi, ebx
add esi, 0xffffffd0
cmp esi, 0xa
jb 0x4096e0
mov edi, ebp
cmp al, 0x2d
jne 0x409717
neg edx
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0xc]
lea eax, [ebx + ebp]
cmp eax, 0x10
jge 0x40972c
mov eax, 0xf
mov ebx, dword [esp + 0x20]
add ebx, edx
add ebx, eax
mov eax, ebx
mov ecx, dword [esp + 0xc]
sub eax, ecx
sub eax, ebp
add eax, 0xfffffff1
mov esi, eax
sar esi, 0x1f
mov edx, eax
xor edx, esi
sub edx, esi
cmp edx, 0x200
jb 0x409770
mov edx, 0x1ff
mov esi, dword [esp + 0x50]
test esi, esi
je 0x409767
mov dword [esi], 0x22
movzx ecx, byte [esp + 3]
fldz
jmp 0x409783
sub ecx, ebx
lea esi, [ecx + ebp]
add esi, 0xf
fld1
test esi, esi
movzx ecx, byte [esp + 3]
je 0x4097a7
fstp st(0)
fld1
mov esi, 0x4394d8
jmp 0x40979e
mov ebx, edx
shr ebx, 1
add esi, 8
cmp edx, 2
mov edx, ebx
jb 0x4097a7
test dl, 1
je 0x409790
fmul qword [esi]
jmp 0x409790
fld st(1)
fmul st(1)
test eax, eax
jns 0x4097bb
fstp st(0)
fdivp st(1)
fldz
fldz
fxch st(1)
fxch st(2)
fstp st(2)
fstp st(0)
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4097c9
mov dword [eax], edi
fld st(0)
fchs
cmp cl, 0x2d
je 0x4097d8
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret