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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
mov bh, 0x71
mov byte [esp + 5], 0x76
mov byte [esp + 6], bh
mov al, 0x60
mov bh, byte [esp + 5]
mov dl, 0x7a
mov byte [esp + 0x14], 0x14
mov bl, 0x4b
xor bh, byte [esp + 0x14]
mov ah, 0x77
xor al, byte [esp + 0x14]
mov dh, 0x78
push esi
mov esi, ecx
mov byte [esp + 9], bh
mov byte [esp + 0x19], bh
mov cl, 0x7b
mov bh, byte [esp + 0xa]
mov ch, 0x67
mov byte [esp + 0x1a], al
mov al, byte [esp + 0x18]
xor dl, al
mov byte [esp + 0x22], 0
xor bl, al
mov byte [esp + 0x1b], dl
xor ah, al
mov byte [esp + 0x1c], bl
xor dh, al
mov byte [esp + 0x1d], ah
xor cl, al
mov byte [esp + 0x1e], dh
xor ch, al
mov byte [esp + 0x1f], cl
xor bh, al
mov byte [esp + 0x20], ch
cmp byte [esp + 9], 0
push edi
mov byte [esp + 0x25], bh
mov byte [esp + 0x26], 0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jne 0x10052310
xor ecx, ecx
jmp 0x10052320
lea ecx, [esp + 0x1d]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10052317
sub ecx, edx
push ecx
lea eax, [esp + 0x21]
push eax
lea ecx, [esp + 0x38]
call fcn.10002770
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.100186d0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x10052355
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002650
mov cl, 0x1d
mov dword [esp + 0x1c], 0x7479781d
mov dword [esp + 0x20], 0x786e4269
xor eax, eax
mov dword [esp + 0x24], 0x757e6f7c
mov byte [esp + 0x28], 0
xor byte [esp + eax + 0x1d], cl
inc eax
cmp eax, 0xb
jae 0x10052386
mov cl, byte [esp + 0x1c]
jmp 0x10052376
cmp byte [esp + 0x1d], 0
mov byte [esp + 0x28], 0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jne 0x100523ab
xor ecx, ecx
jmp 0x100523bb
lea ecx, [esp + 0x1d]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100523b2
sub ecx, edx
push ecx
lea eax, [esp + 0x21]
push eax
lea ecx, [esp + 0x38]
call fcn.10002770
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.100186d0
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x100523f0
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002650
mov bh, 0x6d
mov byte [esp + 0x1c], 0xe
mov byte [esp + 0xe], bh
mov al, 0x7a
xor al, byte [esp + 0x1c]
mov cl, 0x60
mov byte [esp + 0xd], 0x6c
mov dl, 0x51
mov bh, byte [esp + 0xd]
mov bl, 0x7d
xor bh, byte [esp + 0x1c]
mov ah, 0x6b
mov byte [esp + 0xd], bh
mov ch, 0x6f
mov byte [esp + 0x1e], al
mov dh, 0x7c
mov al, byte [esp + 0x1c]
mov byte [esp + 0x1d], bh
xor cl, al
mov bh, byte [esp + 0xe]
xor dl, al
xor bl, al
mov byte [esp + 0xf], 0x66
xor ah, al
mov byte [esp + 0x27], 0
xor ch, al
mov byte [esp + 0x1f], cl
xor dh, al
mov byte [esp + 0x20], dl
xor bh, al
mov byte [esp + 0x21], bl
mov al, byte [esp + 0xf]
xor al, byte [esp + 0x1c]
cmp byte [esp + 0xd], 0
mov byte [esp + 0x22], ah
mov byte [esp + 0x23], ch
mov byte [esp + 0x24], dh
mov byte [esp + 0x25], bh
mov byte [esp + 0x26], al
mov byte [esp + 0x27], 0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jne 0x10052493
xor ecx, ecx
jmp 0x100524a9
lea ecx, [esp + 0x1d]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100524a0
sub ecx, edx
push ecx
lea eax, [esp + 0x21]
push eax
lea ecx, [esp + 0x38]
call fcn.10002770
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.100186d0
mov dword [esi + 8], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x100524de
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002650
movaps xmm0, xmmword [0x1009dc10]
xor ecx, ecx
movups xmmword [esp + 0x1c], xmm0
nop dword [eax]
mov al, byte [esp + 0x1c]
xor byte [esp + ecx + 0x1d], al
inc ecx
cmp ecx, 0xe
jb 0x100524f0
cmp byte [esp + 0x1d], 0
mov byte [esp + 0x2b], 0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jne 0x10052523
xor ecx, ecx
jmp 0x10052539
lea ecx, [esp + 0x1d]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10052530
sub ecx, edx
push ecx
lea eax, [esp + 0x21]
push eax
lea ecx, [esp + 0x38]
call fcn.10002770
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.100186d0
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x1005256e
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002650
xor eax, eax
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], eax
lea edi, [esi + 0x18]
nop
push eax
mov byte [esp + 0x20], 0x58
mov al, 0x15
xor al, byte [esp + 0x20]
mov cl, 0x37
xor cl, byte [esp + 0x20]
mov bl, 0x2b
mov byte [esp + 0x21], al
mov bh, 7
mov byte [esp + 0x22], cl
sub esp, 0x18
mov cl, byte [esp + 0x38]
mov dl, 0x36
mov byte [esp + 0x2b], 0x7d
xor bl, cl
mov al, byte [esp + 0x2b]
xor bh, cl
xor al, cl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x41], al
mov ah, 0x2c
mov byte [esp + 0x40], bh
mov ch, 0x3d
mov ebx, esp
mov byte [esp + 0x2a], 0x3c
mov al, byte [esp + 0x2a]
mov dh, 0x2a
mov byte [esp + 0x43], 0
xor dl, cl
xor ah, cl
mov byte [esp + 0x3b], dl
xor ch, cl
mov byte [esp + 0x3d], ah
xor dh, cl
mov byte [esp + 0x3e], ch
xor al, cl
mov byte [esp + 0x3f], dh
mov byte [esp + 0x42], al
mov byte [esp + 0x43], 0
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp byte [esp + 0x39], 0
jne 0x10052617
xor ecx, ecx
jmp 0x10052629
lea ecx, [esp + 0x39]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10052620
sub ecx, edx
push ecx
lea eax, [esp + 0x3d]
mov ecx, ebx
push eax
call fcn.10002770
lea eax, [esp + 0x4c]
push eax
call fcn.1000d830
mov ecx, dword [esi]
add esp, 0x20
mov edx, eax
call fcn.100186d0
mov dword [edi], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x10052666
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002650
mov eax, dword [esp + 0x10]
add edi, 4
inc eax
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
jne 0x10052580
mov byte [esp + 0x1c], 0x2f
mov al, 0x5b
xor al, byte [esp + 0x1c]
mov bh, 0x4d
xor bh, byte [esp + 0x1c]
mov cl, 0x41
mov byte [esp + 0x1e], al
mov dl, 0x70
mov al, byte [esp + 0x1c]
mov bl, 0x4b
mov ah, 0x5d
mov byte [esp + 0x25], 0
mov ch, 0x40
mov byte [esp + 0x1d], bh
mov dh, 0x5f
mov byte [esp + 0x25], 0
xor cl, al
mov dword [esp + 0x44], 0xf
xor dl, al
mov byte [esp + 0x1f], cl
xor bl, al
mov byte [esp + 0x20], dl
xor ah, al
mov byte [esp + 0x21], bl
xor ch, al
mov byte [esp + 0x22], ah
xor dh, al
mov byte [esp + 0x23], ch
mov byte [esp + 0x24], dh
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
test bh, bh
jne 0x100526f1
xor ecx, ecx
jmp 0x10052701
lea ecx, [esp + 0x1d]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100526f8
sub ecx, edx
push ecx
lea eax, [esp + 0x21]
push eax
lea ecx, [esp + 0x38]
call fcn.10002770
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.100186d0
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x10052736
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002650
movaps xmm0, xmmword [0x1009df80]
xor ecx, ecx
movups xmmword [esp + 0x1c], xmm0
mov word [esp + 0x2c], 0x17
nop dword [eax + eax]
mov al, byte [esp + 0x1c]
xor byte [esp + ecx + 0x1d], al
inc ecx
cmp ecx, 0x10
jb 0x10052750
cmp byte [esp + 0x1d], 0
mov byte [esp + 0x2d], 0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jne 0x10052783
xor ecx, ecx
jmp 0x10052799
lea ecx, [esp + 0x1d]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10052790
sub ecx, edx
push ecx
lea eax, [esp + 0x21]
push eax
lea ecx, [esp + 0x38]
call fcn.10002770
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.100186d0
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x100527ce
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002650
mov bl, 0x23
mov byte [esp + 0xd], 0x3b
mov bh, bl
mov byte [esp + 0x1c], 0x4f
mov byte [esp + 0xf], bh
mov al, 0x37
mov bh, byte [esp + 0xd]
mov ah, 0x2a
xor bh, byte [esp + 0x1c]
mov dh, ah
xor al, byte [esp + 0x1c]
mov cl, 0x3b
mov byte [esp + 0xd], bh
mov dl, 0x10
mov byte [esp + 0x1d], bh
mov ch, 0x39
mov bh, byte [esp + 0xf]
mov byte [esp + 0x1e], al
mov al, byte [esp + 0x1c]
xor cl, al
mov byte [esp + 0x26], 0
xor dl, al
mov byte [esp + 0x1f], cl
xor bl, al
mov byte [esp + 0x20], dl
xor ah, al
mov byte [esp + 0x21], bl
xor ch, al
mov byte [esp + 0x22], ah
xor dh, al
mov byte [esp + 0x23], ch
xor bh, al
mov byte [esp + 0x24], dh
cmp byte [esp + 0xd], 0
mov byte [esp + 0x25], bh
mov byte [esp + 0x26], 0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jne 0x10052860
xor ecx, ecx
jmp 0x10052870
lea ecx, [esp + 0x1d]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10052867
sub ecx, edx
push ecx
lea eax, [esp + 0x21]
push eax
lea ecx, [esp + 0x38]
call fcn.10002770
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.100186d0
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x100528a5
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002650
mov bh, 8
mov byte [esp + 0x1c], 0x6f
mov byte [esp + 0xf], bh
mov al, 0x17
xor al, byte [esp + 0x1c]
mov ah, 0xe
mov byte [esp + 0xd], 0x1b
mov dh, ah
mov bh, byte [esp + 0xd]
mov cl, 0x1b
xor bh, byte [esp + 0x1c]
mov dl, 0x30
mov byte [esp + 0xd], bh
mov bl, 0xb
mov byte [esp + 0x1e], al
mov ch, 2
mov al, byte [esp + 0x1c]
mov byte [esp + 0x1d], bh
xor cl, al
mov bh, byte [esp + 0xf]
xor dl, al
xor bl, al
mov byte [esp + 0xe], 0xa
xor ah, al
mov byte [esp + 0x27], 0
xor ch, al
mov byte [esp + 0x1f], cl
xor dh, al
mov byte [esp + 0x20], dl
xor bh, al
mov byte [esp + 0x21], bl
mov al, byte [esp + 0xe]
xor al, byte [esp + 0x1c]
cmp byte [esp + 0xd], 0
mov byte [esp + 0x22], ah
mov byte [esp + 0x23], ch
mov byte [esp + 0x24], dh
mov byte [esp + 0x25], bh
mov byte [esp + 0x26], al
mov byte [esp + 0x27], 0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jne 0x10052948
xor ecx, ecx
jmp 0x10052959
lea ecx, [esp + 0x1d]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10052950
sub ecx, edx
push ecx
lea eax, [esp + 0x21]
push eax
lea ecx, [esp + 0x38]
call fcn.10002770
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.100186d0
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x1005298e
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002650
mov cl, 0x60
mov dword [esp + 0x1c], 0x14181460
mov dword [esp + 0x20], 0x605043f
xor eax, eax
mov dword [esp + 0x24], 0x5130e05
mov byte [esp + 0x28], 0
nop
xor byte [esp + eax + 0x1d], cl
inc eax
cmp eax, 0xb
jae 0x100529c0
mov cl, byte [esp + 0x1c]
jmp 0x100529b0
cmp byte [esp + 0x1d], 0
mov byte [esp + 0x28], 0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jne 0x100529e5
xor ecx, ecx
jmp 0x100529f9
lea ecx, [esp + 0x1d]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100529f0
sub ecx, edx
push ecx
lea eax, [esp + 0x21]
push eax
lea ecx, [esp + 0x38]
call fcn.10002770
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.100186d0
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x10052a2e
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002650
mov cl, 0x28
mov byte [esp + 0x1c], 0x5c
mov bh, cl
mov byte [esp + 0xd], 0x28
mov byte [esp + 0xf], bh
mov al, 0x24
xor al, byte [esp + 0x1c]
mov bl, 0x34
mov bh, byte [esp + 0xd]
mov dl, 3
xor bh, byte [esp + 0x1c]
mov ah, 0x39
mov byte [esp + 0xd], bh
mov ch, 0x3d
mov byte [esp + 0x1e], al
mov dh, 0x30
mov al, byte [esp + 0x1c]
mov byte [esp + 0x1d], bh
xor cl, al
mov bh, byte [esp + 0xf]
xor dl, al
xor ah, al
mov byte [esp + 0xe], bl
xor bl, al
mov byte [esp + 0x27], 0
xor ch, al
mov byte [esp + 0x1f], cl
xor dh, al
mov byte [esp + 0x20], dl
xor bh, al
mov byte [esp + 0x21], bl
mov al, byte [esp + 0xe]
xor al, byte [esp + 0x1c]
cmp byte [esp + 0xd], 0
mov byte [esp + 0x22], ah
mov byte [esp + 0x23], ch
mov byte [esp + 0x24], dh
mov byte [esp + 0x25], bh
mov byte [esp + 0x26], al
mov byte [esp + 0x27], 0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jne 0x10052ad0
xor ecx, ecx
jmp 0x10052ae0
lea ecx, [esp + 0x1d]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10052ad7
sub ecx, edx
push ecx
lea eax, [esp + 0x21]
push eax
lea ecx, [esp + 0x38]
call fcn.10002770
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.100186d0
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x10052b15
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002650
mov edi, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test edi, edi
je 0x10052b39
push 4
push edi
call ebx
test eax, eax
jne 0x10052b39
lea ecx, [edi + 0xd4]
call fcn.10019420
mov edi, eax
jmp 0x10052b3b
xor edi, edi
mov esi, dword [esi]
test esi, esi
je 0x10052b56
push 4
push esi
call ebx
test eax, eax
jne 0x10052b56
or edi, 0x28
mov ecx, esi
push edi
call dword [0x1009d364]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret