joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44af3b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004434c5
and dword [ebp - 4], 0
cmp dword [0x459e60], 0
mov ebx, eax
jne 0x44afec
push 0x402d74
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44b09d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402d68
push edi
call esi
test eax, eax
je 0x44b09d
push eax
call fcn.00443453
mov dword [esp], 0x402d58
push edi
mov dword [0x459e60], eax
call esi
push eax
call fcn.00443453
mov dword [esp], 0x402d44
push edi
mov dword [0x459e64], eax
call esi
push eax
call fcn.00443453
mov dword [esp], 0x402d28
push edi
mov dword [0x459e68], eax
call esi
push eax
call fcn.00443453
pop ecx
mov dword [0x459e70], eax
test eax, eax
je 0x44afec
push 0x402d10
push edi
call esi
push eax
call fcn.00443453
pop ecx
mov dword [0x459e6c], eax
mov eax, dword [0x459e6c]
cmp eax, ebx
je 0x44b044
cmp dword [0x459e70], ebx
je 0x44b044
push eax
call fcn.004434ce
push dword [0x459e70]
mov esi, eax
call fcn.004434ce
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44b044
test edi, edi
je 0x44b044
call esi
test eax, eax
je 0x44b03b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44b03b
test byte [ebp - 0xc], 1
jne 0x44b044
or dword [ebp + 0x10], 0x200000
jmp 0x44b07d
mov eax, dword [0x459e64]
cmp eax, ebx
je 0x44b07d
push eax
call fcn.004434ce
pop ecx
test eax, eax
je 0x44b07d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44b07d
mov eax, dword [0x459e68]
cmp eax, ebx
je 0x44b07d
push eax
call fcn.004434ce
pop ecx
test eax, eax
je 0x44b07d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x459e60]
call fcn.004434ce
pop ecx
test eax, eax
je 0x44b09d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44b09f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010d5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.0040f890
mov ebx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x94]
push eax
push esi
push esi
push 0x4000020
push esi
push esi
mov dword [ebp - 0x94], edi
mov edi, dword [ebp + 0xc]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401161
push 0x3c
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.0040f890
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x401166
mov eax, dword [ebp - 8]
jmp 0x401168
mov eax, dword [ebp - 0x50]
jmp 0x401168
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40116d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREIntelDisplayigfxcuihkcmd
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4011d2
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.ExpansionAllDisplay
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4011c9
cmp dword [ebp - 8], 1
jne 0x4011c9
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x4011e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v3.0Setup
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call esi
test eax, eax
jne 0x40123b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.InstallSuccess
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x401241
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], ebx
jne 0x40130b
lea eax, [ebp - 4]
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v3.5
push edi
call esi
mov dword [ebp - 0xc], 4
cmp eax, ebx
jne 0x401281
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.Install
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x401287
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], ebx
jne 0x40130b
lea eax, [ebp - 4]
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Full
push edi
call esi
mov dword [ebp - 0xc], 4
cmp eax, ebx
jne 0x4012c3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.Install
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x4012c9
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], ebx
jne 0x40130b
lea eax, [ebp - 4]
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Client
push edi
call esi
mov dword [ebp - 0xc], 4
cmp eax, ebx
jne 0x401305
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.Install
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x40130b
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x40131c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x402682
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push str.SoftwareIntelDisplayigfxcuiigfxcfg_resources
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4026e2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x4206a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4026d9
cmp dword [ebp - 8], 1
jne 0x4026d9
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x404719
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x4296e0]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x20
mov eax, 0x41f888
call fcn.0041007e
mov edi, dword [ebp + 0x12c]
mov esi, 0x104
xor ebx, ebx
push esi
lea eax, [ebp + 0x1c]
push ebx
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
call fcn.0040f890
add esp, 0xc
push ebx
lea ecx, [ebp]
mov byte [ebp - 0xd], 1
mov dword [ebp + 0x18], 0xf
call fcn.0040156e
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 4], ebx
jmp 0x4047f7
cmp byte [ebp - 0xd], bl
je 0x4047b1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00401de6
mov byte [ebp - 0xd], bl
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x4047dc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00401de6
inc dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
push dword [ebp - 0x24]
call edi
test eax, eax
je 0x404791
mov eax, dword [ebp - 0x14]
cmp dword [0x42ab98], eax
jne 0x40481e
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x404814
lea eax, [ebp + 4]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push ebx
push 1
lea ecx, [ebp]
call fcn.0040161a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.0040f90a
add ebp, 0x124
leave
ret 4
Function at 0x407138
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x407186
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x407197
push 0xd
pop eax
jmp 0x4071c1
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40719a
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x407d3f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x4296e0]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.004070f7
mov ebx, eax
cmp ebx, esi
je 0x407daf
lea ecx, [ebp - 0x70]
call fcn.00407082
mov eax, ebx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f90a
add ebp, 0x9c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x407dc7
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.00407d3f
cmp eax, esi
jne 0x407df9
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call ebx
test eax, eax
je 0x407db7
lea ecx, [ebp - 0x70]
call fcn.00407082
push dword [ebp - 0x78]
mov ecx, edi
call fcn.00407027
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00407082
mov eax, esi
jmp 0x407d95
Function at 0x40ac0d
Capabilities:
Get keyboard layout
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push esi
push edi
lea eax, [ebp - 0x78]
push eax
push 0x1e
xor edi, edi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
cmp si, ax
jne 0x40ac55
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx edx, ax
xor ecx, ecx
lea eax, [ebp + ecx*4 - 0x78]
cmp dx, word [eax]
jne 0x40ac4d
mov edi, dword [eax]
inc ecx
cmp ecx, 0x1e
jl 0x40ac42
jmp 0x40ac68
xor ecx, ecx
lea eax, [ebp + ecx*4 - 0x78]
cmp si, word [eax]
jne 0x40ac62
mov edi, dword [eax]
inc ecx
cmp ecx, 0x1e
jl 0x40ac57
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40ac6e
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4296e0]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa4]
or dword [ebp - 0x78], 0xffffffff
push edi
mov edi, dword [ebp + 0xa0]
mov dword [ebp - 0x80], eax
test edi, edi
je 0x40ad44
push ebx
push esi
push 1
push edi
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
and dword [ebp - 0x74], 0
mov esi, 0x428b20
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.0040f890
lea eax, [esi + 4]
push eax
push dword [ebp - 0x80]
call fcn.004114b1
add esp, 0x14
test eax, eax
je 0x40ad3c
mov eax, dword [esi]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040abe8
pop ecx
push edi
push 0
push dword [ebp - 0x7c]
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
mov ecx, dword [ebp - 0x74]
shl eax, 0x10
add ecx, 0xfffffff1
or eax, 1
cmp ecx, 3
ja 0x40ad0e
or eax, 0x1000000
push ebx
lea ecx, [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x80]
call fcn.004114b1
pop ecx
pop ecx
test eax, eax
je 0x40ad3c
inc dword [ebp - 0x74]
add esi, 0x18
cmp esi, 0x429150
jl 0x40acbe
jmp 0x40ad42
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
pop esi
pop ebx
push 1
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov ecx, dword [ebp + 0x94]
mov eax, dword [ebp - 0x78]
xor ecx, ebp
pop edi
call fcn.0040f90a
add ebp, 0x98
leave
ret
Function at 0x40ce0b
Capabilities:
Create process on windows

Disassembly:
push 0x78
mov eax, 0x41fcc6
call fcn.004100e7
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
mov dword [ebp - 0x14], 0xf
call fcn.0040156e
push 0x1c
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040f890
add esp, 0xc
push str.gfxUI.exe
lea ecx, [ebp - 0x2c]
call fcn.00401de6
push 0x10
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0040f890
push 0x44
pop esi
push esi
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.0040f890
add esp, 0x18
mov dword [ebp - 0x84], esi
call fcn.004011e8
cmp eax, 1
jne 0x40cebe
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x40ce87
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push ebx
push ebx
push 0x4000020
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40ced0
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x40]
call esi
mov byte [ebp - 0x2d], 1
jmp 0x40ced0
push ebx
push str.Warning
push str.Install_.Net3.0_Frame_Work_to_run_the_Intel_UI_Application
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040161a
mov al, byte [ebp - 0x2d]
call fcn.00410131
ret

Function at 0x40d45f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x42acb4], 0
push esi
jne 0x40d3d2
call fcn.0040d2f8
test eax, eax
je 0x40d415
mov eax, dword [0x42acb4]
cmp eax, 1
jne 0x40d3f3
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40d415
pop esi
ret
push eax
call dword [0x42acbc]
test eax, eax
jne 0x40d45d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40d419
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x42acb4]
call dword [0x42acbc]
mov edi, eax
test edi, edi
je 0x40d43e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40d45a
mov edi, esi
add esi, 0xff0
push edi
push dword [0x42acb4]
call dword [0x42acb8]
add edi, 0x10
cmp edi, esi
jb 0x40d446
mov eax, edi
pop edi
pop esi
ret
jmp 0x40d3bf

Function at 0x40f90a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4296e0]
jne 0x40f914
repz ret
jmp fcn.00412d71
Function at 0x41cc68
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004138f1
and dword [ebp - 4], 0
cmp dword [0x42b6ec], 0
mov ebx, eax
jne 0x41cd19
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41cdca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42336c
push edi
call esi
test eax, eax
je 0x41cdca
push eax
call fcn.0041387f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42b6ec], eax
call esi
push eax
call fcn.0041387f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42b6f0], eax
call esi
push eax
call fcn.0041387f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42b6f4], eax
call esi
push eax
call fcn.0041387f
pop ecx
mov dword [0x42b6fc], eax
test eax, eax
je 0x41cd19
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041387f
pop ecx
mov dword [0x42b6f8], eax
mov eax, dword [0x42b6f8]
cmp eax, ebx
je 0x41cd71
cmp dword [0x42b6fc], ebx
je 0x41cd71
push eax
call fcn.004138fa
push dword [0x42b6fc]
mov esi, eax
call fcn.004138fa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41cd71
test edi, edi
je 0x41cd71
call esi
test eax, eax
je 0x41cd68
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41cd68
test byte [ebp - 0xc], 1
jne 0x41cd71
or dword [ebp + 0x10], 0x200000
jmp 0x41cdaa
mov eax, dword [0x42b6f0]
cmp eax, ebx
je 0x41cdaa
push eax
call fcn.004138fa
pop ecx
test eax, eax
je 0x41cdaa
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41cdaa
mov eax, dword [0x42b6f4]
cmp eax, ebx
je 0x41cdaa
push eax
call fcn.004138fa
pop ecx
test eax, eax
je 0x41cdaa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b6ec]
call fcn.004138fa
pop ecx
test eax, eax
je 0x41cdca
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41cdcc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10018a0
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100c1f4]
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x10], ebx
cmp eax, 2
jne 0x10019c5
lea eax, [ebp - 0x10]
push eax
call fcn.010017fa
test eax, eax
jne 0x10019b3
lea eax, [ebp - 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10019c5
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 - 0x14]
call edi
test eax, eax
jne 0x10019a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10019a7
push esi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x10019a6
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x100199f
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x100199f
cmp dword [esi], ebx
jbe 0x1001996
lea edi, [esi + 4]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x100198b
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x1001972
jmp 0x1001996
xor eax, eax
inc eax
mov dword [0x100c1f4], eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
jmp 0x10019c2
cmp dword [ebp - 0x10], ebx
je 0x10019c2
mov dword [0x100c1f4], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01006b51
leave
ret
Function at 0x1001b07
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor esi, esi
test eax, eax
jne 0x1001b47
push esi
push 0x10
push esi
push esi
push 0x4f5
push esi
call fcn.01003810
xor eax, eax
jmp 0x1001bae
lea eax, [ebp - 0x10]
push eax
push 0x10012f4
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
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]
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebp - 0x1c], esi
jne 0x1001b93
push 0x10
push esi
push esi
push 0x4f6
jmp 0x1001b3d
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1001bab
push esi
push 0x10
push esi
push esi
push 0x4f7
jmp 0x1001b3d
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01006b51
leave
ret

Function at 0x1001bc0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp byte [0x100c600], 0
je 0x1001c05
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001c05
push 0x100c600
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x1001c4c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1001cc7
push 0x1001308
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01007610
lea eax, [ebp - 0x108]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x40
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001cc7
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll__llseek]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01006b51
leave
ret