joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423380
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x868
mov eax, dword [0x44f3d8]
xor eax, esp
mov dword [esp + 0x860], eax
mov eax, dword [esp + 0x86c]
push ebp
mov ebp, dword [esp + 0x87c]
push esi
push edi
push eax
lea eax, [esp + 0x6c]
push 0x400
push eax
mov esi, ecx
xor edi, edi
call fcn.004299fa
push 0x4448cc
lea ecx, [esp + 0x78]
push 0x400
push ecx
call fcn.0042a146
push esi
lea edx, [esp + 0x84]
push 0x400
push edx
call fcn.0042a146
push 0x44
lea eax, [esp + 0x48]
push edi
push eax
call fcn.00431d40
xor eax, eax
add esp, 0x30
cmp byte [esp + 0x87c], al
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
je 0x42341d
or dword [esp + 0x4c], 1
mov word [esp + 0x50], ax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x88]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x42345f
cmp byte [esp + 0x880], 0
je 0x423467
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x423467
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, dword [esp + 0x10]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov ecx, dword [esp + 0x86c]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00426d9a
add esp, 0x868
ret

Function at 0x4234b0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x1c
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42351c
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x80040002
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x42351c
xor eax, eax
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x1c
ret
Function at 0x423530
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x44f3d8]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4235d0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 8], 0
setne al
test al, al
je 0x4235d0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.SysWOW64Kernel32.dll
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4235d0
push str.Wow64EnableWow64FsRedirection
push esi
call edi
test eax, eax
je 0x4235c9
mov ecx, dword [esp + 0x21c]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.00426d9a
add esp, 0x210
ret
Function at 0x4235f0
Capabilities:
Check if file exists
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43f7f0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x44f3d8]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov eax, dword [0x44f3d8]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea eax, [esp + 0x10]
push eax
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
mov byte [esp + 0x54], 1
push 0x80000002
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, eax
cmp ebp, ebx
jne 0x42377e
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
mov eax, edi
call fcn.0041f230
test eax, eax
jne 0x42369c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x42369c
push edi
lea eax, [esp + 0x14]
push eax
mov edx, 0x4448b0
call fcn.0041f0d0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
mov eax, edi
call fcn.0041f230
test eax, eax
je 0x423763
cmp byte [esp + 0x4c], bl
je 0x4236ec
push 1
push 0x448944
lea ecx, [esp + 0x20]
call fcn.00403fa0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4236d0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00403fa0
jmp 0x42370b
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4236f1
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x20]
call fcn.00404120
cmp dword [esp + 0x30], 8
mov edx, dword [esp + 0x1c]
jae 0x42371a
lea edx, [esp + 0x1c]
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x423720
mov ecx, dword [esp + 0x10]
sub eax, esi
sar eax, 1
add eax, eax
push eax
push edx
push 2
push ebx
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x423763
push ebx
push 0x1388
push 2
push 0x448948
push ebx
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
jmp 0x42376b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x42377a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x30], 8
jb 0x423792
mov edx, dword [esp + 0x1c]
push edx
call fcn.004286d5
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
je 0x4237b2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00426d9a
add esp, 0x38
ret
Function at 0x424be0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
call fcn.004021a0
test eax, eax
jne 0x424c38
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x424ca0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.B32CB6D5_61BD_49c8_AA8A_8B790D3B9008
push 0
push 0
push 0
mov dword [0x451c30], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
add esp, 8
ret

Function at 0x424c40
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
call fcn.004021a0
test eax, eax
jne 0x424c98
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x424cf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.B32CB6D5_61BD_49c8_AA8A_8B790D3B9008
push 0
push 0
push 0
mov dword [0x451c30], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
add esp, 8
ret
Function at 0x426d9a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44f3d8]
jne 0x426da4
repz ret
jmp fcn.0042e76d

Function at 0x439491
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00430884
xor ebx, ebx
cmp dword [0x45195c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x439566
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4394d1
xor eax, eax
jmp 0x43962a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4394ca
push eax
call fcn.00430821
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45195c], eax
call esi
push eax
call fcn.00430821
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x451960], eax
call esi
push eax
call fcn.00430821
mov dword [0x451964], eax
lea eax, [ebp - 8]
push eax
call fcn.0042e3fd
test eax, eax
pop ecx
pop ecx
je 0x439534
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00428092
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x439566
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00430821
cmp eax, ebx
pop ecx
mov dword [0x45196c], eax
je 0x439566
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00430821
pop ecx
mov dword [0x451968], eax
mov eax, dword [0x451968]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4395df
cmp dword [0x45196c], esi
je 0x4395df
push eax
call fcn.0043088d
pop ecx
call eax
cmp eax, ebx
je 0x4395ac
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x45196c]
call fcn.0043088d
pop ecx
call eax
test eax, eax
je 0x4395ac
test byte [ebp - 0x18], 1
jne 0x4395df
lea eax, [ebp - 0xc]
push eax
call fcn.0042e434
test eax, eax
pop ecx
je 0x4395c7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00428092
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4395d6
or dword [ebp + 0x10], 0x200000
jmp 0x439610
or dword [ebp + 0x10], 0x40000
jmp 0x439610
mov eax, dword [0x451960]
cmp eax, esi
je 0x439610
push eax
call fcn.0043088d
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x439610
mov eax, dword [0x451964]
cmp eax, esi
je 0x439610
push dword [ebp - 4]
push eax
call fcn.0043088d
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x45195c]
call fcn.0043088d
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x106e8
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.00010686
or dword [ecx + 0x458d4967], eax
clc
push eax
push dword [ebp + 8]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov edi, eax
cmp edi, esi
jl 0x10762
push 0x10882
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
cmp eax, esi
je 0x10759
lea ecx, [ebp - 4]
push ecx
push 1
push dword [eax]
push dword [ebp + 0x10]
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov edi, eax
cmp edi, esi
jl 0x10759
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x109ee
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.000109b5
pop ebp
jmp fcn.00010906
Function at 0x578760
Capabilities:
Packed with generic packer

Disassembly:
pop ss
mov bh, 0x6c
pop ss
add byte [eax - 0xdb6db6], al
add byte [eax], al
pushal
mov esi, section.UPX1
lea edi, [esi - 0x11b000]
push edi
jmp 0x578786
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x57878d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57877c
mov eax, 1
add ebx, ebx
jne 0x57879f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5787b0
jne 0x5787cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5787cf
dec eax
add ebx, ebx
jne 0x5787bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x578794
add ebx, ebx
jne 0x5787cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x578821
xor ecx, ecx
sub eax, 3
jb 0x5787e7
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x578856
sar eax, 1
mov ebp, eax
jmp 0x5787f2
add ebx, ebx
jne 0x5787f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5787c0
inc ecx
add ebx, ebx
jne 0x578800
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5787c0
add ebx, ebx
jne 0x57880d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x578802
jne 0x57881e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x578802
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x578840
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x578832
jmp 0x578782
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x578840
add edi, ecx
jmp 0x578782
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x57885e
cmp byte [edi], 0x11
jne 0x57885e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x578863
lea edi, [esi + 0x171000]
mov eax, dword [edi]
or eax, eax
je 0x5788db
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x20bb3c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20bcb8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x578890
mov ecx, edi
jns 0x5788bf
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20bcbc]
or eax, eax
je 0x5788d5
mov dword [ebx], eax
add ebx, 4
jmp 0x5788ad
call dword [esi + 0x20bccc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x57890c
cmp al, 0xef
ja 0x5788ff
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5788e1
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5788ee
mov ebp, dword [esi + 0x20bcc0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x578940
sub esp, 0xffffff80
jmp 0x420583
Function at 0x5281dd
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x72d710], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x528221
call ebx
test eax, eax
jns 0x528217
push 0x404600
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x4045f4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x72d70c], eax
mov dword [0x72d710], 1
mov eax, dword [0x72d70c]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x52823d
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x52826d
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x528263
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x528258
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x52825d
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x52826c
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x5544ee
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0x411580
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.006524bd
test eax, eax
je 0x554512
xor al, al
jmp 0x55455d
push edi
lea eax, [ebp - 8]
push eax
push edi
push 2
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x55450e
push ebx
push esi
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
call esi
push dword [ebp - 8]
call esi
cmp ebx, edi
pop esi
sete al
pop ebx
pop edi
leave
ret 0xc

Function at 0x555032
Capabilities:
Get common file path

Disassembly:
push 0x25c
mov eax, 0x6b03b8
call fcn.0066d8f7
mov esi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x218]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x55506a
lea eax, [ebp - 0x218]
push eax
call fcn.00554562
mov edi, eax
lea ecx, [ebp - 0x240]
call fcn.005761e7
and dword [ebp - 4], 0
lea eax, [ebp - 0x240]
push eax
push esi
call fcn.0055459b
lea ecx, [ebp - 0x240]
call sym.osetup.dll_public:_struct_FlexUI::IDataSource____thiscall_FlexUI::FlexValue::GetDataSource_void_const
push eax
call fcn.00554562
mov esi, eax
shl edi, 0x10
push 0x411720
lea ecx, [ebp - 0x268]
add esi, edi
call fcn.0057706c
push esi
push eax
mov byte [ebp - 4], 1
call fcn.00554c9e
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 0
call fcn.00576231
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.00576231
call fcn.0066d97a
ret 4
Function at 0x56f0a4
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 1
xor edi, edi
push edi
push 0x4195e0
mov ebx, 0x4195cc
push ebx
push 1
call fcn.005a402e
cmp eax, 0x80070422
mov dword [ebp - 0x10], eax
jne 0x56f20c
call fcn.00577e6f
test al, al
je 0x56f0e9
push 0x419560
push 3
call fcn.00578284
pop ecx
pop ecx
call fcn.00577e6f
test al, al
je 0x56f100
push 0x419518
push 3
call fcn.00578284
pop ecx
pop ecx
push 1
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
call esi
cmp dword [ebp - 0xc], edi
mov dword [ebp - 4], eax
jne 0x56f141
call fcn.00577e6f
test al, al
je 0x56f218
push dword [ebp - 4]
push 0x419480
push 3
call fcn.00578284
add esp, 0xc
jmp 0x56f218
push 2
push 0x419478
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
call esi
cmp dword [ebp - 8], edi
mov dword [ebp - 4], eax
jne 0x56f182
call fcn.00577e6f
test al, al
je 0x56f203
push dword [ebp - 4]
push 0x419420
push 3
call fcn.00578284
add esp, 0xc
jmp 0x56f203
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x56f1b9
call fcn.00577e6f
test al, al
je 0x56f1fa
call esi
push eax
push 0x4193d0
push 3
call fcn.00578284
add esp, 0xc
jmp 0x56f1fa
call fcn.00577e6f
test al, al
je 0x56f1d0
push 0x419378
push 3
call fcn.00578284
pop ecx
pop ecx
call fcn.00577e6f
test al, al
je 0x56f1e7
push 0x419340
push 3
call fcn.00578284
pop ecx
pop ecx
push 1
push edi
push 0x4195e0
push ebx
push 1
call fcn.005a402e
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x10], edi
jl 0x56f218
mov byte [0x72d6b8], 1
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x577126
Capabilities:
Query environment variable

Disassembly:
push 0x234
mov eax, 0x6b5ce1
call fcn.0066d88e
mov edi, ecx
lea ecx, [ebp - 0x28]
call fcn.0056ab15
and dword [ebp - 4], 0
push 0x104
lea ecx, [ebp - 0x28]
call fcn.00520cd3
mov ecx, eax
call fcn.005765be
lea ecx, [ebp - 0x28]
call fcn.00520cd3
mov esi, dword [eax + 0xc]
lea ecx, [ebp - 0x28]
call fcn.0056fed3
mov eax, dword [eax + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
push dword [edi + 8]
call esi
lea ecx, [ebp - 0x28]
mov ebx, eax
call fcn.00520cd3
cmp ebx, dword [eax + 0xc]
jbe 0x5771b8
push ebx
lea ecx, [ebp - 0x28]
call fcn.00520cd3
mov ecx, eax
call fcn.005765be
lea ecx, [ebp - 0x28]
call fcn.00520cd3
mov ebx, dword [eax + 0xc]
lea ecx, [ebp - 0x28]
call fcn.0056fed3
mov eax, dword [eax + 8]
push ebx
push eax
push dword [edi + 8]
call esi
mov ebx, eax
test ebx, ebx
jne 0x5771f5
push 0x41c8d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.005287fb
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x6c2560
lea eax, [ebp - 0x134]
lea edi, [ebp - 0x134]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0066dd58
lea ecx, [ebp - 0x28]
call fcn.0056fed3
push eax
mov ecx, edi
call fcn.00576fc1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00520932
call fcn.0066d966
ret

Function at 0x579af4
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
mov esi, ecx
cmp dword [esi + 0x30], 0
jne 0x579b3a
push 0x41d260
lea eax, [ebp - 0x218]
push 5
push eax
call fcn.00520b6e
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x6c2560
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0066dd58
mov ecx, dword [ebp + 8]
call sym.osetup.dll_public:_struct_FlexUI::IDataSource____thiscall_FlexUI::FlexValue::GetDataSource_void_const
push eax
push dword [esi + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jle 0x579b5a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jge 0x579b86
cmp byte [ebp + 0xc], 0
je 0x579b86
mov ecx, dword [ebp + 8]
call sym.osetup.dll_public:_struct_FlexUI::IDataSource____thiscall_FlexUI::FlexValue::GetDataSource_void_const
push eax
push 0x41d1f8
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00520ba2
add esp, 0x10
jmp 0x579b1c
pop esi
leave
ret 8
Function at 0x579b8b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
mov esi, ecx
cmp dword [esi + 0x30], 0
push edi
jne 0x579bd2
push 0x41d358
push 0x3a
lea eax, [ebp - 0x218]
push eax
call fcn.00520b6e
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x6c2560
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0066dd58
mov ecx, dword [ebp + 8]
call fcn.00576060
cmp eax, 0x3fff
jbe 0x579bea
push 0x41d308
push 0x1d
jmp 0x579ba5
mov ecx, dword [ebp + 8]
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
call sym.osetup.dll_public:_struct_FlexUI::IDataSource____thiscall_FlexUI::FlexValue::GetDataSource_void_const
push eax
push dword [esi + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x579c14
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jge 0x579c53
lea ecx, [esi + 8]
call sym.osetup.dll_public:_struct_FlexUI::IDataSource____thiscall_FlexUI::FlexValue::GetDataSource_void_const
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [esi + 0x34]
push dword [eax*4 + 0x6e5594]
push dword [ebp + 0xc]
call sym.osetup.dll_public:_struct_FlexUI::IDataSource____thiscall_FlexUI::FlexValue::GetDataSource_void_const
push eax
push 0x41d2a8
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00520ba2
add esp, 0x1c
jmp 0x579bb4
pop edi
pop esi
leave
ret 8