Function at 0x10045900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100acbf1
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 [0x100df66c], eax
test edi, edi
je 0x100464c3
cmp dword [ebp + 0xc], 1
jne 0x100464c3
cmp dword [0x100db3c0], 0
je 0x100464c3
mov eax, dword [ebx + 4]
test eax, eax
je 0x10045973
cmp edi, eax
jne 0x10045973
call fcn.10046eb0
mov al, 1
jmp 0x100464c5
mov eax, dword [ebx + 0x138]
test eax, eax
je 0x10045993
cmp edi, eax
jne 0x10045993
mov eax, dword [ebx + 0x148]
cmp eax, 1
jbe 0x100464bf
dec eax
jmp 0x100459b4
mov eax, dword [ebx + 0x13c]
test eax, eax
je 0x100459ca
cmp edi, eax
jne 0x100459ca
mov eax, dword [ebx + 0x148]
cmp eax, dword [ebx + 0x14c]
jae 0x100464bf
inc eax
mov dword [ebx + 0x148], eax
movzx eax, al
push eax
call fcn.10048510
mov al, 1
jmp 0x100464c5
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 0x100464bf
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 0x100464af
cmp edi, eax
jne 0x100464af
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 0x100464af
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 0x10045a8b
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 0x10045a50
jmp 0x100464ac
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 0x10045b4f
movaps xmm0, xmmword [0x100c9100]
xor ecx, ecx
movups xmmword [ebp - 0xa0], xmm0
mov dword [ebp - 0x90], 0x797f6277
mov word [ebp - 0x8c], 0x4b78
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 0x10045ae0
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.1001c270
lea ecx, [ebp - 0xf4]
mov dword [ebp - 4], 0xffffffff
call fcn.100022f0
mov ecx, dword [ebx + 0x7c]
mov edx, 0xff5cb9fe
call fcn.1001c340
mov dword [ebp - 0x84], 0xff808080
jmp 0x10045be2
mov cl, 0x16
mov dword [ebp - 0xbc], 0x78434d16
mov dword [ebp - 0xb8], 0x36647372
xor eax, eax
mov dword [ebp - 0xb4], 0x4b6f7761
mov byte [ebp - 0xb0], 0
nop dword [eax + eax]
xor byte [ebp + eax - 0xbb], cl
inc eax
cmp eax, 0xb
jae 0x10045b95
mov cl, byte [ebp - 0xbc]
jmp 0x10045b80
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.1001c270
lea ecx, [ebp - 0xf4]
mov dword [ebp - 4], 0xffffffff
call fcn.100022f0
mov ecx, dword [ebx + 0x7c]
mov edx, 0xffc4fc03
call fcn.1001c340
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 0x10045c13
mov ebx, dword [ebp - 0x80]
mov eax, dword [ebx + 0x15c]
mov ecx, dword [ebp - 0x7c]
cmp word [ecx + eax], 0
je 0x100460aa
mov bh, 0x44
mov byte [ebp - 0xc8], 0
mov cl, 0x2a
mov byte [ebp - 0xd0], bh
mov bl, cl
mov byte [ebp - 0xc8], 0
mov al, 0x11
mov ah, 0x2b
xor al, bh
xor ah, bh
mov ch, 0x33
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, 0x2f
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], 7
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.100129b0
test eax, eax
je 0x10045d1f
add eax, 4
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x10045ce0
push 0xffffffffffffffff
push 0
push eax
call fcn.10002400
mov ebx, dword [edi]
test ebx, ebx
je 0x10045cf9
push 4
push ebx
call esi
test eax, eax
jne 0x10045cf9
push 1
mov ecx, ebx
call dword [0x100c6510]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x10045e63
push 4
push ebx
call esi
test eax, eax
jne 0x10045e63
push eax
mov ecx, ebx
call dword [0x100c6510]
jmp 0x10045e63
mov eax, dword [ebx + 0x15c]
mov ecx, dword [ebp - 0x7c]
cmp word [ecx + eax], 1
jne 0x10045e63
cmp byte [0x100db453], 0
mov eax, dword [0x100db3c0]
mov dword [ebp - 0x64], eax
je 0x10045d7b
mov ecx, 0xd78c9c
call fcn.1001c540
mov ebx, eax
test ebx, ebx
je 0x10045d78
push 4
push ebx
call esi
test eax, eax
jne 0x10045d78
push 4
add ebx, 0x6a0
push ebx
call esi
test eax, eax
jne 0x10045d78
mov ecx, dword [ebp - 0x64]
mov al, byte [ebx]
mov byte [ecx + 0x34], al
mov eax, ecx
jmp 0x10045d7b
mov eax, dword [ebp - 0x64]
mov al, byte [eax + 0x34]
cmp al, 1
jne 0x10045df9
mov al, 0x7c
mov byte [ebp - 0xac], 0x39
xor al, byte [ebp - 0xac]
mov ah, 0x56
mov byte [ebp - 0xab], al
mov cl, 0x55
mov al, byte [ebp - 0xac]
mov dl, 0x19
mov bl, 0x74
mov byte [ebp - 0xa3], 0
mov ch, 0x4b
mov byte [ebp - 0xa3], 0
mov dh, 0x58
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, 0x5d
mov byte [ebp - 0xa5], dh
xor bh, al
lea eax, [ebp - 0xab]
mov byte [ebp - 0xa4], bh
jmp 0x10045e47
mov ch, 0x3b
mov byte [ebp - 0xbe], 0
mov al, 0x70
mov byte [ebp - 0xc4], ch
mov cl, 0x5a
mov byte [ebp - 0xbe], 0
mov dl, 0x49
mov bl, 0x4e
mov ah, 0x48
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.10005f60
mov ecx, dword [edi + 4]
mov dl, 1
call fcn.1001ba50
mov ecx, dword [edi]
xor dl, dl
call fcn.1001ba50
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.1001c270
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x10045eae
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.10002720
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x10045ecc
push 4
push ebx
call esi
test eax, eax
jne 0x10045ecc
push dword [ebp - 0x84]
mov ecx, ebx
call dword [0x100c6574]
mov esi, dword [ebp - 0x80]
mov bh, 0x10
mov ecx, dword [ebp - 0x7c]
mov dl, 0x30
mov bl, 0x3f
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, 0x74
push eax
mov al, 0x35
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.10005e00
add esp, 0x24
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x10045f72
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.1001c270
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x10045fae
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 0x10045feb
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.1001c0e0
mov eax, dword [esi + 0x15c]
add esp, 4
movzx esi, word [ebx + eax + 8]
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x10046043
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10046043
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 [0x100c6558]
mov ebx, dword [ebp - 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10046065
push 4
push ebx
call esi
test eax, eax
jne 0x10046065
push 1
mov ecx, ebx
call dword [0x100c6510]
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x1004607a
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 0x100460c2
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10002720
jmp 0x100460c2
mov ebx, dword [edx]
test ebx, ebx
je 0x100460c2
push 4
push ebx
call esi
test eax, eax
jne 0x100460c2
push eax
mov ecx, ebx
call dword [0x100c6510]
add dword [ebp - 0x5c], 4
add edi, 0x14
add dword [ebp - 0x7c], 2
sub dword [ebp - 0x88], 1
mov edx, dword [ebp - 0x5c]
jne 0x10045c10
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 0x100461c1
mov edi, 0x35a4f8a0
mov eax, 0x10624dd3
mov ecx, 0xd78ae8
mul edi
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.1001c540
mov ecx, eax
call dword [0x100c64bc]
mov edx, dword [ebp - 0x5c]
mov ebx, eax
test ebx, ebx
je 0x1004630f
push 0
lea eax, [ebp - 0x6f]
mov word [ebp - 0x70], 8
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.10012940
mov dword [ebp - 0x64], eax
test eax, eax
je 0x100461cd
cmp dword [eax + 0x48], 0
je 0x100461cd
push edi
push eax
xor edx, edx
lea ecx, [ebp - 0xf4]
call fcn.10012be0
add esp, 8
mov edi, eax
jmp 0x100461e2
test edi, edi
jne 0x10046133
xor ebx, ebx
jmp 0x1004615b
push edi
push 0
mov edx, ebx
lea ecx, [ebp - 0xf4]
call fcn.10012be0
add esp, 8
mov edi, eax
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x10046219
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100461fe
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.10005d60
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xe0]
cmp eax, 0x10
jb 0x1004623b
inc eax
lea ecx, [ebp - 0xf4]
push eax
push dword [ebp - 0xf4]
call fcn.10002720
mov ecx, dword [esi]
test ecx, ecx
je 0x100462ad
add ecx, 4
lea edx, [ebp - 0x28]
call fcn.100189b0
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 0x10046271
movsx ecx, word [ecx + 0x56]
movsx eax, word [ebx + 0x66]
add ecx, eax
jmp 0x10046275
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 0x100462ad
lea edx, [ebp - 0x28]
call fcn.1001bee0
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edi, dword [eax]
test edi, edi
je 0x100462b3
push 4
push edi
call ebx
test eax, eax
jne 0x100462b3
push 1
mov ecx, edi
call dword [0x100c6510]
jmp 0x100462b3
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edi, dword [esi + 4]
test edi, edi
je 0x100462ce
push 4
push edi
call ebx
test eax, eax
jne 0x100462ce
push dword [ebp - 0x68]
mov ecx, edi
call dword [0x100c6570]
mov edi, dword [ebp - 0x5c]
mov edi, dword [edi]
test edi, edi
je 0x100462ea
push 4
push edi
call ebx
test eax, eax
jne 0x100462ea
push 1
mov ecx, edi
call dword [0x100c6510]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10046479
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002720
jmp 0x10046479
mov edi, dword [edx]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test edi, edi
je 0x1004632d
push 4
push edi
call ebx
test eax, eax
jne 0x1004632d
push eax
mov ecx, edi
call dword [0x100c6510]
mov edi, dword [esi + 4]
test edi, edi
je 0x10046346
push 4
push edi
call ebx
test eax, eax
jne 0x10046346
push eax
mov ecx, edi
call dword [0x100c6570]
cmp dword [esi], 0
je 0x10046479
push 0
lea eax, [ebp - 0x73]
mov word [ebp - 0x74], 0x75
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.100189b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x100463c1
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 0x10046479
lea eax, [ebp - 0x77]
mov word [ebp - 0x78], 0x31
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.1001bee0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xf8]
cmp eax, 0x10
jb 0x10046444
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 0x10046479
push 4
push edi
call ebx
test eax, eax
jne 0x10046479
push eax
mov ecx, edi
call dword [0x100c6510]
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 0x10046110
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 0x10045a00
mov al, 1
jmp 0x100464c5
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.1006e175
mov esp, ebp
pop ebp
ret 8