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

Disassembly:
push 0x20
mov eax, 0x4ae278
call fcn.00473d21
lea eax, [ebp - 0x1c]
push eax
xor ebx, ebx
push ebx
push 8
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x14], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x450218
call esi
cmp eax, 0x3f0
jne 0x450208
lea eax, [ebp - 0x1c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x450214
xor eax, eax
jmp 0x4502bf
test eax, eax
je 0x45020d
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x45020d
call esi
cmp eax, 0x7a
jne 0x45020d
push dword [ebp - 0x20]
call fcn.00474bb7
mov esi, eax
pop ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push esi
push 2
push dword [ebp - 0x1c]
call edi
test eax, eax
je 0x4502b2
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4502b2
mov edi, ebx
cmp dword [esi], ebx
jbe 0x4502a9
lea eax, [esi + 4]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x28]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4502a6
mov eax, dword [ebp - 0x24]
inc edi
add eax, 8
mov dword [ebp - 0x24], eax
cmp edi, dword [esi]
jb 0x450287
jmp 0x4502a9
xor ebx, ebx
inc ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
or dword [ebp - 4], 0xffffffff
push esi
call fcn.00472d16
pop ecx
mov eax, ebx
call fcn.00473cd0
ret
Function at 0x4502d7
Capabilities:
Create process on windows

Disassembly:
push 0x894
mov eax, 0x4ae2b3
call fcn.00473d21
mov esi, dword [ebp + 8]
push 0x10
xor ebx, ebx
lea eax, [ebp - 0x85c]
push ebx
push eax
call fcn.00474cd0
push 0x44
pop edi
push edi
lea eax, [ebp - 0x8a0]
push ebx
push eax
call fcn.00474cd0
mov dword [ebp - 0x8a0], edi
xor edi, edi
xor eax, eax
inc edi
add esp, 0x18
mov dword [ebp - 0x874], edi
mov word [ebp - 0x870], ax
cmp dword [ebp + 0xc], eax
je 0x450332
mov word [ebp - 0x870], di
push esi
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
lea eax, [ebp - 0x841]
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x840]
call fcn.00402ca0
mov dword [ebp - 4], ebx
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x450368
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x84c]
push str.Attempting_to_launch__no_wait_:__s
mov edi, str.utils.cpp
push eax
mov dword [ebp - 0x84c], edi
mov dword [ebp - 0x848], 0x4e9
call fcn.004191b5
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.00401ac0
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x8a0]
push eax
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
lea eax, [ebp - 0x810]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
push esi
lea eax, [ebp - 0x84c]
push str.Launch_result__d
push eax
mov dword [ebp - 0x84c], edi
mov dword [ebp - 0x848], 0x4ee
call fcn.004191b5
add esp, 0xc
test esi, esi
je 0x450401
push 0x3e8
push dword [ebp - 0x85c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, esi
call fcn.00473cd0
ret 8
Function at 0x453e06
Capabilities:
Read file on windows

Disassembly:
push 0x10c
mov eax, 0x4ae5c2
call fcn.00473d21
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 8]
xor edi, edi
xor ebx, ebx
inc edi
cmp eax, 0xffffffff
cmove eax, edi
mov dword [ebp - 0x118], ebx
test ecx, ecx
je 0x453e8b
lea edi, [ebp - 0x118]
push edi
push eax
push edx
call fcn.00468c1f
test al, al
jne 0x453edd
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4b9cf4
mov dword [ebp - 0x48], 0x4b9cfc
call fcn.004110fd
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.00441fdd
push 0x4e106c
lea eax, [ebp - 0x114]
push eax
call fcn.00473c61
push ebx
lea ecx, [ebp - 0x118]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x453edd
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4b9cf4
mov dword [ebp - 0x18], 0x4b9cfc
call fcn.004110fd
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], edi
call fcn.00441de3
push 0x4e0ff8
lea eax, [ebp - 0xc0]
jmp 0x453e85
mov eax, dword [ebp - 0x118]
call fcn.00473cd0
ret 8
Function at 0x4541c7
Capabilities:
Get common file path

Disassembly:
push 0x78
mov eax, 0x4ae6c2
call fcn.00473d21
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x71]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x70], 0x4b9cc8
mov dword [ebp - 0x48], 0x4b9cd0
call fcn.00403e30
mov edi, 0x104
lea eax, [ebp - 0x80]
push edi
lea ecx, [ebp - 0x70]
push eax
mov dword [ebp - 4], ebx
call fcn.00459d11
cmp dword [ebp + 0xc], 1
jne 0x45427f
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.00415ddc
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.00411a7c
inc bl
je 0x454258
lea ecx, [ebp - 0x2c]
call fcn.004421d0
push 0x4e54ec
lea eax, [ebp - 0x2c]
push eax
call fcn.00473c61
push 0
lea eax, [ebp - 0x71]
push eax
push str.sysnative
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4cb780
mov dword [ebp - 0x18], 0x4cb720
call fcn.00411200
mov byte [ebp - 4], 2
jmp 0x4542d8
cmp dword [ebp + 0xc], 2
jne 0x4542f2
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.00415ddc
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.00411a7c
inc bl
jne 0x454242
push 0
lea eax, [ebp - 0x71]
push eax
push str.syswow64
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4cb780
mov dword [ebp - 0x18], 0x4cb720
call fcn.00411200
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.0042c3cc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401b80
jmp 0x454324
mov ecx, dword [eax]
mov byte [ebp - 4], 5
mov byte [eax + 4], 1
call fcn.00415ddc
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.00411a7c
inc bl
jne 0x454242
push 0x4b6f58
lea ecx, [ebp - 0x70]
call fcn.004556d1
push 0
push eax
mov ecx, esi
mov dword [esi], 0x4b9cc8
mov dword [esi + 0x28], 0x4b9cd0
call fcn.004110fd
lea ecx, [ebp - 0x70]
call fcn.00401b80
mov eax, esi
call fcn.00473cd0
ret

Function at 0x4545e5
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4ae793
call fcn.00473d21
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
push 0
inc ebx
cmp eax, 0xffffffff
lea ecx, [ebp - 0x94]
push ecx
cmove eax, ebx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45465d
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4b9cf4
mov dword [ebp - 0x18], 0x4b9cfc
call fcn.004110fd
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00441de3
push 0x4e0ff8
lea eax, [ebp - 0x90]
push eax
call fcn.00473c61
mov eax, dword [ebp - 0x94]
call fcn.00473cd0
ret 8
Function at 0x4558e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x455969
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x455962
mov ecx, dword [edi]
test ecx, ecx
je 0x45595d
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x455953
cmp edx, 2
jbe 0x455945
cmp edx, 7
jne 0x455953
test cl, 1
jne 0x455953
shr ecx, 1
cmp ecx, 1
jb 0x455953
cmp word [esi + ecx*2 - 2], bx
jne 0x455953
cmp ecx, 1
jbe 0x455962
cmp word [esi + ecx*2 - 4], bx
jmp 0x455951
test cl, 1
jne 0x455953
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x455962
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x455962
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0x80004005
call fcn.0041953b
int3

Function at 0x4559f6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push edi
mov edi, ecx
je 0x455a4b
mov bl, byte [ebp + 0x10]
mov eax, dword [ebp + 0x14]
test bl, bl
je 0x455a17
cmp eax, 0xffffffff
jne 0x455a26
push 0x57
pop eax
jmp 0x455a45
cmp eax, 0xffffffff
jne 0x455a26
push dword [ebp + 8]
call fcn.00473c34
pop ecx
inc eax
add eax, eax
push eax
push dword [ebp + 8]
xor eax, eax
push 7
pop ecx
inc eax
test bl, bl
cmovne eax, ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop ebp
ret 0x10
push 0x80004005
call fcn.0041953b
int3
Function at 0x45add9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ed0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4bfee8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45ae0f
push str.GetSystemDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45ae0f
call eax
jmp 0x45aec4
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str..DefaultControl_PaneldesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 0xa
call esi
test eax, eax
jne 0x45ae59
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x4cb558
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45aea5
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push str..DEFAULTControl_PanelInternational
push SysReAllocStringLen
mov dword [ebp - 0x18], ebx
call esi
mov esi, eax
test esi, esi
jne 0x45ae92
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push str.Locale
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.004570cc
test esi, esi
je 0x45aea5
mov esi, 0x409
jmp 0x45aeb7
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00474afa
add esp, 0xc
movzx esi, ax
lea ecx, [ebp - 0x14]
call fcn.004570cc
mov ax, si
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00473c52
leave
ret
Function at 0x45b4ba
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4ed0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ecx, ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [eax], ecx
lea eax, [ebp - 0x118]
push eax
mov dword [esi], ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x108], ebx
jne 0x45b549
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x45b53c
cmp eax, 0xa
je 0x45b51b
cmp eax, 0x5a
je 0x45b513
xor ebx, ebx
mov dword [esi], 0x80
jmp 0x45b542
call fcn.0045c048
test al, al
mov al, bl
je 0x45b531
mov dword [esi], 0x80
jmp 0x45b5cf
mov dword [esi], 0x40
jmp 0x45b5cf
mov dword [esi], 0x10
mov al, bl
jmp 0x45b5cf
cmp dword [ebp - 0x108], 2
jne 0x45b5cd
mov ecx, dword [ebp - 0x114]
sub ecx, 4
je 0x45b5c2
mov eax, dword [ebp - 0x110]
dec ecx
je 0x45b575
dec ecx
jne 0x45b5b8
test eax, eax
jne 0x45b59a
mov dword [esi], 0x1000000
jmp 0x45b542
test eax, eax
jne 0x45b581
mov dword [esi], 0x100000
jmp 0x45b542
cmp eax, ebx
jne 0x45b58d
mov dword [esi], 0x400000
jmp 0x45b542
cmp eax, 2
jne 0x45b569
mov dword [esi], 0x800000
jmp 0x45b542
cmp eax, ebx
jne 0x45b5a6
mov dword [esi], 0x2000000
jmp 0x45b542
cmp eax, 2
jne 0x45b5b3
mov dword [esi], 0x4000000
jmp 0x45b542
cmp eax, 3
je 0x45b5ba
xor ebx, ebx
mov dword [esi], 0x8000000
jmp 0x45b542
mov dword [esi], 0x10000
jmp 0x45b542
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00473c52
leave
ret

Function at 0x45c8c2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x38
mov eax, 0x4afa19
call fcn.00473d21
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push dword [eax]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push ecx
and esi, 0xf
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x45c8ee
mov al, 1
jmp 0x45c90a
xor ecx, ecx
movzx edx, word [eax]
add eax, 2
test dx, dx
je 0x45c902
cmp ecx, esi
je 0x45c910
lea eax, [eax + edx*2]
inc ecx
cmp ecx, 0x10
jl 0x45c8f0
xor al, al
call fcn.00473cd0
ret
push 1
lea ecx, [ebp - 0x41]
push ecx
push edx
push eax
lea ecx, [ebp - 0x40]
call fcn.004114e0
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00411b2a
lea ecx, [ebp - 0x40]
call fcn.00401b80
jmp 0x45c8ea
Function at 0x45dff1
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4ed0f0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0045c03a
test al, al
je 0x45e060
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x18]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x45e060
push esi
lea eax, [ebp - 0x20]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x20]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push esi
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00473c52
leave
ret

Function at 0x45e81e
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x24], 8
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push 0x2001f
push eax
push ecx
lea ecx, [ebp - 0xc]
call fcn.004018f0
mov esi, eax
test esi, esi
jne 0x45e86a
cmp dword [ebp + 0x54], 8
lea eax, [ebp + 0x40]
cmovae eax, dword [ebp + 0x40]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
lea ecx, [ebp - 0xc]
mov dword [0x4f2920], esi
call fcn.004018c0
lea ecx, [ebp + 0xc]
call fcn.00401b80
lea ecx, [ebp + 0x3c]
call fcn.00401b80
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret

Function at 0x45ef78
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4ed0f0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x45efaa
xor al, al
jmp 0x45efc3
cmp dword [ebp - 0x108], 2
jne 0x45efc1
cmp dword [ebp - 0x114], 5
jb 0x45efc1
xor eax, eax
inc eax
jmp 0x45efc3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00473c52
leave
ret
Function at 0x46226c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x462277
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret

Function at 0x462686
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x148
mov eax, 0x4b0899
call fcn.00473d21
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov dword [ebp - 0x154], ebx
mov byte [ebp - 0x114], bl
call fcn.00474cd0
add esp, 0xc
mov dword [ebp - 0x14c], ebx
lea eax, [ebp - 0x14c]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x462775
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
mov ecx, str.ProgramFilesDir
push ebx
mov eax, str.CommonFilesDir
cmp edi, 1
cmovne eax, ecx
push eax
push dword [ebp - 0x14c]
mov dword [ebp - 0x150], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
lea eax, [ebp - 0x145]
push eax
lea eax, [ebp - 0x114]
mov edi, 0x4b9cf4
mov ebx, 0x4b9cfc
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x11c], ebx
call fcn.00428303
push 0x4b6f58
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 1
call fcn.00455652
lea ecx, [ebp - 0x144]
call fcn.004629f3
lea eax, [ebp - 0x144]
jmp 0x4627ba
push 0
lea eax, [ebp - 0x145]
push eax
lea eax, [ebp - 0x114]
mov edi, 0x4b9cf4
mov ebx, 0x4b9cfc
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x11c], ebx
call fcn.00428303
push 0x4b6f58
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 2
call fcn.00455652
push 0
push eax
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 0x28], ebx
call fcn.004110fd
lea ecx, [ebp - 0x144]
call fcn.00401b80
lea ecx, [ebp - 0x14c]
call fcn.004570cc
mov eax, esi
call fcn.00473cd0
ret
Function at 0x467305
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ed0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push ebx
push 8
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46737b
call esi
cmp eax, 0x3f0
jne 0x46735e
lea eax, [ebp - 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x467374
push 1
push dword [ebp - 0x10]
call fcn.0046745f
pop ecx
pop ecx
jmp 0x467451
test eax, eax
jne 0x46737b
push ebx
jmp 0x467365
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x4673a2
push ebx
push dword [ebp - 0x10]
call fcn.0046745f
pop ecx
jmp 0x46744f
call esi
cmp eax, 0x7a
jne 0x467393
push dword [ebp - 0x18]
call fcn.00474bb7
pop ecx
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4673ca
push ebx
jmp 0x46743b
cmp byte [ebp + 8], bl
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
mov eax, 0x223
push ebx
lea ecx, [eax - 3]
cmovne eax, ecx
push eax
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4673c7
mov byte [ebp - 0x14], bl
mov edi, ebx
cmp dword [esi], ebx
jbe 0x46742f
lea ebx, [esi + 4]
push dword [ebp - 0x1c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x46741a
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x467401
jmp 0x46742f
cmp byte [ebp + 0xc], 0
je 0x46742b
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0x14], 0
jne 0x46742f
mov byte [ebp - 0x14], 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0046745f
pop ecx
pop ecx
push esi
mov bl, al
call fcn.00472d16
mov al, bl
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00473c52
leave
ret
Function at 0x4686eb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x4ed0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x840], eax
call fcn.0041fc45
cmp eax, 1
jne 0x4687e3
and dword [ebp - 0x82c], 0
lea eax, [ebp - 0x82c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4687d8
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x834]
push eax
push 0
push 0
push str.ProxyEnable
push dword [ebp - 0x82c]
mov dword [ebp - 0x830], 4
call esi
mov ecx, dword [ebp - 0x834]
xor edx, edx
test eax, eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x828]
push eax
push edx
push edx
push str.AutoConfigURL
push dword [ebp - 0x82c]
cmovne ecx, edx
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x830], 0x824
call esi
movzx ecx, byte [ebp - 0x828]
mov esi, dword [ebp - 0x838]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [ebp - 0x828], cl
lea ecx, [ebp - 0x82c]
call fcn.004570cc
push dword [ebp - 0x840]
push dword [ebp - 0x83c]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00467bf0
add esp, 0x14
xor ecx, ecx
test eax, eax
mov dword [edi + 4], eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00473c52
leave
ret 0x14