joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004dcbf
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
xor esi, esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1004dd24
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1012b632
leave
ret

Function at 0x1004e053
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 2
xor esi, esi
push esi
push dword [ebp + 8]
mov edi, esi
call dword [0x10180ba0]
mov ebx, eax
test ebx, ebx
je 0x1004e0db
push 0x10
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
test eax, eax
je 0x1004e0d4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 4]
mov dword [ebp + 8], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x1004e0d4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x1004e0cb
push dword [ebp + 8]
call fcn.101345c6
mov edi, eax
pop ecx
test edi, edi
je 0x1004e0cb
push dword [ebp + 8]
push dword [ebp - 4]
push edi
call fcn.1012d5f0
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x1004e119
lea eax, [ebp - 8]
mov dword [ebp + 8], esi
push eax
lea eax, [ebp + 8]
mov dword [ebp - 8], esi
push eax
push 0x101811bc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1004e112
mov edx, dword [ebp + 8]
xor esi, esi
mov eax, dword [ebp + 0xc]
inc esi
mov ecx, dword [edx + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [edx + 0xc]
mov dword [eax], ecx
push edi
call fcn.101345c1
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1004e1f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x401c
call fcn.1012ba20
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1004e364
test eax, 0x400
je 0x1004e364
lea eax, [ebp - 0x4018]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x4010]
xor edi, edi
push eax
push str.SeBackupPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push edi
push edi
push 0x10
lea eax, [ebp - 0x4014]
mov dword [ebp - 0x4014], 1
push eax
push edi
push dword [ebp - 0x4018]
mov dword [ebp - 0x4008], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x4018]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
xor eax, eax
push eax
push 0x2200000
push 3
push eax
push eax
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1004e364
xor ecx, ecx
lea eax, [ebp - 0x401c]
push ecx
push eax
push 0x4000
lea eax, [ebp - 0x4004]
push eax
push ecx
push ecx
push 0x900a8
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1004e35f
test dword [ebp - 0x4004], 0x1fff0000
jne 0x1004e35f
cmp dword [ebp - 0x4004], 1
jbe 0x1004e35f
push esi
call edi
lea eax, [ebp - 0x3ff4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jle 0x1004e346
push 0x5c
pop eax
cmp word [ebp - 0x3ff4], ax
jne 0x1004e346
push 0x3f
pop ecx
cmp word [ebp - 0x3ff2], cx
je 0x1004e32e
cmp word [ebp - 0x3ff2], ax
jne 0x1004e346
cmp word [ebp - 0x3ff0], cx
jne 0x1004e346
cmp word [ebp - 0x3fee], ax
lea eax, [ebp - 0x3fec]
je 0x1004e34c
lea eax, [ebp - 0x3ff4]
push eax
mov ecx, ebx
call fcn.100091b4
movzx eax, word [ebp - 0x3ffa]
shr eax, 1
jmp 0x1004e36e
push esi
call edi
jmp 0x1004e36c
push 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012b632
leave
ret
Function at 0x1004ed05
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
xor eax, eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov word [ebx], ax
cmp edi, 0x100
jge 0x1004ed6a
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x1004eec9
lea eax, [ebp - 4]
push eax
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x1004ed5c
push ebx
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [ebp - 8]
push dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x1004eec9
cmp dword [0x102458e8], eax
jne 0x1004eea4
push esi
mov esi, 0x104
push esi
push 0x10245af8
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push esi
push 0x10245d00
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, 0x10246728
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
call fcn.10130fe5
pop ecx
lea eax, [eax*2 + 0x10246726]
cmp word [eax], 0x5c
jne 0x1004edbe
xor ecx, ecx
mov word [eax], cx
push 0x10245af8
push 0x208
mov esi, 0x102458f0
push esi
call fcn.100100b8
push 0x3a
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x1004ede6
xor ecx, ecx
mov word [eax + 2], cx
xor eax, eax
mov dword [ebp + 8], 1
push eax
mov word [0x10245f08], ax
mov esi, reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x208
push eax
push 0x10245f08
lea eax, [ebp + 8]
push eax
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push esi
call fcn.1010e24e
mov ecx, eax
call fcn.1010d6c7
xor eax, eax
mov dword [ebp + 8], 1
push eax
mov word [0x10246110], ax
lea eax, [ebp + 0xc]
push eax
push 0x10246110
lea eax, [ebp + 8]
mov dword [ebp + 0xc], 0x104
push eax
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push esi
call fcn.1010e24e
mov ecx, eax
call fcn.1010d6c7
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
push 0x104
push 0x10246318
push str._UserProfile_
mov word [0x10246318], ax
call esi
push 0x104
push 0x10246520
xor eax, eax
push str._AllUserProfile_
mov word [0x10246520], ax
call esi
mov dword [0x102458e8], 1
pop esi
cmp edi, 0x107
jg 0x1004eec9
lea eax, [edi - 0x100]
imul eax, eax, 0x208
add eax, 0x102458f0
push eax
push 0x208
push ebx
call fcn.100100b8
pop edi
pop ebx
leave
ret
Function at 0x1004faba
Capabilities:
Get storage device properties

Disassembly:
push 0x38
mov eax, 0x10159840
call fcn.1012b6ae
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x38], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x800
mov dword [ebp - 0x1c], esi
push edi
mov dword [ebp - 0x18], esi
call fcn.1012b7a9
mov ebx, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], esi
push edi
push esi
push ebx
call fcn.1012db70
add esp, 0x10
lea eax, [ebp - 0x38]
push esi
push eax
push edi
push ebx
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0x2d1400
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1004fb88
cmp byte [ebx + 0xa], 0
jne 0x1004fb88
mov eax, dword [ebx + 0x1c]
test eax, eax
jle 0x1004fb88
cmp eax, 3
jle 0x1004fb36
add eax, 0xfffffff8
cmp eax, 3
ja 0x1004fb88
push 6
pop ecx
push esi
xor eax, eax
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
push 0x18
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push 0x70000
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1004fb88
cmp dword [ebp - 0x2c], 0xc
jne 0x1004fb88
mov eax, dword [ebp - 0x34]
or eax, dword [ebp - 0x30]
je 0x1004fb88
cmp dword [ebp - 0x28], 0
je 0x1004fb88
cmp dword [ebp - 0x24], 0
je 0x1004fb88
cmp dword [ebp - 0x20], 0x200
jne 0x1004fb88
xor esi, esi
inc esi
or dword [ebp - 4], 0xffffffff
push ebx
call fcn.1012b7b2
pop ecx
mov eax, esi
call fcn.1012b658
ret

Function at 0x1004fd62
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
je 0x1004fdcf
push 8
call fcn.10010082
pop ecx
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
push edi
test eax, eax
je 0x1004fd91
call eax
jmp 0x1004fd97
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1004fdb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1004fdcf
cmp eax, 3
je 0x1004fdcf
cmp eax, 5
jne 0x1004fdcf
xor esi, esi
inc esi
jmp 0x1004fdcf
push dword [ebp + 0x10]
push edi
call fcn.10049dbe
mov ecx, dword [ebp + 0xc]
xor esi, esi
push edi
inc esi
mov dword [ecx], eax
call fcn.10049da5
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10052eee
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FSRemoveDirectoryW
push str.bapi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10052f24
push dword [ebp + 8]
call eax
mov esi, eax
test esi, esi
jne 0x10052f65
mov dword [0x1024c32c], 0x66
jmp 0x10052f5a
push 0xc
call fcn.10010082
mov esi, dword [ebp + 8]
pop ecx
push 0x80
push esi
test eax, eax
je 0x10052f3d
call eax
jmp 0x10052f43
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x10052f65
mov dword [0x1024c32c], 0x67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1024c330], eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x100553f7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push str.Q360DownloadMain
push esi
push esi
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x10055452
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 4], esi
je 0x10055452
push dword [ebp - 4]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10055452
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1005544b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
leave
ret
Function at 0x10056689
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x100567ed
test edi, edi
je 0x100567ed
push 0x208
xor esi, esi
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.1012db70
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100566de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str...
push ebx
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x250
lea eax, [ebp - 0x86c]
push esi
push eax
call fcn.1012db70
push 0x18
call fcn.10010082
add esp, 0x10
test eax, eax
je 0x10056723
lea ecx, [ebp - 0x86c]
push ecx
lea ecx, [ebp - 0x61c]
push ecx
call eax
jmp 0x10056737
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1005686f
lea eax, [ebp - 0x840]
push eax
push 0x1018123c
call fcn.10131153
pop ecx
pop ecx
test eax, eax
je 0x1005683b
lea eax, [ebp - 0x840]
push eax
push 0x101845b8
call fcn.10131153
pop ecx
pop ecx
test eax, eax
je 0x1005683b
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.1012db70
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1012db70
add esp, 0x18
lea eax, [ebp - 0x840]
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x840]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [ebp - 0x86c], 0x10
lea eax, [ebp - 0x20c]
push eax
je 0x100567fe
lea eax, [ebp - 0x414]
push eax
call fcn.10056689
pop ecx
pop ecx
test eax, eax
jne 0x1005683b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012b632
leave
ret
call fcn.1000f894
push 0x2a
call fcn.10010082
pop ecx
push 0
test eax, eax
je 0x10056823
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x414]
push ecx
call eax
jmp 0x10056837
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x10056877
push 0x1a
call fcn.10010082
pop ecx
test eax, eax
je 0x10056853
lea ecx, [ebp - 0x86c]
push ecx
push esi
call eax
jmp 0x10056861
lea eax, [ebp - 0x86c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10056742
push esi
call fcn.100226fd
xor eax, eax
inc eax
jmp 0x100567ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100567ed
Function at 0x100576be
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor edx, edx
push edi
test esi, esi
jne 0x100576cf
lea esi, [ecx + 4]
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100576f1
push ebx
mov ebx, dword [ebp + 8]
movzx eax, byte [ebx]
mov ecx, edx
shr ecx, 0x18
xor ecx, eax
shl edx, 8
xor edx, dword [esi + ecx*4]
inc ebx
sub edi, 1
jne 0x100576da
pop ebx
pop edi
mov eax, edx
pop esi
pop ebp
ret 0xc

Function at 0x1005f428
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
call fcn.1012db70
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Internet_ExplorerIEXPLORE.EXE
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.10035b0a
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.1004e040
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
call fcn.1012b632
leave
ret
Function at 0x10060271
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x218
mov eax, 0x1015b771
call fcn.1012b6ae
mov ebx, ecx
mov eax, dword [ebp + 8]
and dword [ebp - 0x214], 0
push 0x33
mov dword [ebp - 0x224], eax
mov esi, dword [eax + 4]
mov edi, dword [eax]
call fcn.10010082
pop ecx
test eax, eax
je 0x100602b7
lea ecx, [ebp - 0x214]
push ecx
push 0x20119
push 0
push esi
push edi
call eax
jmp 0x100602cd
lea eax, [ebp - 0x214]
push eax
push 0x20119
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100602db
mov eax, 0x80004005
jmp 0x100603f0
xor edi, edi
mov esi, dword [ebp - 0x214]
push 0x3f
mov dword [ebp - 0x218], 0xff
call fcn.10010082
pop ecx
test eax, eax
je 0x10060313
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push edi
push esi
call eax
jmp 0x1006032f
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100603d7
call fcn.10007945
push eax
lea ecx, [ebp - 0x21c]
call fcn.10008bfd
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x218]
add eax, eax
cmp eax, 0x200
jae 0x100603f8
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x224]
push dword [eax + 4]
lea eax, [ebp - 0x21c]
push 0x10181380
push eax
call fcn.10014838
mov esi, dword [ebp - 0x21c]
lea ecx, [ebp - 0x220]
add esp, 0x10
push esi
call fcn.1001de59
mov byte [ebp - 4], 2
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebx + 0x14]
call fcn.1005fcc3
mov byte [ebp - 4], 1
push dword [ebp - 0x220]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.100078bc
inc edi
jmp 0x100602dd
push dword [ebp - 0x214]
call fcn.10017c01
mov eax, dword [ebx + 0x18]
sub eax, dword [ebx + 0x14]
and eax, 0xfffffffc
neg eax
sbb eax, eax
inc eax
call fcn.1012b658
ret 4
call fcn.1012b8d8
int3
Function at 0x1006c202
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x20
mov eax, 0x1015dcd0
call fcn.1012b67a
push 0xc
call fcn.10010082
mov esi, dword [ebp + 8]
mov edi, 0x80
pop ecx
push edi
push esi
test eax, eax
je 0x1006c228
call eax
jmp 0x1006c22e
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp + 0x10], 0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
je 0x1006c242
call fcn.1000f894
jmp 0x1006c244
call ebx
test eax, eax
je 0x1006c24c
xor eax, eax
jmp 0x1006c2a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1006c29d
push 1
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.10116fba
and dword [ebp - 4], 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call ebx
test eax, eax
je 0x1006c285
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10117027
jmp 0x1006c248
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x10], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10117027
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1006c2a6
mov dword [ecx], eax
xor eax, eax
inc eax
call fcn.1012b643
ret

Function at 0x1006c2af
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push 0x20
mov eax, 0x1015dcd0
call fcn.1012b67a
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
and dword [edi], 0
test esi, esi
je 0x1006c2e9
push esi
call fcn.10130fe5
pop ecx
test eax, eax
je 0x1006c2e9
push esi
call fcn.1006c183
pop ecx
push esi
test eax, eax
je 0x1006c2f1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1006c2fd
xor eax, eax
call fcn.1012b643
ret
call fcn.10010313
test eax, eax
jne 0x1006c2fd
push esi
jmp 0x1006c2df
cmp dword [ebp + 0x14], 0
je 0x1006c312
push esi
call fcn.10073b06
mov ecx, eax
call fcn.10073a45
mov dword [edi], eax
cmp dword [ebp + 0xc], 0
je 0x1006c329
push esi
call fcn.101103e8
mov ecx, eax
call fcn.101103b3
test eax, eax
jne 0x1006c2e9
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x10]
push edi
push esi
call fcn.1006c202
add esp, 0xc
test eax, eax
je 0x1006c2e9
cmp dword [ebp + 0x20], 0
je 0x1006c3e0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1006c35b
push 2
pop eax
jmp 0x1006c2eb
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
jne 0x1006c3ac
push 1
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.10116fba
and dword [ebp - 4], 0
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1006c3cb
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1006c3cf
call ebx
mov dword [ebp + 0x18], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10117027
mov eax, dword [ebp + 0x18]
test edi, edi
je 0x1006c3b2
mov dword [edi], eax
mov dword [0x1024c32c], 0x34
call ebx
mov dword [0x1024c330], eax
xor eax, eax
inc eax
jmp 0x1006c2eb
call ebx
jmp 0x1006c389
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10117027
jmp 0x1006c356
mov dword [0x1024c32c], 0x35
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1006c3be
Function at 0x1006d45c
Capabilities:
Get domain information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 1
push ebx
mov dword [ebp - 4], ebx
call sub.NETAPI32.dll_DsRoleGetPrimaryDomainInformation
test eax, eax
je 0x1006d47a
xor eax, eax
jmp 0x1006d495
mov eax, dword [ebp - 4]
test eax, eax
je 0x1006d493
push esi
mov esi, dword [eax + 0xc]
push eax
call sub.NETAPI32.dll_DsRoleFreeMemory
xor ebx, ebx
test esi, esi
pop esi
setne bl
mov eax, ebx
pop ebx
leave
ret
Function at 0x10070125
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
call fcn.1006fdac
test eax, eax
je 0x10070174
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x10070174
mov eax, dword [ebp - 0x24]
xor ecx, ecx
cmp eax, dword [ebp + 8]
sete cl
xor eax, eax
mov dword [edi], ecx
inc eax
jmp 0x10070176
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1012b632
leave
ret 8

Function at 0x100702d3
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.1006fdac
test eax, eax
je 0x10070330
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.1006fd9b
test eax, eax
je 0x10070330
cmp dword [ebp - 0x24], 0
jne 0x1007032b
lea eax, [ebp - 0x20]
push eax
push 1
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10070330
cmp dword [ebp - 0x1c], 1
je 0x1007032b
push 0xbb8
mov ecx, esi
call fcn.100703d6
jmp 0x10070332
xor eax, eax
inc eax
jmp 0x10070332
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1012b632
leave
ret

Function at 0x10072280
Capabilities:
Get file size

Disassembly:
push 4
mov eax, 0x1015efb2
call fcn.1012b67a
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1007232d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x1024c714
push 0x14
mov ebx, eax
call fcn.1012ba4d
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x100722dd
push ebx
push edi
mov ecx, eax
call fcn.10071d58
mov edi, eax
jmp 0x100722df
mov edi, esi
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1007232d
push 0x1024c714
push 0x41c
call fcn.1012ba4d
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x1007230f
push edi
mov ecx, eax
call fcn.10071dcb
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
test esi, esi
jne 0x10072335
mov ecx, edi
call fcn.10071f6d
push 0x14
push edi
call fcn.1012b624
pop ecx
pop ecx
xor eax, eax
call fcn.1012b643
ret
mov eax, ebx
jmp 0x1007232f