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

Disassembly:
push 0xffffffffffffffff
push 0x417a47
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 0x4060f2
cmp ebp, 0x40
jle 0x40604a
lea eax, [esp + 0x114]
push eax
call fcn.00405480
mov ecx, dword [esp + 0x588]
push ebp
lea edx, [esp + 0x11c]
push ecx
push edx
call fcn.004054b0
lea eax, [esp + 0x124]
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00405f00
add esp, 0x18
lea edx, [esp + 0x24]
mov ebp, 0x10
jmp 0x406051
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 0x4060a7
lea eax, [esp + 0x34]
push eax
call fcn.00405480
lea ecx, [esp + 0x90]
push 0x40
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.004054b0
add esp, 0x10
jmp 0x4060ff
lea eax, [esp + 0x34]
push eax
call fcn.00405480
add esp, 4
mov ecx, dword [esp + 0x580]
push 0x41e0cc
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4062f2
test byte [esi + 0xc], 0x10
jne 0x40615a
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.004054b0
mov al, byte [esi + 0xc]
add esp, 0x1c
test al, 0x10
je 0x40612b
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ebx, dword [esp + 0x590]
lea edx, [esp + 0x38]
push edx
push ebx
call fcn.00405f00
add esp, 0xc
test ebp, ebp
jle 0x4061b3
lea eax, [esp + 0x34]
push eax
call fcn.00405480
lea ecx, [esp + 0xd4]
push 0x40
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.004054b0
push 0x10
lea eax, [esp + 0x48]
push ebx
push eax
call fcn.004054b0
lea ecx, [esp + 0x50]
push ecx
push ebx
call fcn.00405f00
add esp, 0x24
push 0x41ef68
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
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 0x40620c
add al, 0x37
lea ecx, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator_2
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 0x40623c
add al, 0x30
lea edx, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push edx
push eax
call sub.MFC42.DLL_operator_2
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, 0x8000000f
jns 0x40624f
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 9
jle 0x406286
add al, 0x37
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call sub.MFC42.DLL_operator_2
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 0x4062b6
add al, 0x30
lea ecx, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator_2
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 0x4061c3
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 0x41e090
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x406323
mov edi, dword [esp + 0x58c]
mov ebx, dword [sym.imp.MSVCRT.dll_rand]
xor esi, esi
call ebx
and eax, 0x8000000f
jns 0x40630f
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 9
jle 0x406318
add al, 0x37
jmp 0x40631a
add al, 0x30
mov byte [esi + edi], al
inc esi
cmp esi, 0x20
jl 0x406301
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