joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a6088
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x30
mov eax, 0x51610d
call fcn.0044c815
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x38], edi
push 0x538df0
push ebx
mov dword [ebp - 0x3c], ebx
mov esi, ecx
mov byte [ebp - 0x2c], 0x61
mov byte [ebp - 0x2b], 0x62
mov byte [ebp - 0x2a], 0x63
mov byte [ebp - 0x29], 0x64
mov byte [ebp - 0x28], 0x65
mov byte [ebp - 0x27], 0x66
mov byte [ebp - 0x26], 0x67
mov byte [ebp - 0x25], 0x68
mov byte [ebp - 0x24], 0x69
mov byte [ebp - 0x23], 0x6a
mov byte [ebp - 0x22], 0x6b
mov byte [ebp - 0x21], 0x6c
mov byte [ebp - 0x20], 0x6d
mov byte [ebp - 0x1f], 0x6e
mov byte [ebp - 0x1e], 0x6f
mov byte [ebp - 0x1d], 0x70
mov byte [ebp - 0x1c], 0x71
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x1a], 0x73
mov byte [ebp - 0x19], 0x74
mov byte [ebp - 0x18], 0x75
mov byte [ebp - 0x17], 0x76
mov byte [ebp - 0x16], 0x77
mov byte [ebp - 0x15], 0x78
mov byte [ebp - 0x14], 0x79
mov byte [ebp - 0x13], 0x7a
mov byte [ebp - 0x12], 0x5c
mov byte [ebp - 0x11], 0x3f
call fcn.00412c0a
mov dword [ebp - 4], edi
mov eax, dword [esi]
inc edi
cmp dword [eax + 0x28], 0x1b
mov dword [ebp - 0x38], edi
mov ecx, ebx
jle 0x4a6131
push 0x3f
jmp 0x4a613a
mov eax, dword [eax + 0x28]
movzx eax, byte [ebp + eax - 0x2c]
push eax
push 0x544c18
call fcn.00418e6e
mov eax, dword [esi]
pop ecx
pop ecx
push dword [eax + 0x24]
mov ecx, ebx
push 0x538994
call fcn.00418e6e
mov esi, dword [esi]
pop ecx
pop ecx
push dword [esi + 0x20]
lea eax, [ebp - 0x30]
push eax
call fcn.00412c0a
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], edi
call fcn.0043b716
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x4a6191
push ecx
push eax
mov eax, ebx
call fcn.00411b1c
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
call fcn.00410d34
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.00410d34
mov eax, ebx
call fcn.0044c898
ret
Function at 0x4a641c
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x518b34
call fcn.0044c7ac
or dword [ebp - 0x10], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x18], ebx
push 3
push 3
push 0xc0000000
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea esi, [ebp - 0x10]
call fcn.0041c902
test eax, eax
jne 0x4a645a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jmp 0x4a6515
lea eax, [ebp - 0x3c]
push eax
call fcn.004a23a2
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov eax, dword [esi]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x2c]
mov ecx, dword [ecx - 0xc]
add eax, 4
push eax
push ecx
lea eax, [ebp - 0x10]
push eax
call fcn.004a19ba
mov esi, dword [esi]
push ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp + 8], ebx
mov eax, dword [esi + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
add eax, 0x108
push eax
push dword [ebp - 0x10]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp + 8]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov dword [ebp + 8], ebx
call edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0x2c]
push ebx
push ebx
add eax, 0x10c
push eax
push dword [ebp - 0x10]
call esi
push ebx
lea eax, [ebp + 8]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov dword [ebp + 8], ebx
call edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0x2c]
push ebx
push ebx
add eax, 0x118
push eax
push dword [ebp - 0x10]
call esi
push ebx
lea eax, [ebp + 8]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov dword [ebp + 8], ebx
call edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.004a24ac
cmp dword [ebp - 0x10], 0xffffffff
je 0x4a6524
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
call fcn.0044c884
ret 8
Function at 0x4a9d60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51ba4e
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x5675a0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
and dword [esp + 0x14], 0
cmp dword [eax], 0xffffffff
je 0x4a9f08
lea eax, [esp + 0x2c]
push eax
call fcn.004c6df7
and dword [esp + 0x68], 0
mov eax, dword [0x575038]
mov ecx, 0x575038
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x14]
mov byte [esp + 0x68], 1
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov esi, 0x5352f8
jle 0x4a9df9
mov ecx, dword [ebp + 0x10]
push edi
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004a940c
add esp, 0xc
mov byte [esp + 0x68], 2
mov dword [esp + 0x14], 1
jmp 0x4a9e14
push esi
lea eax, [esp + 0x20]
push eax
call fcn.00412c0a
mov dword [esp + 0x68], 3
mov dword [esp + 0x14], 2
mov eax, dword [eax]
sub eax, 0x10
call fcn.00412a2a
lea ebx, [eax + 0x10]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x68], 4
test byte [esp + 0x14], 2
je 0x4a9e45
mov eax, dword [esp + 0x1c]
and dword [esp + 0x14], 0xfffffffd
add eax, 0xfffffff0
call fcn.00410d34
mov byte [esp + 0x68], 6
test byte [esp + 0x14], 1
je 0x4a9e5d
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.00410d34
cmp dword [ebx - 0xc], 0
mov dword [esp + 0x14], 0x538d8c
jg 0x4a9e6f
mov dword [esp + 0x14], esi
mov eax, dword [ebp + 0x10]
lea esi, [esp + 0x24]
call fcn.004d49b6
push ebx
mov byte [esp + 0x6c], 7
push dword [esp + 0x18]
push dword [eax]
lea eax, [esp + 0x24]
push str._r_n__s_s_s__r_n
call fcn.0041910b
mov byte [esp + 0x78], 6
mov eax, dword [esp + 0x34]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00410d34
mov esi, dword [ebp + 8]
movzx eax, byte [esi + 8]
push eax
push dword [ebp + 0xc]
lea eax, [esp + 0x20]
call fcn.0041bee1
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
or edi, 0x20019
push edi
push eax
push dword [ebp + 0x10]
lea eax, [esp + 0x3c]
call fcn.00411a77
test eax, eax
jne 0x4a9eeb
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x30]
push eax
push esi
call fcn.004a94a1
lea eax, [ebx - 0x10]
call fcn.00410d34
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00410d34
lea edi, [esp + 0x2c]
call fcn.004c6dd2
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4ab010
Capabilities:
Enumerate internet cache

Disassembly:
push 0x10
mov eax, 0x510fb6
call fcn.0044c7ac
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x4ab029
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
push 0x7a
mov dword [ebp - 4], edi
mov esi, 0x1000
xor ebx, ebx
pop eax
test eax, eax
je 0x4ab0a8
cmp eax, 0x7a
push edi
jne 0x4ab0d0
call fcn.00448953
pop ecx
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004440c6
test ebx, ebx
mov edi, eax
pop ecx
lea eax, [ebp + 8]
push eax
mov dword [edi], esi
mov dword [ebp + 8], esi
push edi
jne 0x4ab08e
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
mov ebx, eax
xor eax, eax
test ebx, ebx
setne al
jmp 0x4ab095
push ebx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
je 0x4ab09d
xor eax, eax
jmp 0x4ab03f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
jmp 0x4ab03f
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 4]
test al, al
je 0x4ab0c6
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push edi
call dword [eax]
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], esi
push edi
jmp 0x4ab08e
mov eax, 0x103
jmp 0x4ab03f
call fcn.00448953
test ebx, ebx
pop ecx
je 0x4ab0e1
push ebx
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
call fcn.0044c884
ret 0xc

Function at 0x4b61d5
Capabilities:
Get disk information

Disassembly:
push 0x14
mov eax, 0x518db0
call fcn.0044c815
mov eax, dword [0x541e24]
mov dword [ebp - 0x18], eax
mov eax, dword [0x541e28]
mov edi, ecx
mov dword [ebp - 0x14], eax
call sub.KERNEL32.dll_GetLogicalDrives
mov ebx, eax
test ebx, ebx
je 0x4b6253
mov eax, dword [0x575038]
mov ecx, 0x575038
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
test bl, 1
je 0x4b6243
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00412c0a
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.00426962
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00410d34
inc word [ebp - 0x18]
shr ebx, 1
jne 0x4b6215
lea eax, [esi - 0x10]
call fcn.00410d34
call fcn.0044c898
ret
Function at 0x4c6312
Capabilities:
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x5675a0]
xor eax, ebp
mov dword [ebp + 0x98], eax
push esi
push edi
push 0x110
lea eax, [ebp - 0x78]
push 0
push eax
mov esi, ecx
mov edi, 0x1f4
call fcn.00449940
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], 0x114
call dword [0x574e20]
cmp dword [ebp - 0x6c], 1
jne 0x4c63a0
mov esi, dword [esi + 4]
or dword [ebp - 0x80], 0xffffffff
push 3
push 1
push SysReAllocString
push esi
lea esi, [ebp - 0x80]
call fcn.0041c902
test eax, eax
je 0x4c638c
push 0
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
jmp 0x4c6391
mov edi, 0xea60
cmp dword [ebp - 0x80], 0xffffffff
je 0x4c63a0
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x98]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00447dd1
add ebp, 0x9c
leave
ret
Function at 0x4cd413
Capabilities:
Check if file exists

Disassembly:
push esi
push dword [esp + 8]
xor esi, esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4cd451
push str.SHCreateDirectoryExW
push str.shell32.dll
call dword [0x574dec]
push eax
call dword [0x574e04]
cmp eax, esi
je 0x4cd44e
push dword [esp + 0xc]
push dword [esp + 0xc]
push esi
call eax
mov esi, eax
jmp 0x4cd451
xor esi, esi
inc esi
mov eax, esi
pop esi
ret

Function at 0x4d03d4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x513441
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x5675a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], ecx
cmp dword [ebx], ecx
je 0x4d04f4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
cmp eax, ecx
je 0x4d04f4
add eax, 0x2c
push eax
lea esi, [esp + 0x18]
call fcn.00431062
mov byte [esp + 0x30], 1
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4d0477
mov eax, dword [ebx]
cmp dword [eax + 8], 0
je 0x4d0477
mov eax, dword [eax + 8]
push dword [eax + 0x20]
mov edx, dword [ecx]
lea eax, [esp + 0x20]
push eax
call dword [edx + 4]
lea esi, [esp + 0xc]
mov byte [esp + 0x30], 2
call fcn.00439d8b
mov byte [esp + 0x30], 1
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4d0477
call fcn.00411e0e
mov byte [esp + 0x30], 0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4d0489
call fcn.00411e0e
cmp dword [esp + 0xc], 0
je 0x4d04f4
push str.RegKey
push 0x41
push edi
lea eax, [esp + 0x18]
push eax
call fcn.004d029a
push str.FileKey
push 0x42
push edi
lea eax, [esp + 0x18]
push eax
call fcn.004d029a
push str.SpecialKey
push 0x43
push edi
lea eax, [esp + 0x18]
push eax
call fcn.004d029a
push str.ScriptKey
push 0x44
push edi
lea eax, [esp + 0x18]
push eax
call fcn.004d029a
mov eax, dword [ebx]
cmp dword [eax + 8], 0
je 0x4d04f4
mov eax, dword [eax + 8]
push dword [ebp + 0xc]
mov eax, dword [eax + 8]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004d0188
or dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4d0506
call fcn.00411e0e
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d1ca5
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov byte [ebp - 1], 1
call fcn.004d8c7a
xor ebx, ebx
test al, al
je 0x4d1d24
lea eax, [ebp - 8]
push eax
push 0x28
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4d1d11
lea eax, [ebp - 0x14]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4d1d11
mov byte [ebp - 1], bl
cmp dword [ebp - 8], ebx
je 0x4d1d1f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 1], bl
je 0x4d1d38
push 0x80020000
push 0x19
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4d1d38
mov byte [ebp - 1], bl
mov al, byte [ebp - 1]
pop ebx
leave
ret
Function at 0x4d4cbd
Capabilities:
Enumerate gui resources

Disassembly:
push 0x60
mov eax, 0x51b0d5
call fcn.0044c7ac
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x539c84
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
call dword [0x574ec0]
mov edi, eax
xor eax, eax
cmp edi, ebx
setne al
push edi
lea esi, [ebp - 0x30]
mov dword [ebp - 0x28], eax
call fcn.004300ba
test al, al
jne 0x4d4d0d
mov eax, esi
push eax
push 0x4300ff
mov dword [ebp - 0x30], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [ebp - 0x30]
cmp edi, ebx
mov esi, edi
jne 0x4d4d1e
cmp dword [ebp - 0x28], ebx
jle 0x4d4d1e
mov byte [ebp - 0xd], 1
jmp 0x4d4d29
cmp edi, ebx
mov byte [ebp - 0xd], bl
jne 0x4d4e2c
push 0x38
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00449940
add esp, 0xc
push str.regedit.exe
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x6c], 0x3c
mov dword [ebp - 0x68], 0x40
mov dword [ebp - 0x60], 0x536a4c
call fcn.00412c0a
test word [ebp + 8], 0x200
mov dword [ebp - 4], ebx
je 0x4d4db2
call fcn.004d8c01
test eax, eax
jne 0x4d4db2
lea ecx, [ebp - 0x1c]
call fcn.004d8d8f
lea ecx, [ebp - 0x18]
push str._regedit.exe
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00411aaa
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004129e9
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00410d34
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00410d34
cmp byte [ebp - 0xd], bl
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], eax
je 0x4d4dc4
mov dword [ebp - 0x58], 0x539d14
test word [ebp + 8], 0x100
mov dword [ebp - 0x50], 1
mov byte [ebp - 0xd], bl
je 0x4d4de3
call fcn.004d8c01
test eax, eax
je 0x4d4de3
mov byte [ebp - 0xd], 1
cmp byte [ebp - 0xd], bl
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
je 0x4d4df6
lea esi, [ebp - 0x24]
call fcn.004d8c14
lea eax, [ebp - 0x6c]
push eax
call dword [0x574e7c]
push 0xffffffffffffffff
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push ebx
push 0x539c84
call dword [0x574ec0]
mov esi, eax
lea eax, [ebp - 0x24]
call fcn.004d8bcd
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00410d34
mov eax, esi
call fcn.0044c884
ret
Function at 0x4d66d1
Capabilities:
Get user security identifier

Disassembly:
push 0x18
mov eax, 0x510704
call fcn.0044c7ac
mov esi, ecx
mov eax, dword [esi]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea edx, [ebp - 0x20]
push edx
xor ecx, ecx
lea edx, [ebp - 0x14]
push edx
push ecx
lea edx, [ebp - 0x18]
push edx
push ecx
push eax
push ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
call ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], eax
jne 0x4d67c2
cmp eax, 0x7a
jne 0x4d67c2
mov eax, dword [0x575038]
mov ecx, 0x575038
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
and dword [ebp - 4], 0
push dword [ebp - 0x18]
push edi
call fcn.0042d74a
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
lea esi, [ebp - 0x1c]
call fcn.00411ce1
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
xor esi, esi
push dword [ebp - 0x24]
push esi
call ebx
test eax, eax
mov ebx, dword [ebp - 0x1c]
je 0x4d67a7
mov eax, ebx
mov dword [ebp - 0x10], esi
call fcn.00411344
lea edx, [ebp - 0x1c]
call fcn.004112e1
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x4d67ba
push dword [edi]
call fcn.00448953
pop ecx
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x4d67ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi]
mov dword [ebp - 0x10], eax
call fcn.00448953
pop ecx
mov dword [edi], esi
lea eax, [ebx - 0x10]
call fcn.00410d34
mov eax, dword [ebp - 0x10]
call fcn.0044c884
ret
Function at 0x4d6bfa
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5675a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
inc esi
mov dword [ebp - 0x18], esi
call fcn.004d8c7a
test al, al
je 0x4d6d39
push ebx
lea eax, [ebp - 0x10]
push eax
push esi
xor ebx, ebx
push 8
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
cmp eax, ebx
jne 0x4d6c6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x4d6d2a
lea eax, [ebp - 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, ebx
je 0x4d6d2a
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push edi
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
call esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
call fcn.0042d74a
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push edi
push 2
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x4d6d22
cmp edi, ebx
je 0x4d6d22
cmp dword [edi], ebx
jbe 0x4d6d22
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, 1
jne 0x4d6d22
cmp dword [edi], ebx
mov dword [ebp - 0x20], ebx
je 0x4d6d19
lea esi, [edi + 4]
cmp dword [ebp - 0x18], ebx
jne 0x4d6d19
push dword [esi]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4d6d0c
mov dword [ebp - 0x18], 1
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
add esi, 8
cmp eax, dword [edi]
jne 0x4d6cf1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call fcn.00448953
pop ecx
pop edi
cmp dword [ebp - 0x10], ebx
pop ebx
je 0x4d6d39
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
xor ecx, ebp
pop esi
call fcn.00447dd1
leave
ret
Function at 0x4d70e4
Capabilities:
Persist via run registry key

Disassembly:
push 0xc
mov eax, 0x517b71
call fcn.0044c7ac
call fcn.004d8d05
xor edi, edi
xor ebx, ebx
inc ebx
push edi
test al, al
mov eax, dword [esi]
push ebx
je 0x4d717e
add eax, 0x10
push eax
push 0x5395e0
push reloc.OLEAUT32.dll_SysReAllocString
push esi
call fcn.004d6f6b
mov ecx, dword [esi]
lea eax, [ebp - 0x10]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push eax
call fcn.00411aaa
push edi
mov dword [ebp - 4], edi
mov ecx, dword [esi]
mov eax, dword [eax]
push ebx
add ecx, 0x10
push ecx
push eax
mov edi, SysStringLen
push edi
push esi
call fcn.004d6f6b
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add esp, 0x38
add eax, 0xfffffff0
call fcn.00410d34
mov ecx, dword [esi]
lea eax, [ebp - 0x10]
push 0x539700
push eax
call fcn.00411aaa
push ebx
mov dword [ebp - 4], ebx
mov ecx, dword [esi]
push ebx
add ecx, 0x10
push ecx
push dword [eax]
push edi
push esi
call fcn.004d6f6b
mov eax, dword [ebp - 0x10]
add esp, 0x20
jmp 0x4d71c4
add eax, 0x10
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
push esi
call fcn.004d6f6b
mov ecx, dword [esi]
lea eax, [ebp - 0x14]
push 0x539700
push eax
call fcn.00411aaa
push edi
mov dword [ebp - 4], 2
mov ecx, dword [esi]
push ebx
add ecx, 0x10
push ecx
push dword [eax]
push SysStringLen
push esi
call fcn.004d6f6b
mov eax, dword [ebp - 0x14]
add esp, 0x38
add eax, 0xfffffff0
call fcn.00410d34
call fcn.0044c884
ret

Function at 0x4d7924
Capabilities:
Get common file path

Disassembly:
push 0xc
mov eax, 0x51be93
call fcn.0044c7ac
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp + 8]
mov ecx, 0x575038
call fcn.00410d4c
mov dword [ebp - 4], ebx
mov eax, dword [edi]
inc ebx
test eax, eax
mov dword [ebp - 0x14], ebx
je 0x4d795a
cmp byte [eax + 0xc], 0
je 0x4d79a3
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4d79a3
push 0x104
call fcn.00411ce1
push eax
push dword [ebp - 0x10]
call dword [0x574e78]
mov eax, dword [esi]
call fcn.00411344
mov edx, esi
call fcn.004112e1
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x4d79c7
push dword [ebp + 0xc]
lea esi, [ebp - 0x10]
call fcn.004d75d4
pop ecx
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
call fcn.004129e9
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00410d34
mov esi, edi
mov eax, esi
call fcn.0044c884
ret