joyce8/EMBER2024-capa huggingface dataset:
Function at 0x546b1c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x546b84
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
xor ecx, ecx
mov edx, 0x160
call fcn.00403d74
test ebx, ebx
jne 0x546b59
mov word [ebp - 2], 0
lea ebx, [ebp - 2]
or esi, 0x4008
push esi
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push ebx
call sub.shell32.dll_SHGetFileInfoA
mov ebx, dword [ebp - 0x160]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x546b90
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x546e14
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
push 0x546f78
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x546f6e
xor eax, eax
push ebp
push 0x546f67
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4001
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push 0x546f84
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
push 0x4000
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push 0x546f84
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
push 0x8000
push 0x10
push 0x10
push 1
push 0x1d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 1
push ebx
push 0xffffffffffffffff
push esi
call sub.comctl32.dll_ImageList_ReplaceIcon
push eax
push esi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x20
push 0x20
push 1
push 0x1d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 1
push ebx
push 0xffffffffffffffff
push edi
call sub.comctl32.dll_ImageList_ReplaceIcon
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x10
push 0x10
push 1
push 0x1e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 2
push ebx
push 0xffffffffffffffff
push esi
call sub.comctl32.dll_ImageList_ReplaceIcon
push eax
push esi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x20
push 0x20
push 1
push 0x1e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 2
push ebx
push 0xffffffffffffffff
push edi
call sub.comctl32.dll_ImageList_ReplaceIcon
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
mov byte [0x5d4e80], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x546f6e
cmp dword [ebp - 4], 0
je 0x546f66
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x546f88
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffea0
mov ebx, eax
call fcn.005467f8
test al, al
je 0x546fb4
cmp dword [0x5dca48], 0x40047
jl 0x546fb4
cmp byte [0x5d4e80], 0
jne 0x546fb4
call fcn.00546e14
movzx eax, bl
mov eax, dword [eax*4 + 0x5d4e84]
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 8]
push eax
push 0
push 0x546fe4
call sub.shell32.dll_SHGetFileInfoA
add esp, 0x160
pop ebx
ret

Function at 0x546fce
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffea0
mov ebx, eax
call fcn.005467f8
test al, al
je 0x546fb4
cmp dword [0x5dca48], 0x40047
jl 0x546fb4
cmp byte [0x5d4e80], 0
jne 0x546fb4
call fcn.00546e14
movzx eax, bl
mov eax, dword [eax*4 + 0x5d4e84]
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 8]
push eax
push 0
push 0x546fe4
call sub.shell32.dll_SHGetFileInfoA
add esp, 0x160
pop ebx
ret

Function at 0x5500b0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x164], ebx
mov ebx, ecx
mov esi, eax
xor eax, eax
push ebp
push 0x55014a
push dword fs:[eax]
mov dword fs:[eax], esp
test edx, 0x40000000
jne 0x5500fc
lea edx, [ebp - 0x164]
mov eax, dword [0x5d5e8c]
call fcn.004081b8
mov eax, dword [ebp - 0x164]
mov edx, ebx
call fcn.0054b448
jmp 0x550131
push 0x408
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
push esi
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x55012a
mov eax, ebx
lea edx, [ebp - 0x50]
mov ecx, 0x50
call fcn.00405d08
jmp 0x550131
mov eax, ebx
call fcn.00405a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x550151
lea eax, [ebp - 0x164]
call fcn.00405a98
ret

Function at 0x550b44
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x158], ebx
mov ebx, ecx
test ebx, ebx
js 0x550b77
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x550b70
mov edx, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00405f18
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 4]
mov edx, dword [0x40110c]
call fcn.004069f0
xor eax, eax
push ebp
push 0x550d08
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x550cd0
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 4]
Function at 0x551e8c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x551f0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x700f0037
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00551f94
mov eax, dword [ebp - 4]
call fcn.0054fc1c
test al, al
je 0x551edf
mov eax, dword [ebp - 4]
call fcn.00405f28
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x551edf
and dword [ebp - 8], 0xfffbffff
lea eax, [ebp - 8]
push eax
lea eax, [ebx + 0xc]
push eax
push 1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x410]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x551f15
lea eax, [ebp - 4]
call fcn.00405a98
ret

Function at 0x551f34
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov esi, edx
mov ebx, eax
cmp dword [ebx + 0x14], 0
jne 0x551f7f
push 0x208
push 0x160
lea eax, [esp + 8]
push eax
push 0
mov eax, ebx
call fcn.00551e68
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x551f7f
lea eax, [esp + 0xc]
call fcn.0040be88
mov ecx, eax
lea edx, [esp + 0xc]
lea eax, [ebx + 0x14]
call fcn.00405b88
mov eax, esi
mov edx, dword [ebx + 0x14]
call fcn.00405aec
add esp, 0x160
pop esi
pop ebx
ret

Function at 0x555bb4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00405f28
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 3
je 0x555bf6
dec eax
je 0x555bd7
sub eax, 2
je 0x555bf6
jmp 0x555c07
movzx eax, byte [ebx]
call fcn.00548118
test al, al
je 0x555c07
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xff9c
call fcn.00404d34
jmp 0x555c07
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xff9c
call fcn.00404d34
pop esi
pop ebx
pop ebp
ret

Function at 0x555c0c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x555cbb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x410], 0
jne 0x555c5a
push 0x465
mov eax, dword [ebp - 4]
call fcn.0046fcd8
mov ecx, eax
mov dl, 1
mov eax, dword [0x55212c]
call fcn.00552198
mov edx, dword [ebp - 4]
mov dword [edx + 0x410], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x410]
call fcn.00552660
lea eax, [ebp - 8]
mov edx, 0x555cd0
call fcn.00405b30
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x555ca5
test bl, 1
je 0x555c9e
lea eax, [ebp - 8]
call fcn.00405f88
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.00555bb4
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x555c82
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x555cc2
lea eax, [ebp - 8]
call fcn.00405a98
ret
Function at 0x55682c
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405f18
xor eax, eax
push ebp
push 0x55694a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x55691d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
or eax, 1
push eax
call sub.kernel32.dll_SetErrorMode
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 4]
call fcn.00405f28
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5568fa
test byte [ebp - 0x14c], 0x10
jne 0x5568dd
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.00405d08
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
call fcn.0040abac
mov edx, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x5568a0
push ebx
call sub.kernel32.dll_FindClose_1
mov byte [ebp - 5], 1
jmp 0x556906
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x556924
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x55c8dc
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, eax
movzx eax, byte [ebx + 4]
sub al, 1
jb 0x55c8eb
je 0x55c8f0
jmp 0x55c914
mov eax, dword [ebx + 8]
pop ebx
ret
cmp dword [ebx + 8], 0
jne 0x55c90f
lea eax, [ebx + 8]
push eax
movzx eax, byte [ebx + 0xc]
push eax
mov eax, dword [0x5d5d78]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebx + 8]
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x56d884
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00434584
cmp ebx, dword [ebp - 8]
jge 0x56d8e7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00434a0c
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00434a0c
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00434a38
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x56d8ad
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x56d8f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00434584
cmp ebx, dword [ebp - 8]
jge 0x56d953
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00434a0c
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00434a0c
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00434a38
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x56d919
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x57e148
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405f18
xor eax, eax
push ebp
push 0x57e1b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405aec
mov eax, ebx
call fcn.00405f80
mov eax, dword [ebx]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x57e18c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x57e1a0
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x57e195
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57e1bd
lea eax, [ebp - 4]
call fcn.00405a98
ret

Function at 0x581d08
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405f18
xor eax, eax
push ebp
push 0x581e3c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00407cbc
cmp dword [0x5dcbe4], 0
je 0x581e1e
mov eax, dword [0x5dcbe4]
mov edx, dword [eax]
call dword [edx + 0x70]
xor eax, eax
push ebp
push 0x581e17
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x581db2
mov eax, dword [0x5dcbe0]
call fcn.004072d0
mov esi, eax
test esi, esi
jl 0x581dff
inc esi
xor ebx, ebx
mov eax, dword [0x5dcbe0]
mov eax, dword [eax + ebx*4]
lea edx, [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00405ec0
jne 0x581dac
mov eax, edi
mov edx, dword [0x5dcbe0]
mov edx, dword [edx + ebx*4]
call fcn.00407cd4
jmp 0x581dff
inc ebx
dec esi
jne 0x581d7d
jmp 0x581dff
cmp dword [ebp - 8], 0
je 0x581dff
mov eax, dword [0x5dcbe0]
call fcn.004072d0
mov esi, eax
test esi, esi
jl 0x581dff
inc esi
xor ebx, ebx
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x5dcbe0]
mov eax, dword [eax + ebx*4]
mov edx, dword [eax]
call dword [edx + 0x80]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x581dfb
mov eax, edi
mov edx, dword [0x5dcbe0]
mov edx, dword [edx + ebx*4]
call fcn.00407cd4
jmp 0x581dff
inc ebx
dec esi
jne 0x581dcb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x581e1e
mov eax, dword [0x5dcbe4]
mov edx, dword [eax]
call dword [edx + 0x78]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x581e43
lea eax, [ebp - 0xc]
call fcn.00405a98
lea eax, [ebp - 4]
call fcn.00405a98
ret
Function at 0x585520
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x585529
xchg dword [ebp - 4], ecx
push ebx
push esi
test dl, dl
je 0x585541
add esp, 0xfffffff0
call fcn.00404e9c
mov ebx, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov eax, dword [ebp + 0x14]
call fcn.00405f18
lea eax, [ebp + 0xc]
call fcn.00406774
xor eax, eax
push ebp
push 0x585756
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, ebx
xor edx, edx
mov eax, esi
call fcn.0057ed08
cmp byte [esi + 8], 0
je 0x585722
cmp dword [ebp + 0x10], 0
setne al
mov byte [esi + 8], al
test al, al
je 0x585714
mov eax, dword [ebp + 0x10]
sub eax, 1
je 0x5855b4
sub eax, 2
je 0x5855b4
lea eax, [ebp - 0x24]
call fcn.00580fd4
cmp byte [ebp - 0x12], 0
jne 0x5855b4
xor ebx, ebx
jmp 0x5855b6
mov bl, 1
mov byte [esi + 8], bl
test bl, bl
je 0x585704
cmp dword [ebp + 8], 0xffffffff
je 0x5855e7
mov eax, dword [ebp + 0xc]
xor edx, edx
call fcn.00406534
jne 0x5855eb
cmp dword [ebp + 8], 0
je 0x5855e7
lea eax, [ebp - 0x44]
call fcn.00580fd4
cmp byte [ebp - 0x32], 0
jne 0x5855eb
xor ebx, ebx
jmp 0x5855ed
mov bl, 1
mov byte [esi + 8], bl
test bl, bl
je 0x5856f4
cmp byte [0x5d55fc], 0
jne 0x5856b4
mov byte [0x5d55fc], 1
lea eax, [ebp - 0x64]
call fcn.00580fd4
cmp byte [ebp - 0x52], 0
je 0x585668
push 0x585780
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
push 0x585790
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5d55dc], eax
push 0x5857a8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5d55e0], eax
push 0x5857c0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5d55e4], eax
push 0x5857d0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5d55e8], eax
jmp 0x5856b4
push 0x5857e0
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
push 0x5857ec
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5d55ec], eax
push 0x585800
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5d55f0], eax
push 0x585814
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5d55f4], eax
push 0x585824
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5d55f8], eax
lea eax, [ebp - 0x84]
call fcn.00580fd4
cmp byte [ebp - 0x74], 0
je 0x5856db
cmp dword [ebp + 0x10], 3
jne 0x5856db
lea eax, [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, 0x585838
call fcn.004064c4
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x30], eax
lea eax, [esi + 0x34]
mov edx, dword [ebp + 0xc]
call fcn.004062dc
mov eax, dword [ebp + 8]
mov dword [esi + 0x38], eax
jmp 0x585722
xor ecx, ecx
mov edx, 0x57
mov eax, esi
call fcn.0057f030
jmp 0x585722
xor ecx, ecx
mov edx, 0x78
mov eax, esi
call fcn.0057f030
jmp 0x585722
xor ecx, ecx
mov edx, 0x57
mov eax, esi
call fcn.0057f030
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58575d
lea eax, [ebp - 0x84]
mov edx, dword [0x580ee4]
mov ecx, 4
call fcn.004068b0
lea eax, [ebp + 0xc]
call fcn.004062a0
lea eax, [ebp + 0x14]
call fcn.00405a98
ret
Function at 0x589c00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405f18
mov eax, dword [ebp - 8]
call fcn.00405f18
mov eax, dword [ebp - 0xc]
call fcn.00405f18
lea ebx, [ebp - 0x4c]
xor eax, eax
push ebp
push 0x589d12
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor ecx, ecx
mov edx, 0x3c
call fcn.00403d74
mov dword [ebx], 0x3c
mov dword [ebx + 4], 0x440
xor eax, eax
mov dword [ebx + 8], eax
mov eax, 0x589d24
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 8]
call fcn.00405f28
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 4]
call fcn.00405f28
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0xc]
call fcn.00405f28
mov dword [ebx + 0x18], eax
cmp byte [ebp + 0xc], 0
je 0x589c91
mov dword [ebx + 0x1c], 5
jmp 0x589c96
xor eax, eax
mov dword [ebx + 0x1c], eax
push ebx
call sub.shell32.dll_ShellExecuteExA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x589cc0
xor eax, eax
mov dword [ebx + 0xc], eax
push ebx
call sub.shell32.dll_ShellExecuteExA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x589cc0
or ebx, 0xffffffff
jmp 0x589cf7
cmp byte [ebp + 8], 0
je 0x589ce7
mov eax, dword [0x5d5d78]
mov eax, dword [eax]
call fcn.00485f60
push 0x3e8
mov eax, dword [ebx + 0x38]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x589cc6
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x38]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov ebx, dword [ebp - 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x589d19
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405abc
ret
Function at 0x58a348
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
call fcn.00405a98
xor edx, edx
push ebp
push 0x58a497
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x5d6114]
cmp dword [eax], 2
jne 0x58a44f
lea eax, [ebp - 0x10]
push eax
push 0x20008
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
mov eax, dword [ebp - 0x14]
inc eax
call fcn.00402fc0
mov ebx, eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x14]
push edx
push eax
push ebx
push 1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebx]
push eax
push 0
call sub.advapi32.dll_LookupAccountSidA
mov eax, dword [ebp - 0x18]
inc eax
call fcn.00402fc0
mov esi, eax
mov eax, dword [ebp - 0x1c]
inc eax
call fcn.00402fc0
mov edi, eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push esi
mov eax, dword [ebx]
push eax
push 0
call sub.advapi32.dll_LookupAccountSidA
cmp byte [ebp - 1], 0
je 0x58a425
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00405c90
jmp 0x58a42f
mov eax, dword [ebp - 8]
mov edx, edi
call fcn.00405c90
mov eax, edi
call fcn.00402fdc
mov eax, esi
call fcn.00402fdc
mov eax, ebx
call fcn.00402fdc
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x58a48d
mov dword [ebp - 0xc], 0x105
mov eax, 0x105
call fcn.00402fc0
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push ebx
call sub.advapi32.dll_GetUserNameA
cmp byte [ebp - 1], 0
je 0x58a47e
mov eax, dword [ebp - 8]
mov edx, ebx
call fcn.00405c90
jmp 0x58a486
mov eax, dword [ebp - 8]
call fcn.00405a98
mov eax, ebx
call fcn.00402fdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58a4a9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x58a894
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
mov eax, dword [0x5d6114]
cmp dword [eax], 2
jne 0x58a8b3
mov eax, dword [0x5d564c]
call fcn.0058a940
mov ebx, eax
jmp 0x58a8b5
mov bl, 1
test bl, bl
je 0x58a8d4
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 6
jb 0x58a8d4
call fcn.0058a818
mov ebx, eax
mov eax, ebx
add esp, 0x94
pop ebx
ret
Function at 0x58a9ec
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, eax
mov eax, dword [0x5d6114]
cmp dword [eax], 1
jne 0x58a95b
mov byte [esp], 1
jmp 0x58aa30
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x58a999
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x58a999
lea eax, [esp + 4]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x58aa30
mov eax, 0x19000
call fcn.00402fc0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x19000
push esi
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x58aa29
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edi
mov eax, dword [0x5d5648]
push eax
push 2
push 0x5d5640
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x58aa1f
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x58aa1b
mov byte [esp], 1
jmp 0x58aa1f
inc edi
dec ebx
jne 0x58aa02
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00402fdc
movzx eax, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret