Function at 0x10097150
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b73c2
mov eax, dword fs:[0]
push eax
sub esp, 0xcb0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xcb8], edx
mov ebx, ecx
mov dword [ebp - 0xcac], ebx
call fcn.10096bc0
test al, al
jne 0x100977bc
lea ecx, [ebp - 0xc90]
call fcn.10096a40
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc90]
cmp dword [ebp - 0xc7c], 8
push str.leidian.vbox
cmovae eax, dword [ebp - 0xc90]
push ebx
push eax
lea eax, [ebp - 0xc14]
push str._svmsleidian_d_s
push eax
call dword [sym.imp.MSVCR120.dll__swprintf]
add esp, 0x14
push 0x100000
call fcn.100ad5d6
add esp, 4
mov edi, eax
lea eax, [ebp - 0xc48]
push 0x1c
push eax
push 0x10096e30
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
neg eax
push str.MY_CONFIG
sbb esi, esi
and esi, dword [ebp - 0xc44]
push 0x96
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 0xcb0], eax
test eax, eax
je 0x1009779e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0xcb0]
mov dword [ebp - 0xcb4], eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1009779e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1009779e
mov esi, dword [ebp - 0xcb4]
push esi
push eax
push edi
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov byte [esi + edi], 0
lea eax, [ebp - 0x413]
mov byte [ebp - 0x414], 0
push 0x3ff
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xca8]
call fcn.10097000
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc78]
call fcn.100970a0
mov byte [ebp - 4], 3
cmp dword [ebp - 0xc94], 8
jb 0x100972c5
push dword [ebp - 0xca8]
call ebx
add esp, 4
mov esi, dword [sym.imp.MSVCR120.dll_sprintf]
xor eax, eax
mov dword [ebp - 0xc94], 7
mov dword [ebp - 0xc98], 0
mov word [ebp - 0xca8], ax
cmp byte [ebp + 0xc], al
je 0x1009734f
lea edx, [ebp - 0xc90]
lea ecx, [ebp - 0xc44]
call fcn.100069f0
cmp dword [ebp - 0xc30], 0x10
lea ecx, [ebp - 0xc44]
lea eax, [ebp - 0xc78]
cmovae ecx, dword [ebp - 0xc44]
cmp dword [ebp - 0xc64], 0x10
push ecx
cmovae eax, dword [ebp - 0xc78]
push eax
lea eax, [ebp - 0x414]
push str._HardDisk_uuid__s__location__ssystem.vmdk__format_VMDK__type_Readonly___
push eax
call esi
add esp, 0x10
cmp dword [ebp - 0xc30], 0x10
jb 0x10097355
push dword [ebp - 0xc44]
call ebx
add esp, 4
jmp 0x10097355
mov byte [ebp - 0x414], al
lea eax, [ebp - 0x414]
mov edx, str._my_shared_system_vmdk_xml_node__
push eax
mov ecx, edi
call fcn.10096b10
mov edx, dword [ebp - 0xcac]
lea ecx, [ebp - 0xc44]
add esp, 4
call fcn.10096f60
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xc60]
call fcn.100970a0
mov byte [ebp - 4], 6
cmp dword [ebp - 0xc30], 8
jb 0x100973a5
push dword [ebp - 0xc44]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0xc30], 7
cmp dword [ebp - 0xc4c], 0x10
mov edx, str.my_machine_guid
mov word [ebp - 0xc44], ax
mov ecx, edi
lea eax, [ebp - 0xc60]
mov dword [ebp - 0xc34], 0
cmovae eax, dword [ebp - 0xc60]
push eax
call fcn.10096b10
add esp, 4
lea eax, [ebp - 0x414]
push dword [ebp - 0xcac]
push str.leidian_d
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x414]
mov edx, str.my_machine_name
mov ecx, edi
push eax
call fcn.10096b10
add esp, 4
push dword [ebp - 0xcac]
call fcn.10096ea0
movzx eax, ax
push eax
lea eax, [ebp - 0x414]
push 0x100c8e4c
push eax
call esi
lea eax, [ebp - 0x414]
mov edx, str.my_data_guid
push eax
mov ecx, edi
call fcn.10096b10
add esp, 0x14
lea edx, [ebp - 0xc14]
lea ecx, [ebp - 0xc2c]
call fcn.10096c40
mov byte [ebp - 4], 7
cmp dword [ebp - 0xc1c], 0
jne 0x100974e3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCR120.dll_srand]
mov esi, dword [sym.imp.MSVCR120.dll_rand]
add esp, 4
call esi
and eax, 0xff
push eax
call esi
and eax, 0xff
push eax
call esi
and eax, 0xff
push eax
call esi
mov esi, dword [sym.imp.MSVCR120.dll_sprintf]
and eax, 0xff
push eax
lea eax, [ebp - 0x414]
push 0x100c8e7c
push eax
call esi
add esp, 0x18
cmp byte [ebp - 0x414], 0
jne 0x100974be
xor ecx, ecx
jmp 0x100974d0
lea ecx, [ebp - 0x414]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100974c7
sub ecx, edx
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0xc2c]
call fcn.10003fc0
cmp dword [ebp - 0xc18], 0x10
lea eax, [ebp - 0xc2c]
mov edx, str.my_mac_addr
mov ecx, edi
cmovae eax, dword [ebp - 0xc2c]
push eax
call fcn.10096b10
add esp, 4
lea eax, [ebp - 0x414]
push str.fastpipe.dll
push eax
call esi
lea eax, [ebp - 0x414]
mov edx, str.my_fastpipe
push eax
mov ecx, edi
call fcn.10096b10
add esp, 0xc
lea eax, [ebp - 0x414]
push dword [ebp - 0xcb8]
push 0x100c319c
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x414]
mov edx, str.my_cpu_count
mov ecx, edi
push eax
call fcn.10096b10
add esp, 4
lea eax, [ebp - 0x414]
push dword [ebp + 8]
push 0x100c319c
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x414]
mov edx, str.my_ram_size
mov ecx, edi
push eax
call fcn.10096b10
add esp, 4
mov byte [ebp - 0xcac], 1
lea eax, [ebp - 0xc14]
push 0x100
push 0x8000
push eax
call dword [sym.imp.MSVCR120.dll_int___cdecl__wopen_wchar_t_const___int__int_]
add esp, 0xc
mov dword [ebp - 0xcb0], eax
test eax, eax
js 0x10097651
push 0x10000
call fcn.100ad5d6
add esp, 4
mov esi, eax
push 0x10000
push esi
push dword [ebp - 0xcb0]
call dword [sym.imp.MSVCR120.dll__read]
mov ecx, eax
add esp, 0xc
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja 0x1009762b
mov byte [ecx + esi], 0
mov eax, edi
mov ecx, esi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10097610
test dl, dl
je 0x1009760c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10097610
add eax, 2
add ecx, 2
test dl, dl
jne 0x100975f0
xor eax, eax
jmp 0x10097615
sbb eax, eax
or eax, 1
mov ecx, dword [ebp - 0xcac]
xor edx, edx
test eax, eax
movzx ecx, cl
cmove ecx, edx
mov dword [ebp - 0xcac], ecx
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
push dword [ebp - 0xcb0]
call dword [sym.imp.MSVCR120.dll__close]
add esp, 4
cmp byte [ebp - 0xcac], 0
je 0x10097705
push 0x80
lea eax, [ebp - 0xc14]
push 0x8301
push eax
call dword [sym.imp.MSVCR120.dll_int___cdecl__wopen_wchar_t_const___int__int_]
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x100976ac
lea eax, [ebp - 0xc14]
push eax
push str.open__s_failed_n
call dword [sym.imp.MSVCR120.dll_wprintf]
add esp, 8
lea ecx, [ebp - 0xc2c]
call fcn.10003e50
lea ecx, [ebp - 0xc60]
call fcn.10003e50
lea ecx, [ebp - 0xc78]
call fcn.10003e50
jmp 0x1009778f
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100976b1
sub ecx, edx
push ecx
push edi
push esi
call dword [sym.imp.MSVCR120.dll__write]
add esp, 0xc
test eax, eax
jns 0x10097708
lea eax, [ebp - 0xc14]
push eax
push str._write__s_failed_n
call dword [sym.imp.MSVCR120.dll_wprintf]
add esp, 8
lea ecx, [ebp - 0xc2c]
call fcn.10003e50
lea ecx, [ebp - 0xc60]
call fcn.10003e50
lea ecx, [ebp - 0xc78]
call fcn.10003e50
jmp 0x1009778f
or esi, 0xffffffff
lea eax, [ebp - 0xc14]
push eax
push str.update__s_success__n
call dword [sym.imp.MSVCR120.dll_wprintf]
add esp, 8
cmp dword [ebp - 0xc18], 0x10
jb 0x10097731
push dword [ebp - 0xc2c]
call ebx
add esp, 4
cmp dword [ebp - 0xc4c], 0x10
mov dword [ebp - 0xc18], 0xf
mov dword [ebp - 0xc1c], 0
mov byte [ebp - 0xc2c], 0
jb 0x10097760
push dword [ebp - 0xc60]
call ebx
add esp, 4
cmp dword [ebp - 0xc64], 0x10
mov dword [ebp - 0xc4c], 0xf
mov dword [ebp - 0xc50], 0
mov byte [ebp - 0xc60], 0
jb 0x1009778f
push dword [ebp - 0xc78]
call ebx
add esp, 4
cmp esi, 0xffffffff
je 0x1009779e
push esi
call dword [sym.imp.MSVCR120.dll__close]
add esp, 4
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp dword [ebp - 0xc7c], 8
jb 0x100977bc
push dword [ebp - 0xc90]
call ebx
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100ad688
mov esp, ebp
pop ebp
ret