Function at 0x407a10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496132
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4bb0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1ec], edx
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x208], esi
mov dword [ebp - 0x1fc], eax
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x138], 0
xor eax, eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 7
mov word [ebp - 0x138], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x88], 0x4b04a8
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], 0xf
mov byte [ebp - 0x84], al
mov byte [ebp - 4], 3
mov eax, dword [edx + 0x28]
or eax, dword [edx + 0x2c]
je 0x408407
cmp dword [edi + 0x10], 0
je 0x408407
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov dword [ebp - 0xa0], 0
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x90], 0
push eax
mov ecx, esi
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 4], 3
call fcn.00403810
lea eax, [ebp - 0xa0]
lea ecx, [esi + 0x18]
push eax
call fcn.00403810
mov edx, dword [ebp - 0x8c]
cmp edx, 0x10
jb 0x407b60
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407b56
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408462
push edx
push ecx
call fcn.0046cebb
add esp, 8
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
cmp edx, 0x10
jb 0x407bb5
mov ecx, dword [ebp - 0xb8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407bab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408462
push edx
push ecx
call fcn.0046cebb
add esp, 8
mov esi, dword [ebp - 0x1fc]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
test esi, esi
je 0x407be2
mov dword [ebp - 0x1f0], esi
jmp 0x407c29
push 0x14
call fcn.0046ce86
add esp, 4
mov ecx, eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [ebp - 0x1f0], eax
call fcn.00405a70
test al, al
je 0x408407
mov esi, dword [ebp - 0x1f0]
lea eax, [ebp - 0x1fc]
lea ecx, [ebp - 0x1f0]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], ecx
mov byte [ebp - 4], 6
mov esi, dword [esi + 0xc]
mov ecx, esi
push 4
push 0
call dword [0x49a38c]
call esi
cmp eax, 1
jne 0x407c67
mov byte [ebp - 0x1e1], 0
jmp 0x4083a1
lea eax, [ebp - 0x1f0]
mov dword [ebp - 0x210], eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1f0]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x1f8]
push eax
push 0x4b10c0
mov ecx, esi
call dword [0x49a38c]
call esi
test eax, eax
jne 0x408383
mov eax, dword [ebp - 0x1f0]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x1f4]
push eax
push 0x4b10b0
mov ecx, esi
call dword [0x49a38c]
call esi
test eax, eax
jne 0x408383
mov eax, dword [ebp - 0x1f0]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x214]
push eax
push 0x4b10e0
mov ecx, esi
call dword [0x49a38c]
call esi
test eax, eax
jne 0x408383
cmp dword [edi + 0x14], 8
mov ecx, dword [ebp - 0x1f8]
mov eax, dword [ecx]
mov esi, dword [eax + 0xf0]
jb 0x407d02
mov edi, dword [edi]
push 0
push 0
push edi
push ecx
mov ecx, esi
call dword [0x49a38c]
call esi
test eax, eax
jne 0x408383
lea eax, [ebp - 0x1f8]
mov dword [ebp - 0x218], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x1f4]
push 0x1388
push 0
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x174]
mov ecx, esi
call dword [0x49a38c]
call esi
test eax, eax
jne 0x40835e
mov ecx, dword [ebp - 0x1f8]
mov eax, dword [ecx]
mov esi, dword [eax + 0x88]
lea eax, [ebp - 0x88]
push eax
push ecx
mov ecx, esi
call dword [0x49a38c]
call esi
test eax, eax
jne 0x40835e
mov ecx, dword [ebp - 0x1f8]
mov eax, dword [ecx]
mov esi, dword [eax + 0x8c]
lea eax, [ebp - 0x20c]
push eax
push ecx
mov ecx, esi
call dword [0x49a38c]
call esi
test eax, eax
jne 0x40835e
mov eax, dword [ebp - 0x1f4]
xorps xmm0, xmm0
mov edx, 0x56604de
xor esi, esi
mov eax, dword [eax]
mov dword [ebp - 0x1c], 0x621366f0
mov dword [ebp - 0x18], 0x419e5966
mov word [ebp - 0x14], 0x2b9d
mov edi, dword [eax + 0x108]
lea eax, [ebp - 0x1c]
movq qword [ebp - 0x48], xmm0
mov word [ebp - 0x40], 0
mov dword [ebp - 0x200], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x1e8], eax
nop dword [eax + eax]
mov eax, dword [ebp - 0x200]
mov ecx, dword [eax + esi]
mov eax, dword [ebp - 0x1e8]
xor ecx, edx
imul edx, edx, 0x343fd
mov dword [eax + esi], ecx
add esi, 4
add edx, 0x269ec3
ror edx, 3
cmp esi, 8
jb 0x407df0
lea eax, [ebp - 0x1c]
mov esi, 8
mov dword [ebp - 0x1e8], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x200], eax
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x1e8]
mov cl, byte [eax + esi]
mov eax, dword [ebp - 0x200]
xor cl, dl
shr edx, 8
mov byte [eax + esi], cl
inc esi
cmp esi, 0xa
jb 0x407e40
push 2
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xe
push eax
push 1
push dword [ebp - 0x1f4]
mov ecx, edi
call dword [0x49a38c]
call edi
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x48]
mov ecx, 0xa
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x407e85
sub esp, 0x18
lea ecx, [ebp - 0x88]
lea edx, [ebp - 0x190]
push esp
call fcn.00405930
mov ecx, edx
call fcn.00406df0
add esp, 0x18
test al, al
je 0x40835e
mov eax, dword [ebp - 0x1ec]
mov eax, dword [eax + 0x24]
cmp dword [ebp - 0x190], eax
jne 0x40835e
cmp dword [ebp - 0x18c], 0
jne 0x40835e
mov eax, dword [ebp - 0x1f4]
movaps xmm0, xmmword [0x4b2ea0]
push 0x4d
push 0
mov eax, dword [eax]
movups xmmword [ebp - 0x120], xmm0
mov dword [ebp - 0xe0], 0x30602331
movaps xmm0, xmmword [0x4b3000]
mov edi, dword [eax + 0x108]
lea eax, [ebp - 0x1e0]
movups xmmword [ebp - 0x110], xmm0
push eax
movaps xmm0, xmmword [0x4b2ff0]
movups xmmword [ebp - 0x100], xmm0
mov dword [ebp - 0xdc], 0xd1ede2b1
movaps xmm0, xmmword [0x4b2df0]
movups xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xd8], 0x7aa28409
mov byte [ebp - 0xd4], 0x51
call fcn.0046ed70
lea eax, [ebp - 0x120]
add esp, 0xc
mov dword [ebp - 0x1ec], eax
mov edx, 0xbfb88609
lea eax, [ebp - 0x1e0]
xor esi, esi
mov dword [ebp - 0x1e8], eax
nop word [eax + eax]
mov eax, dword [ebp - 0x1ec]
mov ecx, dword [eax + esi]
mov eax, dword [ebp - 0x1e8]
xor ecx, edx
imul edx, edx, 0x41c64e6d
mov dword [eax + esi], ecx
add esi, 4
add edx, 0x3039
not edx
cmp esi, 0x4c
jb 0x407f80
lea eax, [ebp - 0x120]
mov dword [ebp - 0x1ec], eax
lea eax, [ebp - 0x1e0]
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1ec]
mov cl, byte [eax + 0x4c]
mov eax, dword [ebp - 0x1e8]
xor cl, dl
mov byte [eax + 0x4c], cl
push 2
lea eax, [ebp - 0x1e0]
mov byte [ebp - 4], 0xf
push eax
push 1
push dword [ebp - 0x1f4]
mov ecx, edi
call dword [0x49a38c]
call edi
mov ecx, 0x4d
lea eax, [ebp - 0x1e0]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x408000
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x88]
call fcn.00405930
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0xc0], 0
je 0x40811b
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0xda639a5
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], 0xcc1b53ee
mov dword [ebp - 0x34], 0x1ca9f7af
mov edx, 0x74d558c0
mov word [ebp - 0x30], 0x8a79
xor esi, esi
movq qword [ebp - 0x58], xmm0
mov dword [ebp - 0x50], 0
mov word [ebp - 0x4c], 0
mov dword [ebp - 0x1ec], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x1e8], eax
nop word [eax + eax]
mov eax, dword [ebp - 0x1ec]
mov ecx, dword [eax + esi]
mov eax, dword [ebp - 0x1e8]
xor ecx, edx
mov dword [eax + esi], ecx
mov eax, edx
shl eax, 0xd
add esi, 4
xor edx, eax
mov eax, edx
shr eax, 7
xor edx, eax
mov eax, edx
shl eax, 0x11
xor edx, eax
neg edx
cmp esi, 0xc
jb 0x408080
lea eax, [ebp - 0x3c]
mov esi, 0xc
mov dword [ebp - 0x1ec], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x1e8], eax
nop word [eax + eax]
mov eax, dword [ebp - 0x1ec]
mov cl, byte [eax + esi]
mov eax, dword [ebp - 0x1e8]
xor cl, dl
shr edx, 8
mov byte [eax + esi], cl
inc esi
cmp esi, 0xe
jb 0x4080d0
cmp dword [ebp - 0xbc], 0x10
lea ecx, [ebp - 0xd0]
lea edx, [ebp - 0x58]
mov dword [ebp - 0x204], 1
cmovae ecx, dword [ebp - 0xd0]
call fcn.0040e470
test eax, eax
je 0x40811b
mov dl, 1
jmp 0x40811d
xor dl, dl
test byte [ebp - 0x204], 1
je 0x40813b
mov ecx, 0xe
lea eax, [ebp - 0x58]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x408130
test dl, dl
je 0x408353
mov ecx, dword [ebp - 0x1f8]
mov eax, dword [ecx]
mov esi, dword [eax + 0x90]
mov eax, dword [ebp - 0x20c]
and eax, 0xfffffff3
push eax
push ecx
mov ecx, esi
call dword [0x49a38c]
call esi
test eax, eax
je 0x408181
lea ecx, [ebp - 0xd0]
mov byte [ebp - 0x1e1], 0
call fcn.004037c0
jmp 0x408365
mov ecx, dword [ebp - 0x1f4]
push 2
push 0x4b1080
push 1
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0x108]
mov ecx, esi
call dword [0x49a38c]
call esi
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x88]
call fcn.00405930
mov edi, dword [ebp - 0x208]
push eax
lea ecx, [edi + 0x18]
call fcn.00403810
lea ecx, [ebp - 0x150]
call fcn.004037c0
cmp dword [edi + 0x2c], 0x10
lea ecx, [edi + 0x18]
jb 0x4081db
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x28]
push 1
push 0x4b1084
push 0
call fcn.00404920
add esp, 0xc
cmp eax, 0xffffffff
je 0x408222
mov ecx, dword [edi + 0x28]
cmp eax, ecx
jae 0x408222
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x168]
push eax
lea ecx, [edi + 0x18]
call fcn.00403730
push eax
lea ecx, [edi + 0x18]
call fcn.00403810
lea ecx, [ebp - 0x168]
call fcn.004037c0
mov eax, dword [ebp - 0x1f4]
xorps xmm0, xmm0
mov edx, 0x8b65d88d
xor esi, esi
mov eax, dword [eax]
mov dword [ebp - 0x2c], 0xf945a8e9
mov dword [ebp - 0x28], 0x569ca5ce
mov dword [ebp - 0x24], 0x28053039
mov edi, dword [eax + 0x108]
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x20], 0x40
movq qword [ebp - 0x6c], xmm0
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x60], 0
mov dword [ebp - 0x1ec], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x1e8], eax
nop word [eax + eax]
mov eax, dword [ebp - 0x1ec]
mov ecx, dword [eax + esi]
mov eax, dword [ebp - 0x1e8]
xor ecx, edx
imul edx, edx, 0x48a9
mov dword [eax + esi], ecx
add esi, 4
add edx, 0xa9bebc
ror edx, 4
cmp esi, 0xc
jb 0x408280
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1ec], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1ec]
mov cl, byte [eax + 0xc]
mov eax, dword [ebp - 0x1e8]
xor cl, dl
mov byte [eax + 0xc], cl
push 2
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 0x12
push eax
push 1
push dword [ebp - 0x1f4]
mov ecx, edi
call dword [0x49a38c]
call edi
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x6c]
mov ecx, 0xd
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x408300
sub esp, 0x18
lea ecx, [ebp - 0x88]
push esp
call fcn.00405930
lea ecx, [ebp - 0xa0]
call fcn.00407310
mov ecx, dword [ebp - 0x208]
add esp, 0x18
push eax
call fcn.00403810
lea ecx, [ebp - 0xa0]
call fcn.004037c0
lea ecx, [ebp - 0xd0]
mov byte [ebp - 0x1e1], 1
call fcn.004037c0
jmp 0x408365
lea ecx, [ebp - 0xd0]
call fcn.004037c0
mov byte [ebp - 0x1e1], 0
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x1f8]
push 0
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x68]
mov ecx, esi
call dword [0x49a38c]
call esi
jmp 0x40838a
mov byte [ebp - 0x1e1], 0
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x1f0]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x49a38c]
call esi
cmp dword [ebp - 0x1fc], 0
jne 0x40840e
mov esi, dword [ebp - 0x1f0]
mov eax, dword [esi]
test eax, eax
je 0x4083bd
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 4]
test eax, eax
je 0x4083cb
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
movups xmm0, xmmword [ebp - 0x5c]
push 0x14
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
push dword [ebp - 0x1f0]
call fcn.0046cebb
add esp, 8
jmp 0x40840e
mov byte [ebp - 0x1e1], 0
mov edx, dword [ebp - 0x70]
cmp edx, 0x10
jb 0x408441
mov ecx, dword [ebp - 0x84]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408437
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408462
push edx
push ecx
call fcn.0046cebb
add esp, 8
mov al, byte [ebp - 0x1e1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ce78
mov esp, ebp
pop ebp
ret
call fcn.00471c84
int3