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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov bh, 0x22
mov byte [esp + 5], 0x25
mov byte [esp + 6], bh
mov al, 0x33
mov bh, byte [esp + 5]
mov dl, 0x29
mov byte [esp + 8], 0x47
mov bl, 0x18
xor bh, byte [esp + 8]
mov ah, 0x24
xor al, byte [esp + 8]
mov dh, 0x2b
push esi
mov esi, ecx
mov byte [esp + 9], bh
mov byte [esp + 0xd], bh
mov cl, 0x28
mov bh, byte [esp + 0xa]
mov ch, 0x34
mov byte [esp + 0xe], al
mov al, byte [esp + 0xc]
xor dl, al
mov byte [esp + 0x16], 0
xor bl, al
mov byte [esp + 0xf], dl
xor ah, al
mov byte [esp + 0x10], bl
xor dh, al
mov byte [esp + 0x11], ah
xor cl, al
mov byte [esp + 0x12], dh
xor ch, al
mov byte [esp + 0x13], cl
xor bh, al
mov byte [esp + 0x14], ch
cmp byte [esp + 9], 0
push edi
mov byte [esp + 0x19], bh
mov byte [esp + 0x1a], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x1004c6c0
xor ecx, ecx
jmp 0x1004c6d0
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004c6c7
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002840
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.1001b710
mov dword [esi + 4], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x1004c705
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002720
mov cl, 0x5b
mov dword [esp + 0x10], 0x352f395b
mov dword [esp + 0x14], 0x293a2c04
xor eax, eax
mov dword [esp + 0x18], 0x29343229
mov byte [esp + 0x1c], 0
xor byte [esp + eax + 0x11], cl
inc eax
cmp eax, 0xb
jae 0x1004c736
mov cl, byte [esp + 0x10]
jmp 0x1004c726
cmp byte [esp + 0x11], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x1004c75b
xor ecx, ecx
jmp 0x1004c76b
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004c762
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002840
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.1001b710
mov dword [esi + 8], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x1004c7a0
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002720
mov bh, 0xc
mov byte [esp + 0xd], 0xb
mov byte [esp + 0xe], bh
mov al, 0x1d
mov bh, byte [esp + 0xd]
mov cl, 7
mov byte [esp + 0x10], 0x69
mov dl, 0x36
xor bh, byte [esp + 0x10]
mov bl, 0x1b
xor al, byte [esp + 0x10]
mov ah, 6
mov byte [esp + 0xd], bh
mov ch, 0xe
mov byte [esp + 0x11], bh
mov dh, 0x1c
mov bh, byte [esp + 0xe]
mov byte [esp + 0x12], al
mov al, byte [esp + 0x10]
xor cl, al
mov byte [esp + 0x1a], 0
xor dl, al
mov byte [esp + 0x13], cl
xor bl, al
mov byte [esp + 0x14], dl
xor ah, al
mov byte [esp + 0x15], bl
xor ch, al
mov byte [esp + 0x16], ah
xor dh, al
mov byte [esp + 0x17], ch
xor bh, al
mov byte [esp + 0x18], dh
cmp byte [esp + 0xd], 0
mov byte [esp + 0x19], bh
mov byte [esp + 0x1a], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x1004c832
xor ecx, ecx
jmp 0x1004c849
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004c840
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002840
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.1001b710
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x1004c87e
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002720
mov byte [esp + 0x10], 0x3c
mov al, 0x48
xor al, byte [esp + 0x10]
mov bh, 0x5e
xor bh, byte [esp + 0x10]
mov cl, 0x52
mov byte [esp + 0x12], al
mov dl, 0x63
mov al, byte [esp + 0x10]
mov bl, 0x51
mov ah, 0x5d
mov byte [esp + 0x19], 0
mov ch, 0x5b
mov byte [esp + 0x11], bh
mov dh, 0x59
mov byte [esp + 0x19], 0
xor cl, al
mov dword [esp + 0x3c], 0xf
xor dl, al
mov byte [esp + 0x13], cl
xor bl, al
mov byte [esp + 0x14], dl
xor ah, al
mov byte [esp + 0x15], bl
xor ch, al
mov byte [esp + 0x16], ah
xor dh, al
mov byte [esp + 0x17], ch
mov byte [esp + 0x18], dh
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
test bh, bh
jne 0x1004c8f2
xor ecx, ecx
jmp 0x1004c909
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004c900
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002840
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.1001b710
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x1004c93e
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002720
mov bh, 0x4d
mov byte [esp + 0x10], 0x3e
mov byte [esp + 0xe], bh
mov al, 0x4a
mov byte [esp + 0xd], 0x5c
mov cl, 0x50
mov bh, byte [esp + 0xd]
mov dl, 0x61
xor bh, byte [esp + 0x10]
mov bl, 0x4e
mov byte [esp + 0xf], al
mov ah, 0x4c
xor al, byte [esp + 0x10]
mov ch, 0x57
mov byte [esp + 0xd], bh
mov dh, 0x5b
mov byte [esp + 0x12], al
mov al, byte [esp + 0x10]
mov byte [esp + 0x11], bh
xor cl, al
mov bh, byte [esp + 0xe]
xor dl, al
xor bl, al
mov byte [esp + 0x1b], 0
xor ah, al
mov byte [esp + 0x13], cl
xor ch, al
mov byte [esp + 0x14], dl
xor dh, al
mov byte [esp + 0x15], bl
xor bh, al
mov byte [esp + 0x16], ah
mov al, byte [esp + 0xf]
xor al, byte [esp + 0x10]
cmp byte [esp + 0xd], 0
mov byte [esp + 0x17], ch
mov byte [esp + 0x18], dh
mov byte [esp + 0x19], bh
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x1004c9e0
xor ecx, ecx
jmp 0x1004c9f0
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004c9e7
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002840
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.1001b710
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x1004ca25
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002720
movaps xmm0, xmmword [0x100c8a80]
xor ecx, ecx
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0x282024
nop dword [eax + eax]
mov al, byte [esp + 0x10]
xor byte [esp + ecx + 0x11], al
inc ecx
cmp ecx, 0x12
jb 0x1004ca40
cmp byte [esp + 0x11], 0
mov byte [esp + 0x23], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x1004ca73
xor ecx, ecx
jmp 0x1004ca89
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004ca80
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002840
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.1001b710
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x1004cabe
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002720
movaps xmm0, xmmword [str.0DHDo_YoS_ED]
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 0x1004cad0
cmp byte [esp + 0x11], 0
mov byte [esp + 0x1f], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x1004cb03
xor ecx, ecx
jmp 0x1004cb19
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004cb10
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002840
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.1001b710
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x1004cb4e
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002720
movaps xmm0, xmmword [0x100c8630]
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 0x1004cb61
cmp byte [esp + 0x11], 0
mov byte [esp + 0x20], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x1004cb94
xor ecx, ecx
jmp 0x1004cba9
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004cba0
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002840
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.1001b710
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x1004cbde
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002720
movaps xmm0, xmmword [0x100c8860]
xor ecx, ecx
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0x1b001a16
mov word [esp + 0x24], 1
nop dword [eax + eax]
mov al, byte [esp + 0x10]
xor byte [esp + ecx + 0x11], al
inc ecx
cmp ecx, 0x14
jb 0x1004cc00
cmp byte [esp + 0x11], 0
mov byte [esp + 0x25], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x1004cc33
xor ecx, ecx
jmp 0x1004cc49
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004cc40
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002840
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.1001b710
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x1004cc7e
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002720
movaps xmm0, xmmword [0x100c9380]
xor ecx, ecx
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0x767a4675
mov dword [esp + 0x24], 0x6d776c
nop dword [eax]
mov al, byte [esp + 0x10]
xor byte [esp + ecx + 0x11], al
inc ecx
cmp ecx, 0x16
jb 0x1004cca0
cmp byte [esp + 0x11], 0
mov byte [esp + 0x27], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x1004ccd3
xor ecx, ecx
jmp 0x1004cce9
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004cce0
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002840
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.1001b710
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x1004cd1e
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002720
mov ecx, esi
call fcn.1004cd70
mov edi, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test edi, edi
je 0x1004cd49
push 4
push edi
call ebx
test eax, eax
jne 0x1004cd49
lea ecx, [edi + 0xd4]
call fcn.1001c490
mov edi, eax
jmp 0x1004cd4b
xor edi, edi
mov esi, dword [esi]
test esi, esi
je 0x1004cd66
push 4
push esi
call ebx
test eax, eax
jne 0x1004cd66
or edi, 0x38
mov ecx, esi
push edi
call dword [0x100c682c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret