Function at 0x10038770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d418
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push esi
push edi
mov eax, dword [0x10080040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
lea eax, [edi + 0x110]
xor cl, cl
mov edx, eax
mov esi, 6
nop
cmp dword [edx - 4], 0
je 0x100387bb
cmp dword [edx], 0
jne 0x100387bd
inc cl
add edx, 0x14
sub esi, 1
jne 0x100387b0
cmp cl, 6
jne 0x1003893b
movaps xmm0, xmmword [str._uJR_W_bpU]
xor ecx, ecx
movups xmmword [ebp - 0x24], xmm0
nop dword [eax + eax]
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0xe
jb 0x100387e0
xorps xmm0, xmm0
mov byte [ebp - 0x15], 0
lea ecx, [ebp - 0x23]
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x48], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038810
sub ecx, edx
lea eax, [ebp - 0x23]
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.10002130
mov dword [ebp - 4], 0
xor ecx, ecx
movaps xmm0, xmmword [0x10079140]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x71262b2f
mov word [ebp - 0x14], 0x7e
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x14
jb 0x10038847
xorps xmm0, xmm0
mov byte [ebp - 0x13], 0
lea ecx, [ebp - 0x27]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038873
sub ecx, edx
lea eax, [ebp - 0x27]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.10002130
push 0
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x5c]
mov dword [esp], 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x44]
push eax
push eax
call dword [0x10077ca0]
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x100388e0
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100388d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10038b26
push ecx
push edx
call fcn.1004a076
add esp, 8
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0xf
jbe 0x10038b15
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10038920
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10038b26
push ecx
push edx
call fcn.1004a076
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor esi, esi
lea ecx, [esi + 6]
cmp dword [eax - 4], 0
jbe 0x1003894e
cmp dword [eax], 0
jbe 0x1003894e
add esi, dword [eax + 4]
add eax, 0x14
sub ecx, 1
jne 0x10038940
mov eax, dword [edi + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push eax
mov dword [ebp - 0x10], eax
call edi
test eax, eax
jne 0x100389ae
mov eax, dword [ebp - 0x10]
add eax, 0xe5
push 4
push eax
mov dword [ebp - 0x10], eax
call edi
test eax, eax
jne 0x100389ae
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
je 0x100389ae
mov edi, dword [ebp - 0x2c]
mov edi, dword [edi + 0x34]
test edi, edi
je 0x100389a8
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100389a8
push eax
mov ecx, edi
call dword [0x10077c24]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push ecx
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.1000eae0
add esp, 4
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0xf
jbe 0x100389ce
mov eax, dword [eax]
movaps xmm0, xmmword [0x10078ea0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x481e1b
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x12
jb 0x100389e3
sub esp, 0x18
mov byte [ebp - 0x15], 0
mov edx, esp
lea ecx, [ebp - 0x27]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038a13
sub ecx, esi
lea eax, [ebp - 0x27]
push ecx
push eax
mov ecx, edx
call fcn.10002130
lea eax, [ebp - 0x74]
push eax
call fcn.1000b3c0
add esp, 0x20
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
mov esi, dword [eax + 0x100]
test esi, esi
je 0x10038a5c
push 4
push esi
call edi
test eax, eax
jne 0x10038a5c
push dword [ebp - 0x10]
mov ecx, esi
call dword [0x10077c88]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x10038a94
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10038a8a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10038b2b
push ecx
push edx
call fcn.1004a076
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp ecx, 0xf
jbe 0x10038ae0
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10038ad6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10038b2b
push ecx
push edx
call fcn.1004a076
add esp, 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
mov esi, dword [eax + 0xfc]
test esi, esi
je 0x10038b15
push 4
push esi
call edi
test eax, eax
jne 0x10038b15
push 1
mov ecx, esi
call dword [0x10077c24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.1004f344
call fcn.1004f344
int3