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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x100bd078]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0x697b781a
mov dl, 0x1a
mov dword [esp + 0x14], 0x7b6e457f
mov dword [esp + 0x18], 0x2b2a7169
xor ecx, ecx
mov byte [esp + 0x1c], 0
nop
lea eax, [esp + 0x11]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, 0xb
jae 0x10031ca3
mov dl, byte [esp + 0x10]
jmp 0x10031c90
cmp byte [esp + 0x11], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
jne 0x10031cc8
xor ecx, ecx
jmp 0x10031cd9
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031cd0
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x48]
call fcn.10002880
mov ecx, dword [edi]
lea edx, [esp + 0x40]
call fcn.10016640
mov dword [edi + 4], eax
mov eax, dword [esp + 0x54]
cmp eax, 0x10
jb 0x10031d0e
inc eax
lea ecx, [esp + 0x40]
push eax
push dword [esp + 0x44]
call fcn.10002760
movaps xmm0, xmmword [0x100b12d0]
xor ecx, ecx
movups xmmword [esp + 0x10], xmm0
nop dword [eax]
mov al, byte [esp + 0x10]
xor byte [esp + ecx + 0x11], al
inc ecx
cmp ecx, 0xe
jb 0x10031d20
cmp byte [esp + 0x11], 0
mov byte [esp + 0x1f], 0
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
jne 0x10031d53
xor ecx, ecx
jmp 0x10031d69
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031d60
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x48]
call fcn.10002880
mov ecx, dword [edi + 4]
lea edx, [esp + 0x40]
call fcn.10016640
mov dword [edi + 8], eax
mov eax, dword [esp + 0x54]
cmp eax, 0x10
jb 0x10031d9f
inc eax
lea ecx, [esp + 0x40]
push eax
push dword [esp + 0x44]
call fcn.10002760
mov dh, 0xc
mov byte [esp + 0xe], 0xf
mov byte [esp + 0x3f], dh
mov al, 8
mov dh, byte [esp + 0xe]
mov cl, 0xe
mov byte [esp + 0x64], 0x7c
mov dl, 0x23
xor dh, byte [esp + 0x64]
mov ah, 0x19
xor al, byte [esp + 0x64]
mov ch, 4
mov byte [esp + 0xe], dh
mov byte [esp + 0x65], dh
mov dh, byte [esp + 0x3f]
mov byte [esp + 0x66], al
mov al, byte [esp + 0x64]
xor cl, al
mov byte [esp + 0x6c], 0
xor dl, al
mov byte [esp + 0x67], cl
xor ah, al
mov byte [esp + 0x68], dl
xor ch, al
mov byte [esp + 0x69], ah
xor dh, al
mov byte [esp + 0x6a], ch
cmp byte [esp + 0xe], 0
mov byte [esp + 0x6b], dh
mov byte [esp + 0x6c], 0
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
jne 0x10031e21
xor ecx, ecx
jmp 0x10031e31
lea ecx, [esp + 0x65]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031e28
sub ecx, edx
push ecx
lea eax, [esp + 0x69]
push eax
lea ecx, [esp + 0x48]
call fcn.10002880
mov ecx, dword [edi + 4]
lea edx, [esp + 0x40]
call fcn.10016640
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x54]
cmp eax, 0x10
jb 0x10031e67
inc eax
lea ecx, [esp + 0x40]
push eax
push dword [esp + 0x44]
call fcn.10002760
mov byte [esp + 0x10], 0x39
mov al, 0x58
xor al, byte [esp + 0x10]
mov cl, 0x4a
xor cl, byte [esp + 0x10]
mov dh, 0x50
mov byte [esp + 0x12], al
mov dl, 0x5c
mov byte [esp + 0x5b], 0x5e
mov ah, 0x66
mov al, byte [esp + 0x5b]
mov ch, 0x4b
mov byte [esp + 0x13], cl
mov cl, byte [esp + 0x10]
xor al, cl
mov byte [esp + 0x3f], dh
mov byte [esp + 0x18], al
xor dl, cl
mov byte [esp + 0xe], 0x5b
xor ah, cl
mov dh, byte [esp + 0xe]
xor ch, cl
xor dh, byte [esp + 0x10]
mov byte [esp + 0x37], 0x51
mov al, byte [esp + 0x37]
xor al, cl
mov byte [esp + 0xe], dh
mov byte [esp + 0x11], dh
mov dh, byte [esp + 0x3f]
mov byte [esp + 0x19], al
xor dh, cl
mov byte [esp + 0xf], 0x4d
mov al, byte [esp + 0xf]
xor al, cl
mov byte [esp + 0x1b], 0
cmp byte [esp + 0xe], 0
mov byte [esp + 0x14], dl
mov byte [esp + 0x15], ah
mov byte [esp + 0x16], ch
mov byte [esp + 0x17], dh
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], 0
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
jne 0x10031f18
xor ecx, ecx
jmp 0x10031f29
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031f20
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x48]
call fcn.10002880
mov ecx, dword [edi + 4]
lea edx, [esp + 0x40]
call fcn.10016640
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x54]
cmp eax, 0x10
jb 0x10031f5f
inc eax
lea ecx, [esp + 0x40]
push eax
push dword [esp + 0x44]
call fcn.10002760
xor eax, eax
mov dword [esp + 0x64], 8
mov dword [esp + 0x5c], eax
lea esi, [edi + 0x14]
push eax
mov byte [esp + 0x14], 0x10
mov al, 0x72
xor al, byte [esp + 0x14]
mov cl, 0x64
xor cl, byte [esp + 0x14]
mov dl, 0x7e
mov byte [esp + 0x15], al
mov dh, 0x3e
mov byte [esp + 0x16], cl
sub esp, 0x18
mov cl, byte [esp + 0x2c]
mov ah, 0x4f
mov byte [esp + 0x2b], 0x22
xor dl, cl
mov al, byte [esp + 0x2b]
xor dh, cl
mov byte [esp + 0x2f], dl
xor al, cl
mov byte [esp + 0x33], al
mov ch, 0x35
mov byte [esp + 0x32], dh
xor ah, cl
mov edx, esp
mov byte [esp + 0x35], 0
mov byte [esp + 0x53], 0x74
xor ch, cl
mov al, byte [esp + 0x53]
mov byte [esp + 0x30], ah
xor al, cl
mov byte [esp + 0x31], ch
mov byte [esp + 0x34], al
mov byte [esp + 0x35], 0
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 0x10032001
mov eax, dword [edx]
jmp 0x10032003
mov eax, edx
mov byte [eax], 0
cmp byte [esp + 0x2d], 0
jne 0x10032011
xor ecx, ecx
jmp 0x1003202b
lea ecx, [esp + 0x2d]
lea eax, [ecx + 1]
mov dword [esp + 0x54], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10032020
sub ecx, dword [esp + 0x54]
push ecx
lea eax, [esp + 0x31]
mov ecx, edx
push eax
call fcn.10002880
lea eax, [esp + 0x5c]
push eax
call fcn.10009ac0
mov ecx, dword [edi + 0x10]
add esp, 0x20
mov edx, eax
call fcn.10016640
mov dword [esi], eax
mov eax, dword [esp + 0x54]
cmp eax, 0x10
jb 0x10032069
inc eax
lea ecx, [esp + 0x40]
push eax
push dword [esp + 0x44]
call fcn.10002760
mov eax, dword [esp + 0x5c]
add esi, 4
inc eax
sub dword [esp + 0x64], 1
mov dword [esp + 0x5c], eax
jne 0x10031f70
movaps xmm0, xmmword [0x100b15c0]
xor ecx, ecx
movups xmmword [esp + 0x10], xmm0
mov byte [esp + 0x20], 0
mov al, byte [esp + 0x10]
xor byte [esp + ecx + 0x11], al
inc ecx
cmp ecx, 0xf
jb 0x10032093
cmp byte [esp + 0x11], 0
mov byte [esp + 0x20], 0
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
jne 0x100320c6
xor ecx, ecx
jmp 0x100320d9
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100320d0
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x48]
call fcn.10002880
mov ecx, dword [edi]
lea edx, [esp + 0x40]
call fcn.10016640
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x54]
cmp eax, 0x10
jb 0x1003210e
inc eax
lea ecx, [esp + 0x40]
push eax
push dword [esp + 0x44]
call fcn.10002760
movaps xmm0, xmmword [0x100b1260]
xor ecx, ecx
movups xmmword [esp + 0x10], xmm0
nop dword [eax]
mov al, byte [esp + 0x10]
xor byte [esp + ecx + 0x11], al
inc ecx
cmp ecx, 0xe
jb 0x10032120
cmp byte [esp + 0x11], 0
mov byte [esp + 0x1f], 0
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
jne 0x10032153
xor ecx, ecx
jmp 0x10032169
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10032160
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x48]
call fcn.10002880
mov ecx, dword [edi + 0x34]
lea edx, [esp + 0x40]
call fcn.10016640
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x54]
cmp eax, 0x10
jb 0x1003219f
inc eax
lea ecx, [esp + 0x40]
push eax
push dword [esp + 0x44]
call fcn.10002760
mov dh, 0x3e
mov byte [esp + 0xe], 0x3d
mov byte [esp + 0xf], dh
mov al, 0x3a
mov dh, byte [esp + 0xe]
mov cl, 0x3c
mov byte [esp + 0x64], 0x4e
mov dl, 0x11
xor dh, byte [esp + 0x64]
mov ah, 0x2b
xor al, byte [esp + 0x64]
mov ch, 0x36
mov byte [esp + 0xe], dh
mov byte [esp + 0x65], dh
mov dh, byte [esp + 0xf]
mov byte [esp + 0x66], al
mov al, byte [esp + 0x64]
xor cl, al
mov byte [esp + 0x6c], 0
xor dl, al
mov byte [esp + 0x67], cl
xor ah, al
mov byte [esp + 0x68], dl
xor ch, al
mov byte [esp + 0x69], ah
xor dh, al
mov byte [esp + 0x6a], ch
cmp byte [esp + 0xe], 0
mov byte [esp + 0x6b], dh
mov byte [esp + 0x6c], 0
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
jne 0x10032221
xor ecx, ecx
jmp 0x10032231
lea ecx, [esp + 0x65]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10032228
sub ecx, edx
push ecx
lea eax, [esp + 0x69]
push eax
lea ecx, [esp + 0x48]
call fcn.10002880
mov ecx, dword [edi + 0x34]
lea edx, [esp + 0x40]
call fcn.10016640
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x54]
cmp eax, 0x10
jb 0x10032267
inc eax
lea ecx, [esp + 0x40]
push eax
push dword [esp + 0x44]
call fcn.10002760
mov dl, 0x6a
mov dword [esp + 0x10], 0x5181a6a
mov dword [esp + 0x14], 0x190f180d
xor ecx, ecx
mov dword [esp + 0x18], 0x120f3519
mov word [esp + 0x1c], 0x1a
nop word [eax + eax]
lea eax, [esp + 0x11]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, 0xc
jae 0x100322a3
mov dl, byte [esp + 0x10]
jmp 0x10032290
cmp byte [esp + 0x11], 0
mov byte [esp + 0x1d], 0
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
jne 0x100322c8
xor ecx, ecx
jmp 0x100322d9
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100322d0
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x48]
call fcn.10002880
mov ecx, dword [edi + 0x34]
lea edx, [esp + 0x40]
call fcn.10016640
mov dword [edi + 0x40], eax
mov eax, dword [esp + 0x54]
cmp eax, 0x10
jb 0x1003230f
inc eax
lea ecx, [esp + 0x40]
push eax
push dword [esp + 0x44]
call fcn.10002760
lea eax, [edi + 0x44]
mov dword [esp + 0x64], 8
xor esi, esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
mov byte [esp + 0x10], 0x75
mov al, 0x17
xor al, byte [esp + 0x10]
mov cl, 1
xor cl, byte [esp + 0x10]
mov dl, 0x1b
mov byte [esp + 0x11], al
mov dh, 0x5b
mov byte [esp + 0x12], cl
mov ah, 0x2a
mov cl, byte [esp + 0x10]
mov ch, 0x50
mov byte [esp + 0xf], 0x47
xor dl, cl
mov al, byte [esp + 0xf]
xor dh, cl
xor al, cl
mov byte [esp + 0x13], dl
mov byte [esp + 0x17], al
xor ah, cl
push esi
mov byte [esp + 0x1a], dh
sub esp, 0x18
mov edx, esp
mov byte [esp + 0x53], 0x11
mov al, byte [esp + 0x53]
xor ch, cl
mov byte [esp + 0x35], 0
xor al, cl
mov byte [esp + 0x30], ah
mov byte [esp + 0x31], ch
mov byte [esp + 0x34], al
mov byte [esp + 0x35], 0
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [esp + 0x2d], 0
jne 0x100323ab
xor ecx, ecx
jmp 0x100323c1
lea ecx, [esp + 0x2d]
lea eax, [ecx + 1]
mov dword [esp + 0x54], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100323b6
sub ecx, dword [esp + 0x54]
push ecx
lea eax, [esp + 0x31]
mov ecx, edx
push eax
call fcn.10002880
lea eax, [esp + 0x5c]
push eax
call fcn.10009ac0
mov ecx, dword [edi + 0x34]
add esp, 0x20
mov edx, eax
call fcn.10016640
mov ecx, dword [esp + 0x5c]
mov dword [ecx], eax
mov eax, dword [esp + 0x54]
cmp eax, 0x10
jb 0x10032403
inc eax
lea ecx, [esp + 0x40]
push eax
push dword [esp + 0x44]
call fcn.10002760
add dword [esp + 0x5c], 4
inc esi
sub dword [esp + 0x64], 1
jne 0x10032324
mov eax, dword [edi + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [esp + 0x38], eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
test eax, eax
je 0x1003244d
push 4
push eax
call esi
test eax, eax
jne 0x1003244d
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x64]
push eax
call dword [0x100b0d84]
mov eax, dword [edi + 8]
mov dword [esp + 0x38], eax
test eax, eax
je 0x10032473
push 4
push eax
call esi
test eax, eax
jne 0x10032473
push dword [esp + 0x68]
mov ecx, dword [esp + 0x3c]
push dword [esp + 0x68]
call dword [0x100b0d88]
mov eax, dword [edi + 0x38]
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
test eax, eax
je 0x100324d3
push 4
push eax
call esi
test eax, eax
jne 0x100324d3
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0xdc]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0xe0]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0xe4]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0xe8]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 8]
movaps xmm0, xmmword [esp + 0x10]
movaps xmmword [esp + 0x70], xmm0
mov dword [esp + 0x38], eax
test eax, eax
je 0x10032500
push 4
push eax
call esi
test eax, eax
jne 0x10032500
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x70]
push eax
call dword [0x100b0d78]
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
test eax, eax
je 0x10032533
push 4
push eax
call esi
test eax, eax
jne 0x10032533
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x64]
push eax
call dword [0x100b0d84]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x38], eax
test eax, eax
je 0x10032559
push 4
push eax
call esi
test eax, eax
jne 0x10032559
push dword [esp + 0x68]
mov ecx, dword [esp + 0x3c]
push dword [esp + 0x68]
call dword [0x100b0d88]
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
test eax, eax
je 0x100325b9
push 4
push eax
call esi
test eax, eax
jne 0x100325b9
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0xdc]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0xe0]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0xe4]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0xe8]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0xc]
movaps xmm0, xmmword [esp + 0x10]
movaps xmmword [esp + 0x70], xmm0
mov dword [esp + 0x38], eax
test eax, eax
je 0x100325e6
push 4
push eax
call esi
test eax, eax
jne 0x100325e6
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x70]
push eax
call dword [0x100b0d78]
mov edi, dword [edi + 0x40]
test edi, edi
je 0x1003262c
push 4
push edi
call esi
test eax, eax
jne 0x1003262c
lea eax, [edi + 0x140]
push 4
push eax
call esi
test eax, eax
jne 0x1003262c
lea eax, [edi + 0x13c]
push 4
push eax
call esi
test eax, eax
jne 0x1003262c
mov ecx, edi
mov dword [edi + 0x140], eax
mov dword [edi + 0x13c], 0x64
call dword [0x100b0dd4]
mov edi, dword [esp + 0x60]
mov edi, dword [edi]
test edi, edi
je 0x10032648
push 4
push edi
call esi
test eax, eax
jne 0x10032648
push eax
mov ecx, edi
call dword [0x100b0d90]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.10067c75
mov esp, ebp
pop ebp
ret