Function at 0x40b5a0
Capabilities:
Authenticate hmac
Encode data using xor
Hash data with md5

Disassembly:
sub esp, 0x134
mov eax, dword [0x42c2f0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
xor ebx, ebx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x140]
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov dword [esp + 0x89], eax
mov dword [esp + 0x8d], eax
mov dword [esp + 0x91], eax
mov dword [esp + 0x95], eax
mov dword [esp + 0x99], eax
mov dword [esp + 0x9d], eax
mov byte [esp + 0xa1], al
mov eax, ecx
push esi
mov dword [esp + 0x14], ecx
mov byte [esp + 0x84], 0
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40b612
sub eax, esi
mov dword [esp + 0x10], eax
mov eax, ebp
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40b626
sub eax, esi
mov esi, eax
xor eax, eax
cmp esi, 0x40
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov byte [edi + 0x20], al
jle 0x40b6a1
push ebp
mov eax, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
call fcn.0040abe0
add esp, 4
lea esi, [esp + 0x18]
lea ecx, [esp + 0x74]
call fcn.0040aca0
lea ebp, [esp + 0x74]
mov esi, 0x10
push 0x41
lea eax, [esp + 0xf4]
push ebx
push eax
call fcn.00412200
push 0x41
lea ecx, [esp + 0xb8]
push ebx
push ecx
call fcn.00412200
add esp, 0x18
cmp esi, ebx
jle 0x40b6f2
lea edx, [esp + 0xf0]
lea ebx, [esp + 0xa8]
sub edx, ebp
mov eax, ebp
sub ebx, ebp
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
mov byte [ebx + eax], cl
add eax, 1
sub esi, 1
jne 0x40b6e0
xor ebx, ebx
xor eax, eax
jmp 0x40b700
xor byte [esp + eax + 0xf0], 0x36
xor byte [esp + eax + 0xa8], 0x5c
add eax, 1
cmp eax, 0x40
jl 0x40b700
lea edx, [esp + 0xf0]
mov ebp, 0x67452301
push edx
mov eax, 0x40
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
call fcn.0040abe0
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
call fcn.0040abe0
lea esi, [esp + 0x20]
lea ecx, [esp + 0x7c]
call fcn.0040aca0
lea ecx, [esp + 0xb0]
push ecx
mov eax, 0x40
mov ecx, esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
call fcn.0040abe0
lea edx, [esp + 0x80]
push edx
mov eax, 0x10
mov ecx, esi
call fcn.0040abe0
add esp, 0x10
lea ecx, [esp + 0x74]
call fcn.0040aca0
xor esi, esi
lea ebp, [esp + 0x85]
mov bl, byte [esp + esi + 0x74]
movzx eax, bl
push eax
lea ecx, [ebp - 1]
push str._02x
push ecx
call fcn.0040fac5
shl bl, 4
movzx edx, bl
push edx
push str._02x
push ebp
call fcn.0040fac5
add esi, 1
add esp, 0x18
add ebp, 2
cmp esi, 0x10
jl 0x40b7d7
push 0x20
lea eax, [esp + 0x88]
push eax
push edi
call fcn.00416680
mov ecx, dword [esp + 0x148]
add esp, 0xc
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, edi
call fcn.0040fbc6
add esp, 0x134
ret