Function at 0x10045880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100acc21
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x100d6084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x80], ebx
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [0x100df664], eax
test edi, edi
je 0x10046443
cmp dword [ebp + 0xc], 1
jne 0x10046443
cmp dword [0x100dafa4], 0
je 0x10046443
mov eax, dword [ebx + 4]
test eax, eax
je 0x100458f3
cmp edi, eax
jne 0x100458f3
call fcn.10046e30
mov al, 1
jmp 0x10046445
mov eax, dword [ebx + 0x138]
test eax, eax
je 0x10045913
cmp edi, eax
jne 0x10045913
mov eax, dword [ebx + 0x148]
cmp eax, 1
jbe 0x1004643f
dec eax
jmp 0x10045934
mov eax, dword [ebx + 0x13c]
test eax, eax
je 0x1004594a
cmp edi, eax
jne 0x1004594a
mov eax, dword [ebx + 0x148]
cmp eax, dword [ebx + 0x14c]
jae 0x1004643f
inc eax
mov dword [ebx + 0x148], eax
movzx eax, al
push eax
call fcn.10048490
mov al, 1
jmp 0x10046445
mov ecx, dword [ebx + 0x160]
mov eax, 0x4ec4ec4f
sub ecx, dword [ebx + 0x15c]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1004643f
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
xor al, al
mov byte [ebp - 0x5d], al
nop dword [eax + eax]
movzx ecx, al
lea eax, [ecx + ecx*2]
mov eax, dword [ebx + eax*8 + 0x30]
test eax, eax
je 0x1004642f
cmp edi, eax
jne 0x1004642f
lea eax, [ecx + ecx*2]
mov ecx, dword [ebx + 0x160]
mov eax, dword [ebx + eax*8 + 0x1c]
sub ecx, dword [ebx + 0x15c]
mov dword [ebp - 0x68], eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x1004642f
xor edi, edi
mov ecx, edi
nop dword [eax]
mov eax, dword [ebx + 0x15c]
mov edx, dword [ebp - 0x68]
cmp dword [edi + eax + 0x18], edx
je 0x10045a0b
inc ecx
add edi, 0x68
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebx + 0x160]
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
mov ecx, dword [ebp - 0x5c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x100459d0
jmp 0x1004642c
imul ecx, ecx, 0x68
mov dword [ebx + 0x144], edx
mov dword [ebp - 0x84], 0xffffffff
mov dword [ebp - 0x68], ecx
cmp byte [eax + ecx + 0x64], 2
jne 0x10045acf
movaps xmm0, xmmword [0x100c9090]
xor ecx, ecx
movups xmmword [ebp - 0xa0], xmm0
mov dword [ebp - 0x90], 0x47415c49
mov word [ebp - 0x8c], 0x7546
mov byte [ebp - 0x8a], 0
nop word [eax + eax]
mov al, byte [ebp - 0xa0]
xor byte [ebp + ecx - 0x9f], al
inc ecx
cmp ecx, 0x15
jb 0x10045a60
lea eax, [ebp - 0x9f]
mov byte [ebp - 0x8a], 0
push eax
lea ecx, [ebp - 0xf4]
call fcn.10002940
mov dword [ebp - 4], 0
lea edx, [ebp - 0xf4]
mov ecx, dword [ebx + 0x7c]
call fcn.1001c1c0
lea ecx, [ebp - 0xf4]
mov dword [ebp - 4], 0xffffffff
call fcn.100022f0
mov ecx, dword [ebx + 0x7c]
mov edx, 0xff5cb9fe
call fcn.1001c290
mov dword [ebp - 0x84], 0xff808080
jmp 0x10045b62
mov cl, 2
mov dword [ebp - 0xbc], 0x6c575902
mov dword [ebp - 0xb8], 0x22706766
xor eax, eax
mov dword [ebp - 0xb4], 0x5f7b6375
mov byte [ebp - 0xb0], 0
nop dword [eax + eax]
xor byte [ebp + eax - 0xbb], cl
inc eax
cmp eax, 0xb
jae 0x10045b15
mov cl, byte [ebp - 0xbc]
jmp 0x10045b00
lea eax, [ebp - 0xbb]
mov byte [ebp - 0xb0], 0
push eax
lea ecx, [ebp - 0xf4]
call fcn.10002940
mov dword [ebp - 4], 1
lea edx, [ebp - 0xf4]
mov ecx, dword [ebx + 0x7c]
call fcn.1001c1c0
lea ecx, [ebp - 0xf4]
mov dword [ebp - 4], 0xffffffff
call fcn.100022f0
mov ecx, dword [ebx + 0x7c]
mov edx, 0xffc4fc03
call fcn.1001c290
mov eax, dword [ebp - 0x68]
lea edx, [ebx + 0x84]
add eax, 0x48
mov dword [ebp - 0x5c], edx
lea edi, [ebx + 0xa8]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x88], 4
jmp 0x10045b93
mov ebx, dword [ebp - 0x80]
mov eax, dword [ebx + 0x15c]
mov ecx, dword [ebp - 0x7c]
cmp word [ecx + eax], 0
je 0x1004602a
mov bh, 0x12
mov byte [ebp - 0xc8], 0
mov cl, 0x7c
mov byte [ebp - 0xd0], bh
mov bl, cl
mov byte [ebp - 0xc8], 0
mov al, 0x47
mov ah, 0x7d
xor al, bh
xor ah, bh
mov ch, 0x65
mov byte [ebp - 0xcf], al
mov dh, bl
mov byte [ebp - 0xcb], ah
xor cl, bh
lea eax, [ebp - 0xcf]
xor ch, bh
mov byte [ebp - 0xce], cl
mov dl, 0x79
mov byte [ebp - 0xca], ch
xor dl, bh
lea ecx, [ebp - 0x40]
xor dh, bh
mov byte [ebp - 0xcd], dl
xor bl, bh
mov byte [ebp - 0xc9], dh
push eax
mov byte [ebp - 0xcc], bl
call fcn.10002940
lea eax, [ebp - 0x6b]
mov dword [ebp - 4], 2
mov word [ebp - 0x6c], 0x36
lea ecx, [ebp - 0x58]
push eax
mov byte [ebp - 0x6b], 0
call fcn.10002940
mov ebx, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
mov byte [ebp - 4], 3
mov eax, dword [ebx + 0x15c]
movzx ecx, word [eax + ecx]
call fcn.100129c0
test eax, eax
je 0x10045c9f
add eax, 4
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x10045c60
push 0xffffffffffffffff
push 0
push eax
call fcn.10002400
mov ebx, dword [edi]
test ebx, ebx
je 0x10045c79
push 4
push ebx
call esi
test eax, eax
jne 0x10045c79
push 1
mov ecx, ebx
call dword [0x100c681c]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x10045de3
push 4
push ebx
call esi
test eax, eax
jne 0x10045de3
push eax
mov ecx, ebx
call dword [0x100c681c]
jmp 0x10045de3
mov eax, dword [ebx + 0x15c]
mov ecx, dword [ebp - 0x7c]
cmp word [ecx + eax], 1
jne 0x10045de3
cmp byte [0x100db41d], 0
mov eax, dword [0x100dafa4]
mov dword [ebp - 0x64], eax
je 0x10045cfb
mov ecx, 0xd78c9c
call fcn.1001c490
mov ebx, eax
test ebx, ebx
je 0x10045cf8
push 4
push ebx
call esi
test eax, eax
jne 0x10045cf8
push 4
add ebx, 0x6a0
push ebx
call esi
test eax, eax
jne 0x10045cf8
mov ecx, dword [ebp - 0x64]
mov al, byte [ebx]
mov byte [ecx + 0x34], al
mov eax, ecx
jmp 0x10045cfb
mov eax, dword [ebp - 0x64]
mov al, byte [eax + 0x34]
cmp al, 1
jne 0x10045d79
mov al, 0x42
mov byte [ebp - 0xac], 7
xor al, byte [ebp - 0xac]
mov ah, 0x68
mov byte [ebp - 0xab], al
mov cl, 0x6b
mov al, byte [ebp - 0xac]
mov dl, 0x27
mov bl, 0x4a
mov byte [ebp - 0xa3], 0
mov ch, 0x75
mov byte [ebp - 0xa3], 0
mov dh, 0x66
xor cl, al
xor dl, al
mov byte [ebp - 0xaa], cl
xor bl, al
mov byte [ebp - 0xa9], dl
xor ah, al
mov byte [ebp - 0xa8], bl
xor ch, al
mov byte [ebp - 0xa7], ah
xor dh, al
mov byte [ebp - 0xa6], ch
mov bh, 0x63
mov byte [ebp - 0xa5], dh
xor bh, al
lea eax, [ebp - 0xab]
mov byte [ebp - 0xa4], bh
jmp 0x10045dc7
mov ch, 0x5a
mov byte [ebp - 0xbe], 0
mov al, 0x11
mov byte [ebp - 0xc4], ch
mov cl, 0x3b
mov byte [ebp - 0xbe], 0
mov dl, 0x28
mov bl, 0x2f
mov ah, 0x29
xor al, ch
xor cl, ch
mov byte [ebp - 0xc3], al
xor dl, ch
mov byte [ebp - 0xc2], cl
xor bl, ch
mov byte [ebp - 0xc1], dl
xor ah, ch
mov byte [ebp - 0xc0], bl
mov byte [ebp - 0xbf], ah
lea eax, [ebp - 0xc3]
push eax
lea ecx, [ebp - 0x40]
call fcn.10005fd0
mov ecx, dword [edi + 4]
mov dl, 1
call fcn.1001b990
mov ecx, dword [edi]
xor dl, dl
call fcn.1001b990
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0xa0]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.10002940
mov byte [ebp - 4], 4
lea edx, [ebp - 0xa0]
mov ecx, dword [edi + 8]
call fcn.1001c1c0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x10045e2e
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.10002720
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x10045e4c
push 4
push ebx
call esi
test eax, eax
jne 0x10045e4c
push dword [ebp - 0x84]
mov ecx, ebx
call dword [0x100c6884]
mov esi, dword [ebp - 0x80]
mov bh, 0x53
mov ecx, dword [ebp - 0x7c]
mov dl, 0x73
mov bl, 0x7c
xor bl, bh
mov eax, dword [esi + 0x15c]
movzx eax, word [eax + ecx + 0x10]
push eax
mov eax, dword [esi + 0x15c]
movzx eax, word [eax + ecx + 8]
mov cl, 0x37
push eax
mov al, 0x76
mov byte [ebp - 0xd4], 0
mov ah, dl
mov byte [ebp - 0xdc], bh
mov ch, al
mov byte [ebp - 0xd8], bl
mov dh, cl
mov byte [ebp - 0xd4], 0
xor al, bh
xor ah, bh
sub esp, 0x18
mov byte [ebp - 0xdb], al
xor cl, bh
mov byte [ebp - 0xd7], ah
xor ch, bh
mov byte [ebp - 0xda], cl
mov byte [ebp - 0xd6], ch
lea eax, [ebp - 0xdb]
xor dl, bh
xor dh, bh
mov ecx, esp
mov byte [ebp - 0xd9], dl
push eax
mov byte [ebp - 0xd5], dh
call fcn.10002940
lea eax, [ebp - 0xf4]
push eax
call fcn.10005e70
add esp, 0x24
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x10045ef2
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xa0]
call fcn.10002940
mov byte [ebp - 4], 6
lea edx, [ebp - 0xa0]
mov ecx, dword [edi + 0xc]
call fcn.1001c1c0
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x10045f2e
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.10002720
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
cmp eax, 0x10
jb 0x10045f6b
inc eax
lea ecx, [ebp - 0xf4]
push eax
push dword [ebp - 0xf4]
call fcn.10002720
mov eax, dword [esi + 0x15c]
mov ebx, dword [ebp - 0x7c]
mov ecx, dword [edi + 0x10]
movzx eax, word [eax + ebx + 0x10]
push eax
call fcn.1001c030
mov eax, dword [esi + 0x15c]
add esp, 4
movzx esi, word [ebx + eax + 8]
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x10045fc3
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10045fc3
sub esp, 0xc
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov ecx, ebx
mov dword [esp + 8], eax
mov dword [esp + 4], eax
movss dword [esp], xmm0
call dword [0x100c6868]
mov ebx, dword [ebp - 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10045fe5
push 4
push ebx
call esi
test eax, eax
jne 0x10045fe5
push 1
mov ecx, ebx
call dword [0x100c681c]
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x10045ffa
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.10002720
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x10046042
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10002720
jmp 0x10046042
mov ebx, dword [edx]
test ebx, ebx
je 0x10046042
push 4
push ebx
call esi
test eax, eax
jne 0x10046042
push eax
mov ecx, ebx
call dword [0x100c681c]
add dword [ebp - 0x5c], 4
add edi, 0x14
add dword [ebp - 0x7c], 2
sub dword [ebp - 0x88], 1
mov edx, dword [ebp - 0x5c]
jne 0x10045b90
mov ecx, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x68]
add ebx, 0x34
mov dword [ebp - 0x84], 5
mov dword [ebp - 0x88], ebx
lea edx, [ecx + 0x94]
lea esi, [ecx + 0xf8]
mov dword [ebp - 0x5c], edx
nop word [eax + eax]
mov eax, dword [ecx + 0x15c]
mov edi, dword [ebx + eax - 0x14]
mov eax, dword [ebx + eax]
mov dword [ebp - 0x68], eax
lea eax, [edi - 1]
cmp eax, 0x5f5e0fe
ja 0x10046141
mov edi, 0x35a4f8a0
mov eax, 0x10624dd3
mov ecx, 0xd78ae8
mul edi
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.1001c490
mov ecx, eax
call dword [0x100c67c8]
mov edx, dword [ebp - 0x5c]
mov ebx, eax
test ebx, ebx
je 0x1004628f
push 0
lea eax, [ebp - 0x6f]
mov word [ebp - 0x70], 0x4c
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x6f], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10002840
mov dword [ebp - 4], 7
mov edx, edi
mov cl, byte [ebx + 4]
call fcn.10012950
mov dword [ebp - 0x64], eax
test eax, eax
je 0x1004614d
cmp dword [eax + 0x48], 0
je 0x1004614d
push edi
push eax
xor edx, edx
lea ecx, [ebp - 0xf4]
call fcn.10012bf0
add esp, 8
mov edi, eax
jmp 0x10046162
test edi, edi
jne 0x100460b3
xor ebx, ebx
jmp 0x100460db
push edi
push 0
mov edx, ebx
lea ecx, [ebp - 0xf4]
call fcn.10012bf0
add esp, 8
mov edi, eax
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x10046199
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1004617e
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002720
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10005dd0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xe0]
cmp eax, 0x10
jb 0x100461bb
inc eax
lea ecx, [ebp - 0xf4]
push eax
push dword [ebp - 0xf4]
call fcn.10002720
mov ecx, dword [esi]
test ecx, ecx
je 0x1004622d
add ecx, 4
lea edx, [ebp - 0x28]
call fcn.100188f0
mov eax, dword [esi]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x68]
mov dword [eax + 0x50], ebx
mov eax, dword [esi]
mov dword [eax + 0x54], ecx
mov eax, dword [esi]
mov dword [eax + 0x58], edx
test ecx, ecx
je 0x100461f1
movsx ecx, word [ecx + 0x56]
movsx eax, word [ebx + 0x66]
add ecx, eax
jmp 0x100461f5
movsx ecx, word [ebx + 0x66]
mov eax, dword [esi]
mov dword [eax + 0x5c], ecx
mov eax, dword [esi]
mov ecx, dword [eax]
test ecx, ecx
je 0x1004622d
lea edx, [ebp - 0x28]
call fcn.1001be30
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edi, dword [eax]
test edi, edi
je 0x10046233
push 4
push edi
call ebx
test eax, eax
jne 0x10046233
push 1
mov ecx, edi
call dword [0x100c681c]
jmp 0x10046233
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edi, dword [esi + 4]
test edi, edi
je 0x1004624e
push 4
push edi
call ebx
test eax, eax
jne 0x1004624e
push dword [ebp - 0x68]
mov ecx, edi
call dword [0x100c6880]
mov edi, dword [ebp - 0x5c]
mov edi, dword [edi]
test edi, edi
je 0x1004626a
push 4
push edi
call ebx
test eax, eax
jne 0x1004626a
push 1
mov ecx, edi
call dword [0x100c681c]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100463f9
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002720
jmp 0x100463f9
mov edi, dword [edx]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test edi, edi
je 0x100462ad
push 4
push edi
call ebx
test eax, eax
jne 0x100462ad
push eax
mov ecx, edi
call dword [0x100c681c]
mov edi, dword [esi + 4]
test edi, edi
je 0x100462c6
push 4
push edi
call ebx
test eax, eax
jne 0x100462c6
push eax
mov ecx, edi
call dword [0x100c6880]
cmp dword [esi], 0
je 0x100463f9
push 0
lea eax, [ebp - 0x73]
mov word [ebp - 0x74], 0x30
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 0x73], 0
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
call fcn.10002840
mov dword [ebp - 4], 0xa
lea edx, [ebp - 0xa0]
mov ecx, dword [esi]
add ecx, 4
call fcn.100188f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x10046341
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.10002720
mov eax, dword [esi]
mov dword [eax + 0x50], 0
mov eax, dword [esi]
mov dword [eax + 0x54], 0
mov eax, dword [esi]
mov dword [eax + 0x58], 0
mov eax, dword [esi]
mov dword [eax + 0x5c], 0
mov eax, dword [esi]
cmp dword [eax], 0
je 0x100463f9
lea eax, [ebp - 0x77]
mov word [ebp - 0x78], 0x4b
push eax
lea ecx, [ebp - 0x10c]
mov byte [ebp - 0x77], 0
call fcn.10002940
mov dword [ebp - 4], 0xb
lea edx, [ebp - 0x10c]
mov ecx, dword [esi]
mov ecx, dword [ecx]
call fcn.1001be30
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xf8]
cmp eax, 0x10
jb 0x100463c4
inc eax
lea ecx, [ebp - 0x10c]
push eax
push dword [ebp - 0x10c]
call fcn.10002720
mov eax, dword [esi]
mov dword [ebp - 0xf8], 0xf
mov dword [ebp - 0xfc], 0
mov byte [ebp - 0x10c], 0
mov edi, dword [eax]
test edi, edi
je 0x100463f9
push 4
push edi
call ebx
test eax, eax
jne 0x100463f9
push eax
mov ecx, edi
call dword [0x100c681c]
mov ebx, dword [ebp - 0x88]
add esi, 0xc
mov edx, dword [ebp - 0x5c]
add ebx, 4
mov ecx, dword [ebp - 0x80]
add edx, 4
sub dword [ebp - 0x84], 1
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x5c], edx
jne 0x10046090
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov ebx, ecx
mov edi, dword [ebp + 8]
mov al, byte [ebp - 0x5d]
add al, 1
mov byte [ebp - 0x5d], al
cmp al, 4
jb 0x10045980
mov al, 1
jmp 0x10046445
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006e1c5
mov esp, ebp
pop ebp
ret 8