Function at 0x1004ed00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100977a5
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x100be084]
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 esi, ecx
push 0
lea eax, [ebp - 0x47]
mov word [ebp - 0x48], 0x2a
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
call fcn.100055d0
mov dword [ebp - 4], 0
mov ebx, dword [esi + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test ebx, ebx
je 0x1004ed83
push 4
push ebx
call edi
test eax, eax
jne 0x1004ed83
lea eax, [ebp - 0x60]
mov ecx, ebx
push eax
call dword [0x100b0938]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x1004ed9f
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.10005480
push 0
lea eax, [ebp - 0x47]
mov word [ebp - 0x48], 0x42
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
call fcn.100055d0
mov dword [ebp - 4], 1
mov ebx, dword [esi + 0x40]
test ebx, ebx
je 0x1004edec
push 4
push ebx
call edi
test eax, eax
jne 0x1004edec
lea eax, [ebp - 0x60]
mov ecx, ebx
push eax
call dword [0x100b0938]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x1004ee08
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.10005480
push 0
lea eax, [ebp - 0x47]
mov word [ebp - 0x48], 0x64
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
call fcn.100055d0
mov dword [ebp - 4], 2
mov ebx, dword [esi + 0x44]
test ebx, ebx
je 0x1004ee55
push 4
push ebx
call edi
test eax, eax
jne 0x1004ee55
lea eax, [ebp - 0x60]
mov ecx, ebx
push eax
call dword [0x100b0908]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x1004ee71
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.10005480
mov ebx, dword [esi + 0x34]
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
test ebx, ebx
je 0x1004eea0
push 4
push ebx
call edi
test eax, eax
jne 0x1004eea0
lea ecx, [ebx + 0xb8]
mov dl, 2
call fcn.10016230
mov ecx, dword [0x100c2f6c]
test ecx, ecx
je 0x1004eee4
mov edx, dword [esi + 0x30]
cmp edx, 1
jne 0x1004eeba
mov eax, dword [ecx + 0x4c]
cmp eax, dword [esi + 0x2c]
jb 0x1004eec7
cmp edx, 2
jne 0x1004eee4
mov eax, dword [ecx + 0x50]
cmp eax, dword [esi + 0x2c]
jae 0x1004eee4
mov ebx, dword [esi + 0x34]
test ebx, ebx
je 0x1004eee4
push 4
push ebx
call edi
test eax, eax
jne 0x1004eee4
mov dl, 7
lea ecx, [ebx + 0xb8]
call fcn.10016230
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x1004f285
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call dword [0x100b0888]
mov ebx, eax
mov dword [ebp - 0x44], ebx
test ebx, ebx
je 0x1004f285
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 3
mov ecx, ebx
mov edx, dword [esi + 0x24]
call fcn.100100a0
mov dword [ebp - 0x48], eax
test eax, eax
je 0x1004ef5f
cmp dword [eax + 0x3c], 0
je 0x1004ef5f
push dword [esi + 0x24]
xor edx, edx
lea ecx, [ebp - 0x78]
push eax
call fcn.100101f0
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.10010a20
jmp 0x1004efae
push dword [esi + 0x24]
mov edx, ebx
lea ecx, [ebp - 0x78]
push 0
call fcn.100101f0
add esp, 8
mov ebx, eax
lea eax, [ebp - 0x40]
cmp eax, ebx
je 0x1004efaa
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x1004ef8f
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10005480
push ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.10004e50
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x64]
cmp eax, 0x10
jb 0x1004efc3
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.10005480
mov ebx, dword [esi + 0x44]
test ebx, ebx
je 0x1004efdf
push 4
push ebx
call edi
test eax, eax
jne 0x1004efdf
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call dword [0x100b0908]
push dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x78]
call fcn.10010540
add esp, 4
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 5
mov ebx, dword [esi + 0x38]
test ebx, ebx
je 0x1004f012
push 4
push ebx
call edi
test eax, eax
jne 0x1004f012
push dword [ebp - 0x44]
mov ecx, ebx
call dword [0x100b0938]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x64]
cmp eax, 0x10
jb 0x1004f02b
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.10005480
mov eax, dword [esi + 0x30]
cmp eax, 1
jne 0x1004f094
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0x78]
call fcn.10013f20
add esp, 4
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x1004f04e
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b2eb0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x5c], xmm0
mov byte [ebp - 0x4c], 0
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0xf
jb 0x1004f060
sub esp, 0x18
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x5b]
mov ecx, esp
push eax
call fcn.100056d0
lea eax, [ebp - 0x28]
push eax
call fcn.10004f40
add esp, 0x20
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 7
jmp 0x1004f102
cmp eax, 2
jne 0x1004f15d
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0x78]
call fcn.10013f20
add esp, 4
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0x10
jb 0x1004f0b8
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b2c50]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x5c], xmm0
mov byte [ebp - 0x4c], 0
nop word [eax + eax]
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0xf
jb 0x1004f0d0
sub esp, 0x18
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x5b]
mov ecx, esp
push eax
call fcn.100056d0
lea eax, [ebp - 0x28]
push eax
call fcn.10004f40
add esp, 0x20
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 9
mov ebx, dword [esi + 0x3c]
test ebx, ebx
je 0x1004f11d
push 4
push ebx
call edi
test eax, eax
jne 0x1004f11d
push dword [ebp - 0x44]
mov ecx, ebx
call dword [0x100b0938]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1004f132
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10005480
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x64]
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
cmp eax, 0x10
jb 0x1004f15d
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.10005480
mov edx, dword [esi + 0x28]
push ecx
lea ecx, [ebp - 0x78]
call fcn.10013f20
add esp, 4
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x1004f178
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b2580]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x4c], 0x49
nop dword [eax]
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0x10
jb 0x1004f190
sub esp, 0x18
mov byte [ebp - 0x4b], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1004f1cc
mov eax, dword [edx]
jmp 0x1004f1ce
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x5b], 0
jne 0x1004f1db
xor ecx, ecx
jmp 0x1004f1ea
lea ecx, [ebp - 0x5b]
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f1e1
sub ecx, ebx
push ecx
lea eax, [ebp - 0x5b]
mov ecx, edx
push eax
call fcn.100055d0
lea eax, [ebp - 0x28]
push eax
call fcn.10004f40
add esp, 0x20
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0xb
mov ebx, dword [esi + 0x40]
test ebx, ebx
je 0x1004f224
push 4
push ebx
call edi
test eax, eax
jne 0x1004f224
push dword [ebp - 0x44]
mov ecx, ebx
call dword [0x100b0938]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1004f239
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10005480
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x1004f260
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.10005480
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x1004f55e
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10005480
jmp 0x1004f55e
mov eax, dword [esi + 0x24]
test eax, eax
je 0x1004f55e
cmp eax, 0x5f5e100
jae 0x1004f55e
mov edx, dword [esi + 0x54]
sub edx, dword [esi + 0x50]
sar edx, 2
call fcn.100139f0
mov ecx, dword [esi + 0x50]
mov ebx, dword [ecx + eax*4 - 4]
test ebx, ebx
je 0x1004f344
mov eax, 0x10624dd3
mul ebx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call dword [0x100b0888]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x1004f344
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov edx, ebx
mov dword [ebp - 4], 0xc
mov ecx, eax
call fcn.100100a0
test eax, eax
je 0x1004f308
cmp dword [eax + 0x3c], 0
je 0x1004f308
push ebx
push eax
xor edx, edx
jmp 0x1004f30e
mov edx, dword [ebp - 0x44]
push ebx
push 0
lea ecx, [ebp - 0x78]
call fcn.100101f0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.10010a20
lea ecx, [ebp - 0x78]
call fcn.10005060
mov ecx, dword [esi + 0x44]
lea edx, [ebp - 0x28]
call fcn.10015ee0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10005060
mov eax, dword [esi + 0x30]
cmp eax, 1
jne 0x1004f3e9
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0xc0]
call fcn.10013f20
add esp, 4
mov dword [ebp - 4], 0xd
cmp dword [eax + 0x14], 0x10
jb 0x1004f371
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b2b20]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x5c], xmm0
mov byte [ebp - 0x4c], 0
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0xf
jb 0x1004f383
sub esp, 0x18
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x5b]
mov ecx, esp
push eax
call fcn.100056d0
lea eax, [ebp - 0xa8]
push eax
call fcn.10004f40
add esp, 0x20
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0xe
mov ebx, dword [esi + 0x3c]
test ebx, ebx
je 0x1004f3d3
push 4
push ebx
call edi
test eax, eax
jne 0x1004f3d3
push dword [ebp - 0x44]
mov ecx, ebx
call dword [0x100b0938]
lea ecx, [ebp - 0xa8]
call fcn.10005060
lea ecx, [ebp - 0xc0]
jmp 0x1004f472
cmp eax, 2
jne 0x1004f47e
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.10013f20
add esp, 4
mov dword [ebp - 4], 0xf
cmp dword [eax + 0x14], 0x10
jb 0x1004f413
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b2ef0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x5c], xmm0
mov byte [ebp - 0x4c], 0
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0xf
jb 0x1004f425
sub esp, 0x18
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x5b]
mov ecx, esp
push eax
call fcn.100056d0
lea eax, [ebp - 0xc0]
push eax
call fcn.10004f40
add esp, 0x20
mov byte [ebp - 4], 0x10
mov edx, eax
mov ecx, dword [esi + 0x3c]
call fcn.100161a0
lea ecx, [ebp - 0xc0]
call fcn.10005060
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], 0xffffffff
call fcn.10005060
mov edx, dword [esi + 0x28]
push ecx
lea ecx, [ebp - 0x78]
call fcn.10013f20
add esp, 4
mov dword [ebp - 4], 0x11
cmp dword [eax + 0x14], 0x10
jb 0x1004f49c
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b23b0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0x46
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x10
jb 0x1004f4b0
sub esp, 0x18
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x23]
mov ecx, esp
push eax
call fcn.100056d0
lea eax, [ebp - 0x90]
push eax
call fcn.10004f40
add esp, 0x20
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0x12
mov ebx, dword [esi + 0x40]
test ebx, ebx
je 0x1004f500
push 4
push ebx
call edi
test eax, eax
jne 0x1004f500
push dword [ebp - 0x44]
mov ecx, ebx
call dword [0x100b0938]
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x1004f51b
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.10005480
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
cmp eax, 0x10
jb 0x1004f54c
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.10005480
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
mov ebx, dword [esi + 0xfc]
push 4
push ebx
call edi
test eax, eax
jne 0x1004f59e
push 4
add ebx, 0xe5
push ebx
call edi
test eax, eax
jne 0x1004f59e
mov al, byte [ebx]
test al, al
je 0x1004f59e
mov ebx, dword [esi + 0xfc]
test ebx, ebx
je 0x1004f59e
push 4
push ebx
call edi
test eax, eax
jne 0x1004f59e
push eax
mov ecx, ebx
call dword [0x100b08d4]
mov esi, dword [esi + 0x34]
test esi, esi
je 0x1004f5b8
push 4
push esi
call edi
test eax, eax
jne 0x1004f5b8
push 1
mov ecx, esi
call dword [0x100b08d4]
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.1005cea0
mov esp, ebp
pop ebp
ret