Function at 0x10040920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088acd
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x100b4540]
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.1005b520
add esp, 4
test eax, eax
je 0x10040bb9
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.1003cc30
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
call fcn.100111d0
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x80]
call fcn.1003cb90
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10047600
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 0x100409f1
test ecx, ecx
je 0x100409f9
mov eax, dword [eax]
cmp eax, dword [ecx]
jmp 0x100409f3
test ecx, ecx
je 0x10040b99
cmp dword [ebp - 0x64], 8
lea ecx, [ebp - 0x114]
lea eax, [ebp - 0x78]
cmovae eax, dword [ebp - 0x78]
push ecx
push eax
call fcn.1005dc38
add esp, 8
cmp eax, 1
jne 0x10040ad1
mov dword [ebp - 0x18], 0x62
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 0x10040a50
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.100254e0
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 0x10040ab5
mov eax, dword [eax]
cmp ecx, dword [ebp - 0x20]
jne 0x10040ad4
push ecx
push edx
push eax
call fcn.10024fc0
add esp, 0xc
test eax, eax
jne 0x10040ad4
mov byte [ebp - 0x109], al
jmp 0x10040adb
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 0x109], 1
test bl, 2
je 0x10040b3a
mov ecx, dword [ebp - 0x34]
and ebx, 0xfffffffd
mov dword [ebp - 0x110], ebx
cmp ecx, 8
jb 0x10040b26
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10040b19
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040bd5
push ecx
push edx
call fcn.1005e1a2
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 0x10040b82
and ebx, 0xfffffffe
mov dword [ebp - 0x110], ebx
cmp esi, 8
jb 0x10040b82
mov ecx, dword [ebp - 0x30]
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x10040b78
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040bd5
push esi
push ecx
call fcn.1005e1a2
add esp, 8
cmp byte [ebp - 0x109], 0
jne 0x10040b8c
inc edi
lea ecx, [ebp - 0x80]
call fcn.10011920
jmp 0x100409d0
lea ecx, [ebp - 0x108]
call fcn.10011760
lea ecx, [ebp - 0x80]
call fcn.10011760
lea ecx, [ebp - 0xd0]
call fcn.10011760
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.1005e15b
mov esp, ebp
pop ebp
ret
call fcn.100633c1
int3