Function at 0x410340
Capabilities:
Authenticate hmac
Encode data using base64
Parse pe header

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x108
mov esi, ecx
test edx, edx
je 0x410919
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_aUUUUUUUUUUUUUUUU3333333333333333]
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 [0x45c300]
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 [0x45c310]
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 [0x45c2e0]
movups xmmword [esi + 0x9032], xmm0
movups xmmword [esi + 0x9042], xmm0
xorps xmm0, xmm0
movups xmmword [esp], xmm0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp + 0x20], xmm0
movups xmmword [esp + 0x30], xmm0
movups xmmword [esp + 0x40], xmm0
movups xmmword [esp + 0x50], xmm0
movups xmmword [esp + 0x60], xmm0
movups xmmword [esp + 0x70], xmm0
mov dword [esp + 0x80], 0
xor eax, eax
nop word cs:[eax + eax]
movzx ecx, byte [esi + eax + 0x8f12]
inc dword [esp + ecx*4]
movzx ecx, byte [esi + eax + 0x8f13]
inc dword [esp + ecx*4]
movzx ecx, byte [esi + eax + 0x8f14]
inc dword [esp + ecx*4]
movzx ecx, byte [esi + eax + 0x8f15]
inc dword [esp + ecx*4]
add eax, 4
cmp eax, 0x120
jne 0x410460
mov dword [esp + 0x88], 0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
add eax, eax
mov dword [esp + 0x8c], eax
mov edx, ecx
and edx, eax
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0x90], eax
mov ecx, dword [esp + 0xc]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0x10]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0x98], eax
mov ecx, dword [esp + 0x14]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x18]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0x1c]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0xa4], eax
mov ecx, dword [esp + 0x20]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0xa8], eax
mov ecx, dword [esp + 0x24]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0xac], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov edi, eax
and edi, ecx
xor eax, ecx
lea eax, [eax + edi*2]
add eax, eax
mov dword [esp + 0xb0], eax
mov ecx, eax
and ecx, edx
xor eax, edx
lea eax, [eax + ecx*2]
add eax, eax
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0x30]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0xb8], eax
mov ecx, dword [esp + 0x34]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0xbc], eax
mov ecx, dword [esp + 0x38]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0xc0], eax
xor eax, eax
jmp 0x4105e4
mov word [esi + eax*2 + 0x8852], di
inc eax
cmp eax, 0x120
je 0x410682
movzx ebx, byte [esi + eax + 0x8f12]
test ebx, ebx
je 0x4105d8
mov ecx, dword [esp + ebx*4 + 0x84]
lea edx, [ecx + 1]
mov dword [esp + ebx*4 + 0x84], edx
mov edx, ebx
and edx, 3
xor edi, edi
cmp bl, 4
jb 0x41065b
and ebx, 0xfffffffc
xor edi, edi
nop word cs:[eax + eax]
mov ebp, ecx
and ebp, 1
shl ebp, 2
lea edi, [edi*8]
add edi, ebp
mov ebp, ecx
and ebp, 2
or ebp, edi
mov edi, ecx
shr edi, 2
and edi, 1
or edi, ebp
mov ebp, ecx
shr ebp, 3
and ebp, 1
lea edi, [edi*2]
add edi, ebp
shr ecx, 4
add ebx, 0xfffffffc
jne 0x410620
test edx, edx
je 0x4105d0
nop word cs:[eax + eax]
mov ebx, ecx
and ebx, 1
lea edi, [ebx + edi*2]
shr ecx, 1
dec edx
jne 0x410670
jmp 0x4105d0
xorps xmm0, xmm0
movups xmmword [esp], xmm0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp + 0x20], xmm0
movups xmmword [esp + 0x30], xmm0
movups xmmword [esp + 0x40], xmm0
movups xmmword [esp + 0x50], xmm0
movups xmmword [esp + 0x60], xmm0
movups xmmword [esp + 0x70], xmm0
mov dword [esp + 0x80], 0
xor eax, eax
nop dword [eax]
movzx ecx, byte [esi + eax + 0x9032]
inc dword [esp + ecx*4]
movzx ecx, byte [esi + eax + 0x9033]
inc dword [esp + ecx*4]
movzx ecx, byte [esi + eax + 0x9034]
inc dword [esp + ecx*4]
movzx ecx, byte [esi + eax + 0x9035]
inc dword [esp + ecx*4]
add eax, 4
cmp eax, 0x20
jne 0x4106c0
mov dword [esp + 0x88], 0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
add eax, eax
mov dword [esp + 0x8c], eax
mov edx, ecx
and edx, eax
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0x90], eax
mov ecx, dword [esp + 0xc]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0x10]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0x98], eax
mov ecx, dword [esp + 0x14]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x18]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0x1c]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0xa4], eax
mov ecx, dword [esp + 0x20]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0xa8], eax
mov ecx, dword [esp + 0x24]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0xac], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov edi, eax
and edi, ecx
xor eax, ecx
lea eax, [eax + edi*2]
add eax, eax
mov dword [esp + 0xb0], eax
mov ecx, eax
and ecx, edx
xor eax, edx
lea eax, [eax + ecx*2]
add eax, eax
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0x30]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0xb8], eax
mov ecx, dword [esp + 0x34]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0xbc], eax
mov ecx, dword [esp + 0x38]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
add eax, eax
mov dword [esp + 0xc0], eax
xor eax, eax
jmp 0x410842
mov word [esi + eax*2 + 0x8a92], di
inc eax
cmp eax, 0x20
je 0x4108c2
movzx ebx, byte [esi + eax + 0x9032]
test ebx, ebx
je 0x410838
mov ecx, dword [esp + ebx*4 + 0x84]
lea edx, [ecx + 1]
mov dword [esp + ebx*4 + 0x84], edx
mov edx, ebx
and edx, 3
xor edi, edi
cmp bl, 4
jb 0x4108ab
and ebx, 0xfffffffc
xor edi, edi
mov ebp, ecx
and ebp, 1
shl ebp, 2
lea edi, [edi*8]
add edi, ebp
mov ebp, ecx
and ebp, 2
or ebp, edi
mov edi, ecx
shr edi, 2
and edi, 1
or edi, ebp
mov ebp, ecx
shr ebp, 3
and ebp, 1
lea edi, [edi*2]
add edi, ebp
shr ecx, 4
add ebx, 0xfffffffc
jne 0x410870
test edx, edx
je 0x410830
nop
mov ebx, ecx
and ebx, 1
lea edi, [ebx + edi*2]
shr ecx, 1
dec edx
jne 0x4108b0
jmp 0x410830
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
mov ecx, edx
btc ecx, eax
add ecx, edx
btr edx, eax
sub ecx, edx
mov dword [esi + 0x48], ecx
add eax, 2
mov dword [esi + 0x44], eax
cmp eax, 8
jae 0x410901
jmp 0x410920
shr ecx, 8
mov dword [esi + 0x48], ecx
add eax, 0xfffffff8
mov dword [esi + 0x44], eax
cmp eax, 7
jbe 0x410920
mov edx, dword [esi + 0x30]
cmp edx, dword [esi + 0x34]
jae 0x4108f0
lea eax, [edx + 1]
mov dword [esi + 0x30], eax
mov byte [edx], cl
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x48]
jmp 0x4108f0
mov ecx, esi
call fcn.00410940
mov ecx, esi
add esp, 0x108
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00411650