Function at 0x100cf870
Capabilities:
Authenticate hmac
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x31c
call fcn.101b79b0
mov eax, dword [0x1027e110]
xor eax, esp
mov dword [esp + 0x318], eax
cmp dword [esp + 0x338], 0x100000
mov ecx, dword [esp + 0x324]
mov edx, dword [esp + 0x32c]
mov eax, dword [esp + 0x320]
push ebx
push esi
mov esi, dword [esp + 0x330]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x338]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x344]
mov ebx, 0x28
push edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x44], edx
mov edi, 0x40
mov dword [esp + 0x50], ebx
mov dword [esp + 0x18], 8
mov byte [esp + 0xe], 1
jb 0x100cf90f
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.101b40e2
add esp, 0x31c
ret
push ebp
push eax
call fcn.100d26b0
push eax
call fcn.100d3700
add esp, 8
cmp eax, 0x2a0
jg 0x100cf9d5
je 0x100cf9a6
cmp eax, 4
je 0x100cf969
cmp eax, 0x40
jne 0x100cf9e6
lea eax, [esp + 0x80]
push eax
call fcn.10109e80
add esp, 4
test eax, eax
jle 0x100cffe9
mov dword [esp + 0x24], 0x100cf5c0
mov ebp, 0x1010b5d0
mov esi, 0x14
jmp 0x100cfa78
lea ecx, [esp + 0x80]
push ecx
call fcn.100e6a20
add esp, 4
test eax, eax
jle 0x100cffe9
mov ebx, 0x30
mov dword [esp + 0x24], 0x100cf510
mov ebp, 0x100e68b0
mov esi, 0x10
mov dword [esp + 0x54], ebx
mov byte [esp + 0x12], 0
jmp 0x100cfa78
lea edx, [esp + 0x80]
push edx
call fcn.10108890
add esp, 4
test eax, eax
jle 0x100cffe9
mov dword [esp + 0x24], 0x100cf690
mov ebp, 0x10109ae0
mov esi, 0x20
jmp 0x100cfa78
sub eax, 0x2a1
je 0x100cfa41
sub eax, 1
je 0x100cfa25
sub eax, 1
je 0x100cf9f9
test esi, esi
je 0x100cffe9
mov dword [esi], 0
jmp 0x100cffe9
lea eax, [esp + 0x80]
push eax
call fcn.10108830
add esp, 4
test eax, eax
jle 0x100cffe9
mov dword [esp + 0x24], 0x100cf690
mov ebp, 0x10109ae0
mov esi, 0x1c
jmp 0x100cfa78
lea ecx, [esp + 0x80]
push ecx
call fcn.101076b0
add esp, 4
test eax, eax
jle 0x100cffe9
mov esi, edi
jmp 0x100cfa5e
lea edx, [esp + 0x80]
push edx
call fcn.10107610
add esp, 4
test eax, eax
jle 0x100cffe9
mov esi, 0x30
mov dword [esp + 0x1c], 0x10
mov edi, 0x80
mov ebp, 0x10108780
mov dword [esp + 0x24], 0x100cf7d0
cmp byte [esp + 0x354], 0
mov ecx, 0xd
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x30], ecx
je 0x100cfaa9
mov eax, dword [esp + 0x350]
lea ecx, [ebx + eax + 0xb]
mov dword [esp + 0x30], ecx
mov ebx, 2
jmp 0x100cfab9
xor edx, edx
lea eax, [esi + edi + 0xff]
div edi
mov ebx, eax
add ebx, 1
mov edx, dword [esp + 0x1c]
sub ecx, esi
lea eax, [ecx + edx]
mov edx, dword [esp + 0x348]
add eax, edi
lea eax, [eax + edx - 1]
xor edx, edx
div edi
xor edx, edx
mov dword [esp + 0x38], ebx
mov esi, eax
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x344]
add ecx, eax
mov eax, ecx
div edi
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x60], eax
lea eax, [ecx + edx]
xor edx, edx
div edi
mov dword [esp + 0x70], eax
xor eax, eax
cmp byte [esp + 0x354], al
setne al
add eax, ebx
cmp esi, eax
jbe 0x100cfb2a
sub esi, ebx
mov eax, esi
mov dword [esp + 0x28], eax
imul eax, edi
mov dword [esp + 0x2c], eax
cmp byte [esp + 0x354], 0
lea ebx, [ecx*8]
jne 0x100cfba4
push edi
lea ecx, [esp + 0x1ac]
push 0
push ecx
lea ebx, [ebx + edi*8]
call fcn.101b5c80
mov eax, dword [esp + 0x35c]
add esp, 0xc
cmp eax, 0x80
ja 0x100cffe9
mov edx, dword [esp + 0x48]
push eax
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.101b4f90
add esp, 0xc
xor eax, eax
test edi, edi
jbe 0x100cfb8f
nop
xor byte [esp + eax + 0x1a8], 0x36
add eax, 1
cmp eax, edi
jb 0x100cfb80
lea ecx, [esp + 0x1a8]
push ecx
lea edx, [esp + 0x84]
push edx
call ebp
add esp, 8
cmp byte [esp + 0x12], 0
mov esi, dword [esp + 0x1c]
je 0x100cfbe9
lea eax, [esi - 4]
push eax
lea ecx, [esp + 0x15c]
push 0
push ecx
call fcn.101b5c80
lea eax, [esp + esi + 0x164]
mov edx, ebx
shr edx, 0x18
mov byte [eax - 4], dl
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
add esp, 0xc
shr edx, 8
mov byte [eax - 3], cl
mov byte [eax - 2], dl
mov byte [eax - 1], bl
jmp 0x100cfc1e
push esi
lea eax, [esp + 0x15c]
push 0
push eax
call fcn.101b5c80
lea eax, [esp + esi + 0x164]
mov ecx, ebx
shr ecx, 0x18
mov byte [eax - 5], cl
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
add esp, 0xc
shr ecx, 8
mov byte [eax - 6], dl
mov byte [eax - 7], cl
mov byte [eax - 8], bl
mov ebx, dword [esp + 0x2c]
test ebx, ebx
jbe 0x100cfd4a
cmp byte [esp + 0x354], 0
je 0x100cfccd
cmp dword [esp + 0x30], edi
jbe 0x100cffe9
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x80]
push ebx
push edx
sub esi, edi
call ebp
push esi
add ebx, edi
lea eax, [esp + 0x234]
push ebx
push eax
call fcn.101b4f90
mov edx, dword [esp + 0x48]
mov ecx, edi
sub ecx, esi
push ecx
push edx
lea eax, [esp + esi + 0x244]
push eax
call fcn.101b4f90
lea ecx, [esp + 0x248]
push ecx
lea edx, [esp + 0xa4]
push edx
call ebp
mov eax, dword [esp + 0x54]
xor edx, edx
div edi
add esp, 0x28
sub eax, 1
cmp eax, 1
jbe 0x100cfd4a
mov ebx, dword [esp + 0x34]
sub ebx, esi
add ebx, edi
lea esi, [eax - 1]
lea eax, [esp + 0x80]
push ebx
push eax
call ebp
add esp, 8
add ebx, edi
sub esi, 1
jne 0x100cfcb3
jmp 0x100cfd4a
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x228], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x22c], edx
mov dl, byte [eax + 0xc]
lea eax, [edi - 0xd]
push eax
mov dword [esp + 0x234], ecx
lea ecx, [esp + 0x239]
push esi
push ecx
mov byte [esp + 0x240], dl
call fcn.101b4f90
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x90]
push eax
call ebp
xor edx, edx
mov eax, ebx
div edi
add esp, 0x14
cmp eax, 1
jbe 0x100cfd4a
lea esi, [esi + edi - 0xd]
lea ebx, [eax - 1]
lea ecx, [esp + 0x80]
push esi
push ecx
call ebp
add esp, 8
add esi, edi
sub ebx, 1
jne 0x100cfd35
push 0x40
lea edx, [esp + 0x16c]
push 0
push edx
call fcn.101b5c80
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x44]
add eax, ebp
add esp, 0xc
cmp ebp, eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x7c], eax
ja 0x100cff48
mov ecx, ebp
xor ecx, dword [esp + 0x60]
mov esi, ebp
xor esi, dword [esp + 0x70]
lea eax, [ecx - 1]
not ecx
shr ecx, 0x1f
shr eax, 0x1f
and al, cl
mov ecx, esi
lea ebx, [esi - 1]
shr ebx, 0x1f
not ecx
shr ecx, 0x1f
and bl, cl
neg al
neg bl
xor esi, esi
test edi, edi
mov byte [esp + 0x1a], al
mov byte [esp + 0x13], bl
jbe 0x100cfeeb
mov ebp, dword [esp + 0x50]
movzx ecx, al
mov dword [esp + 0x74], ecx
lea ecx, [ebp + 1]
shr ecx, 0x1f
not bl
or bl, al
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x1c]
mov edx, ebp
mov eax, edi
sub eax, ecx
shr edx, 0x1f
neg ebp
sub ecx, edi
mov dword [esp + 0x78], eax
lea eax, [esp + ecx + 0x158]
mov dword [esp + 0x38], edx
mov byte [esp + 0x1b], bl
mov dword [esp + 0x28], eax
jmp 0x100cfe04
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
mov byte [esp + 0x12], 0
jae 0x100cfe22
mov ecx, dword [esp + 0x3c]
mov al, byte [ecx + eax]
mov byte [esp + 0x12], al
jmp 0x100cfe3c
mov ebx, dword [esp + 0x348]
add ebx, ecx
cmp eax, ebx
jae 0x100cfe3c
mov ebx, dword [esp + 0x34]
sub ebx, ecx
mov cl, byte [ebx + eax]
mov byte [esp + 0x12], cl
mov ecx, esi
shr ecx, 0x1f
mov eax, ebp
shr eax, 0x1f
xor al, dl
mov bl, cl
xor bl, dl
or al, bl
xor al, cl
sub al, 1
movzx eax, al
and eax, dword [esp + 0x74]
add dword [esp + 0x2c], 1
mov dword [esp + 0x40], eax
not eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
and al, byte [esp + 0x12]
mov edx, dword [esp + 0x40]
and dl, 0x80
or al, dl
mov edx, dword [esp + 0x50]
add edx, 1
mov ebx, esi
sub ebx, edx
mov dl, byte [esp + 0x68]
shr ebx, 0x1f
xor bl, dl
xor dl, cl
or bl, dl
xor bl, cl
sub bl, 1
and bl, byte [esp + 0x1a]
not bl
and bl, byte [esp + 0x1b]
and al, bl
cmp esi, dword [esp + 0x78]
mov bl, byte [esp + 0x13]
jb 0x100cfecd
movzx ecx, bl
mov dword [esp + 0x44], ecx
not ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
and cl, al
mov eax, dword [esp + 0x28]
and dl, byte [eax]
or cl, dl
mov al, cl
add dword [esp + 0x28], 1
mov byte [esp + esi + 0x2a8], al
add esi, 1
add ebp, 1
cmp esi, edi
jb 0x100cfe00
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x2a8]
push ecx
lea edx, [esp + 0x84]
push edx
call dword [esp + 0x28]
lea eax, [esp + 0x2b0]
push eax
lea ecx, [esp + 0x8c]
push ecx
call dword [esp + 0x34]
add esp, 0x10
xor eax, eax
test esi, esi
jbe 0x100cff37
mov dl, byte [esp + eax + 0x2a8]
and dl, bl
or byte [esp + eax + 0x168], dl
add eax, 1
cmp eax, esi
jb 0x100cff20
add ebp, 1
cmp ebp, dword [esp + 0x7c]
mov dword [esp + 0x4c], ebp
jbe 0x100cfd78
call fcn.100e32b0
mov esi, eax
test esi, esi
je 0x100cffe0
mov eax, dword [esp + 0x58]
push 0
push eax
call fcn.100d26b0
add esp, 4
push eax
push esi
call fcn.100e32f0
add esp, 0xc
test eax, eax
jle 0x100cffe0
cmp byte [esp + 0x354], 0
je 0x100d0004
mov edi, dword [esp + 0x54]
push edi
lea ecx, [esp + 0x1ac]
push 0x5c
push ecx
call fcn.101b5c80
mov edx, dword [esp + 0x35c]
mov eax, dword [esp + 0x54]
push edx
push eax
push esi
call fcn.100e3480
add esp, 0x18
test eax, eax
jle 0x100cffe0
push edi
lea ecx, [esp + 0x1ac]
push ecx
push esi
call fcn.100e3480
add esp, 0xc
test eax, eax
jle 0x100cffe0
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x16c]
push eax
push esi
call fcn.100e3480
add esp, 0xc
test eax, eax
jg 0x100d004f
push esi
call fcn.100e32d0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x328]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101b40e2
add esp, 0x31c
ret
xor eax, eax
test edi, edi
jbe 0x100d001f
lea ebx, [ebx]
xor byte [esp + eax + 0x1a8], 0x6a
add eax, 1
cmp eax, edi
jb 0x100d0010
push edi
lea ecx, [esp + 0x1ac]
push ecx
push esi
call fcn.100e3480
add esp, 0xc
test eax, eax
jle 0x100cffe0
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x16c]
push eax
push esi
call fcn.100e3480
add esp, 0xc
test eax, eax
jle 0x100cffe0
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x64]
push ecx
push edx
push esi
call fcn.100e3820
add esp, 0xc
test eax, eax
je 0x100d0074
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x100d0074
mov ecx, dword [esp + 0x64]
mov dword [eax], ecx
push esi
call fcn.100e32d0
add esp, 4
mov eax, 1
jmp 0x100cffeb