Function at 0x100409d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100630f0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
mov eax, dword [0x10075604]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov bh, 0x56
mov byte [ebp - 0xd], 0x51
mov byte [ebp - 0xe], bh
mov al, 0x47
mov bh, byte [ebp - 0xd]
mov dl, 0x5d
mov byte [ebp - 0x20], 0x33
mov bl, 0x6c
xor bh, byte [ebp - 0x20]
mov ah, 0x50
xor al, byte [ebp - 0x20]
mov dh, 0x5f
mov byte [ebp - 0xd], bh
mov cl, 0x5c
mov byte [ebp - 0x1f], bh
mov ch, 0x40
mov bh, byte [ebp - 0xe]
mov byte [ebp - 0x1e], al
mov al, byte [ebp - 0x20]
xor dl, al
mov byte [ebp - 0x16], 0
xor bl, al
mov byte [ebp - 0x1d], dl
xor ah, al
mov byte [ebp - 0x1c], bl
xor dh, al
mov byte [ebp - 0x1b], ah
xor cl, al
mov byte [ebp - 0x1a], dh
xor ch, al
mov byte [ebp - 0x19], cl
xor bh, al
mov byte [ebp - 0x18], ch
cmp byte [ebp - 0xd], 0
mov byte [ebp - 0x17], bh
mov byte [ebp - 0x16], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jne 0x10040a73
xor ecx, ecx
jmp 0x10040a89
lea ecx, [ebp - 0x1f]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040a80
sub ecx, edx
push ecx
lea eax, [ebp - 0x1f]
push eax
lea ecx, [ebp - 0x58]
call fcn.10002800
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
push eax
push dword [esi]
call fcn.10012430
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10040acc
inc eax
push 1
push eax
push dword [ebp - 0x58]
call fcn.10002610
add esp, 0xc
mov cl, 0x4b
mov dword [ebp - 0x20], 0x253f294b
mov dword [ebp - 0x1c], 0x392a3c14
xor eax, eax
mov dword [ebp - 0x18], 0x39242239
mov byte [ebp - 0x14], 0
nop dword [eax]
xor byte [ebp + eax - 0x1f], cl
inc eax
cmp eax, 0xb
jae 0x10040aff
mov cl, byte [ebp - 0x20]
jmp 0x10040af0
cmp byte [ebp - 0x1f], 0
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jne 0x10040b1f
xor ecx, ecx
jmp 0x10040b2e
lea ecx, [ebp - 0x1f]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040b25
sub ecx, edx
push ecx
lea eax, [ebp - 0x1f]
push eax
lea ecx, [ebp - 0x58]
call fcn.10002800
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 1
push eax
push dword [esi]
call fcn.10012430
mov dword [esi + 8], eax
add esp, 8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10040b71
inc eax
push 1
push eax
push dword [ebp - 0x58]
call fcn.10002610
add esp, 0xc
mov bh, 0x4d
mov byte [ebp - 0xd], 0x4a
mov byte [ebp - 0xe], bh
mov al, 0x5c
mov bh, byte [ebp - 0xd]
mov cl, 0x46
mov byte [ebp - 0x20], 0x28
mov dl, 0x77
xor bh, byte [ebp - 0x20]
mov bl, 0x5a
xor al, byte [ebp - 0x20]
mov ah, 0x47
mov byte [ebp - 0xd], bh
mov ch, 0x4f
mov byte [ebp - 0x1f], bh
mov dh, 0x5d
mov bh, byte [ebp - 0xe]
mov byte [ebp - 0x1e], al
mov al, byte [ebp - 0x20]
xor cl, al
mov byte [ebp - 0x16], 0
xor dl, al
mov byte [ebp - 0x1d], cl
xor bl, al
mov byte [ebp - 0x1c], dl
xor ah, al
mov byte [ebp - 0x1b], bl
xor ch, al
mov byte [ebp - 0x1a], ah
xor dh, al
mov byte [ebp - 0x19], ch
xor bh, al
mov byte [ebp - 0x18], dh
cmp byte [ebp - 0xd], 0
mov byte [ebp - 0x17], bh
mov byte [ebp - 0x16], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jne 0x10040beb
xor ecx, ecx
jmp 0x10040bfa
lea ecx, [ebp - 0x1f]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040bf1
sub ecx, edx
push ecx
lea eax, [ebp - 0x1f]
push eax
lea ecx, [ebp - 0x58]
call fcn.10002800
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 2
push eax
push dword [esi]
call fcn.10012430
mov dword [esi + 0xc], eax
add esp, 8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10040c3d
inc eax
push 1
push eax
push dword [ebp - 0x58]
call fcn.10002610
add esp, 0xc
mov byte [ebp - 0x1c], 0x53
mov al, 0x27
xor al, byte [ebp - 0x1c]
mov bh, 0x31
xor bh, byte [ebp - 0x1c]
mov cl, 0x3d
mov byte [ebp - 0x1a], al
mov dl, 0xc
mov al, byte [ebp - 0x1c]
mov bl, 0x3e
mov ah, 0x32
mov byte [ebp - 0x13], 0
mov ch, 0x34
mov byte [ebp - 0x1b], bh
mov dh, 0x36
mov byte [ebp - 0x13], 0
xor cl, al
mov dword [ebp - 0x44], 0xf
xor dl, al
mov byte [ebp - 0x19], cl
xor bl, al
mov byte [ebp - 0x18], dl
xor ah, al
mov byte [ebp - 0x17], bl
xor ch, al
mov byte [ebp - 0x16], ah
xor dh, al
mov byte [ebp - 0x15], ch
mov byte [ebp - 0x14], dh
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
test bh, bh
jne 0x10040ca0
xor ecx, ecx
jmp 0x10040caf
lea ecx, [ebp - 0x1b]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040ca6
sub ecx, edx
push ecx
lea eax, [ebp - 0x1b]
push eax
lea ecx, [ebp - 0x58]
call fcn.10002800
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 3
push eax
push dword [esi]
call fcn.10012430
mov dword [esi + 0x10], eax
add esp, 8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10040cf2
inc eax
push 1
push eax
push dword [ebp - 0x58]
call fcn.10002610
add esp, 0xc
mov bh, 0x3b
mov byte [ebp - 0x20], 0x48
mov byte [ebp - 0xe], bh
mov al, 0x3c
mov byte [ebp - 0xd], 0x2a
mov cl, 0x26
mov bh, byte [ebp - 0xd]
mov dl, 0x17
xor bh, byte [ebp - 0x20]
mov bl, 0x38
mov byte [ebp - 0xf], al
mov ah, 0x3a
xor al, byte [ebp - 0x20]
mov ch, 0x21
mov byte [ebp - 0xd], bh
mov dh, 0x2d
mov byte [ebp - 0x1e], al
mov al, byte [ebp - 0x20]
mov byte [ebp - 0x1f], bh
xor cl, al
mov bh, byte [ebp - 0xe]
xor dl, al
xor bl, al
mov byte [ebp - 0x15], 0
xor ah, al
mov byte [ebp - 0x1d], cl
xor ch, al
mov byte [ebp - 0x1c], dl
xor dh, al
mov byte [ebp - 0x1b], bl
xor bh, al
mov byte [ebp - 0x1a], ah
mov al, byte [ebp - 0xf]
xor al, byte [ebp - 0x20]
cmp byte [ebp - 0xd], 0
mov byte [ebp - 0x19], ch
mov byte [ebp - 0x18], dh
mov byte [ebp - 0x17], bh
mov byte [ebp - 0x16], al
mov byte [ebp - 0x15], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jne 0x10040d78
xor ecx, ecx
jmp 0x10040d89
lea ecx, [ebp - 0x1f]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040d80
sub ecx, edx
push ecx
lea eax, [ebp - 0x1f]
push eax
lea ecx, [ebp - 0x58]
call fcn.10002800
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 4
push eax
push dword [esi]
call fcn.10012430
mov dword [esi + 0x14], eax
add esp, 8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10040dcc
inc eax
push 1
push eax
push dword [ebp - 0x58]
call fcn.10002610
add esp, 0xc
movaps xmm0, xmmword [0x1006b930]
xor ecx, ecx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x2e2622
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x12
jb 0x10040de0
cmp byte [ebp - 0x27], 0
mov byte [ebp - 0x15], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jne 0x10040e0d
xor ecx, ecx
jmp 0x10040e1c
lea ecx, [ebp - 0x27]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040e13
sub ecx, edx
push ecx
lea eax, [ebp - 0x27]
push eax
lea ecx, [ebp - 0x58]
call fcn.10002800
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 5
push eax
push dword [esi]
call fcn.10012430
mov dword [esi + 0x18], eax
add esp, 8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10040e5f
inc eax
push 1
push eax
push dword [ebp - 0x58]
call fcn.10002610
add esp, 0xc
movaps xmm0, xmmword [0x1006b910]
xor ecx, ecx
movups xmmword [ebp - 0x24], xmm0
nop dword [eax]
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0xe
jb 0x10040e70
lea eax, [ebp - 0x23]
mov byte [ebp - 0x15], 0
push eax
lea ecx, [ebp - 0x58]
call fcn.100017e0
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 6
push eax
push dword [esi]
call fcn.10012430
mov dword [esi + 0x1c], eax
add esp, 8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10040ec3
inc eax
push 1
push eax
push dword [ebp - 0x58]
call fcn.10002610
add esp, 0xc
movaps xmm0, xmmword [0x1006b940]
xor ecx, ecx
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x14], 0
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0xf
jb 0x10040ed4
lea eax, [ebp - 0x23]
mov byte [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x58]
call fcn.100017e0
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 7
push eax
push dword [esi]
call fcn.10012430
mov dword [esi + 0x20], eax
add esp, 8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10040f27
inc eax
push 1
push eax
push dword [ebp - 0x58]
call fcn.10002610
add esp, 0xc
movaps xmm0, xmmword [0x1006b950]
xor ecx, ecx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x445f4549
mov word [ebp - 0x14], 0x5e
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x14
jb 0x10040f41
lea eax, [ebp - 0x27]
mov byte [ebp - 0x13], 0
push eax
lea ecx, [ebp - 0x58]
call fcn.100017e0
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 8
push eax
push dword [esi]
call fcn.10012430
mov dword [esi + 0x24], eax
add esp, 8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10040f94
inc eax
push 1
push eax
push dword [ebp - 0x58]
call fcn.10002610
add esp, 0xc
movaps xmm0, xmmword [str._484]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0x2f231f2c
mov dword [ebp - 0x2c], 0x342e35
nop
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x16
jb 0x10040fb0
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x29], 0
push eax
lea ecx, [ebp - 0x70]
call fcn.100017e0
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 9
push eax
push dword [esi]
call fcn.10012430
mov dword [esi + 0x28], eax
add esp, 8
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10041003
push 1
inc eax
push eax
push dword [ebp - 0x70]
call fcn.10002610
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.10042280
push dword [esi]
call fcn.10012630
or eax, 0x38
push eax
push dword [esi]
call fcn.10012aa0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret