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

Disassembly:
cmp ecx, 0x100
jae 0x401ad3
cmp byte [esi], 0x40
je 0x4045d2
cmp byte [esi], 0x2e
jne 0x404643
cmp byte [esi + 1], 0x2e
je 0x404643
cmp dword [0x416ba8], 0
je 0x404643
push edi
mov edi, dword [0x416b40]
sub edi, 2
sub edi, ecx
push ecx
push esi
mov esi, dword [0x416ba8]
lodsb al, byte [esi]
movzx ecx, al
sub edi, ecx
cmp edi, dword [0x416b5c]
jb 0x401926
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 0x401ad3
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.00404542
pop esi
pop ebx
cmp ebx, dword [eax + 0x18]
jne 0x4045d1
lea edx, [ebx - 2]
mov dword [0x416b40], edx
ret
cmp ecx, 2
jne 0x404643
mov al, byte [esi + 1]
mov ebx, 0x416cae
xlatb
cmp al, 0x40
je 0x404621
cmp al, 0x62
je 0x404613
cmp al, 0x72
je 0x404613
cmp al, 0x66
jne 0x404643
add esi, 2
mov eax, dword [0x416bb0]
or eax, eax
jne 0x404610
mov eax, dword [0x416b78]
mov dword [0x416bec], eax
call fcn.004047ea
mov dword [0x416bb0], eax
xor ebx, ebx
ret
mov eax, dword [0x416bac]
or eax, eax
je 0x404621
add esi, 2
jmp 0x404610
add esi, 2
mov eax, dword [0x416bb0]
or eax, eax
jne 0x404632
call fcn.004047ea
mov dword [0x416bac], eax
mov dword [0x416bb0], 0
jmp 0x404610
cmp byte [esi], 0x25
je 0x404675
cmp byte [esi], 0x24
jne 0x40468e
cmp ecx, 2
ja 0x40468e
inc esi
jb 0x404660
inc esi
cmp byte [esi - 1], 0x24
je 0x40466f
sub esi, ecx
jmp 0x40468e
xor eax, eax
ret
mov eax, 1
ret
mov eax, 2
ret
mov eax, 3
ret
cmp ecx, 2
ja 0x40468e
inc esi
cmp cl, 1
je 0x404663
lodsb al, byte [esi]
mov ebx, 0x416cae
xlatb
cmp al, 0x74
je 0x404669
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 0x40469a
mov ebp, eax
shl eax, 8
and ebp, 0xff000000
xor ebp, eax
or ebp, ebx
mov dword [0x416bb8], ebp
push edi
push esi
push ecx
mov ecx, 0x20
mov ebx, 0x416bc0
mov edx, dword [ebx]
or edx, edx
je 0x40470d
xor eax, eax
shl ebp, 1
adc eax, 0
lea ebx, [edx + eax*4]
dec ecx
jne 0x4046c7
mov dword [0x416bbc], ebx
pop edx
mov eax, dword [ebx]
or eax, eax
je 0x404742
mov ebx, esi
mov ebp, dword [0x416bb8]
mov esi, ebx
mov ecx, edx
mov edi, dword [eax + 4]
mov edi, dword [edi + 0x18]
repe cmpsb byte [esi], byte es:[edi]
je 0x404705
mov eax, dword [eax]
or eax, eax
jne 0x4046ef
jmp 0x404742
add esp, 4
pop edi
mov eax, dword [eax + 4]
ret
mov edx, dword [0x416b5c]
lea eax, [edx + 8]
cmp eax, dword [0x416b40]
ja 0x401926
mov dword [0x416b5c], 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 0x40470d
mov dword [0x416bbc], ebx
pop edx
mov ecx, edx
pop esi
cmp byte [esi - 2], 0
je 0x4047b4
mov al, byte [esi]
cmp al, 0x30
jb 0x404759
cmp al, 0x39
jbe 0x401ada
cmp al, 0x24
jne 0x40476d
cmp ecx, 1
jne 0x401ada
mov eax, 0xf
pop edi
ret
call fcn.004044db
jae 0x404766
call fcn.004044af
jae 0x404766
call fcn.0040443e
jae 0x404766
sub esi, 2
mov edi, 0x412880
call fcn.004043da
or al, al
jne 0x404766
mov edi, 0x4128aa
call fcn.004043da
or al, al
jne 0x404766
mov edi, 0x4128c0
call fcn.004043da
or al, al
jne 0x404766
inc esi
movzx ecx, byte [esi]
inc esi
mov edx, dword [0x416b5c]
lea eax, [edx + 8]
cmp eax, dword [0x416b40]
ja 0x401926
mov dword [0x416b5c], eax
mov ebx, esi
add esi, ecx
mov eax, dword [0x416bbc]
mov edi, dword [eax]
mov dword [edx], edi
mov dword [eax], edx
call fcn.004047ea
mov dword [edx + 4], eax
mov dword [eax + 0x18], ebx
pop edi
ret