Function at 0x40dd70
Capabilities:
Delete file
Persist via run registry key
Resolve function by parsing pe exports
Set registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
xor ebx, ebx
cmp eax, ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
je 0x40dd93
push ebx
push 7
push 0x7e8
push eax
call edi
mov ecx, esi
call fcn.0040d1d0
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x40ddac
push ebx
push 8
push 0x7e8
push eax
call edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], 0x2710
call fcn.0040b980
push 0x41fc70
lea ecx, [esp + 0x1c]
call fcn.004048b0
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x24]
push edx
lea ebp, [esi + 0xb8]
push ebp
lea edi, [esi + 0xb4]
push edi
lea eax, [esi + 0xb0]
push eax
lea ecx, [esi + 0xac]
push ecx
lea eax, [esi + 0xa8]
push eax
lea eax, [esi + 0x9c]
push eax
mov eax, dword [esi + 0x8c]
push eax
call fcn.0040f180
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x24
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, esi
call fcn.0040d690
mov ecx, esi
call fcn.0040d630
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x40defe
cmp dword [esi + 0x88], ebx
je 0x40ded2
cmp dword [esp + 0x18], 1
jne 0x40ded2
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40de7b
push eax
call fcn.00413af1
add esp, 4
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], 0x2711
call fcn.0040b980
lea ecx, [esi + 0xa4]
push ecx
lea edx, [esp + 0x24]
push edx
push ebp
push edi
lea eax, [esi + 0xb0]
push eax
lea eax, [esi + 0xac]
push eax
lea eax, [esi + 0xa8]
push eax
lea eax, [esi + 0x9c]
push eax
mov eax, dword [esi + 0x8c]
push eax
call fcn.0040f180
add esp, 0x24
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x40deec
mov ecx, dword [esp + 0x18]
push ecx
push 3
push 0x7e8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x20]
mov dword [esi + 0x74], 1
cmp eax, ebx
jmp 0x40e546
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x40df14
push ebx
push 5
push 0x7e8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x18]
push edx
push 0x2001f
push ebx
push 0x41fc40
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40dfb2
mov ebx, dword [esp + 0x18]
mov eax, dword [0x4259a0]
mov ecx, 0x4259a0
mov dword [esp + 0x14], ebx
call dword [eax + 0xc]
mov ecx, dword [esi + 0xa4]
mov edx, dword [ebp]
push ecx
add eax, 0x10
push edx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x78]
push eax
lea ecx, [esp + 0x24]
push 0x41fc24
push ecx
call fcn.00404580
mov edi, dword [esp + 0x2c]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push 0
push 0x41fb48
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dfb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor ebx, ebx
mov eax, dword [esi + 0x7c]
push 0x41fb64
push eax
mov ecx, esi
call fcn.0040c350
test eax, eax
je 0x40e030
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x40dfdc
push ebx
push 9
push 0x7e8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.0040d850
mov eax, dword [esi + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esi + 0x68]
cmp esi, ebx
je 0x40e003
push ebx
push 0xa
push 0x7e8
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40e012
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40e023
push eax
call fcn.00413af1
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
mov edx, dword [0x4259a0]
mov ecx, 0x4259a0
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40e05a
push eax
call fcn.00413af1
add esp, 4
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], 0x2715
call fcn.0040b980
mov edx, dword [esi + 0x8c]
lea edi, [esi + 0xa4]
push edi
lea ecx, [esp + 0x24]
push ecx
push ebp
lea eax, [esi + 0xb4]
push eax
lea eax, [esi + 0xb0]
push eax
lea eax, [esi + 0xac]
push eax
lea eax, [esi + 0xa8]
push eax
lea eax, [esi + 0x9c]
push eax
push edx
call fcn.0040f180
add esp, 0x24
mov ecx, esi
call fcn.0040b410
push eax
mov eax, dword [edi]
push eax
lea ecx, [esp + 0x18]
push 0x41fc04
push ecx
call fcn.00404580
add esp, 0x10
lea edi, [esi + 0xa0]
push edi
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.0040bd20
mov eax, dword [edi]
push eax
push 0x41fbb0
push 0x41fba4
push esi
call fcn.00404580
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x10
lea edi, [esi + 4]
mov eax, dword [esi]
push ebx
push ebx
push ebx
push eax
mov ecx, edi
call fcn.00404dc0
cmp eax, 1
jne 0x40e164
mov ecx, edi
call fcn.00403640
push eax
lea ecx, [esp + 0x1c]
call fcn.004048b0
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx - 0xc]
test eax, eax
jle 0x40e14a
push 0x3f
push ebx
call fcn.00414acc
add esp, 8
test eax, eax
je 0x40e14a
sub eax, ebx
cmp eax, 0xffffffff
jne 0x40e185
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e164
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0xc8
call ebp
mov eax, dword [esi + 0x70]
test eax, eax
mov eax, dword [esi + 0x74]
jne 0x40e4ab
test eax, eax
jne 0x40e4af
xor ebx, ebx
jmp 0x40e106
mov eax, dword [ebx - 0xc]
test eax, eax
jg 0x40e191
or eax, 0xffffffff
jmp 0x40e1a7
push 0x3f
push ebx
call fcn.00414acc
add esp, 8
test eax, eax
jne 0x40e1a5
or eax, 0xffffffff
jmp 0x40e1a7
sub eax, ebx
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
call fcn.0040baf0
push eax
mov ecx, esi
call fcn.00404470
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [ebx - 0xc]
test edi, edi
jg 0x40e1e8
or ebp, 0xffffffff
jmp 0x40e200
push 0x3f
push ebx
call fcn.00414acc
add esp, 8
test eax, eax
jne 0x40e1fc
or ebp, 0xffffffff
jmp 0x40e200
sub eax, ebx
mov ebp, eax
push 0x41fb9c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, ebp
sub edi, eax
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
call fcn.0040ba90
push eax
lea ecx, [esi + 0xa0]
call fcn.00404470
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e248
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x41fb64
push 0x41f434
lea eax, [esi + 0x84]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040c010
add esp, 0xc
push eax
lea edx, [esp + 0x24]
push edx
call fcn.0040c010
mov eax, dword [eax]
add esp, 0xc
push eax
mov ecx, esi
call fcn.0040d100
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e29c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e2ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e2d4
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi]
push 0
push 0
push eax
push ecx
lea ecx, [esi + 4]
call fcn.00404dc0
test eax, eax
jne 0x40e30f
mov eax, dword [esi + 0x7c]
push 0x41fb64
push eax
mov ecx, esi
call fcn.0040c350
test eax, eax
jne 0x40e3cf
push 0xc8
call edi
mov eax, dword [esi + 0x70]
test eax, eax
jne 0x40e324
mov eax, dword [esi + 0x74]
test eax, eax
je 0x40e2e0
mov eax, dword [esi + 0x74]
test eax, eax
je 0x40e38f
lea ecx, [esp + 0x20]
call fcn.0040b5f0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], 0x2714
call fcn.0040b980
mov edx, dword [esi + 0x8c]
lea eax, [esi + 0xa4]
push eax
lea ecx, [esp + 0x24]
push ecx
lea eax, [esi + 0xb8]
push eax
lea eax, [esi + 0xb4]
push eax
lea eax, [esi + 0xb0]
push eax
lea eax, [esi + 0xac]
push eax
lea eax, [esi + 0xa8]
push eax
lea eax, [esi + 0x9c]
push eax
push edx
call fcn.0040f180
add esp, 0x24
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e3ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40e3bc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.0040b5f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
lea ecx, [esp + 0x20]
call fcn.0040b5f0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], 0x2712
call fcn.0040b980
mov edx, dword [esi + 0x8c]
lea eax, [esi + 0xa4]
push eax
lea ecx, [esp + 0x24]
push ecx
lea eax, [esi + 0xb8]
push eax
lea eax, [esi + 0xb4]
push eax
lea eax, [esi + 0xb0]
push eax
lea eax, [esi + 0xac]
push eax
lea eax, [esi + 0xa8]
push eax
lea eax, [esi + 0x9c]
push eax
push edx
call fcn.0040f180
mov eax, dword [esi + 0x68]
add esp, 0x24
test eax, eax
je 0x40e44a
push 0
push 9
push 0x7e8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.0040d850
mov esi, dword [esi + 0x68]
test esi, esi
je 0x40e468
push 0
push 0xa
push 0x7e8
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e486
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40e495
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.0040b5f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
test eax, eax
je 0x40e513
lea ecx, [esp + 0x20]
call fcn.0040b5f0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], 0x2714
call fcn.0040b980
mov edx, dword [esi + 0x8c]
lea eax, [esi + 0xa4]
push eax
lea ecx, [esp + 0x24]
push ecx
lea eax, [esi + 0xb8]
push eax
lea eax, [esi + 0xb4]
push eax
lea eax, [esi + 0xb0]
push eax
lea eax, [esi + 0xac]
push eax
lea eax, [esi + 0xa8]
push eax
lea eax, [esi + 0x9c]
push eax
push edx
call fcn.0040f180
add esp, 0x24
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e531
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40e540
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40e551
push eax
call fcn.00413af1
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret