Function at 0x45e530
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5727ab
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x5eaea4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push 0x5f2288
mov byte [ebp - 0x110], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 0x1c]
lea esi, [ebp + 8]
mov edi, dword [ebp + 0x18]
cmp ebx, 8
mov edx, 0x811c9dc5
cmovae esi, dword [ebp + 8]
xor ecx, ecx
add edi, edi
je 0x45e5a6
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x45e595
and edx, dword [0x5f217c]
mov ecx, dword [0x5f2170]
mov edi, dword [0x5f2168]
mov eax, dword [ecx + edx*8]
lea edx, [edx*8 + 4]
mov dword [ebp - 0x114], eax
mov esi, eax
mov dword [ebp - 0x118], edx
cmp eax, edi
jne 0x45e5d8
mov eax, edi
jmp 0x45e5dd
mov eax, dword [edx + ecx]
mov eax, dword [eax]
cmp esi, eax
je 0x45e67a
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 8]
cmp ebx, 8
mov dword [ebp - 0x11c], eax
mov ebx, dword [ecx + 0x10]
lea edx, [ebp + 8]
cmovae edx, dword [ebp + 8]
cmp eax, 8
jb 0x45e605
mov ecx, dword [ecx]
cmp ebx, dword [ebp + 0x18]
jne 0x45e617
push ebx
call fcn.00452f90
add esp, 4
test eax, eax
je 0x45e630
mov esi, dword [esi]
mov eax, dword [ebp - 0x114]
mov ecx, dword [0x5f2170]
mov ebx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x118]
jmp 0x45e5d0
cmp dword [ebp - 0x11c], 8
lea edx, [esi + 8]
jb 0x45e63e
mov edx, dword [edx]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
cmp eax, ebx
jne 0x45e65d
push eax
call fcn.00452f90
add esp, 4
test eax, eax
je 0x45e65f
mov esi, edi
mov eax, dword [ebp - 0x110]
cmp esi, edi
movzx eax, al
mov ebx, 1
cmovne eax, ebx
mov dword [ebp - 0x110], eax
jmp 0x45e67f
mov ebx, 1
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5f2288
call esi
cmp byte [ebp - 0x110], 0
je 0x45e6d2
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x45eb67
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45eb5d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45eb85
jmp 0x45eb5d
lea edx, [ebp - 0x110]
mov dword [ebp - 0x110], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0045ddc0
mov edi, eax
cmp edi, 1
je 0x45e71e
push 0x5f2288
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x11c]
lea eax, [ebp + 8]
mov ecx, 0x5f2164
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00459950
push 0x5f2288
call esi
test edi, edi
jne 0x45e695
mov esi, dword [ebp - 0x110]
cmp esi, 0xffffffff
je 0x45e695
push 0xc8
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.005469e0
add esp, 0xc
lea eax, [ebp + 8]
lea ecx, [ebp - 0x10c]
push esi
push eax
call fcn.0044d450
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 2
call fcn.0044d840
test al, al
jne 0x45e914
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0044c0e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
lea eax, [ebp + 8]
cmovae ecx, dword [ebp - 0x2c]
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
push eax
push str.____Failed_to_crypt__s__Error___s
call fcn.00463390
mov byte [ebp - 4], 2
add esp, 0xc
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x45e7e7
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e7dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45eb85
push edx
push ecx
call fcn.0052edf8
add esp, 8
mov dword [ebp - 4], 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10c]
cmp eax, 0xffffffff
je 0x45e81a
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10c], 0xffffffff
mov edx, dword [ebp - 0xc8]
cmp edx, 8
jb 0x45e85a
mov ecx, dword [ebp - 0xdc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e850
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45eb85
push edx
push ecx
call fcn.0052edf8
add esp, 8
mov edx, dword [ebp - 0xe0]
xor eax, eax
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 7
mov word [ebp - 0xdc], ax
cmp edx, 8
jb 0x45e8b7
mov ecx, dword [ebp - 0xf4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e8ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45eb85
push edx
push ecx
call fcn.0052edf8
add esp, 8
xor eax, eax
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 7
mov word [ebp - 0xf4], ax
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x104]
test edi, edi
je 0x45e695
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x45e695
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x45e695
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x45e695
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10c]
cmp eax, 0xffffffff
je 0x45e940
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10c], 0xffffffff
mov edx, dword [ebp - 0xc8]
cmp edx, 8
jb 0x45e980
mov ecx, dword [ebp - 0xdc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e976
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45eb85
push edx
push ecx
call fcn.0052edf8
add esp, 8
mov edx, dword [ebp - 0xe0]
xor eax, eax
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 7
mov word [ebp - 0xdc], ax
cmp edx, 8
jb 0x45e9dd
mov ecx, dword [ebp - 0xf4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e9d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45eb85
push edx
push ecx
call fcn.0052edf8
add esp, 8
xor eax, eax
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 7
mov word [ebp - 0xf4], ax
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x104]
test edi, edi
je 0x45ea29
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x45ea29
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x45ea29
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x45ea63
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ea59
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45eb85
push edx
push ecx
call fcn.0052edf8
add esp, 8
mov eax, ebx
jmp 0x45eb69
push edx
push ecx
call fcn.0052edf8
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052ebb7
mov esp, ebp
pop ebp
ret
call fcn.0054a8a1
int3