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

Disassembly:
sub esp, 0x224
mov eax, dword [0x1004e3b0]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [esp + 0x228]
push ebx
push ebp
mov ebp, dword [esp + 0x238]
push esi
push edi
mov edi, dword [esp + 0x24c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x248]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x250]
mov dword [esp + 0x48], edx
mov edx, dword [ebp + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x30], ecx
call edx
mov esi, dword [ebp + 0x1c]
xor edx, edx
cmp esi, 0x40
setne dl
xor ecx, ecx
cmp dword [ebp + 0x20], 2
mov ebx, eax
sete cl
mov eax, dword [ebp]
mov dword [esp + 0x2c], eax
lea edx, [edx*8 + 8]
mov dword [esp + 0x34], edx
mov dword [esp + 0x54], ebx
lea ecx, [ecx*8 + 0x28]
mov dword [esp + 0x58], ecx
xor ecx, ecx
cmp byte [esp + 0x25c], cl
sete cl
lea ecx, [ecx*4 + 2]
mov dword [esp + 0x38], ecx
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x258]
add edx, ecx
add edx, esi
lea eax, [edx + eax - 1]
xor edx, edx
div esi
add ecx, dword [esp + 0x254]
xor edx, edx
mov edi, eax
mov eax, ecx
div esi
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x4c], edx
xor edx, edx
add eax, ecx
div esi
xor edx, edx
mov dword [esp + 0x3c], eax
xor eax, eax
cmp byte [esp + 0x25c], al
mov dword [esp + 0x24], eax
setne dl
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
add edx, eax
cmp edi, edx
jbe 0x1000e2c1
sub edi, eax
mov eax, edi
mov dword [esp + 0x24], eax
imul eax, esi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
lea edi, [ecx*8]
push ebx
mov dword [esp + 0x18], edi
call eax
add esp, 4
cmp byte [esp + 0x25c], 0
jne 0x1000e32f
push esi
lea edx, [esp + 0x74]
lea ecx, [edi + esi*8]
push 0
push edx
mov dword [esp + 0x20], ecx
call sub.MSVCR100.dll_memset
mov eax, dword [esp + 0x250]
mov ecx, dword [esp + 0x54]
push eax
push ecx
lea edx, [esp + 0x84]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0x18
xor eax, eax
test esi, esi
je 0x1000e320
xor byte [esp + eax + 0x70], 0x36
inc eax
cmp eax, esi
jb 0x1000e316
mov ecx, dword [ebp + 0x14]
push esi
lea eax, [esp + 0x74]
push eax
push ebx
call ecx
add esp, 0xc
xor eax, eax
xor ecx, ecx
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
jne 0x1000e34d
lea ecx, [eax + 8]
cmp dword [ebp + 0x20], 2
jne 0x1000e37b
lea edx, [esp + ecx + 0x60]
xor eax, eax
xor edi, edi
mov dword [esp + 0x1c], edx
nop
mov edx, dword [esp + 0x14]
mov ecx, edi
shr edx, cl
mov ecx, dword [esp + 0x1c]
add edi, 8
inc eax
mov byte [ecx + eax - 1], dl
cmp edi, 0x20
jb 0x1000e360
jmp 0x1000e39e
xor edi, edi
lea eax, [esp + ecx + 0x64]
mov edx, dword [esp + 0x14]
mov ecx, 3
sub ecx, edi
add ecx, ecx
add ecx, ecx
add ecx, ecx
shr edx, cl
inc edi
mov byte [eax + edi - 1], dl
cmp edi, 4
jb 0x1000e381
cmp dword [esp + 0x18], 0
jbe 0x1000e4c3
cmp byte [esp + 0x25c], 0
mov eax, dword [esp + 0x28]
je 0x1000e448
mov edi, dword [esp + 0x40]
mov ecx, dword [ebp + 0x14]
push esi
push eax
push ebx
sub edi, esi
call ecx
mov edx, dword [esp + 0x34]
push edi
add edx, esi
push edx
lea eax, [esp + 0x144]
push eax
call sub.MSVCR100.dll_memcpy
mov edx, dword [esp + 0x48]
mov ecx, esi
sub ecx, edi
push ecx
push edx
lea eax, [esp + edi + 0x150]
push eax
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp + 0x14]
push esi
lea ecx, [esp + 0x158]
push ecx
push ebx
call edx
mov eax, dword [esp + 0x48]
xor edx, edx
div esi
add esp, 0x30
lea ecx, [eax - 1]
cmp ecx, 1
jbe 0x1000e4c3
mov eax, dword [esp + 0x30]
sub eax, edi
add eax, esi
mov dword [esp + 0x14], eax
lea edi, [ecx - 1]
jmp 0x1000e434
mov eax, dword [esp + 0x14]
push esi
push eax
mov eax, dword [ebp + 0x14]
push ebx
call eax
add dword [esp + 0x20], esi
add esp, 0xc
dec edi
jne 0x1000e430
jmp 0x1000e4c3
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x130], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x134], edx
mov dl, byte [eax + 0xc]
lea eax, [esi - 0xd]
push eax
mov dword [esp + 0x13c], ecx
lea ecx, [esp + 0x141]
push edi
push ecx
mov byte [esp + 0x148], dl
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp + 0x14]
push esi
lea edx, [esp + 0x140]
push edx
push ebx
call eax
mov eax, dword [esp + 0x30]
xor edx, edx
div esi
add esp, 0x18
cmp eax, 1
jbe 0x1000e4c3
dec eax
lea edi, [edi + esi - 0xd]
mov dword [esp + 0x1c], eax
lea ecx, [ecx]
mov ecx, dword [ebp + 0x14]
push esi
push edi
push ebx
call ecx
add esp, 0xc
add edi, esi
dec dword [esp + 0x1c]
jne 0x1000e4b0
push 0x40
lea edx, [esp + 0xf4]
push 0
push edx
call sub.MSVCR100.dll_memset
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
add ecx, eax
add esp, 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
cmp eax, ecx
ja 0x1000e66a
movzx edx, byte [esp + 0x44]
movzx eax, byte [esp + 0x3c]
mov dword [esp + 0x44], edx
mov dword [esp + 0x3c], eax
movzx edi, byte [esp + 0x1c]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
xor eax, edi
xor ecx, edi
dec eax
dec ecx
sar eax, 0x1f
sar ecx, 0x1f
mov byte [esp + 0x21], al
mov byte [esp + 0x13], cl
test esi, esi
je 0x1000e608
mov edi, dword [esp + 0x4c]
not cl
mov byte [esp + 0x23], cl
or cl, al
mov byte [esp + 0x20], cl
mov ecx, esi
sub ecx, dword [esp + 0x34]
neg edi
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x34]
sub ecx, esi
lea edx, [esp + ecx + 0x60]
mov dword [esp + 0x14], edx
jmp 0x1000e564
mov al, byte [esp + 0x21]
mov ebx, dword [esp + 0x18]
mov ecx, edi
lea edx, [edi - 1]
not ecx
not edx
sar ecx, 0x1f
sar edx, 0x1f
and cl, al
and dl, al
mov eax, dword [esp + 0x40]
mov byte [esp + 0x22], 0
cmp ebx, eax
jae 0x1000e591
mov eax, dword [esp + 0x28]
mov bl, byte [eax + ebx]
jmp 0x1000e5b5
mov ebx, dword [esp + 0x258]
add eax, ebx
cmp dword [esp + 0x18], eax
jae 0x1000e5b1
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x18]
mov bl, byte [eax + ebx]
jmp 0x1000e5b5
mov bl, byte [esp + 0x22]
inc dword [esp + 0x18]
mov al, cl
not al
and al, bl
and cl, 0x80
or al, cl
mov ecx, dword [esp + 0x4c]
not dl
and al, dl
and al, byte [esp + 0x20]
lea edx, [edi + ecx]
cmp edx, dword [esp + 0x38]
jb 0x1000e5eb
mov dl, byte [esp + 0x23]
and dl, al
mov eax, dword [esp + 0x14]
mov al, byte [eax]
and al, byte [esp + 0x13]
or al, dl
inc dword [esp + 0x14]
lea edx, [esp + ecx + 0x1b0]
mov byte [edx + edi], al
inc edi
add ecx, edi
cmp ecx, esi
jb 0x1000e560
mov ebx, dword [esp + 0x54]
mov eax, dword [ebp + 0x14]
push esi
lea edx, [esp + 0x1b4]
push edx
push ebx
call eax
mov edi, dword [esp + 0x38]
mov edx, dword [ebp + 0x24]
push edi
push 0
lea ecx, [esp + 0x1c4]
push ecx
push ebx
call edx
add esp, 0x1c
xor eax, eax
test edi, edi
je 0x1000e657
jmp 0x1000e640
mov cl, byte [esp + eax + 0x1b0]
and cl, byte [esp + 0x13]
inc eax
or byte [esp + eax + 0xef], cl
cmp eax, edi
jb 0x1000e640
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x24]
jbe 0x1000e503
mov edx, dword [ebp + 0x10]
push ebx
call edx
add esp, 4
cmp byte [esp + 0x25c], 0
je 0x1000e6cf
mov esi, dword [esp + 0x58]
test esi, esi
je 0x1000e695
push esi
lea eax, [esp + 0x74]
push 0x5c
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, dword [esp + 0x244]
mov edx, dword [esp + 0x48]
mov eax, dword [ebp + 0x14]
push ecx
push edx
push ebx
call eax
mov edx, dword [ebp + 0x14]
push esi
lea ecx, [esp + 0x80]
push ecx
push ebx
call edx
mov eax, dword [esp + 0x44]
mov edx, dword [ebp + 0x14]
push eax
lea ecx, [esp + 0x10c]
push ecx
push ebx
call edx
add esp, 0x24
jmp 0x1000e701
xor eax, eax
test esi, esi
je 0x1000e6df
xor byte [esp + eax + 0x70], 0x6a
inc eax
cmp eax, esi
jb 0x1000e6d5
mov ecx, dword [ebp + 0x14]
push esi
lea eax, [esp + 0x74]
push eax
push ebx
call ecx
mov edx, dword [esp + 0x38]
mov ecx, dword [ebp + 0x14]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
call ecx
add esp, 0x18
mov edx, dword [esp + 0x23c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [ebp + 0x18]
push eax
push ecx
push ebx
call edx
mov eax, dword [ebp + 0xc]
push 1
push ebx
call eax
mov ecx, dword [esp + 0x248]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1003d054
add esp, 0x224
ret