Function at 0x10045170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [0x1007a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x18]
mov dl, byte [ebp + 0x1c]
mov cl, byte [ebp + 0x23]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x44], esi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x1f]
mov byte [ebp - 0x25], dl
mov byte [ebp - 0x14], cl
mov dl, byte [ebp + 0x1d]
mov cl, byte [ebp + 0x1e]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x1f], dl
mov byte [ebp - 0x1e], cl
mov esi, dword [0x1007b650]
mov ecx, dword [0x1007b65c]
mov ebx, dword [0x1007b658]
mov eax, ebx
mov edx, ecx
lock cmpxchg8b qword [0x1007b658]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ebx
xor edx, ecx
xor eax, ebx
or eax, edx
jne 0x100451bf
mov edi, dword [0x1007b664]
mov ebx, dword [0x1007b660]
mov eax, ebx
mov edx, edi
mov ecx, edi
lock cmpxchg8b qword [0x1007b660]
xor edx, edi
xor eax, ebx
or eax, edx
jne 0x100451e5
test esi, esi
mov eax, ebx
mov ecx, edi
setne byte [ebp - 0x27]
or eax, dword [ebp - 0x3c]
or ecx, dword [ebp - 0x40]
mov edx, eax
or edx, ecx
sete byte [ebp - 0x26]
cmp byte [0x1007b61c], 0
jne 0x100453fd
cmp byte [ebp - 0x1f], 0
je 0x1004523a
or eax, ecx
je 0x100453af
mov eax, ebx
mov edx, edi
sub eax, dword [ebp - 0x50]
sbb edx, dword [ebp - 0x4c]
cmp byte [ebp - 0x1e], 0
je 0x100453a5
test esi, esi
je 0x100453a5
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
sub eax, dword [ebp - 0x48]
sbb ecx, dword [ebp - 0x44]
cmp byte [0x1007b670], 0
jne 0x100453a7
mov esi, eax
mov dword [ebp - 0x34], edx
mov edx, ecx
sub esi, dword [ebp - 0x38]
sbb edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], edx
sar dword [ebp - 0x24], 0x1f
add esi, dword [ebp - 0x24]
adc edx, dword [ebp - 0x24]
xor esi, dword [ebp - 0x24]
xor edx, dword [ebp - 0x24]
mov dword [ebp - 0x24], esi
mov esi, dword [0x1007b67c]
mov dword [ebp - 0x2c], esi
mov esi, dword [0x1007b678]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x54], esi
cmp esi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
sbb esi, edx
jge 0x100453a7
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x30]
sub edx, dword [ebp - 0x54]
mov dword [ebp - 0x24], edx
mov edx, dword [0x1007b684]
sbb esi, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x24]
cmp dword [0x1007b680], edx
sbb dword [ebp - 0x2c], esi
jge 0x100453a7
mov edx, dword [ebp - 0x34]
mov eax, edx
sar eax, 0x1f
mov esi, eax
mov ecx, eax
add esi, dword [ebp - 0x38]
adc ecx, edx
mov dh, byte [0x1007a230]
test dh, 1
je 0x10045447
xor esi, eax
xor ecx, eax
cmp esi, dword [0x1007b688]
sbb ecx, dword [0x1007b68c]
jge 0x10045447
call dword [sym.imp.kernel32.dll_GetTickCount64]
mov esi, eax
mov eax, dword [0x1007a228]
mov ecx, edx
imul ecx, eax
mul esi
imul esi, dword [0x1007a22c]
add edx, ecx
mov dword [ebp - 0x24], eax
add esi, edx
push 0x1007b690
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x1007b6a8]
mov ecx, dword [0x1007b6ac]
mov edx, dword [0x1007b6b0]
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], edx
sbb esi, ecx
mov esi, dword [0x1007b6b4]
jae 0x10045428
mov edx, dword [ebp - 0x24]
not edx
add eax, edx
mov edx, dword [ebp - 0x30]
not edx
adc ecx, edx
mov edx, dword [ebp - 0x2c]
add eax, edx
adc ecx, esi
push esi
push edx
push ecx
push eax
call fcn.1006a070
cmp eax, 5
mov ecx, edx
sbb edx, 0
jb 0x10045452
mov byte [0x1007a230], 0
jmp 0x1004543c
mov ecx, edx
xor edx, edx
neg eax
sbb edx, ecx
jl 0x10045401
lea eax, [ebp - 0x18]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x50]
mov dword [esi], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x48]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x44]
mov dword [esi + 0xc], ecx
mov cl, byte [ebp - 0x25]
mov byte [esi + 0x10], cl
mov cl, byte [ebp - 0x1f]
mov byte [esi + 0x11], cl
mov cl, byte [ebp - 0x1e]
mov byte [esi + 0x12], cl
mov ecx, dword [eax]
mov al, byte [eax + 4]
mov dword [esi + 0x13], ecx
mov byte [esi + 0x17], al
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10069260
mov eax, esi
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
or eax, ecx
je 0x100453af
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], edi
mov byte [ebp - 0x25], 1
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov al, byte [ebp - 0x26]
mov byte [ebp - 0x1f], al
mov al, byte [ebp - 0x27]
mov byte [ebp - 0x1e], al
lea eax, [ebp - 0x1d]
jmp 0x100453b2
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x24]
adc esi, dword [ebp - 0x30]
mov dword [0x1007b6a8], eax
mov dword [0x1007b6ac], esi
push 0x1007b690
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
jmp 0x100453a7
add eax, 1
adc ecx, 0
imul esi, eax
mul dword [ebp - 0x2c]
imul ecx, dword [ebp - 0x2c]
add edx, esi
add ecx, edx
add eax, dword [ebp - 0x24]
adc ecx, dword [ebp - 0x30]
mov dword [0x1007b6a8], eax
mov dword [0x1007b6ac], ecx
jmp 0x1004543c