Function at 0x40f7b0
Capabilities:
Authenticate hmac
Encode data using base64
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10c
mov esi, ecx
test edx, edx
je 0x40fc71
movaps xmm0, xmmword [str._b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_t_t_t_t_t_t_t_t_t_t_t_t_t_t_t_t_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_aT_]
movups xmmword [esi + 0x8f92], xmm0
movups xmmword [esi + 0x8f82], xmm0
movups xmmword [esi + 0x8f72], xmm0
movups xmmword [esi + 0x8f62], xmm0
movups xmmword [esi + 0x8f52], xmm0
movups xmmword [esi + 0x8f42], xmm0
movups xmmword [esi + 0x8f32], xmm0
movups xmmword [esi + 0x8f22], xmm0
movups xmmword [esi + 0x8f12], xmm0
movaps xmm0, xmmword [0x454210]
movups xmmword [esi + 0x8fa2], xmm0
movups xmmword [esi + 0x8fb2], xmm0
movups xmmword [esi + 0x8fc2], xmm0
movups xmmword [esi + 0x8fd2], xmm0
movups xmmword [esi + 0x8fe2], xmm0
movups xmmword [esi + 0x8ff2], xmm0
movups xmmword [esi + 0x9002], xmm0
movaps xmm0, xmmword [0x454220]
movups xmmword [esi + 0x9012], xmm0
mov dword [esi + 0x9026], 0x7070707
mov dword [esi + 0x9022], 0x7070707
mov dword [esi + 0x902e], 0x8080808
mov dword [esi + 0x902a], 0x8080808
movaps xmm0, xmmword [0x4541f0]
movups xmmword [esi + 0x9032], xmm0
movups xmmword [esi + 0x9042], xmm0
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
movups xmmword [esp + 0x34], xmm0
movups xmmword [esp + 0x44], xmm0
movups xmmword [esp + 0x54], xmm0
movups xmmword [esp + 0x64], xmm0
movups xmmword [esp + 0x74], xmm0
mov dword [esp + 0x84], 0
xor eax, eax
nop word cs:[eax + eax]
movzx ecx, byte [esi + eax + 0x8f12]
inc dword [esp + ecx*4 + 4]
movzx ecx, byte [esi + eax + 0x8f13]
inc dword [esp + ecx*4 + 4]
movzx ecx, byte [esi + eax + 0x8f14]
inc dword [esp + ecx*4 + 4]
movzx ecx, byte [esi + eax + 0x8f15]
inc dword [esp + ecx*4 + 4]
add eax, 4
cmp eax, 0x120
jne 0x40f8d0
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 8]
add eax, eax
mov dword [esp + 0x90], eax
add eax, dword [esp + 0xc]
add eax, eax
mov dword [esp + 0x94], eax
add eax, dword [esp + 0x10]
add eax, eax
mov dword [esp + 0x98], eax
add eax, dword [esp + 0x14]
add eax, eax
mov dword [esp + 0x9c], eax
add eax, dword [esp + 0x18]
add eax, eax
mov dword [esp + 0xa0], eax
add eax, dword [esp + 0x1c]
add eax, eax
mov dword [esp + 0xa4], eax
add eax, dword [esp + 0x20]
add eax, eax
mov dword [esp + 0xa8], eax
add eax, dword [esp + 0x24]
add eax, eax
mov dword [esp + 0xac], eax
add eax, dword [esp + 0x28]
add eax, eax
mov dword [esp + 0xb0], eax
add eax, dword [esp + 0x2c]
add eax, eax
mov dword [esp + 0xb4], eax
add eax, dword [esp + 0x30]
add eax, eax
mov dword [esp + 0xb8], eax
add eax, dword [esp + 0x34]
add eax, eax
mov dword [esp + 0xbc], eax
add eax, dword [esp + 0x38]
add eax, eax
mov dword [esp + 0xc0], eax
add eax, dword [esp + 0x3c]
add eax, eax
mov dword [esp + 0xc4], eax
xor eax, eax
mov dword [esp], esi
jmp 0x40f9f3
mov esi, dword [esp]
mov word [esi + eax*2 + 0x8852], di
inc eax
cmp eax, 0x120
je 0x40fa60
movzx edx, byte [esi + eax + 0x8f12]
test edx, edx
je 0x40f9eb
mov esi, dword [esp + edx*4 + 0x88]
lea edi, [esi + 1]
mov dword [esp + edx*4 + 0x88], edi
xor edi, edi
cmp dl, 1
je 0x40fa4b
mov ebx, edx
and ebx, 0xfffffffe
xor edi, edi
nop
mov ebp, esi
not ebp
or ebp, 1
add ebp, esi
mov ecx, esi
shr ecx, 1
shl edi, 2
add ebp, ebp
add ebp, 2
or ebp, edi
mov edi, ecx
not edi
or edi, 1
add edi, ecx
inc edi
or edi, ebp
shr esi, 2
add ebx, 0xfffffffe
jne 0x40fa20
test dl, 1
je 0x40f9e0
add edi, edi
mov ecx, esi
not ecx
or ecx, 1
add ecx, esi
inc ecx
or edi, ecx
jmp 0x40f9e0
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
movups xmmword [esp + 0x34], xmm0
movups xmmword [esp + 0x44], xmm0
movups xmmword [esp + 0x54], xmm0
movups xmmword [esp + 0x64], xmm0
movups xmmword [esp + 0x74], xmm0
mov dword [esp + 0x84], 0
xor eax, eax
nop dword [eax + eax]
movzx ecx, byte [esi + eax + 0x9032]
inc dword [esp + ecx*4 + 4]
movzx ecx, byte [esi + eax + 0x9033]
inc dword [esp + ecx*4 + 4]
movzx ecx, byte [esi + eax + 0x9034]
inc dword [esp + ecx*4 + 4]
movzx ecx, byte [esi + eax + 0x9035]
inc dword [esp + ecx*4 + 4]
add eax, 4
cmp eax, 0x20
jne 0x40faa0
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 8]
add eax, eax
mov dword [esp + 0x90], eax
add eax, dword [esp + 0xc]
add eax, eax
mov dword [esp + 0x94], eax
add eax, dword [esp + 0x10]
add eax, eax
mov dword [esp + 0x98], eax
add eax, dword [esp + 0x14]
add eax, eax
mov dword [esp + 0x9c], eax
add eax, dword [esp + 0x18]
add eax, eax
mov dword [esp + 0xa0], eax
add eax, dword [esp + 0x1c]
add eax, eax
mov dword [esp + 0xa4], eax
add eax, dword [esp + 0x20]
add eax, eax
mov dword [esp + 0xa8], eax
add eax, dword [esp + 0x24]
add eax, eax
mov dword [esp + 0xac], eax
add eax, dword [esp + 0x28]
add eax, eax
mov dword [esp + 0xb0], eax
add eax, dword [esp + 0x2c]
add eax, eax
mov dword [esp + 0xb4], eax
add eax, dword [esp + 0x30]
add eax, eax
mov dword [esp + 0xb8], eax
add eax, dword [esp + 0x34]
add eax, eax
mov dword [esp + 0xbc], eax
add eax, dword [esp + 0x38]
add eax, eax
mov dword [esp + 0xc0], eax
add eax, dword [esp + 0x3c]
add eax, eax
mov dword [esp + 0xc4], eax
xor eax, eax
jmp 0x40fbb1
mov esi, dword [esp]
mov word [esi + eax*2 + 0x8a92], di
inc eax
cmp eax, 0x20
je 0x40fc20
movzx edx, byte [esi + eax + 0x9032]
test edx, edx
je 0x40fbab
mov ecx, dword [esp + edx*4 + 0x88]
lea esi, [ecx + 1]
mov dword [esp + edx*4 + 0x88], esi
xor edi, edi
cmp dl, 1
je 0x40fc0b
mov ebx, edx
and ebx, 0xfffffffe
xor edi, edi
nop dword [eax]
mov esi, ecx
not esi
or esi, 1
add esi, ecx
mov ebp, ecx
shr ebp, 1
shl edi, 2
add esi, esi
add esi, 2
or esi, edi
mov edi, ebp
not edi
or edi, 1
add edi, ebp
inc edi
or edi, esi
shr ecx, 2
add ebx, 0xfffffffe
jne 0x40fbe0
test dl, 1
je 0x40fba0
add edi, edi
mov edx, ecx
not edx
or edx, 1
add ecx, edx
inc ecx
or edi, ecx
jmp 0x40fba0
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
bts eax, ecx
mov dword [esi + 0x48], eax
add ecx, 2
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x40fc59
jmp 0x40fc78
shr eax, 8
mov dword [esi + 0x48], eax
mov edx, ecx
or edx, 0xfffffff7
and ecx, 0xfffffff7
add ecx, edx
inc ecx
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x40fc78
mov edx, dword [esi + 0x30]
cmp edx, dword [esi + 0x34]
jae 0x40fc40
lea ecx, [edx + 1]
mov dword [esi + 0x30], ecx
mov byte [edx], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40fc40
mov ecx, esi
call fcn.0040fc90
mov ecx, esi
add esp, 0x10c
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004108d0