Function at 0x45f590
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x81c700]
sub esp, 0x68
inc eax
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x45f75d
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], edi
sub edx, ecx
cmp edx, eax
jne 0x45f5de
inc dword [0x8294f0]
call fcn.0045dca0
mov ecx, dword [0x829478]
mov eax, dword [0x820dd0]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x45f5f1
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x45f60b
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x45f61f
sub eax, ecx
jmp 0x45f627
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x45f647
mov edx, ecx
or edx, eax
je 0x45f647
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x45f75d
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x45f75d
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, edi
mov byte [0x81c6fc], 1
not eax
jle 0x45f6c4
mov ebp, 0x820e44
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp]
test ecx, ecx
je 0x45f6b6
mov esi, dword [ecx + 4]
test esi, esi
jle 0x45f6b6
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x45f6b6
test esi, esi
jle 0x45f6b6
mov ebx, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x45f6b0
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x45f6a8
mov edx, dword [edx + 4]
dec ebx
jne 0x45f69b
mov ecx, dword [esp + 0x10]
add ebp, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x45f67b
cmp eax, dword [0x8294d8]
je 0x45f6d7
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor edi, edi
cmp eax, edi
je 0x45f756
mov eax, dword [0x829464]
mov dword [esp + 0x10], edi
cmp eax, edi
je 0x45f71c
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x45f711
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x45f711
cmp dword [eax], 0x29874362
je 0x45f71c
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x10], edi
cmp eax, edi
je 0x45f756
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x45f74b
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x45f74b
cmp dword [eax], 0xbad0bad
je 0x45f756
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
push 0x1c
call fcn.00672b70
mov esi, eax
add esp, 4
cmp esi, edi
je 0x45ff28
mov ebx, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
xor eax, eax
mov dword [esi + 0xc], 8
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov byte [esi + 0x10], bl
lea edx, [esi + 0x14]
mov edi, 2
mov eax, dword [ecx]
mov ebp, dword [0x829478]
xor eax, ebp
mov ebp, dword [0x8294d8]
xor ebp, eax
add ecx, 4
mov dword [0x8294d8], ebp
mov dword [edx], eax
add edx, 4
dec edi
jne 0x45f799
mov eax, dword [0x8294d4]
push eax
call fcn.0045ccf0
mov ebp, eax
add esp, 4
cmp ebp, 0xffffffff
je 0x45ff28
mov edx, dword [ebp*4 + 0x820e44]
xor edi, edi
cmp edx, edi
je 0x45ff28
xor eax, eax
lea ecx, [edx + 0x10]
cmp byte [ecx], 0
je 0x45f8ee
inc eax
inc ecx
cmp eax, 0x10
jl 0x45f7eb
xor eax, eax
mov cl, byte [0x8294d4]
mov edx, dword [0x8294d8]
mov dword [esp + 0x80], edi
mov word [esp + 0x82], bp
mov byte [esp + 0x80], al
mov eax, dword [0x829478]
mov byte [esp + 0x81], cl
mov ecx, dword [esp + 0x80]
xor eax, ecx
push ebx
xor edx, eax
mov dword [0x8294d8], edx
mov dword [esi], eax
mov edx, dword [0x8294d4]
push edx
push ebp
push esi
call fcn.0045ced0
mov eax, dword [ebp*4 + 0x820e44]
add esp, 0x10
cmp dword [eax + 4], 1
jne 0x45f961
test bl, bl
jne 0x45f961
mov eax, dword [0x8294ac]
mov dword [esp + 0x14], edi
cmp eax, edi
jle 0x45f961
push 0x1c
call fcn.00672b70
add esp, 4
test eax, eax
je 0x45f94a
xor ecx, ecx
mov dword [eax + 0xc], 8
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov byte [eax + 0x10], 1
mov edi, dword [0x829478]
lea ecx, [eax + 0x14]
mov esi, 2
mov edx, dword [ecx]
add ecx, 4
xor edx, edi
mov dword [ecx - 4], edx
mov ebx, dword [0x8294d8]
xor ebx, edx
dec esi
mov dword [0x8294d8], ebx
jne 0x45f8ad
mov esi, dword [ebp*4 + 0x820e44]
mov dword [esp + 0x10], 0
test esi, esi
je 0x45f8ff
xor ecx, ecx
lea edx, [esi + 0x10]
cmp byte [edx], 0
je 0x45f8f8
inc ecx
inc edx
cmp ecx, 0x10
jl 0x45f8e0
jmp 0x45f8ff
mov byte [edx + eax + 0x10], 1
jmp 0x45f7fd
mov byte [esi + ecx + 0x10], 1
jmp 0x45f901
xor ecx, ecx
mov ebx, dword [0x8294d8]
mov byte [esp + 0x10], cl
mov cl, byte [0x8294d4]
mov word [esp + 0x12], bp
mov byte [esp + 0x11], cl
mov ecx, dword [0x829478]
mov edx, dword [esp + 0x10]
push 1
xor ecx, edx
xor ebx, ecx
mov dword [0x8294d8], ebx
mov dword [eax], ecx
mov edx, dword [0x8294d4]
push edx
push ebp
push eax
call fcn.0045ced0
mov ebx, dword [esp + 0x94]
add esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [0x8294ac]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x45f87a
mov eax, dword [ebp*4 + 0x820e44]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x45ff0b
mov edx, dword [eax + 4]
add ecx, ecx
cmp edx, ecx
jle 0x45ff0b
test bl, bl
jne 0x45ff0b
mov edx, dword [eax]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov ecx, dword [0x820dd0]
xor esi, esi
test edx, edx
je 0x45f9d4
mov eax, dword [ebp*4 + 0x820e44]
mov edi, dword [eax + 4]
test edi, edi
jle 0x45f9d4
lea eax, [esp + 0x38]
mov bl, byte [edx + 0x10]
test bl, bl
je 0x45f9ce
mov ebx, dword [edx]
mov ebp, dword [0x829478]
xor ebx, ecx
xor ebx, ebp
inc esi
mov dword [eax], ebx
add eax, 4
mov edx, dword [edx + 4]
dec edi
jne 0x45f9b5
test esi, esi
jle 0x45ff11
lea edx, [esp + 0x38]
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov eax, dword [0x81c700]
inc eax
mov dword [esp + 0x18], edx
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x45fbd9
mov eax, dword [0x829478]
mov edx, ecx
sub edx, eax
mov dword [0x81c700], 0
cmp edx, ecx
jne 0x45fa35
inc dword [0x8294f0]
call fcn.0045dca0
mov ecx, dword [0x820dd0]
mov eax, dword [0x829478]
mov edx, eax
sub edx, ecx
cmp edx, eax
jne 0x45fa48
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x45fa62
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x45fa76
sub eax, ecx
jmp 0x45fa7e
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x45fa9e
mov edx, eax
or edx, ecx
je 0x45fa9e
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x45fbd3
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x45fbd3
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
mov byte [0x81c6fc], 1
test ecx, ecx
not eax
jle 0x45fb24
mov ebp, 0x820e44
mov dword [esp + 0x84], ecx
mov ecx, dword [ebp]
test ecx, ecx
je 0x45fb10
mov esi, dword [ecx + 4]
test esi, esi
jle 0x45fb10
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x45fb10
test esi, esi
jle 0x45fb10
mov ebx, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x45fb0a
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x45fb02
mov edx, dword [edx + 4]
dec ebx
jne 0x45faf5
mov ecx, dword [esp + 0x84]
add ebp, 4
dec ecx
mov dword [esp + 0x84], ecx
jne 0x45fad5
cmp eax, dword [0x8294d8]
je 0x45fb37
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor esi, esi
cmp eax, esi
je 0x45fbcc
mov eax, dword [0x829464]
mov dword [esp + 0x84], esi
cmp eax, esi
je 0x45fb89
lea ecx, [esp + 0x84]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x45fb7e
mov eax, dword [esp + 0x84]
cmp eax, esi
je 0x45fb7e
cmp dword [eax], 0x29874362
je 0x45fb89
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x84], esi
cmp eax, esi
je 0x45fbcc
lea edx, [esp + 0x84]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x45fbc1
mov eax, dword [esp + 0x84]
cmp eax, esi
je 0x45fbc1
cmp dword [eax], 0xbad0bad
je 0x45fbcc
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
mov ecx, dword [0x820dd0]
mov esi, dword [esp + 0x18]
mov ebx, esi
xor ebx, ecx
mov eax, ebx
mov dword [esp + 0x28], ebx
mov edi, dword [esp + 0x2a]
and eax, 0xff
mov dword [esp + 0x24], eax
mov eax, dword [0x81c700]
and edi, 0xffff
inc eax
cmp eax, 0x186a0
mov dword [esp + 0x1c], edi
mov dword [0x81c700], eax
jb 0x45fe06
mov eax, dword [0x829478]
mov edx, ecx
sub edx, eax
mov dword [0x81c700], 0
cmp edx, ecx
jne 0x45fc41
inc dword [0x8294f0]
call fcn.0045dca0
mov ecx, dword [0x820dd0]
mov eax, dword [0x829478]
mov edx, eax
sub edx, ecx
cmp edx, eax
jne 0x45fc54
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x45fc6e
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x45fc82
sub eax, ecx
jmp 0x45fc8a
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x45fcaa
mov edx, eax
or edx, ecx
je 0x45fcaa
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x45fe00
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x45fe00
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
mov byte [0x81c6fc], 1
test ecx, ecx
not eax
jle 0x45fd45
mov dword [esp + 0x84], 0x820e44
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x84]
mov ecx, dword [ecx]
test ecx, ecx
je 0x45fd25
mov esi, dword [ecx + 4]
test esi, esi
jle 0x45fd25
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x45fd25
test esi, esi
jle 0x45fd25
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x45fd1f
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x45fd17
mov edx, dword [edx + 4]
dec ebp
jne 0x45fd0a
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x14]
add edx, 4
dec ecx
mov dword [esp + 0x84], edx
mov dword [esp + 0x14], ecx
jne 0x45fce4
mov edi, dword [esp + 0x1c]
cmp eax, dword [0x8294d8]
je 0x45fd58
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor esi, esi
cmp eax, esi
je 0x45fded
mov eax, dword [0x829464]
mov dword [esp + 0x84], esi
cmp eax, esi
je 0x45fdaa
lea edx, [esp + 0x84]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x45fd9f
mov eax, dword [esp + 0x84]
cmp eax, esi
je 0x45fd9f
cmp dword [eax], 0x29874362
je 0x45fdaa
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x84], esi
cmp eax, esi
je 0x45fded
lea ecx, [esp + 0x84]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x45fde2
mov eax, dword [esp + 0x84]
cmp eax, esi
je 0x45fde2
cmp dword [eax], 0xbad0bad
je 0x45fded
inc dword [0x8294f0]
call fcn.0045dca0
mov ecx, dword [0x820dd0]
mov esi, dword [esp + 0x18]
mov byte [0x81c6fc], 0
jmp 0x45fe06
mov ecx, dword [0x820dd0]
xor esi, ecx
mov ebp, dword [0x829478]
mov eax, esi
mov dword [esp + 0x30], eax
xor eax, ebp
mov edx, dword [esp + 0x32]
and edx, 0xffff
mov edx, dword [edx*4 + 0x820e44]
mov esi, dword [edx]
xor edx, edx
test esi, esi
je 0x45feda
cmp dword [esi], eax
je 0x45fe4d
mov esi, dword [esi + 4]
inc edx
cmp edx, 0x10
jg 0x45feda
test esi, esi
jne 0x45fe33
jmp 0x45feda
test esi, esi
je 0x45feda
mov ecx, dword [0x8294d8]
mov eax, dword [edi*4 + 0x820e44]
xor ebx, ecx
mov edi, ebp
xor ebx, ebp
mov dword [0x8294d8], ebx
mov eax, dword [eax + 8]
lea ecx, [eax + eax*2]
mov eax, dword [ecx*4 + 0x828e68]
lea ecx, [esi + 0x14]
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x45fea9
mov edx, dword [ecx]
mov ebx, dword [0x8294d8]
xor ebx, edx
add ecx, 4
mov dword [0x8294d8], ebx
mov ebp, dword [ecx - 4]
xor ebp, edi
dec eax
mov dword [ecx - 4], ebp
jne 0x45fe8b
mov edi, dword [esp + 0x1c]
push esi
push edi
call fcn.0045d050
mov eax, dword [edi*4 + 0x820e44]
add esp, 8
test eax, eax
je 0x45fecb
mov ecx, dword [esp + 0x24]
mov byte [ecx + eax + 0x10], 0
push esi
call fcn.00672c80
mov ecx, dword [0x820dd0]
add esp, 4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
add edx, 4
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
jne 0x45f9e8
mov eax, dword [esp + 0x80]
pop edi
xor ecx, eax
mov eax, dword [esp + 0x78]
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x68
ret
mov ecx, dword [0x820dd0]
mov eax, dword [esp + 0x80]
pop edi
xor ecx, eax
mov eax, dword [esp + 0x78]
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x68
ret
mov eax, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
mov dword [eax], 0xffffffff
pop ebx
add esp, 0x68
ret