Function at 0x40ba92
Capabilities:
Copy file
Delete registry value
Persist via app paths registry key
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1e34
call fcn.00412030
mov eax, dword [0x413004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x1e34], eax
mov ebx, ecx
mov dword [ebp - 0x1e1c], esi
push edi
lea ecx, [ebp - 0x15e0]
call fcn.0040fa55
xor edi, edi
lea ecx, [ebp - 0x1e00]
push esi
mov dword [ebp - 0x1e10], edi
mov dword [ebp - 0x1e28], edi
mov dword [ebp - 0x1e08], edi
mov dword [ebp - 0x1e14], edi
mov dword [ebp - 0x1e18], edi
call fcn.0040eb66
lea eax, [ebp - 0x1bec]
push eax
lea eax, [ebp - 0x1bf6]
push eax
push 0x401f98
push 0x900
push edi
push edi
push 0x105
push 0x4134a8
call fcn.00410f98
mov edi, eax
add esp, 0x20
test edi, edi
js 0x40c016
mov edi, 0x105
lea eax, [ebp - 0xc60]
push edi
push eax
push 0xd2
push ebx
call dword [sym.imp.USER32.dll_LoadStringW]
push esi
push edi
lea eax, [ebp - 0x218]
mov edi, 0x4010d8
push eax
push 0x401068
push 0x402870
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
push 0x105
lea eax, [ebp - 0xa50]
push eax
push 0x401068
push 0x402888
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
cmp ax, word [ebp - 0x218]
je 0x40c011
cmp ax, word [ebp - 0xa50]
je 0x40c011
push esi
xor edi, edi
push edi
push 0x4028bc
push 0x4028a4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [ebp - 0x15e0]
mov edx, eax
call fcn.0040fb10
test eax, eax
jne 0x40bbf8
cmp edx, 5
jb 0x40bbf8
push 0x105
lea eax, [ebp - 0x840]
push eax
push 0x12c
push ebx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x840]
push eax
push edi
jmp 0x40c00b
push 0xb
xor edx, edx
pop ecx
call fcn.00408f0a
test eax, eax
jne 0x40bc17
call fcn.00408fdb
test eax, eax
jne 0x40bc17
mov dword [ebp - 0x1e24], edi
jmp 0x40bc88
lea eax, [ebp - 0x1e08]
mov dword [ebp - 0x1e24], 1
push eax
push 0x20019
push edi
mov eax, 0x80000001
push 0x4033c0
push eax
mov dword [ebp - 0x1e20], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bc80
lea eax, [ebp - 0x1e2c]
mov dword [ebp - 0x1e2c], 4
push eax
lea eax, [ebp - 0x1e24]
push eax
push edi
push edi
push 0x40338c
push dword [ebp - 0x1e08]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x1e08]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1e24], edi
jne 0x40bcc0
push 0x209
lea eax, [ebp - 0x840]
push eax
push 0xea
push ebx
call dword [sym.imp.USER32.dll_LoadStringW]
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x840]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, 0x80070005
jmp 0x40c016
push dword [ebp + 0x10]
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1e0c]
push esi
push eax
lea edx, [ebp - 0x1e30]
call fcn.0040ab28
test eax, eax
je 0x40c011
push ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x1080]
push ecx
push eax
lea eax, [ebp - 0xa50]
mov ecx, ebx
push eax
lea edx, [ebp - 0x218]
call fcn.0040a47b
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bd19
xor edi, edi
inc edi
jmp 0x40c016
lea eax, [ebp - 0xa50]
push eax
push 0x4134a8
push 0x402ec4
push 0x900
push edi
push edi
lea eax, [ebp - 0x840]
push 0x209
push eax
call fcn.00410f98
mov edi, eax
add esp, 0x20
test edi, edi
js 0x40c016
push dword [ebp + 0x10]
lea eax, [ebp - 0x1e18]
mov ecx, ebx
push eax
lea eax, [ebp - 0x218]
push eax
lea edx, [ebp - 0x840]
call fcn.0040b580
mov edi, eax
test edi, edi
js 0x40c016
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x1e28]
push dword [ebp + 0x14]
lea edx, [ebp - 0x1e04]
push dword [ebp + 0xc]
push esi
push eax
call fcn.0040afcc
xor edi, edi
test eax, eax
je 0x40bd13
push 0x20a
lea eax, [ebp - 0x428]
push edi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
mov word [ebp - 0x428], ax
cmp dword [ebp - 0x1e04], edi
je 0x40bde6
push ebx
mov edx, 0x105
lea ecx, [ebp - 0x428]
call fcn.00406b17
test eax, eax
jne 0x40be1f
jmp 0x40c011
push 0x1a
lea edx, [ebp - 0x428]
pop ecx
call fcn.00408137
test eax, eax
js 0x40be10
sub esp, 0xc
lea ecx, [ebp - 0x428]
mov edx, 0x105
push 0x401760
call fcn.00410f31
xor eax, eax
cmp ax, word [ebp - 0x428]
je 0x40c011
lea eax, [ebp - 0xa50]
push eax
push eax
lea eax, [ebp - 0x428]
push eax
push 0x403430
push 0x900
push edi
push edi
lea eax, [ebp - 0x14a0]
push 0x105
push eax
call fcn.00410f98
mov edi, eax
add esp, 0x24
test edi, edi
js 0x40c016
push dword [ebp + 0x10]
lea eax, [ebp - 0xa50]
push ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
lea edx, [ebp - 0x14a0]
call fcn.0040b0c8
test eax, eax
je 0x40bd11
cmp dword [ebp - 0x1e0c], 0
je 0x40be94
mov edx, 0x4134a8
mov ecx, ebx
call fcn.0040d3a7
test esi, esi
je 0x40bebe
cmp word [ebp - 0x1080], 0
je 0x40bee5
lea ecx, [ebp - 0x1080]
call fcn.00406fb8
push 0
lea edx, [ebp - 0x1080]
mov ecx, ebx
call fcn.0040dcb7
jmp 0x40bee5
push dword [ebp + 0x10]
mov edx, dword [ebp - 0x1e04]
lea eax, [ebp - 0xa50]
push eax
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.0040a22a
cmp eax, 0xffffffff
je 0x40bd11
cmp dword [ebp - 0x1e04], 0
je 0x40beff
mov dword [ebp - 0x1e20], 0x80000002
mov esi, 0x4010e8
jmp 0x40bf04
mov esi, 0x4028f8
xor eax, eax
mov dword [ebp - 0x1e0c], esi
cmp ax, word [ebp - 0x428]
je 0x40bfe1
mov ecx, dword [0x4136c0]
lea edx, [ebp - 0x428]
call fcn.0040ff1c
cmp dword [ebp - 0x1e04], 0
je 0x40bf4d
lea ecx, [ebp - 0x15e0]
call fcn.0040fb10
test eax, eax
jne 0x40bf4d
lea ecx, [ebp - 0x428]
call fcn.0040fe63
lea eax, [ebp - 0xa50]
push eax
lea eax, [ebp - 0x428]
push eax
push 0x40344c
push 0x900
push 0
push 0
lea eax, [ebp - 0x840]
push 0x209
push eax
call fcn.00410f98
mov edi, eax
add esp, 0x20
test edi, edi
js 0x40c016
mov ecx, dword [0x4136c0]
lea edx, [ebp - 0x840]
call fcn.0040ff1c
mov ecx, dword [0x4136c0]
test ecx, ecx
je 0x40c048
mov esi, dword [ecx]
lea eax, [ebp - 0x428]
push eax
xor eax, eax
cmp dword [ebp - 0x1e20], 0x80000002
push 0x402970
push dword [ebp - 0x1e0c]
sete al
push eax
push ecx
mov ecx, dword [esi + 0x28]
call dword [0x414220]
call dword [esi + 0x28]
mov edi, eax
test edi, edi
jns 0x40c0e2
push 0x209
lea eax, [ebp - 0x840]
push eax
push 0xd3
push ebx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x840]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, 0x80004005
push dword [ebp - 0x1e18]
call dword [sym.imp.cmutil.dll_CmFree]
push dword [ebp - 0x1e14]
call dword [sym.imp.cmutil.dll_CmFree]
call fcn.0040929a
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411980
mov esp, ebp
pop ebp
ret 0x18
lea eax, [ebp - 0x1e08]
push eax
push esi
push dword [ebp - 0x1e20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40bfe1
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
xor esi, esi
push eax
mov dword [ebp - 0x1e2c], eax
lea eax, [ebp - 0x428]
push eax
push 1
push esi
push 0x402970
push dword [ebp - 0x1e08]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40c0d6
push 0x209
lea eax, [ebp - 0x840]
push eax
push 0xd3
push ebx
call dword [sym.imp.USER32.dll_LoadStringW]
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x840]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x1e08]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c011
push dword [ebp - 0x1e08]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1e04], 0
lea eax, [ebp - 0xc60]
push dword [ebp + 0x10]
mov edx, dword [ebp - 0x1e1c]
mov ecx, dword [0x4136c0]
push eax
je 0x40c14e
push 0x402d24
call fcn.00410068
mov esi, 0xbc2
cmp eax, esi
jne 0x40c11e
mov dword [ebp - 0x1e10], 1
push dword [ebp + 0x10]
mov edx, dword [ebp - 0x1e1c]
lea eax, [ebp - 0xc60]
mov ecx, dword [0x4136c0]
push eax
push 0x403458
call fcn.00410068
cmp eax, esi
jne 0x40c1b9
mov dword [ebp - 0x1e10], 1
jmp 0x40c1b9
push 0x403478
call fcn.00410068
mov esi, 0xbc2
cmp eax, esi
jne 0x40c16b
mov dword [ebp - 0x1e10], 1
push dword [ebp + 0x10]
mov edx, dword [ebp - 0x1e1c]
lea eax, [ebp - 0xc60]
mov ecx, dword [0x4136c0]
push eax
push 0x4034ac
call fcn.00410068
cmp eax, esi
jne 0x40c199
mov dword [ebp - 0x1e10], 1
lea eax, [ebp - 0x218]
push eax
lea edx, [ebp - 0xa50]
lea ecx, [ebp - 0x428]
call fcn.004099cc
test eax, eax
je 0x40bfe1
cmp dword [ebp - 0x1e30], 0
je 0x40c330
push 0x4134a8
push 0x4034cc
push 0x900
push 0
push 0
lea eax, [ebp - 0x840]
push 0x209
push eax
call fcn.00410f98
add esp, 0x1c
test eax, eax
js 0x40c330
mov ecx, dword [0x4136c0]
lea eax, [ebp - 0x840]
push eax
call fcn.0041025d
mov esi, eax
test esi, esi
js 0x40c330
xor eax, eax
push 0x208
push eax
mov word [ebp - 0xe70], ax
lea eax, [ebp - 0xe6e]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0x1290], ax
push 0x208
push eax
lea eax, [ebp - 0x128e]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x15e0]
call fcn.0040fade
test eax, eax
je 0x40c31e
mov esi, 0x4034e0
lea eax, [ebp - 0x840]
push esi
push eax
push 0x401f98
push 0x900
push 0
push 0
lea eax, [ebp - 0x1290]
push 0x105
push eax
call fcn.00410f98
push esi
push 0x4134a8
push 0x401f98
push 0x900
xor esi, esi
lea eax, [ebp - 0xe70]
push esi
push esi
push 0x105
push eax
call fcn.00410f98
add esp, 0x40
lea eax, [ebp - 0x1290]
push esi
push eax
lea eax, [ebp - 0xe70]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
call fcn.0040aa64
lea ecx, [ebp - 0x840]
call fcn.00409e5b
mov esi, eax
test esi, esi
jns 0x40c317
cmp dword [ebp + 0x10], 0
jne 0x40c31e
push 0x209
lea eax, [ebp - 0x840]
push eax
push 0xec
push ebx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x30
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x840]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40c31e
call fcn.0040946c
mov esi, eax
cmp esi, 0xbc2
jne 0x40c330
mov dword [ebp - 0x1e10], 1
push dword [ebp - 0x1e04]
mov ecx, dword [0x4136c0]
lea eax, [ebp - 0x1e14]
push eax
lea edx, [ebp - 0x428]
call fcn.004068c4
test eax, eax
je 0x40c011
mov esi, dword [ebp - 0x1e14]
lea eax, [ebp - 0x14a0]
mov ecx, dword [0x4136c0]
lea edx, [ebp - 0x218]
push eax
push esi
call fcn.004079b1
test eax, eax
je 0x40c011
cmp dword [ebp - 0x1e04], 0
je 0x40c3a9
call dword [sym.imp.cmutil.dll_GetOSVersion]
cmp eax, 2
jne 0x40c39c
call dword [sym.imp.cmutil.dll_GetOSMajorVersion]
cmp eax, 6
jae 0x40c3a9
mov ecx, dword [0x4136c0]
mov edx, esi
call fcn.004101ee
mov ecx, dword [ebp - 0x1e04]
lea edx, [ebp - 0xe70]
mov esi, dword [0x4136c4]
neg ecx
sbb ecx, ecx
and ecx, 9
add ecx, 0x10
call fcn.00408137
test eax, eax
js 0x40c3e5
lea eax, [ebp - 0xe70]
mov edx, ebx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00407604
cmp dword [ebp - 0x1e28], 0
je 0x40c40b
push dword [ebp - 0x1e04]
mov ecx, dword [0x4136c4]
lea edx, [ebp - 0x218]
push dword [ebp - 0x1e14]
call fcn.0040774c
cmp dword [ebp + 0x18], 0
je 0x40c41c
lea ecx, [ebp - 0x218]
call fcn.0040b491
mov edx, dword [ebp - 0x1e18]
test edx, edx
je 0x40c4d5
lea ecx, [ebp - 0x15e0]
call fcn.0040fab7
test eax, eax
je 0x40c4d5
push edx
mov edi, 0x80004005
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x100
jg 0x40c016
push 0x42c
call dword [sym.imp.cmutil.dll_CmMalloc]
mov esi, eax
test esi, esi
jne 0x40c46f
mov edi, 0x8007000e
jmp 0x40c016
sub esp, 0xc
mov dword [esi], 0x42c
mov dword [esi + 4], 0x10
push dword [ebp - 0x1e18]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp - 0x1e18]
lea ecx, [esi + 0x20a]
mov edx, 0x101
call fcn.00410ef7
mov edx, dword [ebp - 0x1e14]
lea eax, [ebp - 0x218]
mov ecx, dword [0x4136c0]
push 0
push esi
push eax
call fcn.00409321
push esi
test eax, eax
je 0x40c4cd
call dword [sym.imp.cmutil.dll_CmFree]
jmp 0x40c016
call dword [sym.imp.cmutil.dll_CmFree]
xor edi, edi
cmp dword [ebp - 0x1e04], 0
mov eax, 0x4034fc
jne 0x40c4e8
mov eax, 0x403514
push dword [ebp + 0x10]
mov esi, dword [ebp - 0x1e1c]
lea ecx, [ebp - 0xc60]
push ecx
mov ecx, dword [0x4136c0]
mov edx, esi
push eax
call fcn.00410068
cmp eax, 0xbc2
jne 0x40c517
mov dword [ebp - 0x1e10], 1
push esi
lea edx, [ebp - 0xa50]
lea ecx, [ebp - 0x428]
call fcn.0040b80c
test eax, eax
js 0x40c016
mov ecx, dword [0x4136c0]
test ecx, ecx
je 0x40c569
mov esi, dword [ecx]
xor eax, eax
cmp dword [ebp - 0x1e20], 0x80000002
push 0x402970
push dword [ebp - 0x1e0c]
sete al
push eax
push ecx
mov ecx, dword [esi + 0x2c]
call dword [0x414220]
call dword [esi + 0x2c]
xor esi, esi
jmp 0x40c5ab
lea eax, [ebp - 0x1e08]
xor esi, esi
push eax
push 0xf003f
push esi
push dword [ebp - 0x1e0c]
push dword [ebp - 0x1e20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c5ab
push 0x402970
push dword [ebp - 0x1e08]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x1e08]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00408277
cmp dword [ebp - 0x1e10], 0
je 0x40c618
push 0x209
lea eax, [ebp - 0x840]
push eax
push 0xdc
push ebx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x400
push 0x10034
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x840]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxExW]
cmp eax, 6
jne 0x40c016
mov ecx, dword [0x4136c0]
test ecx, ecx
je 0x40c60e
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0x38]
jmp 0x40c6ca
call fcn.004090a3
jmp 0x40c016
cmp dword [ebp + 0x10], 0
jne 0x40c016
mov ecx, dword [ebp - 0x1e34]
call fcn.0040d89b
lea eax, [ebp - 0xa50]
push eax
lea eax, [ebp - 0x428]
push eax
push 0x402cec
push 0x900
push esi
push esi
lea eax, [ebp - 0x840]
push 0x209
push eax
call fcn.00410f98
add esp, 0x20
test eax, eax
js 0x40c016
mov eax, dword [0x4136c4]
test eax, eax
je 0x40c6d9
lea ecx, [ebp - 0x1e0c]
mov dword [ebp - 0x1e0c], esi
mov esi, dword [eax]
push ecx
push 0x40353c
push eax
mov ecx, dword [esi]
call dword [0x414220]
call dword [esi]
test eax, eax
js 0x40c6d9
push dword [ebp - 0x1e04]
mov eax, dword [ebp - 0x1e0c]
lea ecx, [ebp - 0x218]
push dword [ebp - 0x1e14]
push ecx
mov esi, dword [eax]
lea ecx, [ebp - 0x840]
push ecx
push eax
mov ecx, dword [esi + 0x14]
call dword [0x414220]
call dword [esi + 0x14]
mov eax, dword [ebp - 0x1e0c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x414220]
call esi
jmp 0x40c016
push ecx
push dword [ebp - 0x1e14]
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x840]
call fcn.004082fd
jmp 0x40c016