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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10076f20
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x1009f084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x13c], esi
call fcn.10036eb2
mov dword [ebp - 0xcc], edx
lea ecx, [ebp - 0x138]
lea edx, [ebp - 0xd0]
mov dword [ebp - 0xd0], eax
call fcn.10005800
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
cmp byte [esi], 0
je 0x100042b5
cmp dword [0x100a43bc], 0
je 0x100042cc
mov ah, 0x57
mov byte [ebp - 0x133], 0
mov al, 0x38
mov byte [ebp - 0x138], ah
mov bl, 4
mov byte [ebp - 0x133], 0
mov dl, al
mov dword [ebp - 0x14], 0xf
mov cl, 0x3b
mov dword [ebp - 0x18], 0
xor bl, ah
mov byte [ebp - 0x28], 0
xor al, ah
mov byte [ebp - 0x137], bl
xor cl, ah
mov byte [ebp - 0x136], al
xor dl, ah
mov byte [ebp - 0x135], cl
mov byte [ebp - 0x134], dl
test bl, bl
jne 0x100037e1
xor ecx, ecx
jmp 0x100037f9
lea ecx, [ebp - 0x137]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100037f0
sub ecx, edx
push ecx
lea eax, [ebp - 0x137]
push eax
lea ecx, [ebp - 0x28]
call fcn.100028b0
mov dword [ebp - 4], 0
mov al, byte [esi + 1]
cmp al, 1
jne 0x10003941
cmp byte [esi + 3], 0
jne 0x100038c6
mov byte [ebp - 0xdc], 0x45
mov al, 0x20
xor al, byte [ebp - 0xdc]
mov bh, 8
xor bh, byte [ebp - 0xdc]
mov cl, 0x37
mov byte [ebp - 0xda], al
mov dl, 0x26
mov al, byte [ebp - 0xdc]
mov bl, 0x2d
mov ah, 0x24
mov byte [ebp - 0xd3], 0
mov ch, 0x2b
mov byte [ebp - 0xdb], bh
mov dh, 0x31
mov byte [ebp - 0xd3], 0
xor cl, al
xor dl, al
xor bl, al
mov byte [ebp - 0xd9], cl
xor ah, al
mov byte [ebp - 0xd8], dl
xor ch, al
mov byte [ebp - 0xd7], bl
xor dh, al
mov byte [ebp - 0xd6], ah
mov byte [ebp - 0xd5], ch
mov byte [ebp - 0xd4], dh
test bh, bh
jne 0x100038a9
xor ecx, ecx
lea eax, [ebp - 0xdb]
jmp 0x100039af
lea ecx, [ebp - 0xdb]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100038b2
sub ecx, edx
lea eax, [ebp - 0xdb]
jmp 0x100039af
cmp al, 1
jne 0x10003941
cmp byte [esi + 3], 0
jle 0x100039b9
movaps xmm0, xmmword [str.kCTENGHR_tvGTR_]
xor ecx, ecx
movups xmmword [ebp - 0x124], xmm0
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp - 0x124]
xor byte [ebp + ecx - 0x123], al
inc ecx
cmp ecx, 0xe
jb 0x100038f0
cmp byte [ebp - 0x123], 0
mov byte [ebp - 0x115], 0
jne 0x10003920
xor ecx, ecx
lea eax, [ebp - 0x123]
jmp 0x100039af
lea ecx, [ebp - 0x123]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003930
sub ecx, edx
lea eax, [ebp - 0x123]
jmp 0x100039af
cmp byte [esi + 3], 0
jle 0x100039b9
mov ch, 0x57
mov byte [ebp - 0xca], 0
mov ah, 7
mov byte [ebp - 0xd0], ch
mov al, 0x36
mov byte [ebp - 0xca], 0
mov cl, 0x25
mov dl, 0x23
mov bl, 0x2e
xor ah, ch
xor al, ch
mov byte [ebp - 0xcf], ah
xor cl, ch
mov byte [ebp - 0xce], al
xor dl, ch
mov byte [ebp - 0xcd], cl
xor bl, ch
mov byte [ebp - 0xcc], dl
mov byte [ebp - 0xcb], bl
test ah, ah
jne 0x10003997
xor ecx, ecx
jmp 0x100039a9
lea ecx, [ebp - 0xcf]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100039a0
sub ecx, edx
lea eax, [ebp - 0xcf]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.100028b0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10004fa0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x100039dd
mov eax, dword [eax]
mov bh, 0x5c
mov byte [ebp - 0xe4], 0
push eax
mov cl, 0x2f
mov byte [ebp - 0xec], bh
mov dl, 0x7c
mov byte [ebp - 0xe4], 0
mov dh, cl
mov ah, dl
xor dl, bh
xor dh, bh
mov byte [ebp - 0xe9], dl
mov al, 0x79
mov byte [ebp - 0xe5], dh
sub esp, 0x18
mov edx, esp
mov ch, al
mov bl, 0x20
xor al, bh
mov byte [ebp - 0xeb], al
xor cl, bh
mov byte [ebp - 0xea], cl
xor bl, bh
mov byte [ebp - 0xe8], bl
xor ah, bh
mov byte [ebp - 0xe7], ah
xor ch, bh
mov byte [ebp - 0xe6], ch
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x10003a65
mov eax, dword [edx]
jmp 0x10003a67
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0xeb], 0
jne 0x10003a77
xor ecx, ecx
jmp 0x10003a89
lea ecx, [ebp - 0xeb]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003a80
sub ecx, esi
push ecx
lea eax, [ebp - 0xeb]
mov ecx, edx
push eax
call fcn.100028b0
lea eax, [ebp - 0xb8]
push eax
call fcn.10005a00
add esp, 0x24
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xf4]
cmp eax, 0x10
jb 0x10003ac9
inc eax
lea ecx, [ebp - 0x108]
push eax
push dword [ebp - 0x108]
call fcn.10002790
cmp byte [0x100a4436], 0
mov edi, dword [0x100a43bc]
mov dword [ebp - 0xf4], 0xf
mov dword [ebp - 0xf8], 0
mov byte [ebp - 0x108], 0
je 0x10003b26
mov ecx, 0xd78c9c
call fcn.10015880
mov esi, eax
test esi, esi
je 0x10003b26
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call ebx
test eax, eax
jne 0x10003b26
push 4
add esi, 0x6ac
push esi
call ebx
test eax, eax
jne 0x10003b26
mov al, byte [esi]
mov byte [edi + 0x38], al
cmp byte [0x100a4436], 0
movzx eax, byte [edi + 0x38]
mov ebx, dword [0x100a43bc]
push eax
je 0x10003b88
mov ecx, 0xd78c9c
call fcn.10015880
mov esi, eax
test esi, esi
je 0x10003b88
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10003b88
push 4
lea edi, [esi + 0x680]
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10003b88
cmp dword [esi + 0x694], 0x10
jb 0x10003b75
mov edi, dword [edi]
cmp dword [ebx + 0x30], 0x10
lea eax, [ebx + 0x1c]
jb 0x10003b80
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebx + 0x30], 0x10
lea eax, [ebx + 0x1c]
jb 0x10003b93
mov eax, dword [eax]
movaps xmm0, xmmword [0x10094270]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x12c], xmm0
mov dword [ebp - 0x11c], 0x342475d
mov byte [ebp - 0x118], 0
nop word [eax + eax]
mov al, byte [ebp - 0x12c]
xor byte [ebp + ecx - 0x12b], al
inc ecx
cmp ecx, 0x13
jb 0x10003bc0
sub esp, 0x18
mov byte [ebp - 0x118], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x10003c05
mov eax, dword [edx]
jmp 0x10003c07
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x12b], 0
jne 0x10003c17
xor ecx, ecx
jmp 0x10003c29
lea ecx, [ebp - 0x12b]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003c20
sub ecx, esi
push ecx
lea eax, [ebp - 0x12b]
mov ecx, edx
push eax
call fcn.100028b0
lea eax, [ebp - 0xa0]
push eax
call fcn.10005a00
add esp, 0x24
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 4
push eax
call fcn.100042f0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x10003c63
mov eax, dword [eax]
push eax
mov dl, 0x52
mov byte [ebp - 0xb9], 0
mov byte [ebp - 0xbc], dl
mov al, 0x77
mov cl, 0x21
mov byte [ebp - 0xb9], 0
xor al, dl
xor cl, dl
sub esp, 0x18
mov byte [ebp - 0xbb], al
mov edx, esp
mov byte [ebp - 0xba], cl
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x10003cb9
mov eax, dword [edx]
jmp 0x10003cbb
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0xbb], 0
jne 0x10003ccb
xor ecx, ecx
jmp 0x10003cdd
lea ecx, [ebp - 0xbb]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003cd4
sub ecx, esi
push ecx
lea eax, [ebp - 0xbb]
mov ecx, edx
push eax
call fcn.100028b0
lea eax, [ebp - 0x88]
push eax
call fcn.10005a00
add esp, 0x20
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xf4]
cmp eax, 0x10
jb 0x10003d1d
inc eax
lea ecx, [ebp - 0x108]
push eax
push dword [ebp - 0x108]
call fcn.10002790
lea eax, [ebp - 0x12c]
mov dword [ebp - 0xf4], 0xf
push eax
mov dword [ebp - 0xf8], 0
mov byte [ebp - 0x108], 0
call fcn.100046c0
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0x10
jb 0x10003d50
mov eax, dword [eax]
push eax
mov dl, 0x1e
mov byte [ebp - 0xbd], 0
mov byte [ebp - 0xc0], dl
mov al, 0x3b
mov cl, 0x6d
mov byte [ebp - 0xbd], 0
xor al, dl
xor cl, dl
sub esp, 0x18
mov byte [ebp - 0xbf], al
mov edx, esp
mov byte [ebp - 0xbe], cl
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x10003da6
mov eax, dword [edx]
jmp 0x10003da8
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0xbf], 0
jne 0x10003db8
xor ecx, ecx
jmp 0x10003dca
lea ecx, [ebp - 0xbf]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003dc1
sub ecx, esi
push ecx
lea eax, [ebp - 0xbf]
mov ecx, edx
push eax
call fcn.100028b0
lea eax, [ebp - 0x70]
push eax
call fcn.10005a00
add esp, 0x20
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x10003e07
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.10002790
mov esi, dword [ebp - 0x13c]
lea eax, [ebp - 0x108]
push eax
mov ecx, esi
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
call fcn.10004a50
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 0x10
jb 0x10003e42
mov eax, dword [eax]
push eax
mov dl, 0xe
mov byte [ebp - 0xc1], 0
mov byte [ebp - 0xc4], dl
mov al, 0x2b
mov cl, 0x7d
mov byte [ebp - 0xc1], 0
xor al, dl
xor cl, dl
sub esp, 0x18
mov byte [ebp - 0xc3], al
mov edx, esp
mov byte [ebp - 0xc2], cl
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x10003e98
mov eax, dword [edx]
jmp 0x10003e9a
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0xc3], 0
jne 0x10003eaa
xor ecx, ecx
jmp 0x10003ec2
lea ecx, [ebp - 0xc3]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003eb3
sub ecx, esi
mov esi, dword [ebp - 0x13c]
push ecx
lea eax, [ebp - 0xc3]
mov ecx, edx
push eax
call fcn.100028b0
lea eax, [ebp - 0x58]
push eax
call fcn.10005a00
add esp, 0x20
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0xf4]
cmp eax, 0x10
jb 0x10003eff
inc eax
lea ecx, [ebp - 0x108]
push eax
push dword [ebp - 0x108]
call fcn.10002790
lea eax, [ebp - 0x12c]
mov dword [ebp - 0xf4], 0xf
push eax
mov ecx, esi
mov dword [ebp - 0xf8], 0
mov byte [ebp - 0x108], 0
call fcn.10004d50
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 0x10
jb 0x10003f34
mov eax, dword [eax]
push eax
mov dl, 0x34
mov byte [ebp - 0xc5], 0
mov byte [ebp - 0xc8], dl
mov al, 0x11
mov cl, 0x47
mov byte [ebp - 0xc5], 0
xor al, dl
xor cl, dl
sub esp, 0x18
mov byte [ebp - 0xc7], al
mov edx, esp
mov byte [ebp - 0xc6], cl
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x10003f8a
mov eax, dword [edx]
jmp 0x10003f8c
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0xc7], 0
jne 0x10003f9c
xor ecx, ecx
jmp 0x10003fb4
lea ecx, [ebp - 0xc7]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003fa5
sub ecx, esi
mov esi, dword [ebp - 0x13c]
push ecx
lea eax, [ebp - 0xc7]
mov ecx, edx
push eax
call fcn.100028b0
lea eax, [ebp - 0x40]
push eax
call fcn.10005a00
mov eax, dword [ebp - 0x118]
add esp, 0x20
cmp eax, 0x10
jb 0x10003fed
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.10002790
push 0x48
lea eax, [ebp - 0x188]
push 0
push eax
call fcn.10054260
add esp, 0xc
mov dword [ebp - 0xf4], 0x292a2d25
cmp dword [ebp - 0xa4], 0x10
lea eax, [ebp - 0xb8]
xorps xmm0, xmm0
mov word [ebp - 0xf0], 0x2b
cmovae eax, dword [ebp - 0xb8]
cmp dword [ebp - 0x8c], 0x10
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
cmp dword [ebp - 0x74], 0x10
mov dword [ebp - 0x184], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x180], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x17c], eax
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
cmp dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
cmp dword [ebp - 0x2c], 0x10
movlpd qword [ebp - 0x178], xmm0
movaps xmm0, xmmword [0x10093fb0]
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
movups xmmword [ebp - 0x114], xmm0
mov dword [ebp - 0x164], eax
movaps xmm0, xmmword [0x100946a0]
movups xmmword [ebp - 0x104], xmm0
nop dword [eax]
mov al, byte [ebp - 0x114]
xor byte [ebp + ecx - 0x113], al
inc ecx
cmp ecx, 0x24
jb 0x100040d0
movaps xmm0, xmmword [str.r__F__b_B]
lea eax, [ebp - 0x113]
mov dword [ebp - 0x160], eax
xor ecx, ecx
movsx eax, byte [esi + 3]
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x158], 8
movups xmmword [ebp - 0x110], xmm0
mov dword [ebp - 0x100], 0x1d262807
mov dword [ebp - 0xfc], 0x3f183f0a
mov dword [ebp - 0xf8], 0x3f183f0a
mov word [ebp - 0xf4], 0x524f
mov byte [ebp - 0xf2], 0
mov al, byte [ebp - 0x110]
xor byte [ebp + ecx - 0x10f], al
inc ecx
cmp ecx, 0x1d
jb 0x10004141
lea eax, [ebp - 0x10f]
mov byte [ebp - 0xf2], 0
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x150], eax
call fcn.1001dee0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x10004187
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10002790
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x100041ae
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.10002790
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x100041d5
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.10002790
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp eax, 0x10
jb 0x10004202
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.10002790
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
cmp eax, 0x10
jb 0x10004235
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.10002790
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
cmp eax, 0x10
jb 0x1000426e
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.10002790
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa4], 0xf
mov dword [ebp - 0xa8], 0
mov byte [ebp - 0xb8], 0
cmp eax, 0x10
jb 0x100042bc
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002790
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10003773
xor ecx, ecx
call fcn.1001dee0
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10003773
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003bc25
mov esp, ebp
pop ebp
ret