joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b3100
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582db2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x21c], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x220], esi
mov word [esi], ax
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], 1
mov word [ebp - 0x218], cx
call fcn.005336c0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
je 0x4b31ad
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b31a0
jmp 0x4b31fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4b320e
push 0x208
lea edx, [ebp - 0x218]
push 0
push edx
call fcn.005336c0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4b320e
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b31f0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, esi
call fcn.00437a20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x4b3430
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582e4b
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x234]
xor ebx, ebx
push eax
mov dword [ebp - 0x254], ebx
call fcn.004b3300
push str.ksolite.dll
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x250]
push edx
mov dword [ebp - 4], ebx
call fcn.0043d050
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x4b349b
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [ebp - 0x23c], 8
mov esi, eax
jb 0x4b34bc
mov eax, dword [ebp - 0x250]
push eax
call int.0042bfd0
add esp, 4
xor ecx, ecx
cmp esi, ebx
je 0x4b34f6
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
lea edx, [ebp - 0x234]
mov word [edi], cx
push edx
mov ecx, edi
call fcn.0042eb10
cmp dword [ebp - 0x220], 8
jb 0x4b3679
mov eax, dword [ebp - 0x234]
push eax
jmp 0x4b3671
push 0x206
lea edx, [ebp - 0x216]
push ebx
push edx
mov word [ebp - 0x218], cx
call fcn.005336c0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.InstallRoot
push str.SoftwareKingsoftOffice6.0Common
call fcn.004b6fb0
push eax
call fcn.004b2e20
add esp, 0x14
cmp eax, ebx
je 0x4b3561
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push str.InstallRoot
push str.SoftwareKingsoftOffice6.0Common
push 0x80000002
call fcn.004b2e20
add esp, 0x14
cmp eax, ebx
jne 0x4b35a4
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b3570
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00437a20
push 8
push str.office6
lea ecx, [ebp - 0x234]
call fcn.0043cd90
cmp dword [ebp - 0x224], ebx
jne 0x4b3644
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.LocationRoot
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
call fcn.004b6fb0
push eax
call fcn.004b2e20
add esp, 0x14
cmp eax, ebx
je 0x4b35ff
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push str.LocationRoot
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
push 0x80000002
call fcn.004b2e20
add esp, 0x14
cmp eax, ebx
jne 0x4b3644
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x4b3610
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b3610
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00437a20
push 8
push str.office6
lea ecx, [ebp - 0x234]
call fcn.0043cd90
lea ecx, [ebp - 0x234]
xor eax, eax
push ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov ecx, edi
mov word [edi], ax
call fcn.0042eb10
cmp dword [ebp - 0x220], 8
jb 0x4b3679
mov edx, dword [ebp - 0x234]
push edx
call int.0042bfd0
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x4b3e20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x5f4cf0], 0xffffffff
jne 0x4b3f0e
lea eax, [ebp - 0x64]
push eax
call fcn.004b3430
push str.cfgs_setup.cfg
push eax
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 4], 0
call fcn.0043cff0
add esp, 0x10
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x4b3e8e
mov edx, dword [ebp - 0x64]
push edx
call int.0042bfd0
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0042e5c0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x4b3ec0
lea eax, [ebp - 0x2c]
push eax
push 0
push str.SupportNewLangs
push str.Local
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x5f4cf0], eax
cmp dword [ebp - 0x18], esi
jb 0x4b3ee9
mov edx, dword [ebp - 0x2c]
push edx
call int.0042bfd0
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x34], esi
jb 0x4b3f0e
mov ecx, dword [ebp - 0x48]
push ecx
call int.0042bfd0
add esp, 4
xor eax, eax
cmp dword [0x5f4cf0], 1
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x4b3f40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x214], eax
xor eax, eax
push 0x206
mov dword [ebp - 0x21c], ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x218], edx
mov word [ebp - 0x20c], ax
call fcn.005336c0
add esp, 0xc
push 0
push 0x25
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4b3fab
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
push edi
push str._ntdll.dll
lea eax, [ebp - 0x20c]
push 0xffffffffffffffff
push eax
call fcn.00534500
add esp, 0xc
call fcn.004b3230
mov eax, dword [0x5ffed0]
test eax, eax
je 0x4b3fe1
push 0
lea ecx, [ebp - 0x20c]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x4b3ff2
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.00534575
add esp, 4
mov esi, eax
call fcn.004b3230
mov eax, dword [0x5ffecc]
test eax, eax
je 0x4b4053
push esi
push edi
push 0
lea edx, [ebp - 0x20c]
push edx
call eax
xor edi, edi
cmp eax, edi
je 0x4b4053
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x210], edi
call fcn.004b3230
mov eax, dword [0x5ffec8]
cmp eax, edi
je 0x4b4053
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x210]
push edx
push 0x592324
push esi
call eax
cmp eax, edi
jne 0x4b406e
push esi
call fcn.00534304
add esp, 4
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
movzx ecx, word [eax + 0x12]
mov dword [ebx], ecx
movzx edx, word [eax + 0x10]
mov ecx, dword [ebp - 0x214]
mov dword [ecx], edx
movzx edx, word [eax + 0x16]
mov ecx, dword [ebp - 0x21c]
mov dword [ecx], edx
movzx edx, word [eax + 0x14]
mov eax, dword [ebp - 0x218]
push esi
mov dword [eax], edx
call fcn.00534304
mov ecx, dword [ebp - 4]
add esp, 4
pop esi
xor ecx, ebp
mov eax, 1
pop edi
call fcn.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x4b4410
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58302c
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x26c]
xor esi, esi
push eax
mov dword [ebp - 0x270], esi
call fcn.004b3430
push str.cfgs_setup.cfg
push eax
lea ecx, [ebp - 0x250]
push ecx
mov dword [ebp - 4], esi
call fcn.0043cff0
add esp, 0x10
mov ebx, 8
cmp dword [ebp - 0x258], ebx
jb 0x4b4489
mov edx, dword [ebp - 0x26c]
push edx
call int.0042bfd0
add esp, 4
mov ecx, dword [0x59dea4]
mov eax, dword [str.0.0.0.0]
mov edx, dword [0x59dea8]
push 0x1f8
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x218], eax
mov eax, dword [0x59deac]
lea ecx, [ebp - 0x208]
push esi
push ecx
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x20c], eax
call fcn.005336c0
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.0042e5c0
mov eax, dword [ebp - 0x234]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x220], ebx
jae 0x4b4516
lea eax, [ebp - 0x234]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.MajorVersion
push str.Version
call esi
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jae 0x4b4544
lea eax, [ebp - 0x234]
push eax
push 0
push str.FirstVersion
push str.Version
call esi
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jae 0x4b456d
lea eax, [ebp - 0x234]
push eax
push 0
push str.SecondVersion
push str.Version
call esi
cmp dword [ebp - 0x220], 8
mov ebx, eax
mov eax, dword [ebp - 0x234]
jae 0x4b4593
lea eax, [ebp - 0x234]
push eax
push 0
push str.Version
push str.Version
call esi
mov ecx, dword [ebp - 0x274]
mov edx, dword [ebp - 0x270]
push eax
push ebx
push ecx
push edx
push str._u._u._u._u
push 0x103
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0053459e
xor ebx, ebx
add esp, 0x20
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], cx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b45f0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
mov ecx, edi
call fcn.00437a20
mov esi, 8
cmp dword [ebp - 0x220], esi
jb 0x4b462a
mov eax, dword [ebp - 0x234]
push eax
call int.0042bfd0
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
cmp dword [ebp - 0x23c], esi
jb 0x4b465a
mov edx, dword [ebp - 0x250]
push edx
call int.0042bfd0
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x4b4dd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583148
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, edx
push eax
lea edx, [ebp - 0x64]
xor esi, esi
push edx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x70], esi
call fcn.004b37f0
push 0x592324
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 4], esi
call fcn.0043d050
push str.lang.conf
push eax
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 1
call fcn.0043cff0
add esp, 0x20
cmp dword [ebp - 0x34], 8
mov byte [ebp - 4], 3
jb 0x4b4e56
mov eax, dword [ebp - 0x48]
push eax
call int.0042bfd0
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], cx
mov edi, 0x80
lea eax, [ecx + 0x7e]
mov edi, edi
test esi, esi
je 0x4b4e8b
cmp word [esi + edi*2 - 4], 0
jne 0x4b4ede
cmp word [esi + edi*2 - 2], 0
jne 0x4b4ede
lea edx, [edi - 2]
cmp eax, edx
jne 0x4b4ede
add edi, edi
test esi, esi
je 0x4b4e9a
push esi
call fcn.00533290
add esp, 4
lea ebx, [edi + edi]
push ebx
call fcn.005331fc
push ebx
mov esi, eax
push 0
push esi
call fcn.005336c0
mov eax, dword [ebp - 0x2c]
add esp, 0x10
cmp dword [ebp - 0x18], 8
jae 0x4b4ebd
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x68]
push eax
push edi
push esi
push 0x591ff8
call fcn.0042d4b0
push eax
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, dword [ebp - 0x6c]
jmp 0x4b4e70
xor ecx, ecx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
push eax
mov word [ebx], cx
push esi
mov ecx, ebx
call fcn.00437a20
push esi
call fcn.00533290
mov esi, 8
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x4b4f19
mov edx, dword [ebp - 0x2c]
push edx
call int.0042bfd0
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x50], esi
jb 0x4b4f3e
mov ecx, dword [ebp - 0x64]
push ecx
call int.0042bfd0
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x4b5fe0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583288
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, 1
test byte [0x5fffc0], al
jne 0x4b6048
or dword [0x5fffc0], eax
xor eax, eax
push 0x58fb30
mov dword [0x5fffb8], 7
mov dword [0x5fffb4], 0
mov word [0x5fffa4], ax
call fcn.00535252
add esp, 4
cmp dword [0x5fffb4], 0
jne 0x4b60ae
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004b3a50
add esp, 8
push eax
mov ecx, 0x5fffa4
mov dword [ebp - 4], 0
call fcn.0042eb10
cmp dword [ebp - 0x18], 8
mov dword [ebp - 4], 0xffffffff
jb 0x4b6092
mov edx, dword [ebp - 0x2c]
push edx
call int.0042bfd0
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [0x5fffb4], eax
je 0x4b60ba
push 0x5fffa4
mov ecx, esi
call fcn.0043de20
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x4b6b60
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4b6ca2
cmp dword [ebp + 0xc], 0
je 0x4b6ca2
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 8]
push eax
push 0
push 0
push 1
push esi
mov dword [ebp + 8], 0
call ebx
test eax, eax
jne 0x4b6bae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4b6bae
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push edi
push ecx
call fcn.00534575
add esp, 4
mov edi, eax
mov eax, dword [ebp + 8]
lea edx, [ebp + 8]
push edx
push eax
push edi
push 1
push esi
call ebx
test eax, eax
je 0x4b6c8e
mov eax, dword [edi]
mov dword [ebp - 4], eax
test eax, eax
je 0x4b6c8e
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x4b6c8e
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push ecx
push 0
push 0
push 1
push edx
mov dword [ebp + 8], 0
call ebx
test eax, eax
jne 0x4b6c15
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4b6c83
mov eax, dword [ebp + 8]
push eax
call fcn.00534575
mov edx, dword [ebp + 8]
add esp, 4
lea ecx, [ebp + 8]
push ecx
push edx
mov esi, eax
mov eax, dword [ebp + 0xc]
push esi
push 1
push eax
call ebx
test eax, eax
je 0x4b6c74
mov ebx, dword [esi]
test ebx, ebx
je 0x4b6c74
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x4b6c74
mov ecx, dword [ebp - 4]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, 1
push edi
sete bl
call fcn.00534304
push esi
call fcn.00534304
add esp, 8
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
call fcn.00534304
push esi
call fcn.00534304
add esp, 8
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
call fcn.00534304
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4b6cb0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x4b6d97
cmp word [ebx], 0
je 0x4b6d97
test edi, edi
je 0x4b6d97
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b6d0b
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret 8
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.005336c0
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4b6d73
lea esp, [esp]
lea edx, [ebp - 0x20c]
push ebx
push edx
call fcn.005347c1
add esp, 8
test eax, eax
jne 0x4b6d62
lea eax, [ebp - 0x228]
push eax
mov ecx, edi
call fcn.004a7c00
lea ecx, [ebp - 0x230]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4b6d40
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi]
xor eax, eax
cmp edx, dword [edi + 4]
pop esi
pop edi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop ebx
call fcn.005332ca
mov esp, ebp
pop ebp
ret 8
Function at 0x4b6ff0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583475
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [ebp - 0x2ba]
mov dword [ebp - 0x2c4], esi
mov dword [ebp - 0x2c0], ebx
call fcn.004b6f00
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov dword [ebp - 4], 1
mov word [ebp - 0x218], ax
call fcn.005336c0
lea edx, [ebp - 0x250]
push edx
call fcn.004b3430
add esp, 0x10
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 2
call fcn.004616d0
mov edi, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x23c], edi
jb 0x4b7097
mov eax, dword [ebp - 0x250]
push eax
call int.0042bfd0
add esp, 4
xor ecx, ecx
xor edx, edx
mov eax, 7
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x240], ecx
mov word [ebp - 0x250], dx
cmp byte [0x600044], cl
jne 0x4b7160
mov dword [ebp - 0x220], eax
push 0x23
mov dword [ebp - 0x224], ecx
xor eax, eax
push str.Support_GetWinSpecialFoldersFromReg
lea ecx, [ebp - 0x234]
mov word [ebp - 0x234], ax
call fcn.00437a20
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x26c]
mov ebx, 1
push edx
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 5
mov dword [ebp - 0x2c0], ebx
call fcn.00441910
mov eax, dword [ebp - 0x26c]
cmp dword [ebp - 0x258], edi
jae 0x4b7122
lea eax, [ebp - 0x26c]
push str.true
push eax
call fcn.005347c1
add esp, 8
test eax, eax
sete byte [ebp - 0x2b9]
cmp dword [ebp - 0x258], edi
jb 0x4b7150
mov eax, dword [ebp - 0x26c]
push eax
call int.0042bfd0
add esp, 4
cmp byte [ebp - 0x2b9], 0
mov byte [ebp - 0x2b9], 0
je 0x4b7167
mov byte [ebp - 0x2b9], 1
mov dword [ebp - 4], 4
test bl, 1
je 0x4b7193
and ebx, 0xfffffffe
mov dword [ebp - 0x2c0], ebx
cmp dword [ebp - 0x220], edi
jb 0x4b7193
mov ecx, dword [ebp - 0x234]
push ecx
call int.0042bfd0
add esp, 4
cmp byte [ebp - 0x2b9], 0
je 0x4b71bb
push 0xa
push 0xffffffffffffffff
lea edx, [ebp - 0x218]
push 0x104
push edx
mov edx, dword [ebp + 8]
xor ecx, ecx
call fcn.004b6840
add esp, 0x10
jmp 0x4b71d0
mov eax, dword [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea eax, [ebp - 0x218]
mov word [esi], dx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b71f0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00437a20
or ebx, 2
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x2c0], ebx
mov byte [ebp - 4], 1
call fcn.004421b0
cmp byte [ebp - 0x2ba], 0
je 0x4b7235
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x4b79f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x10], 0
jne 0x4b79f9
xor al, al
ret
cmp dword [ecx + 0x14], 8
jb 0x4b7a01
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b7a17
test al, 0x10
je 0x4b7a17
mov eax, 1
ret
xor eax, eax
ret

Function at 0x4b8440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583588
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], ebx
jl 0x4b84d9
mov esi, dword [ebp + 0xc]
jg 0x4b8489
cmp esi, ebx
jbe 0x4b84d9
cmp dword [edi], 0xffffffff
je 0x4b84d9
push esi
lea ecx, [ebp - 0x20]
call fcn.004b7fa0
mov ecx, dword [ebp - 0x20]
mov edx, dword [edi]
push ebx
lea eax, [ebp + 0x10]
push eax
push esi
push ecx
push edx
mov dword [ebp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.004b7fa0
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, esi
call fcn.004b7ee0
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x4b84e7
push eax
call int.0042bfd0
add esp, 4
jmp 0x4b84e7
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x20]
push edx
mov ecx, esi
call fcn.004b7ee0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4b8720
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.004b85d0
add esp, 8
cmp dword [ebp - 0x10], 0
je 0x4b8764
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x4b8750
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b8764
test al, 0x10
je 0x4b8764
mov bl, 1
jmp 0x4b8766
xor bl, bl
cmp dword [ebp - 0xc], 8
jb 0x4b8778
mov ecx, dword [ebp - 0x20]
push ecx
call int.0042bfd0
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.005332ca
mov esp, ebp
pop ebp
ret