joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4869c5
Capabilities:
Enumerate files on windows
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x874
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x206
push esi
lea eax, [esp + 0x42e]
push ebx
push eax
mov byte [esp + 0x1b], bl
mov word [esp + 0x434], bx
call fcn.0048af40
push esi
lea eax, [esp + 0x232]
push ebx
push eax
mov word [esp + 0x238], bx
call fcn.0048af40
push esi
lea eax, [esp + 0x36]
push ebx
push eax
mov word [esp + 0x3c], bx
call fcn.0048af40
push 0x250
lea eax, [esp + 0x658]
push ebx
push eax
call fcn.0048af40
add esp, 0x30
mov esi, 0x104
push esi
lea eax, [esp + 0x224]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push esi
lea eax, [esp + 0x224]
push eax
lea eax, [esp + 0x430]
push eax
call fcn.00492480
add esp, 0xc
push str.________.sys
lea eax, [esp + 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x630]
push eax
lea eax, [esp + 0x42c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x486b6e
test byte [esp + 0x630], 0x10
jne 0x486b4d
push esi
lea eax, [esp + 0x224]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00492480
add esp, 0xc
lea eax, [esp + 0x65c]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call fcn.0048b241
mov edi, eax
mov dword [esp], str.xxxxxxxx.sys
call fcn.0048b241
cmp edi, eax
pop ecx
jne 0x486b4d
push ebx
push 0x80
push 3
push ebx
push 7
push SysReAllocString
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x486b38
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esp + 0x14], 0x3c00
jle 0x486b38
push str.DeviceGuntior
jmp 0x486b3d
push str.DeviceSixser
lea eax, [esp + 0x1c]
push eax
call fcn.00486b83
cmp al, bl
pop ecx
pop ecx
jne 0x486b69
lea eax, [esp + 0x630]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x486a97
jmp 0x486b6e
mov byte [esp + 0xf], 1
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x486b83
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push SysReAllocString
push dword [ebp + 8]
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x10], esi
je 0x486c3f
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x486c28
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
call fcn.0048b241
mov esi, eax
add esi, esi
cmp dword [ebp - 8], ebx
pop ecx
je 0x486c28
sub edi, esi
cmp edi, ebx
jle 0x486c1f
mov eax, dword [ebp - 8]
push esi
push dword [ebp + 0xc]
add eax, ebx
push eax
call fcn.0048df92
add esp, 0xc
test eax, eax
je 0x486c1b
inc ebx
cmp ebx, edi
jl 0x486bfe
jmp 0x486c1f
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
cmp dword [ebp - 0xc], 0xffffffff
pop edi
je 0x486c3f
push dword [ebp - 0xc]
call esi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret
Function at 0x486c46
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
push ebx
push esi
push edi
push 0x14
pop ecx
push 0x13
mov esi, str.C:WINDOWS_system32driversp2phook.sys
lea edi, [ebp - 0x27c]
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, str.C:WINDOWS_system32drivers_nthook.sys
lea edi, [ebp - 0x22c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
push 0x13
pop ecx
push 0x14
lea edi, [ebp - 0x1de]
stosw word es:[edi], ax
mov esi, str.C:WINDOWS_system32drivers_nhook.sys
lea edi, [ebp - 0x1dc]
rep movsd dword es:[edi], dword [esi]
pop ecx
push 0xe
lea edi, [ebp - 0x190]
stosd dword es:[edi], eax
mov esi, str.C:WINDOWS_system32driverspersist.sys
lea edi, [ebp - 0x18c]
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, str.C:WINDOWS_system32uspx.dll
lea edi, [ebp - 0x13c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x102]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0x10
pop ecx
xor eax, eax
mov esi, str.C:WINDOWS_system32_safemon.dll
lea edi, [ebp - 0xec]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0xac]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xe
pop ecx
mov esi, str.C:WINDOWS_system32ups.dll
lea edi, [ebp - 0x9c]
rep movsd dword es:[edi], dword [esi]
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
xor edi, edi
lea esi, [ebp - 0x27c]
push esi
call ebx
test eax, eax
jne 0x486d46
inc edi
add esi, 0x50
cmp edi, 7
jl 0x486d08
push 0x12
pop ecx
mov esi, str.C:WINDOWS_system32drivers_beep.sys
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
movsw word es:[edi], word [esi]
call ebx
test eax, eax
je 0x486d3f
lea eax, [ebp - 0x4c]
push eax
call fcn.00486d4a
test al, al
pop ecx
jne 0x486d46
xor al, al
pop edi
pop esi
pop ebx
leave
ret
mov al, 1
jmp 0x486d41
Function at 0x486d4a
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push SysReAllocString
push dword [ebp + 8]
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x10], esi
je 0x486e13
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x486e0a
push edi
push 0xc
pop ecx
push ebx
push ebx
push ebx
push 4
mov esi, str.DeviceBeep_DeviceName
lea edi, [ebp - 0x40]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov edi, eax
lea eax, [ebp - 0x40]
push eax
call fcn.0048b241
mov esi, eax
add esi, esi
cmp edi, ebx
pop ecx
je 0x486e00
mov eax, dword [ebp - 8]
sub eax, esi
cmp eax, ebx
mov dword [ebp - 8], eax
jle 0x486df9
push esi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebx + edi]
push eax
call fcn.004b37ee
add esp, 0xc
test eax, eax
je 0x486df5
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x486dd8
jmp 0x486df9
mov byte [ebp - 1], 1
push edi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret

Function at 0x487013
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 0xe
pop ecx
mov esi, str.C:WINDOWSconimeSSDT01.SYS
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor bl, bl
stosw word es:[edi], ax
xor edi, edi
lea esi, [ebp - 0x50]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x487064
inc edi
add esi, 0x50
cmp edi, 1
jl 0x48703e
call fcn.00487068
test al, al
je 0x48705d
mov bl, 1
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
mov al, 1
jmp 0x48705f
Function at 0x487068
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x86c
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x206
push esi
lea eax, [esp + 0x426]
push ebx
push eax
mov byte [esp + 0x1b], bl
mov word [esp + 0x42c], bx
call fcn.0048af40
push esi
lea eax, [esp + 0x22]
push ebx
push eax
mov word [esp + 0x28], bx
call fcn.0048af40
push esi
lea eax, [esp + 0x236]
push ebx
push eax
mov word [esp + 0x23c], bx
call fcn.0048af40
push 0x250
lea eax, [esp + 0x650]
push ebx
push eax
call fcn.0048af40
add esp, 0x30
mov esi, 0x104
push esi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push esi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x428]
push eax
call fcn.00492480
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
push str..sys
lea eax, [esp + 0x424]
push eax
call edi
lea eax, [esp + 0x628]
push eax
lea eax, [esp + 0x424]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x487195
test byte [esp + 0x628], 0x10
jne 0x487174
push esi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x220]
push eax
call fcn.00492480
add esp, 0xc
lea eax, [esp + 0x654]
push eax
lea eax, [esp + 0x21c]
push eax
call edi
lea eax, [esp + 0x218]
push eax
call fcn.004871a0
test al, al
pop ecx
jne 0x487189
lea eax, [esp + 0x628]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x487130
jmp 0x48718e
mov byte [esp + 0xf], 1
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4871a0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x10], esi
je 0x487275
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0x3c00
mov dword [ebp - 8], eax
jle 0x4871e9
push esi
jmp 0x48726f
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x48726c
push edi
mov esi, str.C:drv.pdb
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
push ebx
push ebx
movsw word es:[edi], word [esi]
push 4
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0048d630
cmp edi, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x487262
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
xor esi, esi
cmp eax, ebx
mov dword [ebp - 8], eax
jle 0x48725b
push dword [ebp - 4]
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + edi]
push eax
call fcn.0048df92
add esp, 0xc
test eax, eax
je 0x487259
inc esi
cmp esi, dword [ebp - 8]
jl 0x48723a
jmp 0x48725b
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x48727b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push ebx
push esi
push edi
push 0x12
pop ecx
mov esi, str.C:Program_FilesAdminMgr_vmqutr.sys
lea edi, [ebp - 0x820]
rep movsd dword es:[edi], dword [esi]
mov ebx, 0x1be
push ebx
lea eax, [ebp - 0x7d6]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.0048af40
push 0x12
pop ecx
mov esi, str.C:Program_FilesAdminMgr_vmqutr.dll
lea edi, [ebp - 0x618]
rep movsd dword es:[edi], dword [esi]
push ebx
lea eax, [ebp - 0x5ce]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.0048af40
push 0x13
pop ecx
add ebx, 0xfffffffe
push ebx
lea eax, [ebp - 0x3c4]
push 0
mov esi, str.C:Program_FilesAdminLive_vbcdtr.sys
lea edi, [ebp - 0x410]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0048af40
push 0x13
pop ecx
mov esi, str.C:Program_FilesAdminLive_vbcdtr.dll
lea edi, [ebp - 0x208]
rep movsd dword es:[edi], dword [esi]
push ebx
xor edi, edi
lea eax, [ebp - 0x1bc]
push edi
push eax
call fcn.0048af40
add esp, 0x30
xor bl, bl
lea esi, [ebp - 0x820]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x487334
inc edi
add esi, 0x208
cmp edi, 4
jl 0x48731b
jmp 0x487336
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x48786a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x4df4b4]
and dword [ebp - 8], 0
and dword [ebp - 0x18], 0
push ebx
push esi
mov esi, 0x4df4b4
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x4df4b4]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
call fcn.00401ac9
lea eax, [ebp - 4]
push eax
call fcn.0048770e
pop ecx
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push str._s.
push eax
call fcn.0041e01b
add esp, 0xc
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x4879ff
lea eax, [ebp - 0x244]
push 0x4baaa8
push eax
call fcn.0048d358
test eax, eax
pop ecx
pop ecx
je 0x4879d7
lea eax, [ebp - 0x244]
push 0x4bf2f0
push eax
call fcn.0048d358
test eax, eax
pop ecx
pop ecx
je 0x4879d7
test byte [ebp - 0x270], 0x10
je 0x487971
mov eax, dword [0x4df4b4]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x14]
push str._s_s_
push eax
call fcn.0041e01b
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x14]
push edi
call fcn.0048786a
add esp, 0x18
test eax, eax
jne 0x48796c
cmp dword [ebp + 0xc], eax
je 0x487a33
lea eax, [edi - 0x10]
jmp 0x4879d2
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0xc]
call fcn.00401965
lea eax, [ebp - 0xc]
call fcn.004051fc
or dword [ebp - 8], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 0x20]
call fcn.0041df59
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x4879b1
cmp dword [ebp + 0xc], eax
jne 0x4879b1
mov bl, 1
jmp 0x4879b3
xor bl, bl
test byte [ebp - 8], 1
je 0x4879c8
mov eax, dword [ebp - 0x20]
and dword [ebp - 8], 0xfffffffe
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
test bl, bl
jne 0x487a36
call fcn.0040151c
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4878e9
mov dword [ebp - 0x18], 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
call esi
lea eax, [ebp - 4]
call fcn.00487785
mov edi, dword [ebp - 4]
push edi
call esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
lea eax, [edi - 0x10]
call fcn.0040151c
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret
lea eax, [edi - 0x10]
call fcn.0040151c
jmp 0x4879f6
Function at 0x487f4a
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
push ebx
push esi
xor esi, esi
cmp dword [0x4e08fc], esi
push edi
jne 0x487f67
xor eax, eax
jmp 0x4880ad
cmp eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
je 0x4880aa
cmp eax, 4
je 0x4880aa
cmp eax, 8
je 0x4880aa
mov ebx, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push eax
push esi
push 0x400
call ebx
cmp eax, esi
mov dword [ebp - 8], eax
je 0x4880aa
xor eax, eax
mov dword [ebp - 0x2c], esi
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push 0x18
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 8]
call dword [0x4e08fc]
test eax, eax
jne 0x488095
mov eax, dword [ebp - 0x18]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x488095
cmp eax, 8
je 0x488095
push eax
push esi
push 0x410
call ebx
mov edi, eax
cmp edi, esi
mov dword [ebp - 4], edi
je 0x488095
mov ebx, 0x206
push ebx
lea eax, [ebp - 0x236]
push esi
push eax
mov word [ebp - 0x238], si
call fcn.0048af40
add esp, 0xc
push 0x103
lea eax, [ebp - 0x238]
push eax
push esi
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x488073
push ebx
lea eax, [ebp - 0x43e]
push esi
push eax
mov word [ebp - 0x440], si
call fcn.0048af40
add esp, 0xc
push 0x104
lea eax, [ebp - 0x440]
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x488095
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.004880b4
test eax, eax
je 0x488095
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x48807f
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
lea eax, [ebp - 0x238]
push eax
push dword [ebp + 8]
call fcn.00401ac9
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
cmp dword [ebp - 4], esi
je 0x4880aa
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4880b4
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x4bc
push edi
xor edi, edi
cmp dword [ebp + 0x7c], edi
jne 0x4880ce
xor eax, eax
jmp 0x488191
push ebx
push esi
lea eax, [ebp - 0x44c]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
test eax, eax
je 0x488181
cmp word [ebp - 0x44c], di
mov dword [ebp + 0x6c], edi
je 0x488181
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
lea esi, [ebp - 0x44c]
push 0x4ca4e0
push esi
call ebx
test eax, eax
je 0x48816b
push 0x4ca4e8
push esi
call ebx
test eax, eax
je 0x48816b
mov ax, word [esi]
and word [ebp + 0x68], 0
mov word [ebp + 0x64], ax
mov ax, word [ebp + edi - 0x44a]
mov word [ebp + 0x66], ax
push 0x64
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x64]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceW]
test eax, eax
je 0x48818d
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, dword [ebp + 0x78]
mov esi, eax
push esi
lea eax, [ebp - 0x64]
push eax
push edi
call fcn.0048d9f2
add esp, 0xc
test eax, eax
je 0x488199
add dword [ebp + 0x6c], 4
mov edi, dword [ebp + 0x6c]
add edi, edi
lea esi, [ebp + edi - 0x44c]
cmp word [esi], 0
jne 0x488106
push dword [ebp + 0x78]
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
xor eax, eax
pop esi
pop ebx
pop edi
add ebp, 0x70
leave
ret 8
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea eax, [edi + esi*2]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
xor eax, eax
inc eax
jmp 0x48818f
Function at 0x488726
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x4d9464]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x74]
push eax
xor ebx, ebx
mov esi, 0x20019
push esi
push ebx
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x488816
push edi
lea eax, [ebp - 0x6c]
push str._sConnection
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push esi
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x488816
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push str.MediaSubType
push dword [ebp - 0x70]
mov edi, 0x104
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x78], edi
call esi
test eax, eax
jne 0x4887d4
cmp dword [ebp - 0x6c], 1
jne 0x488816
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push str.PnpInstanceID
push dword [ebp - 0x70]
mov dword [ebp - 0x78], edi
call esi
test eax, eax
jne 0x488816
mov esi, 0x4ca600
push esi
call fcn.0048d630
push eax
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.0048faee
add esp, 0x10
test eax, eax
jne 0x488816
mov dword [ebp - 0x7c], 1
cmp dword [ebp - 0x70], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x488826
push dword [ebp - 0x70]
call esi
cmp dword [ebp - 0x74], ebx
je 0x488830
push dword [ebp - 0x74]
call esi
mov ecx, dword [ebp + 0x9c]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493eec
add ebp, 0xa0
leave
ret

Function at 0x48884b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [eax]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], 4
je 0x48888d
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
push edi
push 0x4ca6f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48888d
cmp dword [ebp - 8], 4
jne 0x48888d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
inc edi
mov eax, edi
pop edi
leave
ret 4
Function at 0x48926a
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x4d9464]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push 0x9a
lea eax, [ebp - 0x27]
push 0
push eax
mov byte [ebp - 0x28], 0
call fcn.0048af40
add esp, 0xc
push 0x9b
lea eax, [ebp - 0x28]
push eax
xor esi, esi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x4892c1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4892c1
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00493eec
add ebp, 0x78
leave
ret

Function at 0x4892d3
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
xor esi, esi
mov dword [ebp - 4], 0x288
push dword [ebp - 4]
call fcn.00489ea1
mov edi, eax
test edi, edi
pop ecx
je 0x489320
push dword [ebp - 4]
push 0
push edi
call fcn.0048af40
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
mov esi, eax
cmp esi, 0x6f
jne 0x489326
push edi
call fcn.0048afba
pop ecx
xor edi, edi
inc ebx
cmp ebx, 2
jl 0x4892e9
test esi, esi
jne 0x48936d
test edi, edi
mov esi, edi
je 0x489378
push 6
lea eax, [esi + 0x10c]
push str.vmware
push eax
call fcn.00490af0
add esp, 0xc
test eax, eax
jne 0x489352
mov esi, dword [esi]
test esi, esi
jne 0x489330
jmp 0x48936d
push 8
add esi, 0x194
push esi
push dword [ebp + 8]
call fcn.0048b650
add esp, 0xc
mov dword [ebp - 8], 1
test edi, edi
je 0x489378
push edi
call fcn.0048afba
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret