joyce8/EMBER2024-capa huggingface dataset:
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 [0x5d4d78]
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 [0x5dbbe4], 0
je 0x581e1e
mov eax, dword [0x5dbbe4]
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 [0x5dbbe0]
call fcn.004072d0
mov esi, eax
test esi, esi
jl 0x581dff
inc esi
xor ebx, ebx
mov eax, dword [0x5dbbe0]
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 [0x5dbbe0]
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 [0x5dbbe0]
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 [0x5dbbe0]
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 [0x5dbbe0]
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 [0x5dbbe4]
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 0x5822d8
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x5822e0
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x582418
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi + 0x38], 0
jne 0x5823f9
mov eax, esi
call fcn.0057f680
test al, al
je 0x5823f9
lea eax, [ebp - 0x2c]
call fcn.00580fd4
cmp byte [ebp - 0x1a], 0
je 0x5823eb
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [esi + 0x30]
call fcn.00405f28
push eax
push 0
call sub.advapi32.dll_LookupAccountNameA
mov eax, dword [ebp - 4]
call fcn.00402fa8
mov dword [esi + 0x38], eax
lea eax, [esi + 0x34]
mov edx, dword [ebp - 8]
call fcn.004061b8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x34]
call fcn.00405f28
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x38]
push eax
mov eax, dword [esi + 0x30]
call fcn.00405f28
push eax
push 0
call sub.advapi32.dll_LookupAccountNameA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov byte [esi + 8], bl
test bl, bl
je 0x5823c4
movzx eax, byte [ebp - 0xc]
mov byte [esi + 0x3c], al
mov eax, dword [esi + 0x34]
call fcn.00405f28
mov edx, eax
lea eax, [esi + 0x34]
call fcn.00405c90
mov eax, esi
test eax, eax
je 0x5823bd
sub eax, 0xffffffc0
call fcn.00581c40
jmp 0x5823f9
lea eax, [esi + 0x34]
call fcn.00405a98
mov eax, dword [esi + 0x38]
call fcn.00402fdc
xor eax, eax
mov dword [esi + 0x38], eax
call sub.kernel32.dll_GetLastError_1
mov edx, eax
xor ecx, ecx
mov eax, esi
call fcn.0057f030
jmp 0x5823f9
xor ecx, ecx
mov edx, 0x78
mov eax, esi
call fcn.0057f030
mov ebx, dword [esi + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58241f
lea eax, [ebp - 0x2c]
mov edx, dword [0x580ee4]
call fcn.00406864
ret
Function at 0x582888
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
xor edx, edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5829de
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x130]
call fcn.00580fd4
cmp byte [ebp - 0x11e], 0
je 0x582946
call sub.kernel32.dll_GetCurrentProcess
lea edx, [ebp - 8]
call fcn.00582810
test al, al
je 0x582918
mov edx, ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00582d84
mov eax, dword [ebp - 8]
call fcn.00402fdc
jmp 0x5829b4
call sub.kernel32.dll_GetLastError_1
push eax
push 0
push 0
push 0
push 2
xor ecx, ecx
mov dl, 1
mov eax, dword [0x581ba0]
call fcn.00581ea4
mov edx, eax
test edx, edx
je 0x58293d
sub edx, 0xffffffc0
mov eax, ebx
call fcn.00407cd4
jmp 0x5829b4
mov dword [ebp - 4], 0x104
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10d]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x582988
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.00405d08
mov eax, dword [ebp - 0x134]
mov ecx, ebx
mov dl, 2
call fcn.00582ccc
jmp 0x5829b4
call sub.kernel32.dll_GetLastError_1
push eax
push 0
push 0
push 0
push 2
xor ecx, ecx
mov dl, 1
mov eax, dword [0x581ba0]
call fcn.00581ea4
mov edx, eax
test edx, edx
je 0x5829ad
sub edx, 0xffffffc0
mov eax, ebx
call fcn.00407cd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5829e5
lea eax, [ebp - 0x134]
call fcn.00405a98
lea eax, [ebp - 0x130]
mov edx, dword [0x580ee4]
call fcn.00406864
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 [0x5d45fc], 0
jne 0x5856b4
mov byte [0x5d45fc], 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 [0x5d45dc], eax
push 0x5857a8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5d45e0], eax
push 0x5857c0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5d45e4], eax
push 0x5857d0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5d45e8], 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 [0x5d45ec], eax
push 0x585800
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5d45f0], eax
push 0x585814
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5d45f4], eax
push 0x585824
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5d45f8], 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 [0x5d4d78]
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 [0x5d5110]
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 [0x5d5110]
cmp dword [eax], 2
jne 0x58a8b3
mov eax, dword [0x5d464c]
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 0x58a940
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, eax
mov eax, dword [0x5d5110]
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 [0x5d4648]
push eax
push 2
push 0x5d4640
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
Function at 0x58aa3c
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x58ab60
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x104
call fcn.00402fc0
mov ebx, eax
push 0x104
push ebx
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x1c]
mov edx, ebx
call fcn.00405c90
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00589dcc
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x58ab78
call fcn.00405db0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00405f28
push eax
call sub.version.dll_GetFileVersionInfoSizeA
test eax, eax
jns 0x58aaba
call fcn.00404a00
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00402fc0
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
test eax, eax
jns 0x58aad4
call fcn.00404a00
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00405f28
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x58ab84
push esi
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
jns 0x58ab06
call fcn.00404a00
mov dword [edi], eax
push 0x104
push ebx
mov eax, dword [edi]
test eax, eax
jns 0x58ab19
call fcn.00404a00
push eax
call sub.kernel32.dll_VerLanguageNameA
mov eax, dword [ebp - 8]
mov edx, ebx
call fcn.00405c90
and dword [edi], 0xffff
mov eax, ebx
call fcn.00402fdc
mov eax, esi
call fcn.00402fdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58ab67
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00405abc
lea eax, [ebp - 4]
call fcn.00405a98
ret

Function at 0x58ac00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x58acab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00405a98
mov bl, 0x41
lea eax, [ebp - 8]
mov edx, ebx
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 8]
lea eax, [ebp - 0xc]
call fcn.00403bd4
mov edx, 0x58acb8
lea eax, [ebp - 0xc]
mov cl, 2
call fcn.00403ba4
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00405cfc
mov eax, dword [ebp - 4]
call fcn.00405f28
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x58ac87
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00405c80
mov edx, dword [ebp - 0x10]
mov eax, esi
mov ecx, 0x58acc4
call fcn.00405db0
jmp 0x58ac8d
inc ebx
cmp bl, 0x5b
jne 0x58ac29
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58acb2
lea eax, [ebp - 0x10]
call fcn.00405a98
lea eax, [ebp - 4]
call fcn.00405a98
ret