Function at 0x43d240
Capabilities:
Check if file exists
Delete file
Get file attributes
Query or enumerate registry value
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5f4
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x1a8]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x1ac]
xor esi, esi
push eax
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x1a8]
push 0x5c
push ecx
call fcn.0045a180
add esp, 8
cmp eax, esi
je 0x43d29a
mov byte [eax + 1], 0
jmp 0x43d2b5
mov dx, word [0x472f84]
mov al, byte [0x472f86]
mov word [esp + 0x1a8], dx
mov byte [esp + 0x1aa], al
mov ebx, dword [ebp + 8]
cmp ebx, 2
jl 0x43d2d9
cmp ebx, 4
jle 0x43d2d9
cmp ebx, 0x69
jne 0x43d2d9
mov ecx, 0x10
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsKServer.Exe
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
jmp 0x43d2ea
mov esi, str.SystemCurrentControlSetServicesVxDKaseya
lea edi, [esp + 0x20]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x2c]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, eax
xor eax, eax
test edx, edx
mov ecx, 0x41
lea edi, [esp + 0xa0]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov dword [esp + 0x18], 0x105
jne 0x43d4a8
add ebx, 0xfffffffe
cmp ebx, 0x67
mov dword [esp + 0x14], ebx
ja case.0x43d340.5
movzx eax, byte [ebx + 0x43d774]
jmp dword [eax*4 + 0x43d760]
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x487008]
mov byte [esp + eax + 0x20], cl
inc eax
test cl, cl
jne 0x43d350
push str.KasAgent.log
lea ecx, [esp + 0x1ac]
push ecx
push 0x4697b0
lea edx, [esp + 0x3c4]
push edx
jmp 0x43d429
xor eax, eax
mov cl, byte [eax + 0x486ff8]
mov byte [esp + eax + 0x20], cl
inc eax
test cl, cl
jne 0x43d380
push str.KasFirewall.log
jmp 0x43d414
xor eax, eax
jmp 0x43d3a0
mov cl, byte [eax + 0x486fe8]
mov byte [esp + eax + 0x20], cl
inc eax
test cl, cl
jne 0x43d3a0
push str.KasStats.log
lea edx, [esp + 0x1ac]
push edx
push 0x4697b0
lea eax, [esp + 0x3c4]
push eax
jmp 0x43d429
xor eax, eax
lea ecx, [ecx]
mov cl, byte [eax + 0x48701c]
mov byte [esp + eax + 0x20], cl
inc eax
test cl, cl
jne 0x43d3d0
push str.KServer.log
lea ecx, [esp + 0x1ac]
push ecx
push 0x4697b0
lea edx, [esp + 0x3c4]
push edx
jmp 0x43d429
xor eax, eax
lea ecx, [ecx]
mov cl, byte [eax + 0x486fd8]
mov byte [esp + eax + 0x20], cl
inc eax
test cl, cl
jne 0x43d400
push str.KasError.log
lea eax, [esp + 0x1ac]
push eax
lea ecx, [esp + 0x3c0]
push 0x4697b0
push ecx
call fcn.00458ee7
add esp, 0x10
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xa4]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
push 0
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x43d482
lea eax, [esp + 0xa0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43d470
sub eax, edx
cmp eax, 1
jae 0x43d53f
xor eax, eax
jmp 0x43d490
mov cl, byte [esp + eax + 0x3b8]
mov byte [esp + eax + 0xa0], cl
inc eax
test cl, cl
jne 0x43d490
jmp 0x43d53f
lea eax, [ebx - 2]
cmp eax, 0x67
mov dword [esp + 0x14], eax
ja case.0x43d4bb.5
movzx edx, byte [eax + 0x43d7f0]
jmp dword [edx*4 + 0x43d7dc]
push str.KasAgent.log
lea eax, [esp + 0x1ac]
push eax
push 0x4697b0
lea ecx, [esp + 0xac]
push ecx
jmp 0x43d537
push str.KasFirewall.log
jmp 0x43d522
push str.KasStats.log
lea ecx, [esp + 0x1ac]
push ecx
push 0x4697b0
lea edx, [esp + 0xac]
push edx
jmp 0x43d537
push str.KServer.log
lea eax, [esp + 0x1ac]
push eax
push 0x4697b0
lea ecx, [esp + 0xac]
push ecx
jmp 0x43d537
push str.KasError.log
lea edx, [esp + 0x1ac]
push edx
lea eax, [esp + 0xa8]
push 0x4697b0
push eax
call fcn.00458ee7
add esp, 0x10
lea ecx, [esp + 0xa0]
push 0x47afbc
push ecx
call fcn.00459902
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, eax
add esp, 8
test esi, esi
jne 0x43d5ad
lea edx, [esp + 0xa0]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43d69e
test al, 1
je 0x43d69e
push 0x80
lea eax, [esp + 0xa4]
push eax
call ebx
lea ecx, [esp + 0xa0]
push 0x47afbc
push ecx
call fcn.00459902
mov esi, eax
add esp, 8
test esi, esi
je 0x43d69e
push 2
push 0
push esi
call fcn.0045985d
push esi
call fcn.0045978d
add esp, 0x10
cmp eax, 0x4c4b40
jle 0x43d6ba
cmp dword [ebp + 8], 0x69
jne 0x43d6ba
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0x2b4]
push 0x47afb8
push eax
call fcn.00458ee7
add esp, 0xc
lea ecx, [esp + 0x4c0]
push ecx
lea edx, [esp + 0x2b4]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x43d668
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x2b0]
push eax
call edi
test eax, eax
jne 0x43d668
lea ecx, [esp + 0x2b0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43d757
test al, 1
je 0x43d757
push 0x80
lea edx, [esp + 0x2b4]
push edx
call ebx
lea eax, [esp + 0x2b0]
push eax
call edi
test eax, eax
je 0x43d757
push esi
call fcn.00459521
lea ecx, [esp + 0x2b4]
push ecx
lea edx, [esp + 0xa8]
push edx
call fcn.0045bd38
lea eax, [esp + 0xac]
push 0x47afbc
push eax
call fcn.00459902
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x43d6a7
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0
push esi
call fcn.0045985d
push esi
call fcn.0045978d
add esp, 0x10
test eax, eax
jne 0x43d757
mov eax, dword [esp + 0x14]
cmp eax, 0x67
ja case.0x43d6d2.3
movzx ecx, byte [eax + 0x43d86c]
jmp dword [ecx*4 + 0x43d858]
push str.v1.0
push str._s_Timestamp____________Configuration_Change_n
push esi
call fcn.0045917e
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.v1.0
push str._s_Timestamp______Attacks__Src_IP___Src_Port__Dest_IP____Dest_Port___Protocol_Distinguished_Name_n
push esi
call fcn.0045917e
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.v1.0
push str._s_Timestamp________Receive_____Sent_____Application_n
push esi
call fcn.0045917e
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Timestamp_______________Description_n
push esi
call fcn.0045917e
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.v1.0
push str._s_Timestamp____________System_Status_or_Error_n
push esi
call fcn.0045917e
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret