joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cbc9e
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push eax
mov ebx, edx
push 0
push 2
and dword [ebx], 0
call dword [sym.imp.Secur32.dll_GetComputerObjectNameW]
test al, al
jne 0x4cbcde
call fcn.004c73cc
mov esi, eax
cmp esi, 0x8007007a
je 0x4cbcde
push esi
push 0xe76019a
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4cbd38
mov eax, dword [ebp - 4]
push edi
add eax, eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x4cbd06
mov esi, 0x8007000e
push esi
push 0xe7e019a
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4cbd37
lea eax, [ebp - 4]
push eax
push edi
push 2
call dword [sym.imp.Secur32.dll_GetComputerObjectNameW]
test al, al
jne 0x4cbd33
call fcn.004c73cc
mov esi, eax
push esi
push 0xe84019a
call dword [sym.imp.certcli.dll_Ordinal_357]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4cbd37
mov dword [ebx], edi
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4cbdcf
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push eax
mov ebx, edx
push 0
push 3
and dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x4cbe0f
call fcn.004c73cc
mov esi, eax
cmp esi, 0x800700ea
je 0x4cbe0f
push esi
push 0xecc019a
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4cbe69
mov eax, dword [ebp - 4]
push edi
add eax, eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x4cbe37
mov esi, 0x8007000e
push esi
push 0xed3019a
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4cbe68
lea eax, [ebp - 4]
push eax
push edi
push 3
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x4cbe64
call fcn.004c73cc
mov esi, eax
push esi
push 0xed8019a
call dword [sym.imp.certcli.dll_Ordinal_357]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4cbe68
mov dword [ebx], edi
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4cc58f
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x5184d0]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
xor eax, eax
mov ebx, ecx
mov dword [esp + 4], eax
push esi
push edi
mov edi, eax
test edx, edx
jne 0x4cc5c1
mov edx, 0x4157c0
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.004cc4cd
mov esi, eax
test esi, esi
je 0x4cc5e3
push esi
push 0x117e019a
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4cc72f
lea ecx, [ebx + 2]
xor edx, edx
mov ax, word [ebx]
add ebx, 2
cmp ax, dx
jne 0x4cc5e8
sub ebx, ecx
sar ebx, 1
add ebx, 0x105
lea eax, [ebx + ebx]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x4cc61b
mov esi, 0x8007000e
push esi
push 0x1185019a
jmp 0x4cc5d8
push dword [esp + 0xc]
mov edx, ebx
mov ecx, edi
call fcn.0043eb7d
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
add eax, 2
mov ecx, eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
sub ecx, edi
push eax
push dword [esp + 0x10]
shr ecx, 1
sub ebx, ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x4cc68d
call fcn.004c73cc
mov esi, eax
cmp esi, 0x80070002
je 0x4cc686
cmp esi, 0x80070003
je 0x4cc686
push esi
push 0x1197019a
push dword [esp + 0x14]
call dword [sym.imp.certcli.dll_Ordinal_359]
jmp 0x4cc72f
xor esi, esi
jmp 0x4cc72f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x44]
push eax
mov edx, ebx
call fcn.0043eb7d
test byte [esp + 0x18], 0x10
je 0x4cc6eb
cmp dword [ebp + 8], 0
je 0x4cc70e
lea eax, [esp + 0x44]
push eax
push 0x41d77c
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4cc70e
lea eax, [esp + 0x44]
push eax
push 0x428dd4
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4cc70e
mov ecx, edi
call fcn.004cc76a
test eax, eax
je 0x4cc70e
test esi, esi
jne 0x4cc6e3
mov esi, eax
push eax
push 0x11ad019a
jmp 0x4cc707
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4cc70e
call fcn.004c73cc
test esi, esi
jne 0x4cc701
mov esi, eax
push eax
push 0x11be019a
push edi
call dword [sym.imp.certcli.dll_Ordinal_359]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4cc68d
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0xc], 0
je 0x4cc740
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x4cc74b
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x26c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005036b0
mov esp, ebp
pop ebp
ret 4
Function at 0x4ccddf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
mov edi, edx
mov ebx, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4cce2e
call fcn.004c73cc
push 0x800700cb
mov esi, eax
push esi
push 0x14b6019a
push edi
call dword [sym.imp.certcli.dll_Ordinal_360]
jmp 0x4cce90
cmp eax, esi
jb 0x4cce45
mov esi, 0x8007006f
push esi
push 0x14bb019a
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4cce90
lea ecx, [ebp - 0x20c]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4cce50
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 1]
lea eax, [edi + edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebx], eax
test eax, eax
jne 0x4cce80
mov esi, 0x8007000e
push esi
push 0x14c2019a
jmp 0x4cce3d
lea ecx, [ebp - 0x20c]
mov edx, edi
push ecx
mov ecx, eax
call fcn.0043eb7d
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret

Function at 0x4cd803
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
inc ebx
cmp byte [0x519a98], 0
jne 0x4cd884
lea eax, [ebp - 0x118]
mov byte [0x519a98], bl
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4cd859
call fcn.004c73cc
push eax
push 0x178e019a
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4cd884
cmp dword [ebp - 0x108], 2
je 0x4cd86e
push 0x4c7
push 0x1793019a
jmp 0x4cd851
mov eax, dword [ebp - 0x114]
mov dword [0x519a94], eax
mov eax, dword [ebp - 0x110]
mov dword [0x519a90], eax
cmp dword [0x519a94], 6
ja 0x4cd89a
jne 0x4cd898
cmp dword [0x519a90], 2
jae 0x4cd89a
xor bl, bl
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret
Function at 0x4cd8af
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x18]
mov word [ebp - 8], 0x500
push eax
mov ebx, ecx
lea eax, [ebp - 0xc]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x220
push 0x20
push 2
push eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4cd915
call fcn.004c73cc
mov esi, eax
push esi
push 0x18dc019a
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4cd9f2
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
test edi, edi
jne 0x4cd938
call fcn.004c73cc
mov esi, eax
test esi, esi
je 0x4cd938
push esi
push 0x18e4019a
jmp 0x4cd9de
lea eax, [ebp - 0x10]
push eax
push 0
push 0xa
push edi
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x4cd99b
call fcn.004c73cc
mov esi, eax
cmp esi, 0x800703f0
jne 0x4cd993
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x4cd973
call fcn.004c73cc
mov esi, eax
push esi
push 0x18f6019a
jmp 0x4cd9de
lea ecx, [ebp - 0x10]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4cd99b
call fcn.004c73cc
mov esi, eax
push esi
push 0x18fe019a
jmp 0x4cd9de
push esi
push 0x1903019a
jmp 0x4cd9de
lea eax, [ebp - 0x14]
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
jne 0x4cd9bd
call fcn.004c73cc
mov esi, eax
push esi
push 0x190c019a
jmp 0x4cd9de
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4cd9e6
call fcn.004c73cc
mov esi, eax
push esi
push 0x1915019a
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4cd9f1
cmp dword [ebp - 0x1c], 0
setne al
xor esi, esi
mov byte [ebx], al
pop edi
cmp dword [ebp - 0x10], 0
je 0x4cda01
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x4cda10
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
je 0x4cda1f
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret
Function at 0x4ce82a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
cmp byte [0x51b0f8], 0
mov dword [eax], edi
jne 0x4ce90e
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x4ce870
call fcn.004c73cc
mov edi, eax
push edi
push 0x20d4019a
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4ce914
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4ce88b
call fcn.004c73cc
mov edi, eax
push edi
push 0x20dc019a
jmp 0x4ce865
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4ce8b0
call fcn.004c73cc
mov edi, eax
test edi, edi
jne 0x4ce8a8
mov edi, 0x8007000d
push edi
push 0x20e8019a
jmp 0x4ce865
push 0xffffffffffffffff
push 0x4290a0
push 0xffffffffffffffff
lea eax, [ebx + 6]
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
dec eax
sub eax, 1
je 0x4ce8d4
mov edi, 0x8007000d
jmp 0x4ce914
movzx eax, word [ebx + 0x34]
movzx ecx, word [ebx + 0x36]
movzx edx, word [ebx + 0x30]
movzx esi, word [ebx + 0x32]
push eax
push ecx
push edx
push esi
push 0x429038
push 0x40
push 0x51b100
call fcn.0043ec15
add esp, 0x1c
lea eax, [ebp - 4]
xor ecx, ecx
lock or dword [eax], ecx
mov eax, dword [ebp + 8]
mov byte [0x51b0f8], 1
mov dword [eax], 0x51b100
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4cec83
Capabilities:
Compare security identifiers
Get process image filename

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x20c]
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov ebx, edx
push edi
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4cece6
call fcn.004c73cc
push eax
push 0x2489019a
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4cee47
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
jne 0x4ced13
call fcn.004c73cc
push eax
push 0x248e019a
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4cee35
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
jne 0x4ced31
call fcn.004c73cc
push eax
push 0x2495019a
jmp 0x4ced08
push 8
push 0x4290c8
push eax
call fcn.004ca430
test eax, eax
je 0x4ced4f
call fcn.004c73cc
push eax
push 0x249a019a
jmp 0x4ced08
lea eax, [ebp - 0x210]
push eax
push 0xa
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4ced70
call fcn.004c73cc
push eax
push 0x249f019a
jmp 0x4ced08
xor ecx, ecx
lea eax, [ebp - 0x214]
push eax
push ecx
push ecx
push 1
push dword [ebp - 0x210]
mov dword [ebp - 0x214], ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4cedaa
call fcn.004c73cc
push eax
push 0x24a7019a
jmp 0x4ced08
push dword [ebp - 0x214]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x4cedd6
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004c73cc
push eax
push 0x24ae019a
jmp 0x4ced08
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x214]
push edi
push 1
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4cee06
call fcn.004c73cc
push eax
push 0x24b3019a
jmp 0x4ced08
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4cee35
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x210], 0
push 1
push 1
push 0x24ba019a
call dword [sym.imp.certcli.dll_Ordinal_358]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4cee47
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005036b0
leave
ret
Function at 0x4ceed4
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, edx
xor ebx, ebx
and dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x14], esi
mov edi, ecx
and dword [esi], ebx
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x4cefbf
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 8
push eax
xor ecx, ecx
lea eax, [ebp - 8]
push eax
push ecx
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ecx
push eax
push ecx
push edi
push ecx
mov dword [ebp - 8], ecx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4cef4d
call fcn.004c73cc
mov esi, eax
cmp esi, 0x8007007a
je 0x4cef4a
push esi
push 0x2515019a
push edi
call dword [sym.imp.certcli.dll_Ordinal_359]
jmp 0x4cefe4
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4cef76
mov ecx, 0x8007000e
push ecx
push 0x251f019a
mov esi, ecx
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4cefe4
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4cef95
mov ecx, 0x8007000e
push ecx
push 0x2526019a
jmp 0x4cef6c
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4cefbf
call fcn.004c73cc
mov esi, eax
push esi
push 0x2533019a
jmp 0x4cef6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x4cefd9
mov esi, 0x80070539
push esi
push 0x253a019a
jmp 0x4cef6e
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0
mov dword [esi], eax
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4cf110
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x10c], 0
push ebx
push esi
push edi
push 0x16
mov dword [ebp - 0x120], edx
xor ebx, ebx
and dword [ebp - 0x108], ebx
lea edx, [ebp - 0x10c]
mov dword [ebp - 0x11c], ecx
xor edi, edi
pop ecx
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x118], ebx
call fcn.004cee62
mov esi, eax
test esi, esi
je 0x4cf16d
push esi
push 0x25e3019a
jmp 0x4cf1db
lea eax, [ebp - 0x110]
mov edx, 0x100
push eax
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x110], edx
call fcn.004cbf32
test eax, eax
jne 0x4cf19e
call dword [sym.imp.certcli.dll_Ordinal_356]
mov esi, eax
push esi
push 0x25ee019a
jmp 0x4cf1db
xor esi, esi
test dword [ebp - 0x110], 0xfffffffc
jbe 0x4cf1d0
mov edx, dword [ebp - 0x10c]
mov ecx, dword [ebp + esi*4 - 0x104]
call fcn.004cec83
test eax, eax
jne 0x4cf221
mov eax, dword [ebp - 0x110]
inc esi
shr eax, 2
cmp esi, eax
jb 0x4cf1ac
mov esi, 0x80070005
push esi
push 0x2600019a
call dword [sym.imp.certcli.dll_Ordinal_357]
cmp dword [ebp - 0x108], 0
je 0x4cf1f6
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x4cf23c
call dword [sym.imp.certcli.dll_Ordinal_356]
mov esi, eax
push esi
push 0x2605019a
jmp 0x4cf1db
push dword [ebp - 0x10c]
mov esi, dword [ebp - 0x11c]
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4cf310
lea eax, [ebp - 0x118]
mov ecx, esi
push eax
lea edx, [ebp - 0x114]
call fcn.004cf001
mov edi, dword [ebp - 0x114]
mov esi, eax
mov ebx, dword [ebp - 0x118]
test esi, esi
je 0x4cf28b
push esi
push 0x260c019a
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4cf2f1
xor ecx, ecx
lea eax, [ebp - 0x108]
push ecx
push ecx
push ecx
push ecx
push eax
push ecx
mov ecx, dword [ebp - 0x120]
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
push eax
push ecx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_LogonUserExW]
test eax, eax
jne 0x4cf2cc
call fcn.004c73cc
mov esi, eax
test esi, esi
je 0x4cf2cc
push esi
push 0x261c019a
jmp 0x4cf2ea
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x4cf310
call dword [sym.imp.certcli.dll_Ordinal_356]
mov esi, eax
push esi
push 0x2621019a
push edi
call dword [sym.imp.certcli.dll_Ordinal_359]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x4cf1e1
call dword [sym.imp.certcli.dll_Ordinal_356]
push eax
push 0x262c019a
jmp 0x4cf1db
xor esi, esi
jmp 0x4cf1e1
Function at 0x4d53fd
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 8], edx
push edi
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [eax], esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x4d5441
mov esi, 0x8007000e
push esi
push 0xc0901a3
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4d548d
push ebx
push dword [ebp - 8]
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
push esi
push 1
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x4d5480
call fcn.004c73cc
mov esi, eax
push esi
push 0xc1601a3
call dword [sym.imp.certcli.dll_Ordinal_357]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4d548d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4d5d4a
Capabilities:
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0xf0000000
push 1
mov edi, ecx
xor ebx, ebx
push 0x41d7e0
mov esi, edx
push ebx
mov dword [edi], ebx
push edi
mov dword [esi], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4d5d82
mov dword [edi], ebx
call fcn.004c73cc
mov esi, eax
push esi
push 0x114301a3
jmp 0x4d5da5
push esi
push ebx
push ebx
push 0x8004
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4d5dd5
mov dword [esi], ebx
call fcn.004c73cc
mov esi, eax
push esi
push 0x114a01a3
call dword [sym.imp.certcli.dll_Ordinal_357]
test esi, esi
je 0x4d5dd7
cmp dword [edi], ebx
je 0x4d5dd7
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x4d5dd1
call fcn.004c73cc
push esi
push 0x115501a3
call dword [sym.imp.certcli.dll_Ordinal_357]
mov dword [edi], ebx
jmp 0x4d5dd7
mov esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4dee7c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, edx
mov dword [ebp - 0x21c], eax
push esi
push edi
mov edi, ecx
xor esi, esi
or dword [ebx], 0xffffffff
mov ecx, ebx
mov dword [eax], esi
call fcn.004ddb72
test edi, edi
jne 0x4deef3
mov esi, 0xf6
lea eax, [ebp - 0x214]
push esi
push eax
push 0x427e9c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4deedd
cmp eax, esi
jae 0x4deedd
push 0x42f628
lea edx, [esi + 0xe]
jmp 0x4def50
mov esi, 0x80070002
push esi
push 0x4e60191
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4df001
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x4def61
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4def07
sub ecx, edx
mov esi, 0x104
sar ecx, 1
lea eax, [ecx + 2]
cmp eax, esi
jb 0x4def39
mov esi, 0x800700ce
push esi
push 0x4f20191
push edi
call dword [sym.imp.certcli.dll_Ordinal_359]
jmp 0x4df001
push ecx
push 0x42f644
push ecx
mov edx, esi
lea ecx, [ebp - 0x214]
call fcn.0043eb27
push edi
mov edx, esi
lea ecx, [ebp - 0x214]
call fcn.0043eadb
lea edi, [ebp - 0x214]
mov edx, edi
mov ecx, ebx
call fcn.004ddf40
mov esi, eax
test esi, esi
je 0x4def78
push esi
push 0x4fa0191
jmp 0x4def2d
push 2
pop ecx
jmp 0x4def9c
call fcn.004c73cc
mov esi, eax
cmp esi, 0xe0000100
jne 0x4df014
cmp dword [ebp - 0x220], 2
jne 0x4df014
xor ecx, ecx
inc ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], ecx
push eax
push ecx
xor esi, esi
push esi
push edi
mov dword [ebp - 0x218], esi
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov ecx, dword [ebp - 0x21c]
mov dword [ebx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx], eax
cmp dword [ebx], 0xffffffff
je 0x4def7d
lea eax, [ebp - 0x230]
mov edx, 0x42f64c
push eax
push esi
push esi
push esi
push esi
push esi
mov ecx, ebx
call fcn.004de5a1
push esi
push esi
push edi
push 1
push 0x3b2
push esi
mov edx, 0x525
mov ecx, 0x191
call fcn.004e9b0c
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret 4
mov ecx, dword [ebp - 0x21c]
mov edx, 0x515
mov eax, dword [ecx]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, 0x191
push eax
push 0
push edi
push 1
push 0x3b3
push esi
call fcn.004e9b0c
push esi
push 0x5160191
jmp 0x4def2d
Function at 0x4e1cf2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edx, ecx
xor edi, edi
inc edi
xor ebx, ebx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x4e1d14
sub edx, esi
mov esi, 0x104
sar edx, 1
lea eax, [edx + 4]
cmp eax, esi
jb 0x4e1d42
push 0x8007006f
push 0x35e0197
push ecx
call dword [sym.imp.certcli.dll_Ordinal_359]
jmp 0x4e1da3
push ecx
mov edx, esi
lea ecx, [ebp - 0x210]
call fcn.0043eb7d
push 0x42f9d0
mov edx, esi
lea ecx, [ebp - 0x210]
call fcn.0043eadb
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e1da3
test byte [ebp - 0x460], 0x10
je 0x4e1d9a
lea eax, [ebp - 0x460]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4e1d7d
jmp 0x4e1d9c
mov edi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret