Function at 0x1003d690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008382d
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x100ad540]
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
xor ebx, ebx
push str.modloader
mov dword [ebp - 0x110], ebx
call fcn.10056360
add esp, 4
test eax, eax
je 0x1003d929
push str.modloader_
lea ecx, [ebp - 0x98]
xor edi, edi
call fcn.1000a1c0
push edi
lea eax, [ebp - 0x98]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0xd0]
call fcn.10039a60
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
call fcn.10010360
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x80]
call fcn.100399c0
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.100443f0
add esp, 8
mov byte [ebp - 4], 4
nop dword [eax + eax]
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x80]
mov ecx, dword [ecx + 8]
mov eax, dword [eax]
mov eax, dword [eax + 8]
test eax, eax
je 0x1003d761
test ecx, ecx
je 0x1003d769
mov eax, dword [eax]
cmp eax, dword [ecx]
jmp 0x1003d763
test ecx, ecx
je 0x1003d909
cmp dword [ebp - 0x64], 8
lea ecx, [ebp - 0x114]
lea eax, [ebp - 0x78]
cmovae eax, dword [ebp - 0x78]
push ecx
push eax
call fcn.10058a78
add esp, 8
cmp eax, 1
jne 0x1003d841
mov dword [ebp - 0x18], 0x22
mov eax, dword [ebp - 0x18]
xor al, 0x2e
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0x18]
inc al
xor al, 0x63
mov byte [ebp - 0x13], al
mov eax, dword [ebp - 0x18]
add al, 2
mov byte [ebp - 0x11], 0
xor al, 0x73
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0x14]
xor eax, eax
nop dword [eax]
mov cl, byte [ebp + eax - 0x14]
mov edx, dword [ebp - 0x18]
add dl, al
xor dl, cl
mov byte [ebp + eax - 0x14], dl
inc eax
cmp eax, 3
jb 0x1003d7c0
lea eax, [ebp - 0x14]
mov byte [ebp - 0x11], 0
push eax
lea ecx, [ebp - 0x30]
call fcn.1000a1c0
mov ebx, dword [ebp - 0x110]
lea eax, [ebp - 0x48]
or ebx, 1
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x110], ebx
call fcn.10022380
mov esi, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
or ebx, 2
cmp esi, 8
mov dword [ebp - 0x110], ebx
cmovae edx, dword [ebp - 0x30]
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x1003d825
mov eax, dword [eax]
cmp ecx, dword [ebp - 0x20]
jne 0x1003d844
push ecx
push edx
push eax
call fcn.10021e60
add esp, 0xc
test eax, eax
jne 0x1003d844
mov byte [ebp - 0x109], al
jmp 0x1003d84b
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 0x109], 1
test bl, 2
je 0x1003d8aa
mov ecx, dword [ebp - 0x34]
and ebx, 0xfffffffd
mov dword [ebp - 0x110], ebx
cmp ecx, 8
jb 0x1003d896
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d889
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d945
push ecx
push edx
call fcn.10058fe2
mov esi, dword [ebp - 0x1c]
add esp, 8
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov dword [ebp - 4], 4
test bl, 1
je 0x1003d8f2
and ebx, 0xfffffffe
mov dword [ebp - 0x110], ebx
cmp esi, 8
jb 0x1003d8f2
mov ecx, dword [ebp - 0x30]
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x1003d8e8
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d945
push esi
push ecx
call fcn.10058fe2
add esp, 8
cmp byte [ebp - 0x109], 0
jne 0x1003d8fc
inc edi
lea ecx, [ebp - 0x80]
call fcn.10010ab0
jmp 0x1003d740
lea ecx, [ebp - 0x108]
call fcn.100108f0
lea ecx, [ebp - 0x80]
call fcn.100108f0
lea ecx, [ebp - 0xd0]
call fcn.100108f0
mov eax, edi
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.10058f9b
mov esp, ebp
pop ebp
ret
call fcn.1005e201
int3