Function at 0x413e70
Capabilities:
Delete file
Delete registry value
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f430
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x43c3f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x43d174]
mov edx, dword [eax + 0xc]
xor esi, esi
mov ecx, 0x43d174
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
call edx
add eax, 0x10
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], esi
mov eax, dword [0x43d174]
mov edx, dword [eax + 0xc]
mov ecx, 0x43d174
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
mov eax, dword [0x43d174]
mov edx, dword [eax + 0xc]
mov ecx, 0x43d174
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], esi
cmp eax, esi
jbe 0x414587
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
jae 0x414654
mov eax, dword [ebp + 8]
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [eax]
lea eax, [ecx + edx*8]
push eax
lea edx, [ebp - 0x70]
push edx
call fcn.0040e6b0
mov eax, dword [ebp - 0x6c]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0xc], ecx
je 0x4140be
cmp eax, ecx
jbe 0x414570
nop
mov ecx, dword [ebp - 0x18]
cmp ecx, eax
jae 0x414654
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + ecx*4]
lea edx, [edi - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 0x20], edx
cmp esi, edx
je 0x414012
cmp dword [edx + 0xc], 0
lea edi, [edx + 0xc]
jl 0x414002
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x414002
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x413fa6
cmp eax, dword [esi]
jne 0x413fa6
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x413fe1
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x41465e
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0041a904
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x413ffa
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [ebx + 0x10]
mov dword [ebp - 0x14], edi
jmp 0x414012
mov ebx, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040d810
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4140a7
push 1
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [edi - 0x10]
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x20], esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x41405f
cmp eax, dword [esi]
jne 0x41405f
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41409a
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x41465e
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0041a904
add esp, 0x10
mov ecx, dword [ebp - 0x20]
add ebx, 0x10
mov dword [ecx], ebx
call fcn.00413b80
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x6c]
inc ecx
mov dword [ebp - 0x18], ecx
cmp ecx, eax
jb 0x413f50
jmp 0x414570
cmp eax, ecx
jbe 0x414570
jmp 0x4140cb
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
cmp ecx, eax
jae 0x414654
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + ecx*4]
lea edx, [edi - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 0x20], edx
cmp esi, edx
je 0x414197
cmp dword [edx + 0xc], 0
lea edi, [edx + 0xc]
jl 0x414181
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x414181
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x414125
cmp eax, dword [esi]
jne 0x414125
mov ebx, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x414160
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x41465e
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0041a904
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x414179
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [ebx + 0x10]
mov dword [ebp - 0x14], edi
jmp 0x414191
mov ebx, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040d810
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x5c]
jae 0x414654
mov edx, dword [ebp - 0x60]
fld qword [edx + ecx*8]
lea eax, [edx + ecx*8]
call fcn.0042ab70
cmp dword [edi - 0xc], 0
mov dword [ebp - 0x20], eax
jl 0x41445c
push str.HKEY_USERS
push edi
call fcn.0041ac0b
add esp, 8
test eax, eax
je 0x414306
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x414306
mov eax, dword [edi - 0xc]
lea ecx, [ebp - 0x14]
push ecx
add eax, 0xfffffff5
lea ecx, [ebp - 0x28]
call fcn.00414f20
mov byte [ebp - 4], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x414244
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x414234
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x414234
call fcn.0040d9b0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41422c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x10], ebx
jmp 0x414244
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
call fcn.0040d810
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414267
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx - 0xc]
sub eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x2c]
dec eax
lea edx, [ebp - 0x10]
call fcn.00414fa0
mov byte [ebp - 4], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x4142cd
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4142bd
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4142bd
call fcn.0040d9b0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4142b5
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x10], ebx
jmp 0x4142cd
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
call fcn.0040d810
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4142f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x1c]
push ecx
push 0xf003f
push 0
push ebx
push reloc.WS2_32.dll_closesocket
jmp 0x414456
cmp dword [edi - 0xc], 0
jl 0x41445c
push str.HKEY_LOCAL_MACHINE
push edi
call fcn.0041ac0b
add esp, 8
test eax, eax
je 0x41445c
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x41445c
mov eax, dword [edi - 0xc]
lea edx, [ebp - 0x14]
add eax, 0xffffffed
push edx
lea ecx, [ebp - 0x30]
call fcn.00414f20
mov byte [ebp - 4], 5
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x414399
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x414389
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x414389
call fcn.0040d9b0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x414381
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x10], ebx
jmp 0x414399
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
call fcn.0040d810
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4143bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx - 0xc]
sub eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x34]
dec eax
lea edx, [ebp - 0x10]
call fcn.00414fa0
mov byte [ebp - 4], 6
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x414422
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x414412
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x414412
call fcn.0040d9b0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41440a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x10], ebx
jmp 0x414422
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
call fcn.0040d810
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414445
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x1c]
push ecx
push 0xf003f
push 0
push ebx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x38]
call fcn.00414f20
mov byte [ebp - 4], 7
mov eax, dword [eax]
mov edi, dword [ebp - 0x10]
lea esi, [eax - 0x10]
add edi, 0xfffffff0
cmp esi, edi
je 0x414520
cmp dword [edi + 0xc], 0
jl 0x414513
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x414513
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4144b7
cmp eax, dword [esi]
jne 0x4144b7
mov ebx, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4144f2
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x41465e
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0041a904
add esp, 0x10
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41450b
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [ebp - 0x10], ebx
jmp 0x414520
mov ebx, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0040d810
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414543
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x18], ecx
cmp ecx, eax
jb 0x4140c8
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, eax
jb 0x413f10
xor esi, esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4145aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4145ca
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4145f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x60]
cmp eax, esi
je 0x414600
push eax
call fcn.0041a181
add esp, 4
mov edi, dword [ebp - 0x70]
cmp edi, esi
je 0x414640
mov eax, dword [ebp - 0x6c]
mov ebx, eax
cmp eax, esi
jbe 0x414637
mov eax, dword [edi + esi*4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41462f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
cmp esi, ebx
jb 0x414610
mov edi, dword [ebp - 0x70]
push edi
call fcn.0041a181
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.0040cd60
call fcn.0040d800
int3