joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ebe0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], 0
xor bl, bl
mov dword [ebp - 0xc], 0
push eax
mov byte [ebp - 0xd], bl
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x44ecac
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
push esi
call edi
test eax, eax
jne 0x44ec58
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x44ecab
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push ebx
push 2
push esi
call edi
test eax, eax
je 0x44ec9d
xor esi, esi
cmp dword [ebx], esi
jbe 0x44ec9d
lea edi, [ebx + 4]
nop
push dword [edi]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x44ec99
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x44ec80
jmp 0x44ec9d
mov byte [ebp - 0xd], 1
test ebx, ebx
je 0x44eca8
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov bl, byte [ebp - 0xd]
pop edi
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x44ecba
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0046100d
mov esp, ebp
pop ebp
ret

Function at 0x44ecd0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0
push eax
push 1
push 0
push 0
mov dword [ebp - 0x11c], 0
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
jne 0x44ed7d
push 0x110
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004a90e0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44ed66
cmp dword [ebp - 0x114], 6
jne 0x44ed66
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x11c]
xor eax, eax
push ebx
mov ebx, 0x490
push esi
mov esi, dword [ebp - 0x120]
test edx, edx
je 0x44edb9
lea ecx, [esi + 8]
lea esp, [esp]
cmp dword [ecx], 0
je 0x44edaf
inc eax
add ecx, 0xc
cmp eax, edx
jb 0x44eda0
jmp 0x44edb9
lea eax, [eax + eax*2]
xor ebx, ebx
mov eax, dword [esi + eax*4]
mov dword [edi], eax
push esi
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.0046100d
mov esp, ebp
pop ebp
ret
Function at 0x44ede0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x44ee0d
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004a90e0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44ee50
cmp dword [ebp - 0x114], 5
jne 0x44ee50
cmp dword [ebp - 0x110], 0
je 0x44ee5d
push esi
call fcn.0044f120
add esp, 4
test eax, eax
je 0x44ee75
push esi
call fcn.0044ef30
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0046100d
mov esp, ebp
pop ebp
ret

Function at 0x44ef30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 2
mov dword [ebp - 0x238], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x44ef72
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
push edi
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x234], 0
push 0
push eax
mov edi, 0x490
call fcn.004a90e0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x44efee
lea eax, [ebp - 0x20c]
push str.explorer.exe
push eax
call fcn.004ad8b4
add esp, 8
test eax, eax
je 0x44efde
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x44efb3
jmp 0x44eff6
mov eax, dword [ebp - 0x228]
xor edi, edi
mov dword [ebp - 0x234], eax
jmp 0x44eff6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x234]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x44f02d
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x238]
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x44f04c
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0046100d
mov esp, ebp
pop ebp
ret
Function at 0x44f180
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], eax
test eax, eax
je 0x44f1c0
push 0
push 0
push eax
push 0x44f350
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x44f1c4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor al, al
pop esi
ret
mov al, 1
pop esi
ret

Function at 0x44f830
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ecx
push ebx
push 0x80
push 3
push ebx
push 1
push bind
push dword [ebp + 8]
mov dword [ebp - 4], 0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x44f965
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0x50
jb 0x44f931
push esi
call fcn.004613a5
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
push edi
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44f931
cmp dword [ebp - 4], esi
jne 0x44f931
mov edi, dword [ebp + 0xc]
mov ecx, 0x14
add edi, 4
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx], 0x424b4c48
jne 0x44f92b
mov ecx, dword [ebp - 8]
cmp dword [ebx + 0x18], ecx
jne 0x44f92b
mov eax, dword [ebx + 0x24]
cmp eax, ecx
ja 0x44f92b
mov edx, dword [ebx + 0x28]
add eax, edx
cmp eax, ecx
ja 0x44f92b
cmp dword [ebx + 0x2c], 1
jne 0x44f92b
lea eax, [edx + 1]
push eax
call fcn.004613a5
push dword [ebx + 0x28]
mov edi, eax
mov eax, dword [ebx + 0x24]
add eax, ebx
push eax
push edi
call fcn.004a8a50
movzx eax, byte [ebx + 0x30]
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push eax
push dword [ebx + 0x28]
push edi
call fcn.00450010
mov eax, dword [ebx + 0x28]
mov esi, 1
mov ecx, dword [ebp + 0xc]
mov byte [edi + eax], 0
mov dword [ecx + 0x54], edi
mov eax, dword [ebx + 0x28]
mov dword [ecx + 0x58], eax
jmp 0x44f933
xor esi, esi
xor edi, edi
jmp 0x44f933
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x44f94d
test edi, edi
je 0x44f94d
push edi
call fcn.004613ae
add esp, 4
test ebx, ebx
je 0x44f95a
push ebx
call fcn.004613ae
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x450010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor eax, eax
test edx, edx
jle 0x450031
push ebx
mov bl, byte [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
xor byte [eax + esi], bl
lea ecx, [eax + esi]
inc eax
cmp eax, edx
jl 0x450024
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4503d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d110a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4f91a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
lea edi, [esi + 0x4c]
mov byte [ebp - 4], 3
push 0x14
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00461023
add esp, 4
test eax, eax
jne 0x4504b1
call fcn.004abee1
lea ecx, [eax + 4]
mov dword [eax], eax
test ecx, ecx
je 0x4504bc
mov dword [ecx], eax
lea ecx, [eax + 8]
test ecx, ecx
je 0x4504c5
mov dword [ecx], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 4
mov dword [esi + 0x54], eax
call fcn.0044e260
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 5
call fcn.00406030
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 6
call fcn.0045a430
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4549a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x4549c7
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0
push 0
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x4549c1
push esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], 0xc
push str.GlobalKNSERVICE_Mutex
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x454a1e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x455640
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x44f322
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 4]
test eax, eax
je 0x44f322
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x44f322
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 4]
test eax, eax
je 0x44f337
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x44f34a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov al, 1
pop esi
ret
call fcn.004518b0
mov eax, dword [0x520464]
test eax, eax
je 0x45566d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x520464]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x520464], 0
mov ecx, 0x52046c
call fcn.00456020
mov eax, dword [0x520468]
test eax, eax
je 0x455687
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00458c60
mov ecx, 0x5204ac
call fcn.0044dfe0
call fcn.0044f1d0
mov ecx, eax
jmp 0x44f2f0

Function at 0x455940
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004613e0
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1004]
push edi
push 0x1000
push 0
push eax
mov edi, ecx
call fcn.004a90e0
add esp, 0xc
lea eax, [ebp - 0x1004]
push 0x400
push eax
push str.CHROME_DLL_PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4559b0
push 1
push 0x400000
push esi
mov ecx, edi
call fcn.0044e040
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret 4
cmp word [ebp - 0x1004], 0
jne 0x4559be
xor ecx, ecx
jmp 0x4559d6
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4559c7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1004]
mov ecx, esi
push eax
call fcn.00407070
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0046100d
mov esp, ebp
pop ebp
ret 4
Function at 0x455a00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d15c8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0044de10
mov ecx, eax
call fcn.00455940
test eax, eax
jne 0x455ac3
push 5
push str.log_
lea ecx, [ebp - 0x28]
call fcn.00408850
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xd
push str.knbcenter.log
lea ecx, [ebp - 0x28]
call fcn.00408850
lea ecx, [ebp - 0x38]
call fcn.00410b80
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x38], 1
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x30], 1
call fcn.00410ba0
push 1
call fcn.00410d80
add esp, 8
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x455ad8
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004085f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret

Function at 0x455b00
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov edx, esi
neg edx
lea eax, [esi + 4]
sbb edx, edx
and edx, eax
lea ecx, [esi + 0x90]
push edx
call fcn.00450bb0
test al, al
jne 0x451a73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 6
call fcn.0044e6f0
add esp, 8
xor al, al
pop esi
ret
lea ecx, [esi + 0xc]
call fcn.00453590
test al, al
jne 0x451a94
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 7
call fcn.0044e6f0
add esp, 8
xor al, al
pop esi
ret
mov ecx, esi
call fcn.004519e0
mov al, 1
pop esi
ret
push esi
push 0
push 0
mov esi, ecx
call fcn.00415850
add esp, 8
call fcn.004588d0
call fcn.004587c0
mov ecx, esi
call fcn.00455a00
push str.LocalLBKSINIT_DE37097C_AC19_4513_9D64_E2E3D51676AE
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0x520464
push 0x455da0
push 0
push 0
mov dword [0x520468], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, esi
mov dword [0x520464], eax
call fcn.004556b0
mov ecx, 0x5204ac
call fcn.0044ddc0
mov eax, dword [0x520630]
test al, 1
jne 0x455b8c
or eax, 1
mov ecx, 0x5204b8
mov dword [0x520630], eax
call fcn.004555d0
push 0x4d2e50
call fcn.004612a9
add esp, 4
mov ecx, 0x5204b8
call fcn.00455bb0
call fcn.0044f1d0
mov ecx, eax
call fcn.0044f180
mov ecx, esi
pop esi
jmp 0x451a40
Function at 0x455bb0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [esi], 0
jne 0x455bd0
push str.wintrust.dll
call edi
mov dword [esi], eax
test eax, eax
je 0x455cf9
cmp dword [esi + 4], 0
jne 0x455be8
push str.Crypt32.dll
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x455cf9
cmp dword [esi + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x455c08
push str.CryptCATAdminAcquireContext
push dword [esi]
call edi
mov dword [esi + 8], eax
test eax, eax
je 0x455cf9
cmp dword [esi + 0xc], 0
jne 0x455c22
push str.CryptCATAdminReleaseContext
push dword [esi]
call edi
mov dword [esi + 0xc], eax
test eax, eax
je 0x455cf9
cmp dword [esi + 0x14], 0
jne 0x455c3c
push str.CryptCATCatalogInfoFromContext
push dword [esi]
call edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x455cf9
cmp dword [esi + 0x10], 0
jne 0x455c56
push str.CryptCATAdminReleaseCatalogContext
push dword [esi]
call edi
mov dword [esi + 0x10], eax
test eax, eax
je 0x455cf9
cmp dword [esi + 0x18], 0
jne 0x455c70
push str.CryptCATAdminCalcHashFromFileHandle
push dword [esi]
call edi
mov dword [esi + 0x18], eax
test eax, eax
je 0x455cf9
cmp dword [esi + 0x1c], 0
jne 0x455c86
push str.CryptCATAdminEnumCatalogFromHash
push dword [esi]
call edi
mov dword [esi + 0x1c], eax
test eax, eax
je 0x455cf9
cmp dword [esi + 0x20], 0
jne 0x455c9c
push str.WinVerifyTrustEx
push dword [esi]
call edi
mov dword [esi + 0x20], eax
test eax, eax
je 0x455cf9
cmp dword [esi + 0x24], 0
jne 0x455cb2
push str.WTHelperProvDataFromStateData
push dword [esi]
call edi
mov dword [esi + 0x24], eax
test eax, eax
je 0x455cf9
cmp dword [esi + 0x28], 0
jne 0x455cc8
push str.WTHelperGetProvSignerFromChain
push dword [esi]
call edi
mov dword [esi + 0x28], eax
test eax, eax
je 0x455cf9
cmp dword [esi + 0x2c], 0
jne 0x455cde
push str.WTHelperGetProvCertFromChain
push dword [esi]
call edi
mov dword [esi + 0x2c], eax
test eax, eax
je 0x455cf9
cmp dword [esi + 0x30], 0
jne 0x455d71
push str.CertNameToStrW
push dword [esi + 4]
call edi
mov dword [esi + 0x30], eax
test eax, eax
jne 0x455d71
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
test eax, eax
je 0x455d5b
push eax
call edi
mov dword [esi], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x455d6c
push ecx
call edi
mov dword [esi + 4], 0
pop edi
xor eax, eax
pop esi
ret
push 0x144
lea eax, [esi + 0x34]
push 0
push eax
call fcn.004a90e0
add esp, 0xc
mov ecx, esi
call fcn.00455e40
pop edi
mov eax, 1
pop esi
ret
Function at 0x455e40
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1220
call fcn.004613e0
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x1218], ecx
push 0x1000
lea eax, [ebp - 0x120c]
mov dword [ebp - 0x1210], esi
push esi
push eax
call fcn.004a90e0
add esp, 0xc
lea eax, [ebp - 0x1214]
push eax
push 0x1000
lea eax, [ebp - 0x120c]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x455ea6
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1214]
shr eax, 2
push edi
xor edi, edi
mov dword [ebp - 0x1220], eax
test eax, eax
je 0x455f9c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x455ed0
mov eax, dword [ebp + edi*4 - 0x120c]
test eax, eax
je 0x455f88
cmp eax, 8
jbe 0x455f88
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x455f88
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x455f85
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004b105b
lea eax, [ebp - 0x20c]
push str.windowsexplorer.exe
push eax
call fcn.004a9299
add esp, 0x10
test eax, eax
je 0x455f85
lea eax, [ebp - 0x121c]
push eax
push 0xf00ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x455f85
mov edx, dword [ebp - 0x1218]
xor ecx, ecx
lea eax, [edx + 0x34]
cmp dword [eax], 0
je 0x455f71
inc ecx
add eax, 4
cmp ecx, 0x10
jb 0x455f61
jmp 0x455f85
mov eax, dword [ebp - 0x121c]
mov dword [edx + ecx*4 + 0x34], eax
mov dword [ebp - 0x1210], 1
push esi
call ebx
inc edi
cmp edi, dword [ebp - 0x1220]
jb 0x455ed0
mov esi, dword [ebp - 0x1210]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0046100d
mov esp, ebp
pop ebp
ret

Function at 0x455fd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x455fe5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x455ff0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x455ff0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x456570
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1a6e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4f91a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00447700
mov ecx, eax
test ecx, ecx
jne 0x4565af
push 0x80004005
call fcn.00447f10
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edx, [eax + 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [edi]
mov dword [ebp - 4], 0
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x4565d4
push 0x80070057
call fcn.00447f10
mov eax, dword [edx - 8]
mov ebx, 1
mov ecx, ebx
sub eax, esi
sub ecx, dword [edx - 4]
or eax, ecx
jge 0x4565f3
push esi
lea ecx, [ebp - 0x10]
call fcn.00448350
mov edx, dword [ebp - 0x10]
cmp dword [edx - 0xc], 0
jne 0x456602
test esi, esi
cmove edx, dword [0x4f904c]
lea eax, [esi + 1]
push eax
push edx
push dword [edi]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
push dword [ecx - 8]
push ecx
call fcn.004ad6fd
mov edx, eax
add esp, 8
test edx, edx
js 0x4565ca
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x4565ca
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], cl
mov word [eax + edx*2], cx
cmp esi, dword [ebp - 0x14]
jbe 0x4566a2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], eax
test esi, esi
jns 0x45665d
push 0x80070057
call fcn.00447f10
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 8]
sub ebx, dword [ecx - 4]
sub eax, esi
or eax, ebx
jge 0x456678
push esi
lea ecx, [ebp - 0x10]
call fcn.00448350
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 0xc], 0
mov dword [ebp - 0x14], ecx
jne 0x45668d
test esi, esi
cmove ecx, dword [0x4f904c]
mov dword [ebp - 0x14], ecx
lea eax, [esi + 1]
push eax
push ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x18]
call fcn.00456160
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.00447d10
push 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00456460
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
test eax, eax
jne 0x4566ca
xor edx, edx
jmp 0x4566df
mov edx, eax
lea esi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4566d0
sub edx, esi
sar edx, 1
push edx
push eax
mov ecx, edi
call fcn.004483f0
mov edx, dword [ebp - 0x14]
or esi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x456709
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x456728
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret