Function at 0x10039de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10093e8e
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x100bb084]
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
mov eax, dword [esi + 0xa0]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0xa4]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0xa8]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0xac]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0xb0]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xb4]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0xb8]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0xbc]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0xc0]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0xc4]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0xc8]
mov dword [ebp - 0x68], eax
mov eax, dword [esi + 0xcc]
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 0xd0]
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 0xd4]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 0xd8]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0xdc]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xe0]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xe4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xe8]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xec]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.1003a870
movzx eax, word [esi + 0xf6]
xor ecx, ecx
movaps xmm0, xmmword [0x100afb80]
push eax
movzx eax, word [esi + 0xf4]
push eax
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x65242e
nop dword [eax]
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x12
jb 0x10039f00
sub esp, 0x18
mov byte [ebp - 0x11], 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 0x10039f3c
mov eax, dword [edx]
jmp 0x10039f3e
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x23], 0
jne 0x10039f4b
xor ecx, ecx
jmp 0x10039f5a
lea ecx, [ebp - 0x23]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10039f51
sub ecx, edi
push ecx
lea eax, [ebp - 0x23]
mov ecx, edx
push eax
call fcn.10004a40
lea eax, [ebp - 0x54]
push eax
call fcn.100043b0
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x10039f83
mov edx, dword [edx]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
cmp byte [edx], 0
jne 0x10039f9e
xor ecx, ecx
jmp 0x10039fac
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10039fa3
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.10004a40
mov byte [ebp - 4], 1
mov edi, dword [esi + 0x50]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test edi, edi
je 0x10039fdc
push 4
push edi
call ebx
test eax, eax
jne 0x10039fdc
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call dword [0x100ad8f4]
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x10039ff1
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.100048f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
cmp eax, 0x10
jb 0x1003a01f
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.100048f0
movzx eax, word [esi + 0xf8]
test ax, ax
jne 0x1003a0ba
mov cl, 0x4c
mov byte [ebp - 0x6a], 0
mov al, 0x61
mov byte [ebp - 0x6c], cl
xor al, cl
mov byte [ebp - 0x6a], 0
mov byte [ebp - 0x6b], al
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
jne 0x1003a05b
xor ecx, ecx
jmp 0x1003a06a
lea ecx, [ebp - 0x6b]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003a061
sub ecx, edx
push ecx
lea eax, [ebp - 0x6b]
push eax
lea ecx, [ebp - 0x3c]
call fcn.10004a40
mov dword [ebp - 4], 2
mov edi, dword [esi + 0x54]
test edi, edi
je 0x1003a09a
push 4
push edi
call ebx
test eax, eax
jne 0x1003a09a
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call dword [0x100ad8f4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x1003a1f8
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
jmp 0x1003a1f3
push eax
mov cl, 0x6e
mov dword [ebp - 0x20], 0xd073a6e
mov dword [ebp - 0x1c], 0x541a0b05
xor eax, eax
mov dword [ebp - 0x18], 0xa4b4d4e
mov byte [ebp - 0x14], 0
xor byte [ebp + eax - 0x1f], cl
inc eax
cmp eax, 0xb
jae 0x1003a0e7
mov cl, byte [ebp - 0x20]
jmp 0x1003a0d8
sub esp, 0x18
mov byte [ebp - 0x14], 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 0x1003a116
mov eax, dword [edx]
jmp 0x1003a118
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x1f], 0
jne 0x1003a125
xor ecx, ecx
jmp 0x1003a139
lea ecx, [ebp - 0x1f]
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003a130
sub ecx, edi
push ecx
lea eax, [ebp - 0x1f]
mov ecx, edx
push eax
call fcn.10004a40
lea eax, [ebp - 0x54]
push eax
call fcn.100043b0
add esp, 0x20
mov edx, eax
mov dword [ebp - 4], 3
cmp dword [edx + 0x14], 0x10
jb 0x1003a162
mov edx, dword [edx]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
cmp byte [edx], 0
jne 0x1003a17d
xor ecx, ecx
jmp 0x1003a18b
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003a182
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.10004a40
mov byte [ebp - 4], 4
mov edi, dword [esi + 0x54]
test edi, edi
je 0x1003a1b5
push 4
push edi
call ebx
test eax, eax
jne 0x1003a1b5
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call dword [0x100ad8f4]
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x1003a1ca
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.100048f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
cmp eax, 0x10
jb 0x1003a1f8
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.100048f0
movzx eax, word [esi + 0xf4]
movss xmm1, dword [0x100aee58]
test ax, ax
je 0x1003a217
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
sub esp, 8
mov byte [ebp - 0x70], 0
xor ecx, ecx
movsd qword [esp], xmm0
movaps xmm0, xmmword [0x100af5b0]
movups xmmword [ebp - 0x80], xmm0
mov al, byte [ebp - 0x80]
xor byte [ebp + ecx - 0x7f], al
inc ecx
cmp ecx, 0xf
jb 0x1003a233
sub esp, 0x18
mov byte [ebp - 0x70], 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 0x1003a26f
mov eax, dword [edx]
jmp 0x1003a271
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x7f], 0
jne 0x1003a27e
xor ecx, ecx
jmp 0x1003a28d
lea ecx, [ebp - 0x7f]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003a284
sub ecx, edi
push ecx
lea eax, [ebp - 0x7f]
mov ecx, edx
push eax
call fcn.10004a40
lea eax, [ebp - 0xb0]
push eax
call fcn.100043b0
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 5
cmp dword [edx + 0x14], 0x10
jb 0x1003a2b9
mov edx, dword [edx]
mov dword [ebp - 0x84], 0xf
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x98], 0
cmp byte [edx], 0
jne 0x1003a2dd
xor ecx, ecx
jmp 0x1003a2eb
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003a2e2
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x98]
call fcn.10004a40
mov byte [ebp - 4], 6
mov edi, dword [esi + 0x58]
test edi, edi
je 0x1003a31b
push 4
push edi
call ebx
test eax, eax
jne 0x1003a31b
lea eax, [ebp - 0x98]
mov ecx, edi
push eax
call dword [0x100ad8f4]
mov eax, dword [ebp - 0x84]
cmp eax, 0x10
jb 0x1003a339
inc eax
lea ecx, [ebp - 0x98]
push eax
push dword [ebp - 0x98]
call fcn.100048f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x84], 0xf
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x98], 0
cmp eax, 0x10
jb 0x1003a379
inc eax
lea ecx, [ebp - 0xb0]
push eax
push dword [ebp - 0xb0]
call fcn.100048f0
mov ecx, esi
mov dword [ebp - 0x9c], 0xf
mov dword [ebp - 0xa0], 0
mov byte [ebp - 0xb0], 0
call fcn.10039500
mov edi, dword [esi]
test edi, edi
je 0x1003a3b4
push 4
push edi
call ebx
test eax, eax
jne 0x1003a3b4
push 1
mov ecx, edi
call dword [0x100ad890]
mov byte [esi + 0xfa], 1
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.1005baa0
mov esp, ebp
pop ebp
ret