joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480084
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov ebx, eax
mov eax, dword [0x508098]
cmp dword [eax], 2
je 0x4800a1
mov byte [ebp - 1], 1
jmp 0x48026f
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0x20
push 2
push 0x506dd4
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x48026f
xor eax, eax
push ebp
push 0x480268
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 5
jb 0x480103
push 0x48027c
push 0x4802a8
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409620
mov ebx, eax
test ebx, ebx
je 0x48012a
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
test eax, eax
je 0x480251
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x480251
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x48017b
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
je 0x48015c
call fcn.00404b68
jmp 0x48026f
lea eax, [ebp - 0x10]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x48017b
call fcn.00404b68
jmp 0x48026f
xor eax, eax
push ebp
push 0x48024a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x4801be
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x4801be
call fcn.00404b68
call fcn.00404b68
jmp 0x48026f
mov eax, dword [ebp - 0x14]
call fcn.00403018
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x4801f0
call fcn.00404b68
call fcn.00404b68
jmp 0x48026f
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x48022b
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x480227
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x14
cmp eax, 4
jne 0x480227
mov byte [ebp - 1], 1
jmp 0x48022b
inc ebx
dec esi
jne 0x4801fd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480251
mov eax, dword [ebp - 0x18]
call fcn.00403034
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48026f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
movzx eax, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x480d2c
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x480dd3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x508098]
cmp dword [eax], 2
jne 0x480d6f
push 1
mov eax, esi
call fcn.004064d4
push eax
mov eax, edi
call fcn.004064d4
push eax
call sub.kernel32.dll_MoveFileExW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x480dbd
mov eax, esi
call fcn.004064d4
mov edx, eax
lea eax, [ebp - 4]
call fcn.00406604
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x480da2
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x480dbd
mov eax, esi
call fcn.004064d4
push eax
mov eax, edi
call fcn.004064d4
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480dda
lea eax, [ebp - 4]
call fcn.00406438
ret

Function at 0x481b94
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor edx, edx
mov dword [eax + 0x14], edx
xor edx, edx
mov dword [eax + 0x18], edx
ret
Function at 0x4a51ac
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor ebx, ebx
mov dword [ebp - 0x114], 0x114
lea eax, [ebp - 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x4a51f8
cmp dword [ebp - 0x104], 2
jne 0x4a51f8
cmp dword [ebp - 0x110], 5
ja 0x4a51f6
cmp dword [ebp - 0x110], 5
jne 0x4a51f8
cmp dword [ebp - 0x10c], 1
jb 0x4a51f8
mov bl, 1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a5200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.0040e160
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a67f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.0040e160
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4aa124
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.0040e160
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4aa7a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.0040e160
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4aa7d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x4aa8ec
push dword fs:[eax]
mov dword fs:[eax], esp
inc dword [0x50e434]
cmp dword [0x50e430], 0
jne 0x4aa8c7
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 6
jb 0x4aa8c7
lea eax, [ebp - 8]
call fcn.004aa7a0
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0047e328
lea eax, [ebp - 4]
mov edx, 0x4aa908
call fcn.00406854
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_LoadLibraryW
mov dword [0x50e430], eax
cmp dword [0x50e430], 0
je 0x4aa8c7
push 0x4aa924
mov eax, dword [0x50e430]
push eax
call fcn.00409620
mov dword [0x50e414], eax
push 0x4aa944
mov eax, dword [0x50e430]
push eax
call fcn.00409620
mov dword [0x50e418], eax
push 0x4aa96c
mov eax, dword [0x50e430]
push eax
call fcn.00409620
mov dword [0x50e41c], eax
push 0x4aa980
mov eax, dword [0x50e430]
push eax
call fcn.00409620
mov dword [0x50e420], eax
push 0x4aa998
mov eax, dword [0x50e430]
push eax
call fcn.00409620
mov dword [0x50e424], eax
push 0x4aa9ac
mov eax, dword [0x50e430]
push eax
call fcn.00409620
mov dword [0x50e428], eax
cmp dword [0x50e430], 0
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa8f3
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406440
ret
Function at 0x4ab76c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x50e43c
mov eax, esi
mov edx, 8
test al, 1
je 0x4ab788
shr eax, 1
xor eax, 0xedb88320
jmp 0x4ab78a
shr eax, 1
dec edx
jne 0x4ab77b
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4ab774
pop esi
ret

Function at 0x4ab7a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x50e438], 0
jne 0x4ab7c3
call fcn.004ab76c
push 1
push 0x50e438
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x4ab7ee
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x50e43c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4ab7c9
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4ac358
Capabilities:
Hash data with md5

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

Function at 0x4ad044
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov byte [ebp - 5], 0
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.004064d4
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jle 0x4ad0e6
mov eax, ebx
call fcn.00403018
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4ad0df
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
push edi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4ad0c9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4ad108
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4ad0c9
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad0fd
mov eax, dword [ebp - 0x10]
call fcn.00403034
ret
mov eax, dword [0x508098]
cmp dword [eax], 1
je 0x4ad0fd
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004ace68
mov byte [ebp - 5], al
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ad310
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004ad2c4
test al, al
jne 0x4ad331
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4ad37f
xor eax, eax
push ebp
push 0x4ad36f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_CreateDirectoryW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad376
lea eax, [ebp - 0xc]
call fcn.004ad300
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b0074
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
call fcn.00406430
xor eax, eax
push ebp
push 0x4b0158
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x18], 0
jne 0x4b00bb
lea edx, [ebp + 0x18]
mov eax, edi
call fcn.0047e804
cmp dword [ebp + 0x18], 0
jne 0x4b00bb
lea eax, [ebp + 0x18]
call fcn.0047f7d8
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403540
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x540
test ebx, ebx
je 0x4b00e6
mov eax, ebx
call fcn.004064d4
mov dword [ebp - 0x34], eax
mov eax, edi
call fcn.004064d4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
call fcn.004064d4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
call fcn.004064d4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4b0128
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
jmp 0x4b0142
mov dword [esi], 0x103
mov eax, dword [ebp - 8]
test eax, eax
je 0x4b0142
push esi
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ebp + 0x14]
call fcn.004afd14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b015f
lea eax, [ebp + 0x18]
call fcn.00406438
ret

Function at 0x4b0390
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffdc
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4b03be
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x10
call fcn.00406640
jmp 0x4b03c7
mov eax, ebx
xor edx, edx
call fcn.00406448
add esp, 0x24
pop ebx
ret

Function at 0x4b03cc
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
mov dword [esp], 0x101
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x4b03fd
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x101
call fcn.00406640
jmp 0x4b0406
mov eax, ebx
xor edx, edx
call fcn.00406448
add esp, 0x208
pop ebx
ret

Function at 0x4b0418
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x508098]
cmp dword [eax], 2
jne 0x4b0480
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4b043b
xor eax, eax
jmp 0x4b048f
lea eax, [esp + 8]
push eax
push 0x4b0494
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x4b0480
xor eax, eax
jmp 0x4b048f
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x4b04bc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4b0516
inc esi
xor edi, edi
cmp edi, 1
jne 0x4b04e2
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x4b04f0
cmp edi, 1
jle 0x4b04f0
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004ad4a8
test eax, eax
jne 0x4b0516
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4b0516
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x4b0516
inc edi
dec esi
jne 0x4b04d2
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4b0d74
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, eax
push 0
push 2
lea eax, [esp + 8]
push eax
call fcn.0047fb88
and eax, 0x7f
mov ecx, dword [eax*4 + 0x507310]
mov edx, 0x80000002
xor eax, eax
call fcn.0047fdb8
test eax, eax
jne 0x4b0dbe
mov eax, esi
call fcn.004064d4
push eax
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteValueW
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
call fcn.004064d4
push eax
call sub.gdi32.dll_RemoveFontResourceW
test eax, eax
je 0x4b0ddf
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageW
pop edx
pop esi
pop ebx
ret
Function at 0x4b8a14
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1200], ebx
mov dword [ebp - 0x1204], ebx
mov dword [ebp - 0x11f8], ebx
mov dword [ebp - 0x11fc], ebx
mov dword [ebp - 0x11f4], ebx
mov dword [ebp - 0x1004], ecx
mov dword [ebp - 0x11d8], edx
mov dword [ebp - 0x11dc], eax
lea esi, [ebp - 0x11ea]
lea edi, [ebp - 0x11dc]
xor eax, eax
push ebp
push 0x4b8c41
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x11e0], eax
xor eax, eax
mov dword [ebp - 0x11d4], eax
mov eax, dword [edi]
add eax, 0x10
push eax
lea ecx, [ebp - 0x11cf]
mov edx, dword [ebp - 0x1004]
mov eax, dword [ebp - 0x11d8]
call fcn.004b56a4
cmp dword [ebp - 0x1084], 0x418
jle 0x4b8ad6
lea ecx, [ebp - 0x11f4]
mov edx, dword [ebp - 0x1004]
mov al, 0xc3
call fcn.004abea8
mov ecx, dword [ebp - 0x11f4]
mov dl, 1
mov eax, dword [0x40ab6c]
call fcn.004119a0
call fcn.00404a74
lea eax, [ebp - 0x11fc]
lea edx, [ebp - 0x1184]
mov ecx, 0x80
push 0
call fcn.004055f4
mov edx, dword [ebp - 0x11fc]
lea ecx, [ebp - 0x11f8]
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.004b8370
mov edx, dword [ebp - 0x11f8]
mov eax, dword [edi]
add eax, 0x14
call fcn.00406448
lea eax, [ebp - 0x1204]
lea edx, [ebp - 0x1104]
mov ecx, 0x80
push 0
call fcn.004055f4
mov edx, dword [ebp - 0x1204]
lea ecx, [ebp - 0x1200]
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.004b8370
mov edx, dword [ebp - 0x1200]
mov eax, dword [edi]
add eax, 0x18
call fcn.00406448
lea eax, [ebp - 0x1078]
movzx eax, byte [eax]
mov edx, dword [edi]
mov byte [edx + 0x1d], al
mov ebx, dword [ebp - 0x1080]
test ebx, ebx
jle 0x4b8c02
push ebp
mov eax, esi
mov edx, 0xa
call fcn.004b899c
pop ecx
mov eax, dword [esi + 6]
push eax
mov eax, dword [edi]
mov eax, dword [eax]
mov ecx, dword [esi + 2]
movzx edx, word [esi]
call fcn.004b5e58
mov dword [ebp - 0x11f0], eax
cmp dword [ebp - 0x11f0], 0
jne 0x4b8ba3
push ebp
call fcn.004b87f4
pop ecx
xor eax, eax
push ebp
push 0x4b8bd4
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov eax, dword [ebp - 0x11f0]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x11f0]
add eax, 0x12
call fcn.004b899c
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b8bee
mov edx, dword [ebp - 0x11f0]
mov eax, dword [edi]
call fcn.004b5e94
dec ebx
jne 0x4b8b6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8c48
lea eax, [ebp - 0x1204]
call fcn.0040527c
lea eax, [ebp - 0x1200]
call fcn.00406438
lea eax, [ebp - 0x11fc]
call fcn.0040527c
lea eax, [ebp - 0x11f8]
mov edx, 2
call fcn.00406440
ret
Function at 0x4b8de4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [0x508098]
cmp dword [eax], 2
jne 0x4b8e0f
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 5
jae 0x4b8e1b
mov dword [ebp - 0xc], 1
jmp 0x4b9026
push 0x4b9034
call sub.kernel32.dll_GetModuleHandleW_2
mov esi, eax
push 0x4b9050
push esi
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
push 0x4b9068
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
push 0x4b9080
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x14], eax
test edi, edi
je 0x4b8e60
cmp dword [ebp - 0x10], 0
je 0x4b8e60
cmp dword [ebp - 0x14], 0
jne 0x4b8e6c
mov dword [ebp - 0xc], 0x7f
jmp 0x4b9026
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
call edi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4b9026
xor edx, edx
push ebp
push 0x4b901f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp + 0xc]
shl eax, 5
call fcn.00403000
mov dword [ebp - 0x24], eax
mov esi, ebx
mov edi, dword [ebp + 0xc]
dec edi
test edi, edi
jl 0x4b8f5b
inc edi
xor ebx, ebx
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push eax
movzx eax, byte [esi + 6]
push eax
push esi
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
jne 0x4b8f10
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4b8f06
mov dword [ebp - 0xc], 0x57
call fcn.00404b68
jmp 0x4b9026
mov eax, ebx
add eax, eax
add eax, eax
mov edx, dword [ebp - 0x24]
mov ecx, dword [esi + 0x10]
mov dword [edx + eax*8], ecx
mov edx, dword [ebp - 0x24]
mov dword [edx + eax*8 + 4], 1
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [edx + eax*8 + 8], ecx
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [edx + eax*8 + 0x14], ecx
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [edx + eax*8 + 0x18], ecx
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [edx + eax*8 + 0x1c], ecx
add esi, 0x14
inc ebx
dec edi
jne 0x4b8eca
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b8f81
call fcn.00404b68
jmp 0x4b9026
xor eax, eax
push ebp
push 0x4b8fc5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
call dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8fcc
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_LocalFree
ret
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4bfebc
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda4
push ebx
xor edx, edx
mov dword [ebp - 0x25c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4bff8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 0x258]
push eax
lea edx, [ebp - 0x25c]
mov eax, ebx
call fcn.0047e328
lea eax, [ebp - 0x25c]
mov edx, 0x4bffac
call fcn.00406854
mov eax, dword [ebp - 0x25c]
call fcn.004064d4
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4bff75
xor eax, eax
push ebp
push 0x4bff6e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x258]
call fcn.004bfe6c
test al, al
je 0x4bff43
mov byte [ebp - 1], 1
jmp 0x4bff57
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4bff2e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bff75
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bff95
lea eax, [ebp - 0x25c]
call fcn.00406438
ret

Function at 0x4bffb0
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffd4c
mov ebx, edx
mov esi, eax
push 0x200
push 0x2b4
lea eax, [esp + 8]
push eax
push 0
mov eax, esi
call fcn.004064d4
push eax
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x4bfff0
mov eax, ebx
lea edx, [esp + 0xc]
mov ecx, 0x104
call fcn.00406640
jmp 0x4bfff9
mov eax, ebx
xor edx, edx
call fcn.00406448
add esp, 0x2b4
pop esi
pop ebx
ret

Function at 0x4c0004
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffd4c
mov ebx, edx
mov esi, eax
movzx eax, bl
mov eax, dword [eax*4 + 0x5073e8]
or eax, 0x4001
push eax
push 0x2b4
lea eax, [esp + 8]
push eax
push 0
mov eax, esi
call fcn.004064d4
push eax
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x4c0043
mov eax, dword [esp + 4]
jmp 0x4c0045
xor eax, eax
add esp, 0x2b4
pop esi
pop ebx
ret

Function at 0x4c0050
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffd4c
mov ebx, eax
movzx eax, bl
mov eax, dword [eax*4 + 0x5073f0]
or eax, 0x4011
push eax
push 0x2b4
lea eax, [esp + 8]
push eax
push 0x10
push 0x4c0094
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x4c0089
mov eax, dword [esp + 4]
jmp 0x4c008b
xor eax, eax
add esp, 0x2b4
pop ebx
ret

Function at 0x4c0073
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffd4c
mov ebx, eax
movzx eax, bl
mov eax, dword [eax*4 + 0x5073f0]
or eax, 0x4011
push eax
push 0x2b4
lea eax, [esp + 8]
push eax
push 0x10
push 0x4c0094
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x4c0089
mov eax, dword [esp + 4]
jmp 0x4c008b
xor eax, eax
add esp, 0x2b4
pop ebx
ret