Function at 0x404607
Capabilities:
Encode data using xor
Hash data using fnv
Query environment variable
Terminate process

Disassembly:
cmp ecx, 0x100
jae 0x401994
cmp byte [esi], 0x40
je 0x404697
cmp byte [esi], 0x2e
jne 0x404714
cmp byte [esi + 1], 0x2e
je 0x404714
cmp dword [0x4171e4], 0
je 0x404714
push edi
mov edi, dword [0x41717c]
sub edi, 2
sub edi, ecx
push ecx
push esi
mov esi, dword [0x4171e4]
lodsb al, byte [esi]
movzx ecx, al
sub edi, ecx
cmp edi, dword [0x417198]
jb 0x4017ad
mov word [edi], 0
add edi, 2
mov ebx, edi
rep movsb byte es:[edi], byte [esi]
pop esi
pop ecx
add al, cl
jb 0x401994
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
push esi
movzx ecx, al
mov byte [ebx - 1], al
mov esi, ebx
call fcn.00404607
pop esi
pop ebx
cmp ebx, dword [eax + 0x18]
jne 0x404696
lea edx, [ebx - 2]
mov dword [0x41717c], edx
ret
cmp ecx, 2
jne 0x404714
mov al, byte [esi + 1]
mov ebx, 0x417301
xlatb
cmp al, 0x40
je 0x4046f2
cmp al, 0x62
je 0x4046d8
cmp al, 0x72
je 0x4046d8
cmp al, 0x66
jne 0x404714
add esi, 2
mov eax, dword [0x4171ec]
or eax, eax
jne 0x4046d5
mov eax, dword [0x4171b4]
mov dword [0x417228], eax
call fcn.004048cc
mov dword [0x4171ec], eax
xor ebx, ebx
ret
mov eax, dword [0x4171e8]
add esi, 2
or eax, eax
je 0x4046e6
jmp 0x4046d5
call fcn.004048cc
mov dword [0x4171e8], eax
jmp 0x4046d5
add esi, 2
mov eax, dword [0x4171ec]
or eax, eax
jne 0x404703
call fcn.004048cc
mov dword [0x4171e8], eax
mov dword [0x4171ec], 0
jmp 0x4046d5
cmp byte [esi], 0x25
je 0x404757
cmp byte [esi], 0x24
je 0x40472f
cmp byte [esi], 0x3f
jne 0x404770
cmp ecx, 1
jne 0x404770
inc esi
mov eax, 0xf
ret
cmp ecx, 2
ja 0x404770
inc esi
jb 0x404742
inc esi
cmp byte [esi - 1], 0x24
je 0x404751
sub esi, ecx
jmp 0x404770
xor eax, eax
ret
mov eax, 1
ret
mov eax, 2
ret
mov eax, 3
ret
cmp ecx, 2
ja 0x404770
inc esi
cmp cl, 1
je 0x404745
lodsb al, byte [esi]
mov ebx, 0x417301
xlatb
cmp al, 0x74
je 0x40474b
sub esi, 2
xor ebx, ebx
mov eax, 0x811c9dc5
mov ebp, 0x1000193
xor al, byte [esi + ebx]
mul ebp
inc bl
cmp bl, cl
jb 0x40477c
mov ebp, eax
shl eax, 8
and ebp, 0xff000000
xor ebp, eax
or ebp, ebx
mov dword [0x4171f4], ebp
push edi
push esi
push ecx
mov ecx, 0x20
mov ebx, 0x4171fc
mov edx, dword [ebx]
or edx, edx
je 0x4047ef
xor eax, eax
shl ebp, 1
adc eax, 0
lea ebx, [edx + eax*4]
dec ecx
jne 0x4047a9
mov dword [0x4171f8], ebx
pop edx
mov eax, dword [ebx]
or eax, eax
je 0x404824
mov ebx, esi
mov ebp, dword [0x4171f4]
mov esi, ebx
mov ecx, edx
mov edi, dword [eax + 4]
mov edi, dword [edi + 0x18]
repe cmpsb byte [esi], byte es:[edi]
je 0x4047e7
mov eax, dword [eax]
or eax, eax
jne 0x4047d1
jmp 0x404824
add esp, 4
pop edi
mov eax, dword [eax + 4]
ret
mov edx, dword [0x417198]
lea eax, [edx + 8]
cmp eax, dword [0x41717c]
ja 0x4017ad
mov dword [0x417198], eax
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
shl ebp, 1
adc eax, 0
mov dword [ebx], edx
lea ebx, [edx + eax*4]
dec ecx
jne 0x4047ef
mov dword [0x4171f8], ebx
pop edx
mov ecx, edx
pop esi
cmp byte [esi - 2], 0
je 0x404896
mov al, byte [esi]
cmp al, 0x30
jb 0x40483b
cmp al, 0x39
jbe 0x40199b
cmp al, 0x24
jne 0x40484f
cmp ecx, 1
jne 0x40199b
mov eax, 0xf
pop edi
ret
call fcn.004045a0
jae 0x404848
call fcn.00404574
jae 0x404848
call fcn.00404503
jae 0x404848
sub esi, 2
mov edi, 0x412aec
call fcn.0040449f
or al, al
jne 0x404848
mov edi, 0x412b16
call fcn.0040449f
or al, al
jne 0x404848
mov edi, 0x412b2c
call fcn.0040449f
or al, al
jne 0x404848
inc esi
movzx ecx, byte [esi]
inc esi
mov edx, dword [0x417198]
lea eax, [edx + 8]
cmp eax, dword [0x41717c]
ja 0x4017ad
mov dword [0x417198], eax
mov ebx, esi
add esi, ecx
mov eax, dword [0x4171f8]
mov edi, dword [eax]
mov dword [edx], edi
mov dword [eax], edx
call fcn.004048cc
mov dword [edx + 4], eax
mov dword [eax + 0x18], ebx
pop edi
ret