Function at 0x1003f3b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a050
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push esi
push edi
mov eax, dword [0x1007e040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [0x10081a48], eax
test edi, edi
jne 0x1003f3ff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x1003f41a
cmp edi, dword [esi + 4]
jne 0x1003f831
call fcn.1003fbc0
jmp 0x1003f831
and eax, 0xf0000
cmp eax, 0x10000
je 0x1003f7d1
cmp eax, 0x40000
je 0x1003f469
cmp eax, 0x80000
jne 0x1003f831
mov esi, dword [esi]
test esi, esi
je 0x1003f831
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003f831
lea ecx, [esi + 0xb8]
xor dl, dl
call fcn.10013bc0
jmp 0x1003f831
mov edi, dword [esi]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [ebp - 0x28], eax
test edi, edi
je 0x1003f48d
push 4
push edi
call eax
test eax, eax
jne 0x1003f48d
lea ecx, [edi + 0xb8]
xor dl, dl
call fcn.10013bc0
mov edx, dword [esi + 0x28]
mov eax, edx
mov ecx, dword [esi + 0x24]
sub eax, ecx
sar eax, 3
mov dword [ebp - 0x20], 0
test eax, eax
je 0x1003f4f3
xor edi, edi
mov dword [ebp - 0x24], edi
nop word [eax + eax]
mov edi, dword [edi + ecx + 4]
test edi, edi
je 0x1003f4d5
mov edi, dword [edi]
test edi, edi
je 0x1003f4d5
push 4
push edi
call dword [ebp - 0x28]
test eax, eax
jne 0x1003f4d5
push pe_nt_image_headers32
mov ecx, edi
call dword [0x10075224]
mov edx, dword [esi + 0x28]
mov eax, edx
mov ecx, dword [esi + 0x24]
sub eax, ecx
mov edi, dword [ebp - 0x24]
inc dword [ebp - 0x20]
add edi, 8
sar eax, 3
mov dword [ebp - 0x24], edi
cmp dword [ebp - 0x20], eax
jb 0x1003f4b0
cmp ecx, edx
je 0x1003f831
nop dword [eax + eax]
mov edi, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [ebp - 0x18], eax
test edi, edi
je 0x1003f513
mov eax, dword [ebp + 8]
cmp dword [edi], eax
je 0x1003f51f
add ecx, 8
cmp ecx, edx
jne 0x1003f500
jmp 0x1003f831
mov eax, dword [edi + 0x60]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1003f831
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1003f831
mov eax, dword [esi + 0x28]
xor ecx, ecx
mov edx, dword [esi + 0x24]
sub eax, edx
sar eax, 3
test eax, eax
je 0x1003f56b
add edx, 4
nop
mov eax, dword [edx]
test eax, eax
je 0x1003f55a
cmp eax, edi
je 0x1003f56e
mov eax, dword [esi + 0x28]
inc ecx
sub eax, dword [esi + 0x24]
add edx, 8
sar eax, 3
cmp ecx, eax
jb 0x1003f550
or ecx, 0xffffffff
cmp dword [esi + 0x18], ecx
jne 0x1003f831
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ecx]
cmp ecx, 0x3b9aca00
jb 0x1003f597
mov eax, dword [edx]
xor edx, edx
mov dword [ebp - 0x14], 0x3e8
div dword [ebp - 0x14]
jmp 0x1003f599
mov edx, dword [edx]
mov eax, 0x14
add edx, ecx
mov dword [eax + esi], edx
mov esi, dword [edi]
test esi, esi
je 0x1003f5c0
push 4
push esi
call dword [ebp - 0x28]
test eax, eax
jne 0x1003f5c0
push 0x400000
mov ecx, esi
call dword [0x10075224]
call dword [0x100752a0]
mov byte [ebp - 0x18], 0x3d
mov cl, 0x45
xor cl, byte [ebp - 0x18]
mov al, 0x78
xor al, byte [ebp - 0x18]
mov ch, 0x5c
mov byte [ebp - 0x17], al
mov dl, 0x5e
mov byte [ebp - 0x16], cl
mov dh, 0x53
mov cl, byte [ebp - 0x18]
mov ah, 0x55
mov byte [ebp - 0x19], 0x5a
xor dl, cl
mov al, byte [ebp - 0x19]
xor ch, cl
xor al, cl
mov byte [ebp - 0x1a], 0x58
xor dh, cl
mov byte [ebp - 0x11], al
mov al, byte [ebp - 0x1a]
xor ah, cl
xor al, cl
mov byte [ebp - 0x13], ch
xorps xmm0, xmm0
mov byte [ebp - 0xf], 0
lea ecx, [ebp - 0x17]
mov byte [ebp - 0x15], dl
mov byte [ebp - 0x12], dh
lea edx, [ecx + 1]
mov byte [ebp - 0x14], ah
mov byte [ebp - 0x10], al
mov byte [ebp - 0xf], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003f634
sub ecx, edx
lea eax, [ebp - 0x17]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.10005220
push dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0
call fcn.1000d450
add esp, 4
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0xf
jbe 0x1003f671
mov eax, dword [eax]
movaps xmm0, xmmword [0x10076db0]
xor ecx, ecx
movups xmmword [ebp - 0x64], xmm0
push eax
movaps xmm0, xmmword [0x10077700]
movups xmmword [ebp - 0x54], xmm0
mov byte [ebp - 0x44], 0
nop
mov al, byte [ebp - 0x64]
xor byte [ebp + ecx - 0x63], al
inc ecx
cmp ecx, 0x1f
jb 0x1003f690
sub esp, 0x18
mov byte [ebp - 0x44], 0
mov edx, esp
lea ecx, [ebp - 0x63]
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 0x1003f6c0
sub ecx, esi
lea eax, [ebp - 0x63]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0x7c]
push eax
call fcn.10004db0
add esp, 0x20
push 0
push ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
mov dword [esp], 0
push 0
push 0x82
push 4
push ecx
push eax
push eax
call dword [0x1007529c]
mov ecx, dword [ebp - 0x68]
cmp ecx, 0xf
jbe 0x1003f738
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f72e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f7bf
push ecx
push edx
call fcn.100662c0
add esp, 8
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
cmp ecx, 0xf
jbe 0x1003f77d
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f773
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f7bf
push ecx
push edx
call fcn.100662c0
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0xf
mov byte [ebp - 0x94], 0
cmp ecx, 0xf
jbe 0x1003f831
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f7c5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003f7c5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100662c0
add esp, 8
jmp 0x1003f831
mov ecx, dword [esi + 0x24]
cmp ecx, dword [esi + 0x28]
je 0x1003f831
nop dword [eax]
mov edx, dword [ecx + 4]
test edx, edx
je 0x1003f7eb
cmp dword [edx], edi
je 0x1003f7f5
add ecx, 8
cmp ecx, dword [esi + 0x28]
jne 0x1003f7e0
jmp 0x1003f831
mov eax, dword [esi + 0x28]
xor ecx, ecx
mov edi, dword [esi + 0x24]
sub eax, edi
sar eax, 3
test eax, eax
je 0x1003f82b
add edi, 4
nop dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x1003f81a
cmp eax, edx
je 0x1003f82e
mov eax, dword [esi + 0x28]
inc ecx
sub eax, dword [esi + 0x24]
add edi, 8
sar eax, 3
cmp ecx, eax
jb 0x1003f810
or ecx, 0xffffffff
mov dword [esi + 0x18], ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8