Function at 0x4068e0
Capabilities:
Authenticate hmac
Encode data using xor
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41bef7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x560
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.0041b5bc
mov ebp, dword [esp + 0x588]
mov dword [esp + 0x578], 0
test ebp, ebp
jle 0x406a12
cmp ebp, 0x40
jle 0x40696a
lea eax, [esp + 0x114]
push eax
call fcn.00405da0
mov ecx, dword [esp + 0x588]
push ebp
lea edx, [esp + 0x11c]
push ecx
push edx
call fcn.00405dd0
lea eax, [esp + 0x124]
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00406820
add esp, 0x18
lea edx, [esp + 0x24]
mov ebp, 0x10
jmp 0x406971
mov edx, dword [esp + 0x584]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x8c]
mov esi, edx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xd0]
rep stosd dword es:[edi], eax
mov ecx, ebp
stosb byte es:[edi], al
mov eax, ecx
lea edi, [esp + 0x8c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
mov esi, edx
mov edx, ecx
lea edi, [esp + 0xd0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + eax + 0x8c]
mov bl, byte [esp + eax + 0xd0]
xor cl, 0x36
xor bl, 0x5c
mov byte [esp + eax + 0x8c], cl
mov byte [esp + eax + 0xd0], bl
inc eax
cmp eax, 0x40
jl 0x4069c7
lea eax, [esp + 0x34]
push eax
call fcn.00405da0
lea ecx, [esp + 0x90]
push 0x40
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00405dd0
add esp, 0x10
jmp 0x406a1f
lea eax, [esp + 0x34]
push eax
call fcn.00405da0
add esp, 4
mov ecx, dword [esp + 0x580]
push 0x4230dc
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x406c12
test byte [esi + 0xc], 0x10
jne 0x406a7a
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 0x400
lea edx, [esp + 0x174]
push 1
push edx
call edi
push eax
lea eax, [esp + 0x180]
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.00405dd0
mov al, byte [esi + 0xc]
add esp, 0x1c
test al, 0x10
je 0x406a4b
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ebx, dword [esp + 0x590]
lea edx, [esp + 0x38]
push edx
push ebx
call fcn.00406820
add esp, 0xc
test ebp, ebp
jle 0x406ad3
lea eax, [esp + 0x34]
push eax
call fcn.00405da0
lea ecx, [esp + 0xd4]
push 0x40
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00405dd0
push 0x10
lea eax, [esp + 0x48]
push ebx
push eax
call fcn.00405dd0
lea ecx, [esp + 0x50]
push ecx
push ebx
call fcn.00406820
add esp, 0x24
push 0x4247e8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
xor edi, edi
xor edx, edx
mov dl, byte [edi + ebx]
mov esi, edx
mov eax, esi
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cmp eax, 9
jle 0x406b2c
add al, 0x37
lea ecx, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x57c], 1
call sub.MFC42.DLL_CString::operator
mov byte [esp + 0x578], 0
lea ecx, [esp + 0x20]
jmp 0x406b5c
add al, 0x30
lea edx, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push edx
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x57c], 2
call sub.MFC42.DLL_CString::operator
mov byte [esp + 0x578], 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, esi
and eax, 0x8000000f
jns 0x406b6f
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 9
jle 0x406ba6
add al, 0x37
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x57c], 3
call sub.MFC42.DLL_CString::operator
mov byte [esp + 0x578], 0
lea ecx, [esp + 0x1c]
jmp 0x406bd6
add al, 0x30
lea ecx, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x57c], 4
call sub.MFC42.DLL_CString::operator
mov byte [esp + 0x578], 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
inc edi
cmp edi, 0x10
jl 0x406ae3
lea edx, [esp + 0x14]
push 0x20
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push eax
push 0x4230a0
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x406c43
mov edi, dword [esp + 0x58c]
mov ebx, dword [sym.imp.MSVCRT.dll_rand]
xor esi, esi
call ebx
and eax, 0x8000000f
jns 0x406c2f
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 9
jle 0x406c38
add al, 0x37
jmp 0x406c3a
add al, 0x30
mov byte [esi + edi], al
inc esi
cmp esi, 0x20
jl 0x406c21
lea ecx, [esp + 0x10]
mov dword [esp + 0x578], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x570]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x56c
ret