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

Disassembly:
push 0xffffffffffffffff
push 0x424377
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 sub.MFC42.DLL_CString::CString_1
mov ebp, dword [esp + 0x588]
mov dword [esp + 0x578], 0
test ebp, ebp
jle 0x40f8d2
cmp ebp, 0x40
jle 0x40f82a
lea eax, [esp + 0x114]
push eax
call fcn.0040ec60
mov ecx, dword [esp + 0x588]
push ebp
lea edx, [esp + 0x11c]
push ecx
push edx
call fcn.0040ec90
lea eax, [esp + 0x124]
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.0040f6e0
add esp, 0x18
lea edx, [esp + 0x24]
mov ebp, 0x10
jmp 0x40f831
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 0x40f887
lea eax, [esp + 0x34]
push eax
call fcn.0040ec60
lea ecx, [esp + 0x90]
push 0x40
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.0040ec90
add esp, 0x10
jmp 0x40f8df
lea eax, [esp + 0x34]
push eax
call fcn.0040ec60
add esp, 4
mov ecx, dword [esp + 0x580]
push 0x42b0a8
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40fad2
test byte [esi + 0xc], 0x10
jne 0x40f93a
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.0040ec90
mov al, byte [esi + 0xc]
add esp, 0x1c
test al, 0x10
je 0x40f90b
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ebx, dword [esp + 0x590]
lea edx, [esp + 0x38]
push edx
push ebx
call fcn.0040f6e0
add esp, 0xc
test ebp, ebp
jle 0x40f993
lea eax, [esp + 0x34]
push eax
call fcn.0040ec60
lea ecx, [esp + 0xd4]
push 0x40
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.0040ec90
push 0x10
lea eax, [esp + 0x48]
push ebx
push eax
call fcn.0040ec90
lea ecx, [esp + 0x50]
push ecx
push ebx
call fcn.0040f6e0
add esp, 0x24
push 0x42d1a8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
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 0x40f9ec
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_1
mov byte [esp + 0x578], 0
lea ecx, [esp + 0x20]
jmp 0x40fa1c
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_1
mov byte [esp + 0x578], 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, esi
and eax, reloc.WS2_32.dll_ntohs
jns 0x40fa2f
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 9
jle 0x40fa66
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_1
mov byte [esp + 0x578], 0
lea ecx, [esp + 0x1c]
jmp 0x40fa96
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_1
mov byte [esp + 0x578], 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
inc edi
cmp edi, 0x10
jl 0x40f9a3
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 0x42b080
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x40fb03
mov edi, dword [esp + 0x58c]
mov ebx, dword [sym.imp.MSVCRT.dll_rand]
xor esi, esi
call ebx
and eax, reloc.WS2_32.dll_ntohs
jns 0x40faef
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 9
jle 0x40faf8
add al, 0x37
jmp 0x40fafa
add al, 0x30
mov byte [esi + edi], al
inc esi
cmp esi, 0x20
jl 0x40fae1
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