Function at 0x10005af3
Capabilities:
Create thread
Get file size
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1005bf2a
mov eax, dword fs:[0]
push eax
mov eax, 0x1748
call fcn.1004a920
mov eax, dword [0x1007100c]
xor eax, esp
mov dword [esp + 0x1744], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007100c]
xor eax, esp
push eax
lea eax, [esp + 0x175c]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x1c], ebp
and dword [esp + 0x1764], 0
lea ecx, [ebp + 0x30]
call fcn.10008046
lea ecx, [ebp + 0x48]
call fcn.1000822e
lea ecx, [ebp + 0x54]
call fcn.1000822e
lea ecx, [ebp + 0x60]
call fcn.1000822e
lea ebx, [ebp + 0x407c]
mov byte [esp + 0x1764], 4
mov ecx, ebx
call fcn.10008357
lea edi, [ebp + 0x4090]
mov byte [esp + 0x1764], 5
mov ecx, edi
call fcn.10008357
lea ecx, [ebp + 0x40a8]
call fcn.10008046
lea ecx, [ebp + 0x40d0]
mov byte [esp + 0x1764], 7
call fcn.1000846a
lea ecx, [ebp + 0x40e0]
call fcn.100067da
lea ecx, [ebp + 0x4124]
call fcn.1000822e
lea ecx, [ebp + 0x4130]
call fcn.1000822e
lea ecx, [ebp + 0x413c]
call fcn.1000822e
lea ecx, [ebp + 0x4180]
call fcn.10008046
lea esi, [ebp + 0x4198]
mov ecx, esi
call fcn.10007d36
lea ecx, [ebp + 0x419c]
call fcn.10008046
mov byte [esp + 0x1764], 0xf
mov ecx, esi
and dword [ebp + 0x4178], 0
and dword [ebp + 0x417c], 0
push 0x10069580
call fcn.1000c6e7
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
or dword [ebp + 0x4160], 0xffffffff
mov ecx, ebx
mov dword [ebp + 0x4170], eax
xor eax, eax
or dword [ebp + 0x4164], 0xffffffff
mov dword [0x10074d7c], eax
mov dword [ebp + 0x416c], eax
mov byte [ebp], al
mov byte [ebp + 0x14], 1
mov byte [0x10074d7b], al
mov dword [ebp + 0x28], 0x1000000
mov word [ebp + 0x24], 1
mov dword [ebp + 0x40d8], eax
mov dword [ebp + 0x40dc], eax
mov word [ebp + 0x415c], ax
mov byte [ebp + 0x415e], al
mov byte [ebp + 0x27], al
mov dword [0x100750ac], eax
mov byte [ebp + 0x2c], al
mov dword [ebp + 0x40a4], eax
call fcn.10008465
mov ecx, edi
call fcn.10008465
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, 0x4000000
push ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call esi
push ebx
push ebx
push 1
push ebx
mov dword [ebp + 8], eax
call esi
push ebx
push ebx
push ebx
push ebx
mov dword [ebp + 0xc], eax
call esi
push ebx
push ebx
push ebx
push ebx
mov dword [ebp + 0x10], eax
call esi
mov esi, str.GlobalPCAScannerMutex
mov dword [ebp + 4], eax
push esi
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [0x100930b0], eax
cmp dword [0x100930b0], ebx
je 0x10005cfa
mov byte [0x10074d7a], bl
jmp 0x10005d70
mov byte [esp + 0x318], bl
lea edi, [esp + 0x319]
xor eax, eax
lea ecx, [esp + 0x318]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.1000d20e
push ecx
push ecx
lea ecx, [esp + 0x320]
call fcn.1000d412
pop ecx
pop ecx
lea eax, [esp + 0x318]
mov dword [esp + 0x2f4], ebx
push esi
mov dword [esp + 0x2f8], eax
lea eax, [esp + 0x2f4]
push ebx
push eax
mov dword [esp + 0x304], ebx
mov dword [esp + 0x2fc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x100930b0], eax
mov byte [0x10074d7a], 1
xor eax, eax
mov esi, 0x206
push esi
mov word [esp + 0x554], ax
lea eax, [esp + 0x556]
push ebx
push eax
call fcn.100119c0
add esp, 0xc
lea eax, [esp + 0x550]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x550]
push eax
call fcn.10010b57
pop ecx
push 0x5c
pop edx
jmp 0x10005dc2
xor ecx, ecx
mov word [esp + eax*2 + 0x550], cx
dec eax
cmp word [esp + eax*2 + 0x550], dx
jne 0x10005db8
lea eax, [esp + 0x550]
push eax
lea ecx, [ebp + 0x30]
call fcn.1000812e
xor eax, eax
push esi
mov word [esp + 0x34c], ax
lea eax, [esp + 0x34e]
push ebx
push eax
call fcn.100119c0
add esp, 0xc
cmp byte [esp + 0x1784], bl
push ebx
push 0x1c
pop eax
push 0x23
pop ecx
cmovne eax, ecx
push eax
lea eax, [esp + 0x350]
push eax
push ebx
call dword [0x100930d8]
lea ecx, [esp + 0x18]
call fcn.1000bbf4
mov ecx, eax
mov byte [esp + 0x1764], 0x10
call fcn.10001593
push eax
lea eax, [esp + 0x34c]
push eax
call dword [0x100930d4]
lea ecx, [esp + 0x18]
mov byte [esp + 0x1764], 0xf
call fcn.1000c76b
lea eax, [esp + 0x348]
push eax
call dword [0x10093110]
test eax, eax
jne 0x10005e70
lea ecx, [esp + 0x348]
call fcn.10005718
lea edx, [esp + 0x348]
call fcn.1000a1cf
push 0x10068e44
lea eax, [esp + 0x34c]
push eax
call dword [0x100930d4]
lea eax, [esp + 0x348]
push eax
call dword [0x10093110]
test eax, eax
jne 0x10005ead
lea ecx, [esp + 0x348]
call fcn.10005718
push 0x10074d80
lea ecx, [esp + 0x144]
call fcn.1000805e
push str.RPCA.conf
mov edx, eax
mov byte [esp + 0x1768], 0x11
lea ecx, [esp + 0x294]
call fcn.10009ffd
push 0x80
push 2
push ecx
push 1
mov ecx, eax
mov byte [esp + 0x1778], 0x12
call fcn.1000819f
mov edx, 0x40000000
mov ecx, eax
call fcn.1000ce9a
add esp, 0x14
lea ecx, [esp + 0x290]
mov esi, eax
call fcn.1000810c
lea ecx, [esp + 0x140]
mov byte [esp + 0x1764], 0xf
call fcn.1000810c
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp esi, 0xffffffff
je 0x1000611d
xor eax, eax
push eax
push eax
push eax
push esi
call edi
push esi
call ebx
push 0x7ff
lea eax, [esp + 0x75d]
mov byte [esp + 0x75c], 0
push 0
push eax
call fcn.100119c0
add esp, 0xc
lea ecx, [esp + 0x758]
call fcn.1000a1e3
push str.RPCA.pid
sub esp, 0x18
mov ecx, esp
push 0x10074d80
call fcn.1000805e
lea ecx, [esp + 0x27c]
call fcn.10002114
add esp, 0x18
mov edx, eax
mov byte [esp + 0x1768], 0x13
lea ecx, [esp + 0x1d4]
call fcn.1000a1f7
pop ecx
mov ecx, eax
call fcn.10008018
mov edx, eax
lea ecx, [esp + 0x758]
call fcn.1000a222
lea ecx, [esp + 0x1d0]
call fcn.10007fe1
lea ecx, [esp + 0x260]
mov byte [esp + 0x1764], 0xf
call fcn.10007fe1
mov edx, str.__r_nLogFile__
lea ecx, [esp + 0x758]
call fcn.1000a222
push str.RPCA.log
sub esp, 0x18
mov ecx, esp
push 0x10074d80
call fcn.1000805e
lea ecx, [esp + 0x2dc]
call fcn.10002114
add esp, 0x18
mov edx, eax
mov byte [esp + 0x1768], 0x14
lea ecx, [esp + 0x204]
call fcn.1000a1f7
pop ecx
mov ecx, eax
call fcn.10008018
mov edx, eax
lea ecx, [esp + 0x758]
call fcn.1000a222
lea ecx, [esp + 0x200]
call fcn.10007fe1
lea ecx, [esp + 0x2c0]
mov byte [esp + 0x1764], 0xf
call fcn.10007fe1
mov edx, str.__r_nDatabaseDirectory__
lea ecx, [esp + 0x758]
call fcn.1000a222
push str.database
sub esp, 0x18
mov ecx, esp
push 0x10074d80
call fcn.1000805e
lea ecx, [esp + 0x174]
call fcn.10002114
add esp, 0x18
mov byte [esp + 0x1768], 0x15
mov edx, eax
lea ecx, [esp + 0x234]
call fcn.1000a1f7
pop ecx
mov ecx, eax
call fcn.10008018
mov edx, eax
lea ecx, [esp + 0x758]
call fcn.1000a222
lea ecx, [esp + 0x230]
call fcn.10007fe1
lea ecx, [esp + 0x158]
mov byte [esp + 0x1764], 0xf
call fcn.10007fe1
mov edx, str.__r_nTCPSocket_3310_r_nTCPAddr_127.0.0.1_r_nSelfCheck_0_r_nDisableCertCheck_yes_r_nForceToDisk_no_r_nScanELF_no_r_nPhishingSignatures_no_r_nPhishingScanURLs_no_r_n
lea ecx, [esp + 0x758]
call fcn.1000a222
push 0
lea eax, [esp + 0x318]
push eax
lea eax, [esp + 0x760]
push eax
call fcn.100118b0
pop ecx
push eax
lea eax, [esp + 0x764]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, esi
call fcn.1000cdb8
push 0x10074d80
lea ecx, [esp + 0x1bc]
call fcn.1000805e
push str.PCAU.conf
mov edx, eax
mov byte [esp + 0x1768], 0x16
lea ecx, [esp + 0x174]
call fcn.10009ffd
push 0x80
push 2
push ecx
push 1
mov ecx, eax
mov byte [esp + 0x1778], 0x17
call fcn.1000819f
mov edx, 0x40000000
mov ecx, eax
call fcn.1000ce9a
add esp, 0x14
lea ecx, [esp + 0x170]
mov esi, eax
call fcn.1000810c
lea ecx, [esp + 0x1b8]
mov byte [esp + 0x1764], 0xf
call fcn.1000810c
cmp esi, 0xffffffff
je 0x100062b5
xor eax, eax
push eax
push eax
push eax
push esi
call edi
push esi
call ebx
lea ecx, [esp + 0x176c]
call fcn.100081a8
test al, al
je 0x100061c8
push str.database.clamav.net
lea ecx, [esp + 0x1770]
call fcn.1000812e
lea eax, [esp + 0x176c]
push eax
lea ecx, [esp + 0x21c]
call fcn.1000a232
mov byte [esp + 0x1768], 0x18
lea ecx, [esp + 0x1ec]
mov edx, eax
mov dword [esp], str._r_nScriptedUpdates_yes
call fcn.10009ffd
pop ecx
push eax
lea ecx, [esp + 0x1770]
call fcn.100080ae
lea ecx, [esp + 0x1e8]
call fcn.1000810c
lea ecx, [esp + 0x218]
mov byte [esp + 0x1764], 0xf
call fcn.1000810c
xor ebx, ebx
lea eax, [esp + 0xf59]
push 0x7ff
push ebx
push eax
mov byte [esp + 0xf64], bl
call fcn.100119c0
sub esp, 0xc
lea eax, [esp + 0x1784]
mov ecx, esp
push eax
call fcn.1000801d
lea ecx, [esp + 0x260]
call fcn.10002114
add esp, 0x18
mov ecx, eax
call fcn.10008018
mov edx, eax
lea ecx, [esp + 0xf58]
call fcn.1000a222
lea ecx, [esp + 0x248]
call fcn.10007fe1
push ebx
lea eax, [esp + 0x330]
push eax
lea eax, [esp + 0xf60]
push eax
call fcn.100118b0
pop ecx
push eax
lea eax, [esp + 0xf64]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, esi
call fcn.1000cdb8
jmp 0x100062b7
xor ebx, ebx
push 0x100683cc
push ebx
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x1c], ebx
call fcn.10013593
xor eax, eax
mov dword [esp + 0x304], ebx
mov word [esp + 0x30c], ax
lea edi, [esp + 0x30e]
stosd dword es:[edi], eax
pop ecx
pop ecx
lea ecx, [esp + 0x304]
mov dword [esp + 0x300], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.1000d2a8
lea edx, [esp + 0x2fc]
lea ecx, [esp + 0x304]
call fcn.1000d115
mov ecx, dword [esp + 0x300]
xor eax, eax
or eax, dword [esp + 0x2fc]
and ecx, 0x7fffffff
or ecx, ebx
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x74], ecx
lea ecx, [esp + 0x110]
push 0x10068fe8
call fcn.1000805e
lea eax, [esp + 0x110]
mov byte [esp + 0x1764], 0x19
lea ebx, [ebp + 0x48]
push eax
mov ecx, ebx
call fcn.1000823b
lea ecx, [esp + 0x110]
mov byte [esp + 0x1764], 0xf
call fcn.1000810c
push 0x10068ff0
lea ecx, [esp + 0x84]
call fcn.1000805e
lea eax, [esp + 0x80]
mov byte [esp + 0x1764], 0x1a
push eax
mov ecx, ebx
call fcn.1000823b
lea ecx, [esp + 0x80]
mov byte [esp + 0x1764], 0xf
call fcn.1000810c
push 0x10068ff8
lea ecx, [esp + 0xe4]
call fcn.1000805e
lea eax, [esp + 0xe0]
mov byte [esp + 0x1764], 0x1b
push eax
mov ecx, ebx
call fcn.1000823b
lea ecx, [esp + 0xe0]
mov byte [esp + 0x1764], 0xf
call fcn.1000810c
push 0x10069000
lea ecx, [esp + 0xb4]
call fcn.1000805e
lea eax, [esp + 0xb0]
mov byte [esp + 0x1764], 0x1c
push eax
mov ecx, ebx
call fcn.1000823b
lea ecx, [esp + 0xb0]
mov byte [esp + 0x1764], 0xf
call fcn.1000810c
push 0x10069008
lea ecx, [esp + 0x3c]
call fcn.1000805e
lea eax, [esp + 0x38]
mov byte [esp + 0x1764], 0x1d
push eax
mov ecx, ebx
call fcn.1000823b
lea ecx, [esp + 0x38]
mov byte [esp + 0x1764], 0xf
call fcn.1000810c
push 0x10069010
lea ecx, [esp + 0x6c]
call fcn.1000805e
lea eax, [esp + 0x68]
mov byte [esp + 0x1764], 0x1e
push eax
mov ecx, ebx
call fcn.1000823b
lea ecx, [esp + 0x68]
mov byte [esp + 0x1764], 0xf
call fcn.1000810c
push 0x10069018
lea ecx, [esp + 0x9c]
call fcn.1000805e
lea eax, [esp + 0x98]
mov byte [esp + 0x1764], 0x1f
push eax
mov ecx, ebx
call fcn.1000823b
lea ecx, [esp + 0x98]
mov byte [esp + 0x1764], 0xf
call fcn.1000810c
push 0x10069020
lea ecx, [esp + 0xcc]
call fcn.1000805e
lea eax, [esp + 0xc8]
mov byte [esp + 0x1764], 0x20
push eax
mov ecx, ebx
call fcn.1000823b
lea ecx, [esp + 0xc8]
mov byte [esp + 0x1764], 0xf
call fcn.1000810c
push 0x10069028
lea ecx, [esp + 0xfc]
call fcn.1000805e
lea eax, [esp + 0xf8]
mov byte [esp + 0x1764], 0x21
push eax
mov ecx, ebx
call fcn.1000823b
lea ecx, [esp + 0xf8]
mov byte [esp + 0x1764], 0xf
call fcn.1000810c
push 0x10069030
lea ecx, [esp + 0x12c]
call fcn.1000805e
lea eax, [esp + 0x128]
mov byte [esp + 0x1764], 0x22
push eax
mov ecx, ebx
call fcn.1000823b
lea ecx, [esp + 0x128]
mov byte [esp + 0x1764], 0xf
call fcn.1000810c
push 0x10069038
lea ecx, [esp + 0x54]
call fcn.1000805e
lea eax, [esp + 0x50]
mov byte [esp + 0x1764], 0x23
push eax
mov ecx, ebx
call fcn.1000823b
lea ecx, [esp + 0x50]
mov byte [esp + 0x1764], 0xf
call fcn.1000810c
push 0x10069040
lea ecx, [esp + 0x24]
call fcn.1000805e
lea eax, [esp + 0x20]
mov byte [esp + 0x1764], 0x24
push eax
mov ecx, ebx
call fcn.1000823b
lea ecx, [esp + 0x20]
mov byte [esp + 0x1764], 0xf
call fcn.1000810c
push 0x10074d80
lea ecx, [esp + 0x27c]
call fcn.1000805e
push str.databasemain.cvd
mov edx, eax
mov byte [esp + 0x1768], 0x25
lea ecx, [esp + 0x334]
call fcn.10009ffd
pop ecx
lea ecx, [esp + 0x278]
mov byte [esp + 0x1764], 0x27
call fcn.1000810c
lea ecx, [esp + 0x330]
call fcn.1000819f
push eax
call dword [0x10093110]
test eax, eax
je 0x10006679
push ecx
push 0x80
push 3
push ecx
push 1
lea ecx, [esp + 0x344]
call fcn.1000819f
mov edx, 0x80000000
mov ecx, eax
call fcn.1000ce9a
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x10006679
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x10006670
mov byte [ebp + 0x2b], bl
mov ecx, esi
call fcn.1000cdb8
jmp 0x1000667e
xor ebx, ebx
mov byte [ebp + 0x2b], bl
cmp byte [ebp + 0x2b], 0
je 0x1000668b
mov ecx, ebp
call fcn.10006a63
push 0x10074d80
lea ecx, [esp + 0x2dc]
call fcn.1000805e
push str.RPCA.tm
mov edx, eax
mov byte [esp + 0x1768], 0x28
lea ecx, [esp + 0x2ac]
call fcn.10009ffd
pop ecx
push eax
lea ecx, [ebp + 0x4180]
call fcn.100080ae
lea ecx, [esp + 0x2a8]
call fcn.1000810c
lea ecx, [esp + 0x2d8]
mov byte [esp + 0x1764], 0x27
call fcn.1000810c
push 0x10074d80
lea ecx, [esp + 0x18c]
call fcn.1000805e
push str.RPCACheck.tm
mov edx, eax
mov byte [esp + 0x1768], 0x29
lea ecx, [esp + 0x1a4]
call fcn.10009ffd
pop ecx
push eax
lea ecx, [ebp + 0x419c]
call fcn.100080ae
lea ecx, [esp + 0x1a0]
call fcn.1000810c
lea ecx, [esp + 0x188]
mov byte [esp + 0x1764], 0x27
call fcn.1000810c
call fcn.100058ed
test eax, eax
setg al
cmp dword [0x100930bc], ebx
jne 0x1000676a
test al, al
jne 0x1000676a
push ebx
push ebx
push ebp
push 0x1000510f
push ebx
push ebx
call fcn.1001329f
add esp, 0x18
mov dword [0x100930bc], eax
cmp byte [ebp + 0x2b], 0
jne 0x10006791
cmp dword [0x100930b4], ebx
jne 0x10006791
push 0x7d0
mov byte [0x10074d7a], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebp
call fcn.100078d7
lea ecx, [esp + 0x330]
call fcn.1000810c
lea ecx, [esp + 0x176c]
call fcn.1000810c
mov eax, ebp
mov ecx, dword [esp + 0x175c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1744]
xor ecx, esp
call fcn.100105a7
add esp, 0x1754
ret 0x1c