joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040a0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
cmp esi, 0xffffffff
je 0x4041eb
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4041eb
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4041eb
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0xc
push esi
call ebx
cmp eax, 0xffffffff
je 0x4041eb
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x14]
push 2
push ecx
push esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call edi
test eax, eax
je 0x4041eb
cmp dword [esp + 0x14], 2
jb 0x4041eb
mov edx, dword [esp + 0xc]
push 1
and edx, 0xffff
push 0
push edx
push esi
call ebx
cmp eax, 0xffffffff
je 0x4041eb
lea eax, [esp + 0x14]
push 0
mov ebx, 2
push eax
lea ecx, [esp + 0x14]
push ebx
push ecx
push esi
call edi
test eax, eax
je 0x4041eb
cmp dword [esp + 0x14], ebx
jb 0x4041eb
mov eax, dword [esp + 0xc]
cmp ax, bx
ja 0x4041eb
lea edx, [esp + 0x14]
push 0
and eax, 0xffff
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
push esi
call edi
test eax, eax
je 0x4041eb
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
and ecx, 0xffff
cmp eax, ecx
jb 0x4041eb
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x14]
push ebx
push eax
push esi
call edi
test eax, eax
je 0x4041eb
cmp dword [esp + 0x14], ebx
jb 0x4041eb
mov eax, dword [esp + 0xc]
cmp ax, bx
ja 0x4041eb
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push 0
and eax, 0xffff
push ecx
push eax
push edx
push esi
call edi
test eax, eax
je 0x4041eb
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
and eax, 0xffff
cmp ecx, eax
jb 0x4041eb
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret 0xc

Function at 0x404200
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
mov bl, 1
mov ecx, dword [esp + 0xc]
mov eax, ecx
and eax, 0xffff
dec eax
je 0x404231
dec eax
je 0x404226
cmp cx, 2
jbe 0x404286
mov eax, dword [esi + 0xf8]
push eax
jmp 0x404270
mov eax, dword [esp + 0x10]
test ax, ax
je 0x404286
jmp 0x404267
mov ecx, dword [esp + 0x10]
mov eax, ecx
and eax, 0xffff
jl 0x404264
cmp eax, 2
jle 0x40425b
cmp eax, 3
jne 0x404264
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
call fcn.00404290
mov bl, al
pop esi
pop ebx
ret 0xc
mov eax, dword [esi + 0xf8]
push eax
jmp 0x404270
test cx, cx
jbe 0x404286
mov ecx, dword [esi + 0xf8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.00403500
test al, al
jne 0x404286
pop esi
pop ebx
ret 0xc
mov al, bl
pop esi
pop ebx
ret 0xc
Function at 0x404670
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0
lea ebp, [esi + 0x94]
mov bl, 1
mov ecx, ebp
mov byte [esp + 0x17], 0
call fcn.004080f0
push 1
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00403450
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x40479e
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push eax
call edi
cmp eax, 0xffffffff
je 0x40479e
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40479e
cmp dword [esp + 0x18], 4
jb 0x40479e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push 1
push 0
push eax
push ecx
call edi
cmp eax, 0xffffffff
je 0x40479e
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x13]
push edx
push 0
push eax
push 0x4047d0
mov ecx, esi
call fcn.00405bb0
test al, al
jne 0x404728
xor bl, bl
mov ecx, dword [esp + 0x14]
push 2
push 0
push ecx
push 0x4047d0
mov ecx, esi
call fcn.00405cd0
test al, al
jne 0x404743
xor bl, bl
mov edx, dword [esp + 0x14]
push 1
push 0
push edx
push 0x4047d0
mov ecx, esi
call fcn.00405cd0
test al, al
jne 0x40475e
xor bl, bl
mov edx, dword [esp + 0x14]
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push 0x18
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40479e
cmp dword [esp + 0x18], 0x18
jb 0x40479e
mov eax, dword [esp + 0x14]
mov ecx, esi
push eax
call fcn.00405360
test al, al
jne 0x4047a0
xor bl, bl
lea ecx, [esp + 0x14]
push ecx
push 1
mov ecx, esi
call fcn.004034b0
push 0
mov ecx, ebp
call fcn.00408120
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x405360
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x10
push ebp
push esi
push edi
mov edi, ecx
mov byte [esp + 0xf], 1
mov dword [esp + 0x14], 0
mov ecx, dword [edi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov si, ax
and esi, 0xffff
push esi
call fcn.0040a590
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4053a3
xor al, al
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
mov ecx, dword [edi + 0x108]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
mov edx, dword [ecx]
push 0xe
push esi
call dword [edx + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call ebx
cmp eax, 0xffffffff
je 0x40545a
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40545a
cmp dword [esp + 0x14], 4
jb 0x40545a
push 1
push 0
push 8
push esi
call ebx
cmp eax, 0xffffffff
je 0x40545a
mov ecx, dword [edi + 0x108]
mov edx, dword [ecx]
call dword [edx + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x20]
push 2
push ecx
push esi
call edi
test eax, eax
je 0x40545a
cmp dword [esp + 0x14], 2
jb 0x40545a
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push 0
and eax, 0xffff
push edx
push eax
push ebp
push esi
call edi
test eax, eax
je 0x40545a
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
and ecx, 0xffff
cmp eax, ecx
jae 0x40545f
mov byte [esp + 0x13], 0
push ebp
call fcn.0040a130
mov al, byte [esp + 0x17]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
Function at 0x405510
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [0x410084]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x2c]
cmp eax, ecx
mov dword [esp + 0x14], esi
mov byte [esp + 0x13], 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
je 0x40555a
push eax
lea ecx, [ebp + 0x94]
call fcn.00408250
push eax
push edi
mov ecx, ebp
call fcn.00405510
mov eax, dword [ebx + 8]
mov ecx, dword [0x410084]
cmp eax, ecx
je 0x40557c
push eax
lea ecx, [ebp + 0x94]
call fcn.00408250
push eax
push edi
mov ecx, ebp
call fcn.00405510
mov ecx, dword [ebp + 0x104]
mov eax, dword [ecx]
call dword [eax + 0x18]
and eax, 0xffff
push eax
mov dword [esp + 0x28], eax
call fcn.0040a590
add esp, 4
cmp eax, esi
mov dword [esp + 0x30], eax
je 0x4056c3
mov ecx, dword [ebx]
lea esi, [ebp + 0x94]
push ecx
mov ecx, esi
call fcn.00408250
mov edx, dword [eax + 0x10]
push edx
call fcn.0040a590
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4056c3
mov eax, dword [ebx]
push 0
push 0
push eax
mov ecx, esi
call fcn.00408250
mov ecx, dword [eax + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4056c3
mov edx, dword [ebx]
mov ecx, esi
push edx
call fcn.00408250
mov eax, dword [eax + 0x10]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push edx
push edi
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4056c3
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jb 0x4056c3
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x20]
push 4
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4056c3
cmp dword [esp + 0x14], 4
jb 0x4056c3
mov eax, dword [esp + 0x18]
push eax
call fcn.0040a590
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x4056c3
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4056c3
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jb 0x4056c3
mov ecx, dword [ebp + 0x104]
mov edi, dword [esp + 0x30]
mov eax, dword [ebx]
push edi
mov edx, dword [ecx]
push eax
mov ecx, esi
mov dword [esp + 0x34], edx
call fcn.00408250
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [ebp + 0x104]
push edx
call dword [eax]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4056c8
mov byte [esp + 0x13], 0
mov al, byte [esp + 0x13]
test al, al
jne 0x4056ee
mov eax, dword [ebx]
push 0
push 0
push 0
push eax
lea ecx, [ebp + 0x94]
call fcn.00408250
mov ecx, dword [eax]
push ecx
mov ecx, ebp
call fcn.004058e0
mov edx, dword [esp + 0x30]
push edx
call fcn.0040a130
mov eax, dword [esp + 0x20]
add esp, 4
push eax
call fcn.0040a130
mov ecx, dword [esp + 0x24]
add esp, 4
push ecx
call fcn.0040a130
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x406320
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
ret

Function at 0x407680
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
test eax, eax
mov dword [esp + 4], 0
jne 0x407697
mov eax, str.SOFTWARETimeSink__Inc.
mov edx, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
push 0xf003f
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4076b8
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4076ef
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4076fd
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov al, 1
pop esi
pop ecx
ret

Function at 0x407710
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0x2001f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407733
xor al, al
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop esi
ret

Function at 0x4077c0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x120]
push ebp
mov ebp, dword [esp + 0x120]
push esi
push edi
push eax
push 0x2001f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4077fd
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push 0
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x30]
push edx
push eax
mov edi, 0x104
push 0
push ecx
mov dword [esp + 0x34], edi
call esi
test eax, eax
jne 0x40786a
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x1c], edi
call fcn.004077c0
add esp, 8
test al, al
je 0x40788a
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
lea eax, [esp + 0x30]
push edx
push eax
push 0
push ecx
call esi
test eax, eax
je 0x40782e
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x114
ret
Function at 0x4078b0
Capabilities:
Query or enumerate registry key

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x114
lea eax, [esp]
push esi
push edi
xor edi, edi
push eax
push 0x20019
push edi
push ecx
push edx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4078e7
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x114
ret
lea eax, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov eax, dword [esp + 0x10]
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x2c]
push ecx
push edx
push 0
push eax
mov dword [esp + 0x30], 0x104
call ebp
test eax, eax
jne 0x407969
push ebx
mov ebx, dword [esp + 0x130]
test bl, bl
mov dword [esp + 0x14], 0x104
je 0x407945
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ebx
push ecx
push edx
call fcn.004078b0
add esp, 0xc
test eax, eax
jl 0x407945
add edi, eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push 0
push 0
inc edi
push 0
lea edx, [esp + 0x30]
inc esi
push ecx
push edx
push esi
push eax
call ebp
test eax, eax
je 0x407920
pop ebx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop ebp
pop edi
pop esi
add esp, 0x114
ret

Function at 0x407d00
Capabilities:
Access peb ldr_data
Get ntdll base address
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x40fefb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0x20]
call fcn.00407980
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
mov dword [esp + 0x3c], ebx
mov dword [esi], 0x410088
mov byte [esi + 4], bl
mov dword [esi + 0x18], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], 4
mov dword [esi + 0x40], 8
mov dword [esi + 0x44], 0x10
mov dword [esi + 0x48], 0x14
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret
Function at 0x408270
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
push edi
lea eax, [esp + 0x10]
push 0
push eax
push esi
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [esp + 0x28], ebp
call fcn.00407680
add esp, 0x18
test al, al
jne 0x4082bf
cmp ebp, 0x11
ja 0x4082b3
mov byte [esi], al
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.c:Program_Files
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov bl, byte [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test bl, bl
mov dword [esp + 0x10], eax
je 0x40830e
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push esi
call fcn.0040a8d0
add esp, 8
test eax, eax
je 0x40830a
push 0
push esi
call edi
test eax, eax
jne 0x4082de
call ebp
cmp eax, 0xb7
je 0x4082de
mov byte [esi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
add eax, 9
cmp eax, ebp
mov dword [esp + 0x10], eax
jb 0x408328
mov byte [esi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.TimeSink
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test bl, bl
je 0x408358
push 0
push esi
call fcn.0040a8d0
add esp, 8
test eax, eax
je 0x408358
push 0
push esi
call edi
test eax, eax
jne 0x408358
mov byte [esi], al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x408370
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push ebx
push edi
push esi
call fcn.00408270
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x408398
mov byte [esi], al
pop edi
pop esi
pop ebp
pop ebx
ret
add ebp, 0xa
cmp ebp, edi
jb 0x4083a9
mov byte [esi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push str.AdGateway
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test bl, bl
je 0x4083f0
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push esi
call fcn.0040a8d0
add esp, 8
test eax, eax
je 0x4083f0
push 0
push esi
call edi
test eax, eax
jne 0x4083c5
call ebx
cmp eax, 0xb7
je 0x4083c5
mov byte [esi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x408970
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x34c
push ebx
push ebp
mov ebp, dword [esp + 0x358]
push esi
push edi
push 0
push ebp
call fcn.0040a8d0
add esp, 8
test eax, eax
je 0x4089a0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
lea eax, [esp + 0x258]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x258]
push str..
push ecx
call edi
lea edx, [esp + 0x118]
lea eax, [esp + 0x258]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x4089f0
or eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x118], 0x10
je 0x408ab9
mov esi, 0x411218
lea eax, [esp + 0x144]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x408a34
test cl, cl
je 0x408a30
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408a34
add eax, 2
add esi, 2
test cl, cl
jne 0x408a10
xor eax, eax
jmp 0x408a39
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408af9
mov esi, 0x411214
lea eax, [esp + 0x144]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x408a71
test cl, cl
je 0x408a6d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408a71
add eax, 2
add esi, 2
test cl, cl
jne 0x408a4d
xor eax, eax
jmp 0x408a76
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408af9
lea eax, [esp + 0x14]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x14]
push 0x4110ac
push ecx
call edi
lea edx, [esp + 0x144]
lea eax, [esp + 0x14]
push edx
push eax
call edi
lea ecx, [esp + 0x14]
push pe_nt_image_headers32
push ecx
call ebx
lea edx, [esp + 0x14]
push edx
call fcn.00408970
jmp 0x408af6
lea eax, [esp + 0x14]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x14]
push 0x4110ac
push ecx
call edi
lea edx, [esp + 0x144]
lea eax, [esp + 0x14]
push edx
push eax
call edi
lea ecx, [esp + 0x14]
push pe_nt_image_headers32
push ecx
call ebx
lea edx, [esp + 0x14]
push edx
call fcn.00408d00
add esp, 4
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4089f6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push pe_nt_image_headers32
push ebp
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov ecx, dword [esp + 0x360]
push ecx
call ebp
test eax, eax
jne 0x408b58
call edi
and eax, 0x7f
add eax, 0x80
push eax
call ebx
inc esi
cmp esi, 5
jl 0x408b37
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34c
ret
Function at 0x408d00
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call fcn.0040a8d0
add esp, 8
test eax, eax
je 0x408d16
xor eax, eax
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push ebp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
jne 0x408d4c
call edi
and eax, 0x7f
add eax, 0x80
push eax
call ebx
inc esi
cmp esi, 5
jl 0x408d28
mov eax, ebp
pop ebx
pop ebp
pop esi
pop edi
ret

Function at 0x409320
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
sub esp, 0x30c
lea eax, [esp]
push esi
push edi
push 0
push 0x104
push eax
call fcn.00408270
add esp, 0xc
test eax, eax
jne 0x409356
mov cl, byte [0x413df8]
push str.Couldnt_Determine_the_TSPath
push 0xfffffffffffffffc
push ecx
call fcn.00409da0
add esp, 0xc
lea edx, [esp + 8]
push edx
call fcn.00408970
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 4
lea eax, [esp + 0x10c]
push str.SOFTWARETimeSink__Inc.
push eax
call esi
lea ecx, [esp + 0x10c]
push ecx
push 0x80000001
call fcn.004077c0
add esp, 8
lea edx, [esp + 0x10c]
push str.SOFTWARETimeSink__Inc.
push edx
call esi
lea eax, [esp + 0x10c]
push eax
push 0x80000002
call fcn.004077c0
add esp, 8
lea ecx, [esp + 0x10c]
push str.SoftwareMicroSoftWindowsCurrentVersionRun
push ecx
call esi
lea edx, [esp + 0x210]
push str.TimeSink_Ad_Client
push edx
call esi
lea eax, [esp + 0x210]
lea ecx, [esp + 0x10c]
push eax
push ecx
push 0x80000002
call fcn.00407710
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
add esp, 0xc
lea edx, [esp + 8]
push 0x104
push edx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 8]
push 0x4110ac
push eax
call esi
lea ecx, [esp + 8]
push str.TSAd.dll
push ecx
call esi
lea edx, [esp + 8]
push edx
call fcn.00408d00
add esp, 4
lea eax, [esp + 8]
push 0x104
push eax
call edi
lea ecx, [esp + 8]
push 0x4110ac
push ecx
call esi
lea edx, [esp + 8]
push str.CtNetDetect.dll
push edx
call esi
lea eax, [esp + 8]
push eax
call fcn.00408d00
add esp, 4
lea ecx, [esp + 8]
push 0x104
push ecx
call edi
lea edx, [esp + 8]
push 0x4110ac
push edx
call esi
push str.VcpDLL.dll
lea eax, [esp + 0xc]
push eax
call esi
lea ecx, [esp + 8]
push ecx
call fcn.00408d00
add esp, 4
pop edi
pop esi
add esp, 0x30c
ret

Function at 0x4094a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x158
lea eax, [esp + 0x54]
push esi
push 1
push 0x104
push eax
call fcn.00408370
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0xc
lea ecx, [esp + 0x58]
push 0x4110ac
push ecx
call esi
lea edx, [esp + 0x58]
push str.TsAdBot.exe
push edx
call esi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x78]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40951f
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 4]
push edx
call esi
pop esi
add esp, 0x158
ret