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

Disassembly:
push 0xffffffffffffffff
push 0x428d77
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 0x411272
cmp ebp, 0x40
jle 0x4111ca
lea eax, [esp + 0x114]
push eax
call fcn.00410600
mov ecx, dword [esp + 0x588]
push ebp
lea edx, [esp + 0x11c]
push ecx
push edx
call fcn.00410630
lea eax, [esp + 0x124]
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00411080
add esp, 0x18
lea edx, [esp + 0x24]
mov ebp, 0x10
jmp 0x4111d1
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 0x411227
lea eax, [esp + 0x34]
push eax
call fcn.00410600
lea ecx, [esp + 0x90]
push 0x40
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00410630
add esp, 0x10
jmp 0x41127f
lea eax, [esp + 0x34]
push eax
call fcn.00410600
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 0x411472
test byte [esi + 0xc], 0x10
jne 0x4112da
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.00410630
mov al, byte [esi + 0xc]
add esp, 0x1c
test al, 0x10
je 0x4112ab
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ebx, dword [esp + 0x590]
lea edx, [esp + 0x38]
push edx
push ebx
call fcn.00411080
add esp, 0xc
test ebp, ebp
jle 0x411333
lea eax, [esp + 0x34]
push eax
call fcn.00410600
lea ecx, [esp + 0xd4]
push 0x40
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00410630
push 0x10
lea eax, [esp + 0x48]
push ebx
push eax
call fcn.00410630
lea ecx, [esp + 0x50]
push ecx
push ebx
call fcn.00411080
add esp, 0x24
push 0x433b08
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 0x41138c
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 0x4113bc
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 0x4113cf
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 9
jle 0x411406
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 0x411436
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 0x411343
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 0x4114a3
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 0x41148f
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 9
jle 0x411498
add al, 0x37
jmp 0x41149a
add al, 0x30
mov byte [esi + edi], al
inc esi
cmp esi, 0x20
jl 0x411481
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