joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1072807
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x1099a38]
push esi
push edi
mov esi, 0x102486c
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xac]
push eax
movsw word es:[edi], word [esi]
mov dword [ebp - 0xac], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa8], 5
jne 0x1072878
cmp dword [ebp - 0xa4], 2
jne 0x1072858
mov eax, 0x1018604
jmp 0x107287d
cmp dword [ebp - 0xa4], 1
jne 0x1072868
mov eax, 0x10185dc
jmp 0x107287d
cmp dword [ebp - 0xa4], 0
jne 0x10728ed
mov eax, 0x10185b4
jmp 0x107287d
mov eax, 0x1018590
lea ecx, [ebp - 0xb0]
push ecx
push 0x20019
push 0
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10728ed
push 4
pop esi
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xb4]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xb0]
mov dword [ebp - 0xb8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xb0]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x10728ed
cmp dword [ebp - 0xb4], esi
jne 0x10728ed
mov eax, dword [ebp - 0xbc]
jmp 0x10728ef
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0106bc50
leave
ret

Function at 0x1073070
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1099a38]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov eax, esi
push edi
mov dword [ebp - 0x114], esi
mov edi, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x107309e
sub eax, ecx
cmp eax, 0x103
jbe 0x10730b2
xor eax, eax
jmp 0x1073123
test esi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
je 0x1073119
push 0x10094ec
push edi
call sub.msvcrt.dll_strstr
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x10c], eax
je 0x107310f
push dword [ebp - 0x110]
sub eax, esi
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp + eax - 0x108], 0
lea eax, [ebp - 0x108]
push eax
call ebx
inc dword [ebp - 0x10c]
mov esi, dword [ebp - 0x114]
mov edi, dword [ebp - 0x10c]
test edi, edi
jne 0x10730bd
push dword [ebp - 0x110]
push esi
call ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0106bc50
leave
ret 8
Function at 0x1073131
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1099a38]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], 1
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1073158
sub ecx, edx
mov edx, 0x104
cmp ecx, edx
jae 0x107324d
mov ecx, dword [ebp + 0xc]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1073174
sub ecx, esi
cmp ecx, edx
jae 0x107324d
lea esi, [ebp - 0x20c]
mov ecx, edi
sub esi, edi
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x107318f
mov ecx, dword [ebp + 0xc]
lea esi, [ebp - 0x108]
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x10731a4
lea ecx, [ebp - 0x108]
lea eax, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10731b7
sub ecx, eax
cmp byte [ebp + ecx - 0x109], 0x5c
jne 0x10731e3
lea ecx, [ebp - 0x108]
lea eax, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10731d3
sub ecx, eax
mov byte [ebp + ecx - 0x109], dl
mov esi, dword [ebp - 0x210]
test edi, edi
je 0x1073249
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll__strcmpi
test eax, eax
pop ecx
pop ecx
je 0x1073249
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x107321d
xor esi, esi
inc esi
jmp 0x107322c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call sub.msvcrt.dll_strrchr
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x1073245
mov byte [edi], 0
test esi, esi
jne 0x10731e9
mov eax, esi
jmp 0x107324f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0106bc50
leave
ret 8

Function at 0x107325d
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1099a38]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push 0x20019
xor edi, edi
push edi
push 0x1024a70
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10732e1
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1024a64
lea eax, [ebp - 0x108]
push eax
call fcn.01070fc9
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop esi
je 0x10732d5
inc edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
call fcn.0106bc50
leave
ret
Function at 0x10734d3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
push 0x1024b18
call fcn.0106bf63
xor esi, esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x10734ed
mov dword [eax], esi
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x10734f6
mov dword [eax], esi
lea eax, [ebp - 0x24]
push eax
push 1
push esi
push 0x1024398
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x10735ad
mov dword [ebp - 4], esi
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push esi
mov ebx, 0x101534c
push ebx
push dword [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x1073582
push dword [ebp - 0x20]
call sub.msvcrt.dll_malloc
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp eax, esi
jne 0x1073555
mov dword [ebp - 0x1c], 8
jmp 0x10735a4
lea ecx, [ebp - 0x20]
push ecx
push eax
push esi
push esi
push ebx
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x1073578
mov edi, dword [ebp + 8]
push dword [edi]
call fcn.0106bf39
pop ecx
mov dword [edi], esi
jmp 0x10735a4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x10735a4
cmp eax, 2
je 0x107358c
cmp eax, 3
jne 0x10735a4
push 1
push 2
call sub.msvcrt.dll_calloc
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov dword [ebp - 0x1c], esi
or dword [ebp - 4], 0xffffffff
call fcn.010735c7
push dword [ebp - 0x1c]
call fcn.01037f35
xor eax, eax
cmp dword [ebp - 0x1c], esi
sete al
call fcn.0106bf9e
ret 8
Function at 0x1073be6
Capabilities:
Delete file
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.010734d3
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
call fcn.01073ac4
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp + 0xc]
push dword [eax]
mov dword [ebp - 0x14], esi
call fcn.01073ac4
cmp esi, ebx
mov dword [ebp - 0x10], eax
je 0x1073c84
push edi
mov edi, dword [ebp - 0x10]
cmp edi, ebx
mov dword [ebp - 0xc], ebx
je 0x1073c62
push esi
call fcn.01070f95
push edi
mov ebx, eax
call fcn.01070f95
push eax
push ebx
call sub.msvcrt.dll__strcmpi
test eax, eax
pop ecx
pop ecx
jne 0x1073c53
mov dword [ebp - 0xc], 1
mov edi, dword [edi + 0x208]
test edi, edi
jne 0x1073c31
cmp dword [ebp - 0xc], edi
jne 0x1073c77
call fcn.01073b74
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call fcn.0106bf39
pop ecx
mov esi, dword [esi + 0x208]
xor ebx, ebx
cmp esi, ebx
jne 0x1073c27
pop edi
mov eax, dword [ebp - 0x10]
call fcn.01073aa8
mov eax, dword [ebp - 0x14]
call fcn.01073aa8
cmp dword [ebp + 8], ebx
je 0x1073cf1
lea eax, [ebp - 8]
push eax
push 2
push ebx
push 0x1024398
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1073cf1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, ebx
jne 0x1073cd0
push 0x101534c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x1073ce5
push eax
push dword [ebp + 8]
push 7
push ebx
push 0x101534c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call fcn.01037f35
xor eax, eax
cmp dword [ebp - 4], ebx
pop esi
sete al
pop ebx
leave
ret 8
Function at 0x1073d07
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0x10]
push esi
call sub.msvcrt.dll_wcslen
and dword [ebp - 8], 0
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0x10]
pop ecx
cmp eax, 3
jae 0x1073d38
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1073e3d
push edi
push eax
push 0x1024cfc
push esi
call sub.msvcrt.dll_wcsncat
mov edi, dword [ebp + 0xc]
add esp, 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x1073e3c
push ebx
lea ebx, [edi + 0x2c]
mov eax, dword [ebp + 0x10]
and word [esi + eax*2], 0
push 0x1024cf8
push ebx
call sub.msvcrt.dll_wcscmp
test eax, eax
pop ecx
pop ecx
je 0x1073e0e
push 0x1024cf0
push ebx
call sub.msvcrt.dll_wcscmp
test eax, eax
pop ecx
pop ecx
je 0x1073e0e
test byte [edi], 0x10
je 0x1073dc1
push 0x100921c
push esi
call sub.msvcrt.dll_wcscat
push ebx
push esi
call sub.msvcrt.dll_wcscat
add esp, 0x10
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push edi
push dword [ebp + 8]
call fcn.01073d07
test eax, eax
je 0x1073e32
jmp 0x1073e0e
push 0x2e
push ebx
call sub.msvcrt.dll_wcsrchr
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x1073e0b
push 0x1024ce4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1073e0b
push 0x5c
push esi
call sub.msvcrt.dll_wcsrchr
and word [edi], 0
pop ecx
pop ecx
inc eax
inc eax
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1073e0b
mov eax, dword [ebp + 8]
push eax
mov dword [eax + 8], esi
call dword [ebp + 0x18]
test eax, eax
je 0x1073e32
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1073d63
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1073e32
mov dword [ebp - 8], 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
mov eax, dword [ebp + 0x10]
and word [esi + eax*2], 0
mov eax, dword [ebp - 8]
pop esi
leave
ret 0x14
Function at 0x1074142
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x1099a38]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
lea edx, [ebp - 0x160]
push edx
push 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x148], 1
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindFirstLineA]
mov esi, 0x1106960
mov ebx, 0x10f5820
test eax, eax
je 0x1074363
mov edi, dword [sym.imp.UPDSPAPI.dll_UpdSpGetStringFieldA]
push 0
push 0x104
push 0x10f6960
push 1
lea eax, [ebp - 0x160]
push eax
call edi
test eax, eax
je 0x1074321
push 0
push 0x104
push esi
push 2
lea eax, [ebp - 0x160]
push eax
call edi
test eax, eax
je 0x1074321
push 0x1024da8
mov edi, 0x10f6960
push edi
call sub.msvcrt.dll__strcmpi
test eax, eax
pop ecx
pop ecx
jne 0x10741f6
push 0x1000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x1074240
push 0x100cde0
push edi
call sub.msvcrt.dll__strcmpi
test eax, eax
pop ecx
pop ecx
jne 0x107421e
push eax
push 0x1000
push ebx
push esi
push eax
push dword [ebp - 0x150]
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetTargetPathA]
jmp 0x1074240
and dword [ebp - 0x148], 0
push 0x1024d8c
mov byte [0x10f5820], 0
call fcn.01071aad
push 0x4c7
call fcn.01037f35
cmp dword [ebp - 0x148], 1
jne 0x1074321
xor eax, eax
mov ecx, 0x3ffe
mov edi, esi
push ebx
rep stosd dword es:[edi], eax
push 0x1024d84
push 0xfff9
push esi
stosw word es:[edi], ax
call sub.msvcrt.dll__snprintf
add esp, 0x10
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14c], eax
je 0x10742e2
test byte [ebp - 0x144], 0x10
jne 0x10742bf
xor eax, eax
mov ecx, 0x3ffe
mov edi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x118]
push eax
push ebx
push 0x1020a90
push 0xfffa
push esi
call sub.msvcrt.dll__snprintf
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1074287
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x1074321
mov ecx, 0x3ffe
mov edi, 0x10f6960
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1024d6c
push 0xfff9
mov edi, 0x10f6960
push edi
call sub.msvcrt.dll__snprintf
add esp, 0x14
push edi
call fcn.01071aad
lea eax, [ebp - 0x160]
push eax
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindNextLine]
xor edi, edi
test eax, eax
je 0x1074355
push edi
push 0x104
push esi
push edi
push edi
push edi
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetLineTextA]
test eax, eax
je 0x1074355
xor eax, eax
inc eax
jmp 0x1074357
xor eax, eax
cmp dword [ebp - 0x148], edi
jne 0x1074189
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x148]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 8
Function at 0x1074378
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x1099a38]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x101632c
xor esi, esi
push ebx
inc esi
call fcn.01070fc9
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x354], eax
je 0x10744dc
and dword [ebp - 0x350], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x1016328
lea eax, [ebp - 0x320]
push eax
call esi
test eax, eax
je 0x10744af
push 0x1016324
lea eax, [ebp - 0x320]
push eax
call esi
test eax, eax
je 0x10744af
push edi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x320]
push eax
push ebx
call fcn.01070fc9
test byte [ebp - 0x34c], 0x10
lea eax, [ebp - 0x108]
je 0x107444a
push dword [ebp + 0xc]
push eax
call fcn.01074378
cmp dword [ebp - 0x350], 0
jl 0x10744af
test eax, eax
jge 0x10744af
mov dword [ebp - 0x350], eax
jmp 0x10744af
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x10744af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x1074490
cmp esi, 3
je 0x1074490
cmp dword [ebp + 0xc], 1
jne 0x1074490
push 4
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
cmp dword [ebp - 0x350], 0
jl 0x10744af
test esi, esi
jle 0x10744a9
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 0x350], esi
lea eax, [ebp - 0x34c]
push eax
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10743d6
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x350]
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x1074517
test esi, esi
jl 0x1074517
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x1074538
cmp eax, 2
je 0x1074538
test eax, eax
jle 0x107453a
and eax, 0xffff
or eax, 0x80070000
jmp 0x107453a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x1074538
cmp eax, 2
je 0x1074538
cmp dword [ebp + 0xc], 0
je 0x1074538
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 8
Function at 0x1074549
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x350
mov eax, dword [0x1099a38]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
push 0x101632c
xor ebx, ebx
push edi
inc ebx
call fcn.01070fc9
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x350], eax
je 0x1074628
xor ebx, ebx
push 0x1016328
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1074605
push 0x1016324
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1074605
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x320]
push eax
push edi
call fcn.01070fc9
test byte [ebp - 0x34c], 0x10
je 0x1074605
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call fcn.01074549
test ebx, ebx
jl 0x1074605
test eax, eax
jge 0x1074605
mov ebx, eax
lea eax, [ebp - 0x34c]
push eax
push dword [ebp - 0x350]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10745a2
push dword [ebp - 0x350]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x1074663
test ebx, ebx
jl 0x1074663
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x1074684
cmp eax, 2
je 0x1074684
test eax, eax
jle 0x1074686
and eax, 0xffff
or eax, 0x80070000
jmp 0x1074686
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x1074684
cmp eax, 2
je 0x1074684
cmp dword [ebp + 0xc], 0
je 0x1074684
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 8

Function at 0x1074695
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1099a38]
push ebx
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0xf003f
xor edi, edi
push edi
push 0x1024de4
xor ebx, ebx
push SysStringLen
inc ebx
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10746d1
xor eax, eax
jmp 0x1074733
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push 0x1024ddc
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1074713
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
push 4
push edi
push 0x1024dcc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1074715
xor ebx, ebx
cmp dword [ebp - 8], edi
je 0x1074723
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
jne 0x1074731
push 0x1024db4
call fcn.01071aad
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0106bc50
leave
ret
Function at 0x1074953
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
imul eax, eax, 0xea60
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
call ebx
test eax, eax
jne 0x10749a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1024ec8
mov dword [ebp - 4], eax
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x1074a45
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 0xc], eax
mov dword [ebp + 0x14], eax
mov eax, dword [esi + 0x14]
mov dword [ebp + 0xc], eax
jmp 0x1074a1b
cmp dword [ebp - 8], 0
jne 0x10749ce
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
ja 0x1074a44
mov eax, dword [esi + 0x18]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jb 0x10749ea
mov ecx, 0x2710
cmp eax, ecx
jbe 0x10749ec
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push dword [ebp + 8]
call ebx
test eax, eax
je 0x1074a25
mov eax, dword [ebp + 0xc]
cmp dword [esi + 0x14], eax
jbe 0x1074a09
call edi
jmp 0x10749b2
call edi
mov ecx, dword [esi + 0x18]
sub eax, dword [ebp + 0x14]
add ecx, 0xea60
cmp eax, ecx
ja 0x1074a3d
mov eax, dword [ebp + 0x10]
cmp dword [esi + 4], eax
jne 0x10749bd
jmp 0x1074a44
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1024ec8
mov dword [ebp - 4], eax
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x1074a44
mov dword [ebp - 4], 0x41d
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0x10
Function at 0x1074d37
Capabilities:
Query environment variable
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
xor edi, edi
push 0x2000
mov dword [ebp - 4], edi
call sub.msvcrt.dll_malloc
mov ebx, eax
cmp ebx, edi
pop ecx
jne 0x1074d60
push 8
call fcn.01037f35
jmp 0x1074d85
push esi
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindFirstLineA]
test eax, eax
jne 0x1074d90
mov dword [ebp - 4], 1
push ebx
call fcn.0106bf39
pop ecx
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 0xc
xor edi, edi
push edi
mov esi, 0x1000
push esi
push ebx
push edi
push edi
push edi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetLineTextA]
test eax, eax
je 0x1074d7d
lea eax, [ebp + 0xc]
push eax
push ebx
lea edi, [ebx + 0x1000]
push edi
mov dword [ebp + 0xc], esi
call fcn.01074cbc
test eax, eax
je 0x1074e1f
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x1074e1f
cmp eax, esi
ja 0x1074e1f
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1074dd7
sub eax, esi
push 0
lea edi, [eax + ebx]
lea ecx, [ebp - 8]
push ecx
add eax, 2
push eax
mov esi, 0x1010290
movsw word es:[edi], word [esi]
push ebx
push dword [ebp + 0x10]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1074d7d
lea eax, [ebp - 0x18]
push eax
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindNextLine]
test eax, eax
jne 0x1074d8e
jmp 0x1074d76
push 0x7a
call fcn.01037f35
jmp 0x1074d7d