Function at 0x10041600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10089efd
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x100b5540]
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.1005ca40
add esp, 4
test eax, eax
je 0x10041887
push str.modloader_
lea ecx, [ebp - 0x98]
xor edi, edi
call fcn.1000a3c0
push edi
lea eax, [ebp - 0x98]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0xd0]
call fcn.1003ecd0
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
call fcn.10010ca0
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x80]
call fcn.1003ec30
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10048740
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 0x100416d1
test ecx, ecx
je 0x100416d9
mov eax, dword [eax]
cmp eax, dword [ecx]
jmp 0x100416d3
test ecx, ecx
je 0x10041867
cmp dword [ebp - 0x64], 8
lea ecx, [ebp - 0x114]
lea eax, [ebp - 0x78]
cmovae eax, dword [ebp - 0x78]
push ecx
push eax
call fcn.1005f16a
add esp, 8
cmp eax, 1
jne 0x1004179f
mov dword [ebp - 0x18], 0x6d
mov byte [ebp - 0x14], 0x43
mov byte [ebp - 0x13], 0xe
mov byte [ebp - 0x12], 0x1e
mov al, byte [ebp - 0x14]
mov byte [ebp - 0x11], 0
xor eax, eax
nop dword [eax]
mov cl, byte [ebp + eax - 0x14]
mov edx, dword [ebp - 0x18]
xor dl, cl
mov byte [ebp + eax - 0x14], dl
inc eax
cmp eax, 3
jb 0x10041720
lea eax, [ebp - 0x14]
mov byte [ebp - 0x11], 0
push eax
lea ecx, [ebp - 0x30]
call fcn.1000a3c0
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.100270d0
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 0x10041783
mov eax, dword [eax]
cmp ecx, dword [ebp - 0x20]
jne 0x100417a2
push ecx
push edx
push eax
call fcn.10026bb0
add esp, 0xc
test eax, eax
jne 0x100417a2
mov byte [ebp - 0x109], al
jmp 0x100417a9
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 0x109], 1
test bl, 2
je 0x10041808
mov ecx, dword [ebp - 0x34]
and ebx, 0xfffffffd
mov dword [ebp - 0x110], ebx
cmp ecx, 8
jb 0x100417f4
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100417e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100418a3
push ecx
push edx
call fcn.1005f6d2
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 0x10041850
and ebx, 0xfffffffe
mov dword [ebp - 0x110], ebx
cmp esi, 8
jb 0x10041850
mov ecx, dword [ebp - 0x30]
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x10041846
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100418a3
push esi
push ecx
call fcn.1005f6d2
add esp, 8
cmp byte [ebp - 0x109], 0
jne 0x1004185a
inc edi
lea ecx, [ebp - 0x80]
call fcn.100113f0
jmp 0x100416b0
lea ecx, [ebp - 0x108]
call fcn.10011230
lea ecx, [ebp - 0x80]
call fcn.10011230
lea ecx, [ebp - 0xd0]
call fcn.10011230
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.1005f68b
mov esp, ebp
pop ebp
ret
call fcn.100648f1
int3