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

Disassembly:
push 0xffffffffffffffff
push 0x4288d7
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 0x410fb2
cmp ebp, 0x40
jle 0x410f0a
lea eax, [esp + 0x114]
push eax
call fcn.00410340
mov ecx, dword [esp + 0x588]
push ebp
lea edx, [esp + 0x11c]
push ecx
push edx
call fcn.00410370
lea eax, [esp + 0x124]
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00410dc0
add esp, 0x18
lea edx, [esp + 0x24]
mov ebp, 0x10
jmp 0x410f11
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 0x410f67
lea eax, [esp + 0x34]
push eax
call fcn.00410340
lea ecx, [esp + 0x90]
push 0x40
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00410370
add esp, 0x10
jmp 0x410fbf
lea eax, [esp + 0x34]
push eax
call fcn.00410340
add esp, 4
mov ecx, dword [esp + 0x580]
push 0x4310a8
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4111b2
test byte [esi + 0xc], 0x10
jne 0x41101a
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.00410370
mov al, byte [esi + 0xc]
add esp, 0x1c
test al, 0x10
je 0x410feb
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ebx, dword [esp + 0x590]
lea edx, [esp + 0x38]
push edx
push ebx
call fcn.00410dc0
add esp, 0xc
test ebp, ebp
jle 0x411073
lea eax, [esp + 0x34]
push eax
call fcn.00410340
lea ecx, [esp + 0xd4]
push 0x40
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00410370
push 0x10
lea eax, [esp + 0x48]
push ebx
push eax
call fcn.00410370
lea ecx, [esp + 0x50]
push ecx
push ebx
call fcn.00410dc0
add esp, 0x24
push 0x433ae8
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 0x4110cc
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 0x4110fc
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 0x41110f
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 9
jle 0x411146
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 0x411176
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 0x411083
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 0x431080
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x4111e3
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 0x4111cf
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 9
jle 0x4111d8
add al, 0x37
jmp 0x4111da
add al, 0x30
mov byte [esi + edi], al
inc esi
cmp esi, 0x20
jl 0x4111c1
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