joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445360
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47d3e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046ed7b
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004744ee
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00475a46
test eax, eax
je 0x44547c
mov ecx, dword [esp + 0x3c]
call fcn.0047451b
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x445440
push edi
mov ecx, esi
call fcn.00471adf
mov ecx, esi
call fcn.004455e0
cmp dword [esp + 0x38], 1
jne 0x445475
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00471c49
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x447ea0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x447ed3
push esi
call fcn.0044afa0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x447ecc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x447f59
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x447f42
mov eax, dword [esi + 8]
test eax, eax
je 0x447ef7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x447f3e
cmp eax, 2
je 0x447f42
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x447eea
cmp eax, 3
je 0x447f1d
cmp eax, 1
jne 0x447eea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x447eea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x447eea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00447f80
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x447f68
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00447f80
add esp, 4
pop esi
ret

Function at 0x46fb71
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46fba9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046dbfe
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046dbd6
jmp 0x46fbb5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x471263
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4712a5
call fcn.00476f48
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4712a5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47129c
xor eax, eax
jmp 0x4712ad
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004712b3
pop edi
pop esi
pop ebx
ret 4

Function at 0x477478
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4774a6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4774c4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004773de
jmp 0x4774c4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4774c4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004773de
test edi, edi
mov eax, edi
jne 0x4774ae
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001240
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1000260f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
mov dword [esp + 0x10], 0
push str.HTTP_
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 2
call sub.MFC42.DLL_CString::Find
push 0x1000404c
lea ecx, [esp + 0x2c]
mov esi, eax
call sub.MFC42.DLL_CString::Find
mov edi, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x10]
push 0x1000404c
push ecx
call sub.MFC42.DLL_operator_1
push 0x1000404c
lea edx, [esp + 0xc]
push eax
push edx
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 4
call fcn.10002356
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
sub esi, edi
lea eax, [esp + 0xc]
push esi
push edi
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Mid
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 5
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.10002350
mov eax, 1
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], al
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x100014e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100026b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x2c]
mov ebx, 1
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x1c], 2
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString_2
push str._HTTP
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 4
call sub.MFC42.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
jne 0x100015ca
push 0x3f
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000157f
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.10002350
mov dword [esp + 0xc], ebx
jmp 0x10001621
inc esi
push 0x1000405c
push esi
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Insert
lea eax, [esp + 0x2c]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
lea ecx, [esp + 0x28]
push eax
push esi
mov byte [esp + 0x24], 5
call sub.MFC42.DLL_CString::Insert
lea ecx, [esp + 0x30]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x28]
push eax
jmp 0x10001612
lea ecx, [esp + 0x2c]
lea edx, [esp + 8]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
lea ecx, [esp + 0x28]
push eax
push esi
mov byte [esp + 0x24], 6
call sub.MFC42.DLL_CString::Insert
lea ecx, [esp + 0x30]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString
push 0x1000405c
push esi
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Insert
lea ecx, [esp + 0x28]
push ecx
mov esi, dword [esp + 0x28]
mov ecx, esi
call fcn.10002350
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x10001f40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
jmp 0x10001f5b
push str.mswsock.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10002029
cmp word [edi], 0x5a4d
jne 0x10002029
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x10002029
mov ecx, dword [eax + 0x80]
test ecx, ecx
je 0x10002029
mov edx, dword [eax + 0x84]
test edx, edx
je 0x10002029
mov eax, dword [ecx + edi + 0x10]
lea esi, [ecx + edi]
test eax, eax
mov dword [ebp - 4], esi
je 0x10002019
mov eax, dword [esi + 0xc]
push str.ntdll.dll
add eax, edi
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x10001fd6
add esi, 0x14
mov dword [ebp - 4], esi
jmp 0x10002012
mov esi, dword [esi]
mov ebx, 1
add esi, edi
mov eax, dword [esi]
test eax, eax
je 0x10002007
lea eax, [eax + edi + 2]
push str.NtDeviceIoControlFile
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x10002030
mov eax, dword [esi + 4]
add esi, 4
inc ebx
test eax, eax
jne 0x10001fe5
mov eax, dword [ebp - 4]
add eax, 0x14
mov dword [ebp - 4], eax
mov esi, eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x10001fb6
jmp 0x10002029
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov dword [ebp - 8], 0x10001e70
mov ecx, dword [eax + 0x10]
lea edx, [ecx + ebx*4]
mov ecx, dword [edx + edi - 4]
mov dword [0x10004324], ecx
lea ecx, [ebp - 8]
lea eax, [edx + edi - 4]
lea edx, [ebp - 4]
push edx
push 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002070
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x100020c3
mov eax, dword [esp + 4]
push eax
push 0x10004310
call sub.MFC42.DLL_AfxInitExtensionModule
test eax, eax
jne 0x1000208f
ret 0xc
call fcn.10001f40
push str.entry_ly_main
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x100020d2
push 0
push 0x10004310
mov ecx, eax
call sub.MFC42.DLL_CDynLinkLibrary::CDynLinkLibrary
mov eax, 1
ret 0xc
test eax, eax
jne 0x100020d2
push eax
push 0x10004310
call sub.MFC42.DLL_AfxTermExtensionModule
mov eax, 1
ret 0xc
Function at 0x765e4193
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
dec ebx
test eax, eax
je 0x7660da38
push esi
push edi
push dword [0x76666124]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x765ec585
and dword [ebp + 8], 0
mov edi, dword [ebp + 8]
cmp ebx, edi
jb 0x765ec58f
cmp dword [ebp + 0xc], 0
je 0x76600c0c
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
or cl, byte [edx + ebp*8 + 0x2ccbe760]
inc ebx
fmul dword [edx]
dec edi
adc esp, dword [esi]
cmpsb byte [esi], byte es:[edi]
jmp 0xf4b6a441
push 0x76666160
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x7666617c]
cmp ebx, edx
jae 0x7660da4a
test esi, esi
jne 0x76602d6c
cmp edx, 0x10
ja 0x76600c35
push 0x10
pop edx
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov eax, edx
shl eax, 2
push eax
push 0x40
call esi
mov ebx, eax
test ebx, ebx
je 0x7660da75
push 0x10
push 0x40
call esi
mov esi, eax
test esi, esi
je 0x7660da6e
push esi
push dword [0x76666124]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x7660da82
mov eax, dword [0x7666615c]
and dword [esi + 0xc], 0
test eax, eax
mov dword [esi + 8], eax
je 0x76600c87
mov dword [eax + 0xc], esi
mov dword [0x7666615c], esi
mov edx, dword [0x7666617c]
cmp edi, edx
jae 0x76600ca3
mov ecx, edx
sub ecx, dword [ebp + 8]
lea edi, [ebx + edi*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esi + 4], ebx
mov dword [esi], edx
push 0x76666160
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x765e41da
cmp edx, 0x10
ja 0x7660da51
mov ebx, dword [esi + 4]
jmp 0x76600c93
push 0x80070057
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x765e41dc
push 0x80070057
jmp 0x7660da7a
mov eax, edx
push 2
shl eax, 2
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebx, eax
test ebx, ebx
jne 0x76600c8d
jmp 0x7660da75
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x7660da8e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push ebx
call esi
xor ebx, ebx
jmp 0x76600ca8
Function at 0x765f1f57
Capabilities:
Encode data using xor

Disassembly:
mov bl, 0xd7
lds ecx, [eax - 0x2e1275ff]
jae 0x765f1f21
les ebx, [edx]
lea eax, [ebp - 0x56]
out 0x9f, al
popfd
xlatb
je 0x765f1f58
add ch, al
invalid
pop eax
pop esi
xor ebx, edi
xchg ecx, eax
shl byte [ebp + ebx - 0x33], 1
sub dword [ebx - 0x3e], esp
dec esp
pop es
add al, 0x11
rcl dword [esi - 0x1ed9ba19], cl
push esi
push ss
pop ds
or eax, 0x1d87c1b
mov dh, bl
pop es
aad 0xfb
test dword [ebx - 0x7e], 0x1604cb03
out dx, eax
enter 0x5e3a, 0
adc al, 0xf7
call 0xbc42129
call 0xe81cee95
pop edi
std
and byte [edi - 0x80], bl
loop 0x765f1fe0
cmp edi, ecx
mov ebp, 0x20fd5f71
pop edi
and dl, 0x7d
popfd
push ds
jle 0x765f1fa2
cmp byte [edx + edi*8 + 0x50], dh
cwde
jmp 0x765f1f09
add byte [eax - 0x5e], dl
retf
xchg ebx, eax
sbb eax, 0x500aa814
mov dh, byte [ebp + 0x4f]
cld
xor byte [edx - 0x75b02a3a], 0x7e
mov edi, 0x6a869ea0
stosb byte es:[edi], al
cmp byte [edi + 0x49], 0x7e
in eax, 0x57
stc
loope 0x765f1fe9
xchg ecx, eax
jle 0x765f1fe0
mov al, 0x2a
sbb al, 0xa0
xor al, 0x1e
wait
sbb al, byte [edi + ecx*8 + 0x38ef5e6f]
cmp bh, byte [0x800fed64]
mov al, byte [0x738742b4]
and dword [eax + 0x1d], esi
sub eax, 0xb8189463
push ecx
add byte [eax - 0x66], dl
jp 0x765f20a2
mov ch, 0x78
pop ebx
insb byte es:[edi], dx
mov dh, 0xb7
in al, dx
imul ecx, dword [edx], 0x1ceb4a4
ljmp 0x5d4d
mov dword [0x27858b30], eax
and byte [ecx - 0x25cd19b4], 0x7e
cdq
fild dword [edi + eax*8]
sub byte [edx + 0x64], cl
out 0x3d, al
jmp 0x955248c1

Function at 0x765f590a
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret 4
Function at 0x765f694b
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call fcn.765f6a3c
push 0x24
call fcn.765e44b0
mov esi, eax
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x76602b8b
cmp dword [ebp + 0xc], ebx
mov eax, dword [ebp + 8]
jne 0x76602b78
mov dword [esi], 2
mov dword [esi + 8], eax
mov eax, dword [eax + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 4], eax
call edi
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x76602b8b
cmp dword [0x766677d4], ebx
je 0x765f69d7
push ebx
push ebx
push ebx
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x76602b8b
push dword [ebp + 0xc]
push eax
call dword [0x766677d4]
test eax, eax
je 0x7660bdeb
mov dword [ebp - 4], 1
push 0x8000
push 0x765f06b8
push dword [esi + 4]
call fcn.765ef441
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x7660bdfc
push dword [esi + 0x10]
push eax
call fcn.765ec5f5
test eax, eax
je 0x76602b8b
cmp dword [ebp - 4], ebx
je 0x76602b83
mov eax, dword [esi + 0x18]
push 4
push 0xffffffffffffffff
push esi
push 0x7661f504
push eax
lea edi, [esi + 0x14]
push edi
call dword [0x76666048]
test eax, eax
je 0x7660be19
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
mov dword [esi], 3
jmp 0x765f6988
mov eax, dword [esi + 0x10]
jmp 0x765f6a11
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x7660be2d
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], ebx
jmp 0x765f69d7
cmp dword [ebp - 4], ebx
jne 0x765f6a0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x76602b8b
jmp 0x765f6a2e
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x76602b8b
mov esi, eax
lea eax, [ebp - 8]
push eax
call fcn.765ebed2
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 8]
jmp 0x765f6a2e
Function at 0x7660224b
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.766020d4
mov ebx, eax
cmp ebx, esi
je 0x766023c5
push 5
push ebx
call fcn.76601fd5
cmp eax, esi
mov dword [ebp - 4], eax
je 0x766023c5
call fcn.76601fa3
test eax, eax
je 0x766023c5
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
test eax, eax
je 0x766023c5
cmp dword [ebp + 0xc], esi
je 0x766023bb
push dword [0x76667a0c]
mov edi, dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x766023bb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x766023c5
cmp dword [ebp - 0xc], esi
je 0x766023b1
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x766023b1
cmp word [eax + 4], 2
jne 0x766023b1
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x766023b1
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
mov dword [ebp + esi*4 - 0x20], eax
jne 0x766023b1
cmp byte [eax + 1], 2
jne 0x766023b1
inc esi
cmp esi, 2
jb 0x7660230a
mov eax, dword [ebp - 0x20]
cmp dword [eax + 4], 0xf003f
jne 0x766023b1
add eax, 8
push eax
push dword [0x76667a08]
call edi
test eax, eax
je 0x766023b1
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0x20019
jne 0x766023b1
add eax, 8
push eax
push dword [0x76667a10]
call edi
test eax, eax
je 0x766023b1
push ebx
call fcn.766023dd
test eax, eax
mov dword [ebp - 8], eax
je 0x766023c5
xor esi, esi
inc esi
mov edi, eax
push dword [ebp - 4]
call fcn.765e40a0
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x7660d913
push ebx
call fcn.765ea060
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x766023d0
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
push 0x538
jmp 0x7660d8f5
push 0x51b
jmp 0x7660d8f5
push ebx
call fcn.765ea060
jmp 0x7660d900
push edi
call fcn.765e40a0
jmp 0x766023a8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x766023c5
push dword [ebp - 8]
xor ebx, ebx
call fcn.765e40a0
xor edi, edi
xor esi, esi
jmp 0x76602386
mov dword [eax], ebx
jmp 0x7660239f

Function at 0x766038d2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.765e448a
test eax, eax
je 0x76608d04
pop ebp
jmp dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebp
jmp fcn.76613e24
Function at 0x76603b3d
Capabilities:
Get file version info

Disassembly:
push 0x134
push 0x76603c78
call fcn.765e153c
mov eax, dword [0x76666130]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x134], esi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x13c], edi
xor ebx, ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x138], ebx
lea ecx, [ebp - 0x128]
push ecx
push eax
push 0x104
lea eax, [ebp - 0x120]
push eax
call fcn.765eac03
test eax, eax
je 0x76603c70
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x128]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x130], eax
cmp eax, ebx
je 0x76603c6c
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x124], eax
cmp eax, ebx
je 0x76603c6c
push eax
push dword [ebp - 0x130]
push ebx
push dword [ebp - 0x128]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x76603c6c
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x766029b8
push dword [ebp - 0x124]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x76603c6c
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov eax, dword [eax + 0xc]
mov dword [edi], eax
xor esi, esi
inc esi
push dword [ebp - 0x128]
lea eax, [ebp - 0x120]
push eax
call fcn.765eaffd
cmp dword [ebp - 0x124], ebx
je 0x76603c5a
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x1c]
call fcn.765e4260
call fcn.765e1577
ret 0xc
or dword [ebp - 4], 0xffffffff
mov dword [esi], ebx
mov dword [edi], ebx
xor esi, esi
jmp 0x76603c34

Function at 0x76612b1d
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.765e448a
test eax, eax
je 0x76612b32
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ebp
jmp fcn.76612aa1

Function at 0x76612bba
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.765e448a
test eax, eax
je 0x76612bcf
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop ebp
jmp fcn.76612b3d

Function at 0x766134a9
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.765e49c2
test eax, eax
je 0x766134c3
mov eax, dword [0x76666344]
test eax, eax
je 0x766134c3
pop ebp
jmp eax
pop ebp
jmp fcn.766132b9