Function at 0x10003a10
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1094
call fcn.1001b4d0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x100274e8]
xor ecx, ecx
mov dword [ebp - 0xfa8], esi
push edi
test esi, esi
je 0x10003ac1
cmp esi, 0x10
jb 0x10003ac1
movaps xmm1, xmmword [0x10022b60]
lea edi, [ebp - 0x1094]
mov edx, esi
lea ebx, [ebp - 0x1074]
and edx, 0xfffffff0
lea esi, [ebp - 0x1064]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edi + ecx*4], xmm0
movd xmm0, eax
lea eax, [ecx + 8]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [ebp + ecx*4 - 0x1084], xmm0
movd xmm0, eax
lea eax, [ecx + 0xc]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [ebx + ecx*4], xmm0
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [esi + ecx*4], xmm0
add ecx, 0x10
cmp ecx, edx
jb 0x10003a63
mov esi, dword [ebp - 0xfa8]
cmp ecx, esi
jae 0x10003ad1
mov dword [ebp + ecx*4 - 0x1094], ecx
inc ecx
cmp ecx, esi
jb 0x10003ac5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
mov dword [0x100274f0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x10003b08
mov edx, str.Failed_to_get_main_module_handle.
mov ecx, str._V_PATCH__Error_while_initializing_patch_
call fcn.10003950
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004713
mov esp, ebp
pop ebp
ret
push 0xc
lea ecx, [ebp - 0xfd8]
push ecx
push eax
push dword [0x100274f0]
call dword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
jne 0x10003b42
mov edx, str.Failed_to_get_module_information.
mov ecx, str._V_PATCH__Error_while_initializing_patch_
call fcn.10003950
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004713
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xfd8]
mov eax, dword [ebp - 0xfd4]
add eax, ebx
mov dword [ebp - 0xfb0], ebx
mov dword [ebp - 0x101c], eax
cmp ebx, eax
jae 0x10003dae
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop word [eax + eax]
push 0x1c
lea eax, [ebp - 0xfcc]
push eax
push ebx
push dword [0x100274f0]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x10003f56
mov eax, dword [ebp - 0xfb8]
test al, 0xf0
jne 0x10003ba9
add ebx, dword [ebp - 0xfc0]
mov dword [ebp - 0xfb0], ebx
jmp 0x10003da2
mov byte [ebp - 0xffd], 0
test al, 0x20
jne 0x10003be0
lea eax, [ebp - 0xfa8]
mov byte [ebp - 0xffd], 1
push eax
push 0x20
push dword [ebp - 0xfc0]
push dword [ebp - 0xfcc]
push dword [0x100274f0]
call edi
test eax, eax
je 0x10003e8b
mov edx, dword [ebp - 0xfcc]
mov eax, dword [ebp - 0xfc0]
mov dword [ebp - 0x1004], edx
lea ecx, [edx + eax]
mov dword [ebp - 0x1010], ecx
cmp edx, ecx
jae 0x10003d68
xor ebx, ebx
test esi, esi
je 0x10003d3d
nop dword [eax]
mov eax, dword [ebp + ebx*4 - 0x1094]
lea ecx, [eax + eax*2]
mov edi, dword [ecx*8 + 0x100263dc]
mov eax, dword [ecx*8 + 0x100263d8]
mov dword [ebp - 0x1014], eax
mov dword [ebp - 0x100c], ecx
lea eax, [edi + edx]
mov dword [ebp - 0x1018], edi
cmp eax, dword [ebp - 0x1010]
ja 0x10003d2e
xor eax, eax
xor edx, edx
mov dword [ebp - 0x1008], eax
test edi, edi
je 0x10003c9f
nop word [eax + eax]
mov ecx, dword [ebp - 0x1014]
mov ecx, dword [ecx + edx*4]
cmp ecx, 0xdddddddd
jne 0x10003c79
mov dword [ebp - 0x1008], eax
jmp 0x10003c94
cmp ecx, 0xffffffff
je 0x10003c93
mov edi, dword [ebp - 0x1004]
cmp byte [eax + edi], cl
mov edi, dword [ebp - 0x1018]
jne 0x10003d28
inc eax
inc edx
cmp edx, edi
jb 0x10003c60
mov ecx, dword [ebp - 0x100c]
mov edi, dword [ebp - 0x1008]
mov edx, dword [ebp - 0x1004]
add edi, edx
mov eax, dword [ecx*8 + 0x100263e0]
test eax, eax
je 0x10003cce
push edi
call eax
mov edx, dword [ebp - 0x1004]
add esp, 4
test al, al
je 0x10003d2e
mov ecx, dword [ebp - 0x100c]
inc dword [ecx*8 + 0x100263e8]
dec esi
mov dword [ecx*8 + 0x100263ec], edi
mov ecx, dword [ecx*8 + 0x100263e4]
mov eax, dword [ebp + esi*4 - 0x1094]
mov dword [ebp + ebx*4 - 0x1094], eax
dec ebx
cmp ecx, 0xffffffff
je 0x10003d2e
xor eax, eax
test esi, esi
je 0x10003d2e
nop
cmp dword [ebp + eax*4 - 0x1094], ecx
je 0x10003d10
inc eax
cmp eax, esi
jb 0x10003d00
jmp 0x10003d2e
mov ecx, dword [ebp + esi*4 - 0x1098]
dec esi
mov dword [ebp + eax*4 - 0x1094], ecx
cmp eax, ebx
ja 0x10003d2e
lea ebx, [eax - 1]
jmp 0x10003d2e
mov edx, dword [ebp - 0x1004]
inc ebx
cmp ebx, esi
jb 0x10003c10
mov ecx, dword [ebp - 0x1010]
inc edx
mov dword [ebp - 0x1004], edx
test esi, esi
je 0x10003d50
cmp edx, ecx
jb 0x10003c03
mov eax, dword [ebp - 0xfc0]
mov edx, dword [ebp - 0xfcc]
mov ebx, dword [ebp - 0xfb0]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp byte [ebp - 0xffd], 0
je 0x10003d96
lea ecx, [ebp - 0xfa8]
push ecx
push dword [ebp - 0xfa8]
push eax
push edx
push dword [0x100274f0]
call edi
test eax, eax
je 0x10003eab
mov eax, dword [ebp - 0xfc0]
add ebx, eax
mov dword [ebp - 0xfb0], ebx
test esi, esi
je 0x10003dae
cmp ebx, dword [ebp - 0x101c]
jb 0x10003b70
lea eax, [ebp - 0xffc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 4
push 0x1000
push dword [ebp - 0xff8]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
mov dword [0x100274e0], ecx
test ecx, ecx
jne 0x10004001
push str.Could_not_allocate_instruction_buffer.
lea eax, [ebp - 0x7d4]
push 0x3e8
push eax
call fcn.1000bae9
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0xc
push str.Could_not_allocate_instruction_buffer.
call edi
lea esi, [ebp - 0x7d4]
lea esi, [esi + eax*2]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10003e64
push 0
push 0
lea ecx, [ebp - 0xfb0]
mov dword [ebp - 0xfb0], 0
push ecx
push 0x409
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x10003e64
push dword [ebp - 0xfb0]
lea eax, [ebp - 4]
sub eax, esi
sar eax, 1
push eax
push esi
call fcn.1000bae9
add esp, 0xc
push dword [ebp - 0xfb0]
call edi
push 0
push str._V_PATCH__Error_while_initializing_patch_
lea eax, [ebp - 0x7d4]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004713
mov esp, ebp
pop ebp
ret
mov edx, str.Failed_to_change_memory_protection.
mov ecx, str._V_PATCH__Error_while_initializing_patch_
call fcn.10003950
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004713
mov esp, ebp
pop ebp
ret
push str.Failed_to_restore_memory_protection.
lea eax, [ebp - 0x7d4]
push 0x3e8
push eax
call fcn.1000bae9
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0xc
push str.Failed_to_restore_memory_protection.
call edi
lea esi, [ebp - 0x7d4]
lea esi, [esi + eax*2]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10003f2f
push 0
push 0
lea ecx, [ebp - 0xfb0]
mov dword [ebp - 0xfb0], 0
push ecx
push 0x409
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x10003f2f
push dword [ebp - 0xfb0]
lea eax, [ebp - 4]
sub eax, esi
sar eax, 1
push eax
push esi
call fcn.1000bae9
add esp, 0xc
push dword [ebp - 0xfb0]
call edi
push 0
push str._V_PATCH__Error_while_initializing_patch_
lea eax, [ebp - 0x7d4]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004713
mov esp, ebp
pop ebp
ret
push str.Failed_to_query_virtual_memory.
lea eax, [ebp - 0x7d4]
push 0x3e8
push eax
call fcn.1000bae9
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0xc
push str.Failed_to_query_virtual_memory.
call edi
lea esi, [ebp - 0x7d4]
lea esi, [esi + eax*2]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10003fda
push 0
push 0
lea ecx, [ebp - 0xfb0]
mov dword [ebp - 0xfb0], 0
push ecx
push 0x409
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x10003fda
push dword [ebp - 0xfb0]
lea eax, [ebp - 4]
sub eax, esi
sar eax, 1
push eax
push esi
call fcn.1000bae9
add esp, 0xc
push dword [ebp - 0xfb0]
call edi
push 0
push str._V_PATCH__Error_while_initializing_patch_
lea eax, [ebp - 0x7d4]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004713
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xff8]
add eax, ecx
mov dword [0x100274f4], ecx
push str.Failed_to_apply_the_following_patches:_n
mov dword [0x100274ec], eax
lea eax, [ebp - 0xfa4]
push 0x3e8
push eax
mov byte [ebp - 0xffe], 1
call fcn.1000bae9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [ebp - 0xf56]
add esp, 0xc
mov dword [ebp - 0xfb0], edi
cmp dword [0x100274e4], 0
mov dword [ebp - 0xfa8], 0
jbe 0x10004188
mov ebx, 0x100275ac
xor esi, esi
cmp dword [ebx], esi
jbe 0x100040c2
lea ecx, [ebx - 0x28]
nop dword [eax + eax]
mov eax, dword [ecx - 0x28]
mov edi, dword [ecx]
lea eax, [eax + eax*2]
mov edx, dword [eax*8 + 0x100263e8]
lea eax, [edi + edi*2]
cmp edi, 0xffffffff
je 0x1000408e
add edx, dword [eax*8 + 0x100263e8]
cmp edx, 1
jne 0x10004176
cmp edi, 0xffffffff
je 0x100040ae
cmp dword [eax*8 + 0x100263e8], edx
jne 0x100040ae
mov dword [ecx - 0x28], 0xffffffff
jmp 0x100040b4
mov dword [ecx], 0xffffffff
inc esi
add ecx, 4
cmp esi, dword [ebx]
jb 0x10004070
mov edi, dword [ebp - 0xfb0]
lea eax, [ebx - 0xb4]
push eax
mov eax, dword [ebx + 4]
call eax
add esp, 4
mov byte [ebp - 0xffd], al
test al, al
jne 0x10004125
lea ecx, [ebp - 0x7d4]
sub ecx, edi
push str._n
sar ecx, 1
push ecx
push edi
call fcn.1000bae9
add edi, 0xa
lea eax, [ebp - 0x7d4]
sub eax, edi
lea esi, [ebx - 0xb4]
push esi
sar eax, 1
push eax
push edi
call fcn.1000bae9
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2]
mov al, byte [ebp - 0xffd]
mov dword [ebp - 0xfb0], edi
mov cl, byte [ebp - 0xffe]
add ebx, 0xbc
and cl, al
mov eax, dword [ebp - 0xfa8]
inc eax
mov byte [ebp - 0xffe], cl
mov dword [ebp - 0xfa8], eax
cmp eax, dword [0x100274e4]
jb 0x10004062
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
test cl, cl
jne 0x1000416e
push 0
push str._V_PATCH__Error_while_initializing_patch_
lea eax, [ebp - 0xfa4]
push eax
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x1000418e
mov edi, dword [ebp - 0xfb0]
mov byte [ebp - 0xffd], 0
jmp 0x100040db
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [ebp - 0xfac]
push eax
push 0x20
push dword [ebp - 0xff8]
push dword [0x100274e0]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100041cd
push str.Failed_to_change_memory_protection_on_instruction_buffer.
lea eax, [ebp - 0x7d4]
push 0x3e8
push eax
call fcn.1000bae9
add esp, 0xc
push str.Failed_to_change_memory_protection_on_instruction_buffer.
jmp 0x1000420b
push dword [ebp - 0xff8]
push dword [0x100274e0]
push dword [0x100274f0]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x1000427d
push str.Failed_to_flush_instruction_cache_on_instruction_buffer.
lea eax, [ebp - 0x7d4]
push 0x3e8
push eax
call fcn.1000bae9
add esp, 0xc
push str.Failed_to_flush_instruction_cache_on_instruction_buffer.
call ebx
lea esi, [ebp - 0x7d4]
lea esi, [esi + eax*2]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1000426b
push 0
push 0
lea ecx, [ebp - 0xfb0]
mov dword [ebp - 0xfb0], 0
push ecx
push 0x409
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x1000426b
push dword [ebp - 0xfb0]
lea eax, [ebp - 4]
sub eax, esi
sar eax, 1
push eax
push esi
call fcn.1000bae9
add esp, 0xc
push dword [ebp - 0xfb0]
call ebx
push 0
push str._V_PATCH__Error_while_initializing_patch_
lea eax, [ebp - 0x7d4]
push eax
push 0
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004713
mov esp, ebp
pop ebp
ret