Function at 0x40a016
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x4c
mov eax, 0x4770d6
call fcn.0046975b
mov ebx, edx
mov dword [ebp - 0x44], ebx
mov esi, 0x487b73
push esi
lea ecx, [ebp - 0x54]
call fcn.00401668
xor edi, edi
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], edi
call fcn.00401668
push esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00401668
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00401668
push 1
push ebx
mov byte [ebp - 4], 3
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0x40404
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
call esi
cdq
sub eax, edx
sar eax, 1
sub eax, 0x15e
push 1
mov dword [ebp - 0x20], eax
call esi
cdq
sub eax, edx
sar eax, 1
sub eax, 0x19a
push edi
mov dword [ebp - 0x1c], eax
call esi
cdq
sub eax, edx
sar eax, 1
add eax, 0x15e
push 1
mov dword [ebp - 0x18], eax
call esi
cdq
sub eax, edx
sar eax, 1
add eax, 0x19a
push edi
mov dword [ebp - 0x14], eax
call esi
mov dword [ebp - 0x24], eax
push 1
call esi
push 0xc
mov dword [ebp - 0x30], eax
call fcn.0041e9c2
pop ecx
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x40a0e9
mov ecx, eax
call fcn.00401fdd
mov esi, eax
jmp 0x40a0eb
mov esi, edi
push ecx
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.ransomePlainPath
call fcn.00401668
push ecx
mov ecx, esp
push str.Computer_Information
mov byte [ebp - 4], 5
call fcn.00401668
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040210f
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.ransomeEncPath
call fcn.00401668
push ecx
mov ecx, esp
push str.Computer_Information
mov byte [ebp - 4], 7
call fcn.00401668
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.0040210f
push str.NULL
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 8
call fcn.00409b5a
test eax, eax
je 0x40a179
push str.NULL
lea ecx, [ebp - 0x38]
call fcn.00409b5a
test eax, eax
jne 0x40a193
push 0x487b73
lea ecx, [ebp - 0x3c]
call fcn.00401712
push 0x487b73
lea ecx, [ebp - 0x38]
call fcn.00401712
test esi, esi
je 0x40a19f
push ecx
mov ecx, esi
call fcn.00408ae6
lea eax, [ebp - 0x40]
push eax
push ebx
mov dword [ebp - 0x40], edi
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], esi
push edi
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x4893f4
mov ebx, eax
push 0x68
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x40a36e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40a36e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40a36e
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0x42
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40a26d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x40a266
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push ebx
call fcn.0041deb0
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push edi
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40a25f
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
test eax, eax
je 0x40a25f
push ecx
push dword [ebp - 0x28]
mov ecx, eax
call fcn.00409d20
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x30]
mov esi, dword [ebp - 0x24]
push esi
push ecx
push ecx
push edi
lea ecx, [ebp - 0x50]
call fcn.00409ce9
push ecx
mov edx, 0x4a3308
lea ecx, [ebp - 0x30]
call fcn.0040a6b7
cmp esi, 0x500
jl 0x40a2dc
mov byte [ebp - 4], 0xe
mov edx, eax
lea ecx, [ebp - 0x24]
mov dword [esp], 0x4a330c
call fcn.00401e14
pop ecx
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xf
call fcn.00401dc6
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00401253
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.00401253
vmovss xmm0, dword [0x48b850]
jmp 0x40a321
mov byte [ebp - 4], 0x14
mov edx, eax
lea ecx, [ebp - 0x24]
mov dword [esp], 0x4a330c
call fcn.00401e14
pop ecx
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x15
call fcn.00401dc6
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00401253
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.00401253
vmovss xmm0, dword [0x48b84c]
push 0x21
sub esp, 0xc
lea eax, [ebp - 0x20]
vmovss dword [esp + 4], xmm0
vmovss xmm0, dword [0x48b848]
vmovss dword [esp], xmm0
push pe_nt_image_headers32
push eax
push ecx
mov ecx, dword [ebp - 0x34]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00401f3d
add eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp - 0x44]
mov ecx, esi
call fcn.0040a40f
add esp, 0x1c
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov esi, dword [ebp - 0x50]
push esi
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00401253
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.00401253
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00401253
mov ecx, dword [ebp - 0x58]
lea ecx, [ecx - 0x10]
call fcn.00401253
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx - 0x10]
call fcn.00401253
mov ecx, dword [ebp - 0x54]
lea ecx, [ecx - 0x10]
call fcn.00401253
call fcn.0046970a
ret