joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408710
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48d5b8]
jne 0x40871a
repz ret
jmp fcn.0040cf1b

Function at 0x40cc3e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004095f1
and dword [ebp - 4], 0
cmp dword [0x493670], 0
mov ebx, eax
jne 0x40ccef
push 0x401b68
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40cda0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b5c
push edi
call esi
test eax, eax
je 0x40cda0
push eax
call fcn.0040957f
mov dword [esp], 0x401b4c
push edi
mov dword [0x493670], eax
call esi
push eax
call fcn.0040957f
mov dword [esp], 0x401b38
push edi
mov dword [0x493674], eax
call esi
push eax
call fcn.0040957f
mov dword [esp], 0x401b1c
push edi
mov dword [0x493678], eax
call esi
push eax
call fcn.0040957f
pop ecx
mov dword [0x493680], eax
test eax, eax
je 0x40ccef
push 0x401b04
push edi
call esi
push eax
call fcn.0040957f
pop ecx
mov dword [0x49367c], eax
mov eax, dword [0x49367c]
cmp eax, ebx
je 0x40cd47
cmp dword [0x493680], ebx
je 0x40cd47
push eax
call fcn.004095fa
push dword [0x493680]
mov esi, eax
call fcn.004095fa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40cd47
test edi, edi
je 0x40cd47
call esi
test eax, eax
je 0x40cd3e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40cd3e
test byte [ebp - 0xc], 1
jne 0x40cd47
or dword [ebp + 0x10], 0x200000
jmp 0x40cd80
mov eax, dword [0x493674]
cmp eax, ebx
je 0x40cd80
push eax
call fcn.004095fa
pop ecx
test eax, eax
je 0x40cd80
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40cd80
mov eax, dword [0x493678]
cmp eax, ebx
je 0x40cd80
push eax
call fcn.004095fa
pop ecx
test eax, eax
je 0x40cd80
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x493670]
call fcn.004095fa
pop ecx
test eax, eax
je 0x40cda0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cda2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401170
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
push edi
cmp dword [0x448710], esi
jne 0x4011b0
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4011a6
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x44870c], eax
mov dword [0x448710], 1
mov eax, dword [0x44870c]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4011c9
push ebp
push eax
call edi
mov esi, eax
test esi, esi
jne 0x401204
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x4011fa
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4011e8
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push ecx
call edx
jmp 0x4011f0
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push eax
call ecx
test eax, eax
je 0x401204
mov edx, dword [esp + 0x10]
mov dword [edx], eax
push ebp
push eax
call edi
pop edi
pop esi
pop ebp
ret 8
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x401e90
Capabilities:
Check mutex on windows
Enumerate gui resources

Disassembly:
sub esp, 0x124
mov eax, dword [0x446050]
xor eax, esp
mov dword [esp + 0x120], eax
push 1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push 0x100
lea eax, [esp + 0x24]
lea edx, [esp + 0x10]
push 0
push eax
mov dword [esp + 0xc], 0xc
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
call fcn.004249d0
push 0x436b2c
push str.Globalinstance_limit__s
lea ecx, [esp + 0x34]
push 0x100
push ecx
call fcn.0041fe1a
add esp, 0x1c
lea edx, [esp + 0x20]
push edx
push 0
lea eax, [esp + 8]
push eax
mov byte [esp + 0x12b], 0
mov dword [esi + 0xc], 0x436b2c
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete cl
mov byte [esi], cl
cmp eax, 5
je 0x401f4e
cmp eax, 0xb7
jne 0x401f8c
push esi
push 0x401fd0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esi + 8]
test eax, eax
je 0x401f8c
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x401f82
mov eax, dword [esi + 8]
push 9
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [esp + 0x120]
xor ecx, esp
mov eax, esi
call fcn.0041f826
add esp, 0x124
ret
Function at 0x402160
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x432660
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x446050]
xor eax, esp
mov dword [esp + 0x154], eax
push ebx
push esi
mov eax, dword [0x446050]
xor eax, esp
push eax
lea eax, [esp + 0x164]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
push 1
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push closesocket
mov byte [esp + 0x23], bl
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40226d
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push str.EnableLUA
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 4
call esi
test eax, eax
jne 0x402262
cmp dword [esp + 0x10], ebx
setne al
mov byte [esp + 0xf], al
cmp al, bl
je 0x402262
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push str.PromptOnSecureDesktop
push eax
mov dword [esp + 0x2c], 4
call esi
cmp eax, 2
je 0x40222f
cmp eax, ebx
jne 0x402262
cmp dword [esp + 0x10], ebx
jne 0x402262
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push str.ConsentPromptBehaviorAdmin
push eax
mov dword [esp + 0x2c], 4
call esi
cmp eax, 2
je 0x40225e
cmp eax, ebx
jne 0x402262
cmp dword [esp + 0x10], ebx
jne 0x402262
mov byte [esp + 0xf], bl
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x44a750], ebx
jne 0x4022db
push 0xf8
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x58]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x402290
mov ecx, dword [str._notepad.exe]
mov edx, dword [0x436584]
mov dword [eax], ecx
mov ecx, dword [0x436588]
mov dword [eax + 4], edx
mov dl, byte [0x43658c]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 0x58]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4022c2
sub eax, edx
push eax
lea eax, [esp + 0x5c]
push eax
mov ecx, 0x44a73c
call fcn.00409e10
push 0x38
lea ecx, [esp + 0x24]
push ebx
push ecx
call fcn.004249d0
add esp, 0xc
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x20], 0x108000
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [0x44a754], 0x10
mov dword [esp + 0x24], eax
jb 0x40231a
mov edx, dword [0x44a740]
mov dword [esp + 0x2c], edx
jmp 0x402322
mov dword [esp + 0x2c], 0x44a740
mov dword [esp + 0x30], 0x448d68
mov dword [esp + 0x28], str.runas
cmp byte [esp + 0xf], bl
jne 0x402340
mov dword [esp + 0x28], str.open
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x3c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40235f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402361
xor eax, eax
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.0041f826
add esp, 0x164
ret
Function at 0x4025f0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0xa0
mov eax, dword [0x446050]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push ebp
push edi
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x18], 6
lea edx, [esp + 0x10]
setae al
xor ecx, ecx
push edx
test al, al
push 1
setne cl
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
lea ebp, [esi + 0xc]
lea ebx, [esi + 0x10]
lea edi, [esi + 4]
push closesocket
mov dword [ebp], 0
mov dword [ebx], 3
mov byte [esi], al
mov byte [esi + 1], al
mov dword [edi], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 8], eax
test eax, eax
jne 0x402715
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0
push 0
push str.EnableLUA
push ecx
mov dword [esp + 0x24], 4
call edi
mov dword [esi + 8], eax
test eax, eax
je 0x4026a9
cmp eax, 5
je 0x4026a3
mov byte [esi], 0
mov byte [esi + 1], 0
jmp 0x40270a
mov byte [esi + 1], 1
jmp 0x40270a
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push ebp
push 0
push 0
push str.ConsentPromptBehaviorAdmin
push eax
mov byte [esi], 1
mov byte [esi + 1], 1
mov dword [esp + 0x24], 4
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push ebx
push 0
push 0
push str.ConsentPromptBehaviorUser
mov ebp, 4
push edx
mov dword [esp + 0x24], ebp
call edi
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esi + 0x14]
push ecx
push 0
push 0
push str.PromptOnSecureDesktop
push edx
mov dword [esp + 0x24], ebp
call edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, esi
call fcn.0041f826
add esp, 0xa0
ret

Function at 0x402730
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push 0x38
mov esi, eax
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004249d0
movzx ecx, bl
add esp, 0xc
neg ecx
sbb ecx, ecx
and ecx, 0x40
mov dword [esp + 4], 0x3c
mov dword [esp + 8], ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp byte [esi], 0
mov edx, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edx
je 0x402782
cmp byte [esi + 1], 0
mov dword [esp + 0x10], str.runas
jne 0x40278a
mov dword [esp + 0x10], str.open
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 4]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4027b5
xor esi, esi
jmp 0x4027c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x4027db
test bl, bl
je 0x4027f3
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4027df
cmp eax, 0xffffffff
je 0x4027df
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x3c]
test bl, bl
je 0x4027f3
test eax, eax
je 0x4027f3
cmp eax, 0xffffffff
je 0x4027f3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x3c
ret 0xc
Function at 0x402da0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x168
mov eax, dword [0x446050]
xor eax, esp
mov dword [esp + 0x164], eax
push ebx
push esi
lea esi, [esp + 0x48]
call fcn.004025f0
mov esi, dword [sym.imp.USER32.dll_GetDesktopWindow]
xor ebx, ebx
xor al, al
cmp byte [0x449dbf], bl
je 0x402e67
push str.dtalert.exe
push 0x448c60
lea eax, [esp + 0x68]
push 0x436a34
push eax
call fcn.0041fa79
push 0x38
lea ecx, [esp + 0x24]
push ebx
push ecx
call fcn.004249d0
add esp, 0x1c
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], ebx
call esi
lea edx, [esp + 0x60]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
cmp byte [esp + 0x48], bl
je 0x402e32
mov dword [esp + 0x18], str.runas
cmp byte [esp + 0x49], bl
jne 0x402e3a
mov dword [esp + 0x18], str.open
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x402e5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [0x449dbf], bl
mov al, 1
cmp byte [0x449dc0], bl
je 0x402eff
push str.dtman.exe
push 0x448c60
lea ecx, [esp + 0x68]
push 0x436a34
push ecx
call fcn.0041fa79
push 0x38
lea edx, [esp + 0x24]
push ebx
push edx
call fcn.004249d0
add esp, 0x1c
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], ebx
call esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x1c], eax
cmp byte [esp + 0x48], bl
je 0x402eca
mov dword [esp + 0x18], str.runas
cmp byte [esp + 0x49], bl
jne 0x402ed2
mov dword [esp + 0x18], str.open
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x402ef7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [0x449dc0], bl
mov al, 1
mov ecx, dword [esp + 0x16c]
pop esi
pop ebx
xor ecx, esp
call fcn.0041f826
mov esp, ebp
pop ebp
ret
Function at 0x40b400
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
sub esp, 0x35c
mov eax, dword [0x446050]
xor eax, esp
mov dword [esp + 0x358], eax
mov eax, dword [esp + 0x360]
push ebx
push ebp
lea edx, [esp + 0x254]
push edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40b427
push esi
lea eax, [esp + 0x25c]
push eax
lea ecx, [esp + 0x158]
push str._s_s
push ecx
call fcn.0041fa79
add esp, 0x10
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
test ebx, ebx
je 0x40b537
cmp ebx, 0xffffffff
je 0x40b537
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test byte [esp + 0x10], 0x10
jne 0x40b51c
lea ecx, [esp + 0x3c]
push 0x2e
push ecx
call fcn.00420230
add esp, 8
test eax, eax
je 0x40b51c
push esi
push eax
call fcn.0041f9ca
add esp, 8
test eax, eax
je 0x40b4e1
mov ecx, 0x438a00
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b4d8
test dl, dl
je 0x40b4d4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b4d8
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b4b8
xor eax, eax
jmp 0x40b4dd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b51c
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x25c]
push eax
lea ecx, [esp + 0x158]
push 0x436a34
push ecx
call fcn.0041fa79
add esp, 0x10
push 0x80
lea edx, [esp + 0x154]
push edx
call edi
lea eax, [esp + 0x150]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b481
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x364]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041f826
add esp, 0x35c
ret

Function at 0x40b550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x446050]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push esi
push str.Domain_Time_II_Version
push 0x448b58
lea eax, [esp + 0x10]
push str._s_s.lnk
push eax
call fcn.0041fa79
add esp, 0x10
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40b5fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40b5b0
test bl, 0x10
je 0x40b5b0
mov esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x40b5e9
push 0x448c60
mov esi, str..url
call fcn.0040b400
add esp, 4
push 0x448b58
mov esi, str..lnk
call fcn.0040b400
add esp, 4
push 1
call fcn.0040bc40
add esp, 4
mov ecx, dword [esp + 0x114]
pop esi
pop ebx
xor ecx, esp
call fcn.0041f826
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x40b5a6
Function at 0x40bb30
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x214
mov eax, dword [0x446050]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
push ebx
push ebp
mov ebp, dword [esp + 0x224]
push esi
push eax
push 0x448c60
lea eax, [esp + 0x14]
push 0x436a34
push eax
mov esi, ecx
call fcn.0041fa79
push ebp
push esi
lea ecx, [esp + 0x12c]
push str._s_s.lnk
push ecx
call fcn.0041fa79
add esp, 0x20
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40bc03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40bbab
test bl, 0x10
je 0x40bbab
mov esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x40bc07
push edi
push 0x80
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x230]
push ecx
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x18]
push eax
mov edx, eax
xor edi, edi
mov ecx, ebp
call fcn.0040b920
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0041f826
add esp, 0x214
ret
xor esi, esi
jmp 0x40bba1
push 0x80
lea ecx, [esp + 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x21c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041f826
add esp, 0x214
ret
Function at 0x40c0c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x431af3
mov eax, dword fs:[0]
push eax
mov eax, dword [0x446050]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 0xf
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], ecx
mov byte [eax + 4], cl
mov dword [esp + 0xc], ecx
mov dword [eax + 0x34], edx
mov dword [eax + 0x30], ecx
mov byte [eax + 0x20], cl
mov byte [esp + 0xc], 1
mov byte [eax + 0x38], cl
mov byte [eax + 0x39], cl
mov dword [eax + 0xc0], ecx
mov dword [eax + 0xc4], ecx
mov dword [eax + 0xc8], ecx
mov dword [eax + 0xcc], ecx
mov byte [eax + 0xd0], cl
mov byte [eax + 0xd1], cl
mov byte [eax + 0xd2], cl
mov ecx, dword [str.Not_available]
mov dword [eax + 0x3a], ecx
mov edx, dword [0x4365b4]
mov dword [eax + 0x3e], edx
mov ecx, dword [0x4365b8]
mov dword [eax + 0x42], ecx
movzx edx, word [0x4365bc]
mov word [eax + 0x46], dx
mov ecx, dword [str.Not_installed]
mov dword [eax + 0x7a], ecx
mov edx, dword [0x4365c4]
mov dword [eax + 0x7e], edx
mov ecx, dword [0x4365c8]
mov dword [eax + 0x82], ecx
movzx edx, word [0x4365cc]
mov word [eax + 0x86], dx
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x40c1b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40c251
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40c1da
test bl, 0x10
je 0x40c1da
mov esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x40c24e
push 0x438ca8
push edi
call fcn.00420687
mov esi, eax
add esp, 8
test esi, esi
je 0x40c24e
push str.Set_Listen_IP
push str.REGEDIT4_r_n_r_n__r_n__This_is_a_sample_template._It_contains_only__s_information__and_r_n__therefore_is_useful_as_a_template_for_resetting__not_installing_or_upgrading_._r_n__r_n__Templates_used_for_resetting_should_only_contain_the_information_you_want_to_change._r_n__r_n_r_n
push esi
call fcn.0042069e
push str.__r_n__Versions_of_Domain_Time_through_31_March_2019_will_ignore_data_in_this_r_n__template._In_later_versions__the_export_function_will_strip_out_anything_r_n__but_CIDR_masks_and_the_special_entry__localhost__or_its_numeric_equivalents._r_n__The_data_type_is_REG_MULTI_SZ__which_in_registry_format_is_represented_by_a_r_n__string_of_hex_digits._The_easiest_way_to_make_a_new_template_of_this_type_is_r_n__use_Domain_Times_export_feature_and_then_edit_the_template_to_remove_every__r_n__thing_but_the_Server_Answer_IP_information._r_n__r_n__To_set_machines_to_listen_on_all_IPs__change_the_Server_Answer_IP_to_an_empty_r_n__list:__Server_Answer_IP_hex_7_:00_00_r_n_r_n
push esi
call fcn.0042069e
add esp, 0x14
cmp byte [esp + 0xc], 0
mov eax, str.Client
jne 0x40c228
mov eax, str.Server
push eax
push str._HKEY_LOCAL_MACHINESOFTWAREGreywareDomain_Time__sParameters__r_n
push esi
call fcn.0042069e
push str._Server_Answer_IP_hex_7_:31_39_32_2e_31_36_38_2e_39_39_2e_30_2f_32_34_00__r_n__6c_6f_63_61_6c_68_6f_73_74_00_00_r_n____Server_Answer_IP__REG_MULTI_SZ__text_version:_r_n____192.168.99.0_24_r_n____localhost_r_n_r_n
push esi
call fcn.0042069e
push esi
call fcn.00420567
push esi
call fcn.00420901
add esp, 0x1c
pop esi
pop ebx
ret
xor esi, esi
jmp 0x40c1d0
Function at 0x40c260
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40c2f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40c28a
test bl, 0x10
je 0x40c28a
mov esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x40c2f3
push 0x438ca8
push edi
call fcn.00420687
mov esi, eax
add esp, 8
test esi, esi
je 0x40c2f3
push str.Auto_Manage_Firewall
push str.REGEDIT4_r_n_r_n__r_n__This_is_a_sample_template._It_contains_only__s_information__and_r_n__therefore_is_useful_as_a_template_for_resetting__not_installing_or_upgrading_._r_n__r_n__Templates_used_for_resetting_should_only_contain_the_information_you_want_to_change._r_n__r_n_r_n
push esi
call fcn.0042069e
add esp, 0xc
cmp byte [esp + 0xc], 0
mov eax, str.Client
jne 0x40c2cd
mov eax, str.Server
push eax
push str._HKEY_LOCAL_MACHINESOFTWAREGreywareDomain_Time__sParameters__r_n
push esi
call fcn.0042069e
push str.__r_n__This_section_may_contain_many_values__see_the_default_.reg_file_for_more_information___but_r_n__this_sample_only_contains_the_Auto_Manage_Firewall_setting__new_in_5.2.b.20150828_._r_n__r_n__Note_that_Managers_Force_Auto_Manage_Windows_Firewll_checkbox_will_override_this_setting_r_n__if_you_have_the_checkbox_either_checked_or_unchecked_during_install__upgrade__or_a_reset_r_n__config_operation.__Managers_checkbox_is_tri_state__not_binary__continue_clicking_to_see_r_n__all_three_possibilities.__r_n_r_n_Auto_Manage_Firewall__True__r_n_r_n
push esi
call fcn.0042069e
push esi
call fcn.00420567
push esi
call fcn.00420901
add esp, 0x1c
pop esi
pop ebx
ret
xor esi, esi
jmp 0x40c280
Function at 0x40c3b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40c418
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40c3d6
test bl, 0x10
je 0x40c3d6
mov esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x40c43f
push 0x438ca8
push edi
call fcn.00420687
mov esi, eax
add esp, 8
test esi, esi
je 0x40c43f
push str.keyring
push str.REGEDIT4_r_n_r_n__r_n__This_is_a_sample_template._It_contains_only__s_information__and_r_n__therefore_is_useful_as_a_template_for_resetting__not_installing_or_upgrading_._r_n__r_n__Templates_used_for_resetting_should_only_contain_the_information_you_want_to_change._r_n__r_n_r_n
push esi
call fcn.0042069e
add esp, 0xc
cmp byte [esp + 0xc], 0
je 0x40c41c
mov ecx, str.Client
mov eax, ecx
jmp 0x40c423
xor esi, esi
jmp 0x40c3cc
mov ecx, str.Server
mov eax, ecx
push ecx
push eax
push str._HKEY_LOCAL_MACHINESOFTWAREGreywareDomain_Time__sKeyringKeys__r_n__r_n__Each_entry_in_this_section_defines_a_symmetric_key_and_its_password._r_n__r_n_1__Password1__r_n_2__AnotherPass__r_n_77__FuzzyDice__r_n_r_n_HKEY_LOCAL_MACHINESOFTWAREGreywareDomain_Time__sKeyringConf__r_n__r_n__There_are_two_entries_in_this_section:_TrustedKey_and_BroadcastKey._TrustedKey_r_n__is_the_list_of_which_keys_from_the_above_section_may_be_used._BroadcastKey_is_r_n__the_key_you_want_to_use_for_sending_or_validating_broadcast_time_packets._r_n__r_n_TrustedKey__1_2_77__r_n_BroadcastKey__77__r_n_r_n
push esi
call fcn.0042069e
push esi
call fcn.00420567
push esi
call fcn.00420901
add esp, 0x18
pop esi
pop ebx
ret