joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435290
Capabilities:
Modify service

Disassembly:
push ecx
push esi
mov ecx, eax
and ecx, 0x10000000
xor esi, esi
xor edx, edx
cmp edx, ecx
mov edx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
push esi
sbb ecx, ecx
push esi
neg ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [edi + 4]
push esi
push esi
push edx
push 0xffffffffffffffff
and eax, 0xefffffff
push eax
mov eax, dword [esp + 0x34]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x435330
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x1c]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push ebp
lea eax, [esp + 0x14]
push eax
push 1
push ecx
mov dword [esp + 0x20], edx
call ebx
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x435305
call ebp
mov esi, eax
test esi, esi
jne 0x43533d
call fcn.00435990
cmp eax, 0x6000100
jb 0x43533b
cmp eax, 0xffffffff
ja 0x43533b
mov eax, dword [edi + 4]
lea edx, [esp + 0xc]
push edx
push 3
push eax
call ebx
test eax, eax
jne 0x43533b
call ebp
pop ebp
pop ebx
pop esi
pop ecx
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ecx
ret 0x14
mov eax, esi
pop ebp
pop ebx
pop esi
pop ecx
ret 0x14

Function at 0x435370
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
mov eax, dword [ebx + 4]
sub esp, 0x1c
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov edx, dword [ebx + 4]
lea ecx, [esp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x435447
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [esp + 0x10], 4
mov ebp, dword [esp + 0x20]
mov esi, eax
je 0x435423
nop
mov eax, 0xcccccccd
mul dword [esp + 0x24]
shr edx, 3
cmp edx, 0x3e8
jae 0x4353cb
mov edx, 0x3e8
jmp 0x4353d8
cmp edx, 0x2710
jbe 0x4353d8
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebx + 4]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x43541c
cmp dword [esp + 0x20], ebp
jbe 0x435402
call edi
mov ebp, dword [esp + 0x20]
mov esi, eax
jmp 0x43540c
call edi
sub eax, esi
cmp eax, dword [esp + 0x24]
ja 0x43541c
cmp dword [esp + 0x10], 4
jne 0x4353b0
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
cmp dword [esp + 0x10], 4
jne 0x43542c
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
pop ebp
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x1c
ret
Function at 0x435460
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov ebx, eax
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x18]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x435484
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebx + 4]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x435538
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [esp + 0x1c], 1
mov ebp, dword [esp + 0x2c]
mov esi, eax
je 0x43551e
mov eax, 0xcccccccd
mul dword [esp + 0x30]
shr edx, 3
cmp edx, 0x3e8
jae 0x4354cb
mov edx, 0x3e8
jmp 0x4354d8
cmp edx, 0x2710
jbe 0x4354d8
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x435517
cmp dword [esp + 0x2c], ebp
jbe 0x435502
call edi
mov ebp, dword [esp + 0x2c]
mov esi, eax
jmp 0x43550c
call edi
sub eax, esi
cmp eax, dword [esp + 0x30]
ja 0x435517
cmp dword [esp + 0x1c], 1
jne 0x4354b0
xor eax, eax
jmp 0x43553e
cmp dword [esp + 0x1c], 1
jne 0x435522
xor eax, eax
jmp 0x43553e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
jmp 0x43553e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x435652
cmp eax, 0x424
je 0x435652
push 0x465000
push 0x46fa40
mov eax, 1
mov dword [esp + 0x1c], 0
call fcn.00431730
mov ecx, dword [ebx + 4]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
add esp, 8
lea eax, [esp + 0x14]
push eax
push 0
push 0
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call fcn.0043ce31
mov esi, eax
add esp, 4
test esi, esi
je 0x43564d
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 4]
lea eax, [esp + 0x14]
push eax
push ecx
push esi
push edx
call edi
test eax, eax
je 0x43561a
mov eax, dword [esi + 0xc]
push eax
call fcn.00436090
add esp, 4
cmp eax, 1
jne 0x4355f1
push str.Force_closing_the_service
push 0x46fa40
call fcn.00431730
mov ebx, dword [esi + 0xc]
add esp, 8
call fcn.004360d0
push esi
mov edi, eax
call fcn.0043ed74
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push str.Service_is_not_running
push 0x46fa40
xor eax, eax
call fcn.00431730
add esp, 8
push esi
xor edi, edi
call fcn.0043ed74
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.Error_retrieving_service_configuration__0x_X_
push 0x46fa40
mov eax, 1
call fcn.00431730
add esp, 0xc
push esi
call fcn.0043ed74
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, 0xe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x435c20
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x28
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push str.GetNativeSystemInfo
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x435c4d
lea ecx, [esp + 0xc]
push ecx
call eax
jmp 0x435c58
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [esp + 0xc], 6
jne 0x435c6b
pop edi
mov eax, str.ia64
pop esi
add esp, 0x28
ret
push str.IsWow64Process
push str.kernel32
call esi
push eax
call edi
mov esi, eax
test esi, esi
je 0x435c9f
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
mov eax, 0x46555c
jne 0x435ca4
mov eax, 0x45d4c0
pop edi
pop esi
add esp, 0x28
ret

Function at 0x435d40
Capabilities:
Check os version

Disassembly:
sub esp, 0x124
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
xor ebx, ebx
push str.Kernel32.dll
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x435dfa
push 0x11c
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.00448fa0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push str.GetProductInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x435df3
movzx ecx, word [esp + 0x122]
lea edx, [esp + 8]
push edx
movzx edx, word [esp + 0x124]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push ecx
push edx
call eax
mov eax, dword [esp + 8]
cmp eax, 0x10
je 0x435df1
cmp eax, 0x1b
je 0x435df1
cmp eax, 5
je 0x435df1
cmp eax, 0x1a
je 0x435df1
cmp eax, 0x31
je 0x435df1
cmp eax, 0x2f
je 0x435df1
cmp eax, 0x1c
jne 0x435df3
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x128]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0043d02a
add esp, 0x124
ret

Function at 0x435e70
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x435ea2
lea ecx, [esp]
push ecx
call eax
xor eax, eax
cmp word [esp], 6
sete al
add esp, 0x24
ret
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
cmp word [esp], 6
sete al
add esp, 0x24
ret

Function at 0x435fd0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x10
xor eax, eax
lea ecx, [esp]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
push ecx
push 0x435ee0
mov dword [esp + 8], 0x12
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_EnumWindows]
xor eax, eax
add esp, 0x10
ret
Function at 0x436010
Capabilities:
Enumerate processes

Disassembly:
push ebp
push esi
xor ebp, ebp
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x43603b
push edi
push esi
mov dword [edi], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x436043
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 2
pop ebp
ret
push ebx
lea ebx, [edi + 0x24]
mov eax, dword [esp + 0x10]
push ebx
push eax
call fcn.0043e79a
add esp, 8
test eax, eax
je 0x436071
push edi
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x436047
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, ebp
pop ebp
ret
push esi
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, ebp
pop ebp
ret

Function at 0x4360d0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x23c
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0x238], eax
push esi
push edi
push ebx
lea edi, [esp + 0x10]
call fcn.00436010
add esp, 4
cmp eax, 2
jne 0x43612d
push ebx
push str.TerminateProcess_failed_to_FindProcess___s_.
push 0x46fa40
mov eax, 2
call fcn.00431730
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.0043d02a
add esp, 0x23c
ret
call fcn.00437730
mov eax, dword [esp + 0x14]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x436152
push ebx
push str.TerminateProcess_failed_to_OpenProcess___s_
jmp 0x4360fe
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x436110
mov ecx, dword [esp + 0x240]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0043d02a
add esp, 0x23c
ret
Function at 0x436190
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x86c
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0x868], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
push esi
lea ecx, [esp + 0x6c]
push 0x400
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], 0
call fcn.0043f42c
add esp, 0xc
push 0x45ca04
lea edx, [esp + 0x6c]
push 0x400
push edx
call fcn.0043f498
add esp, 0xc
push edi
lea eax, [esp + 0x6c]
push 0x400
push eax
call fcn.0043f498
add esp, 0xc
push 0x44
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.00448fa0
xor eax, eax
add esp, 0xc
cmp byte [ebp + 8], al
mov dword [esp + 0x20], 0x44
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
je 0x436233
or dword [esp + 0x4c], 1
mov word [esp + 0x50], ax
cmp byte [ebp + 0x14], al
lea edx, [esp + 0x20]
je 0x43624d
push edx
push ebx
push edi
push esi
call fcn.004373b0
add esp, 0x10
movzx eax, al
jmp 0x436268
lea ecx, [esp + 0xc]
push ecx
push edx
push ebx
push eax
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x88]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x436281
cmp byte [ebp + 0xc], 0
je 0x43628b
mov edx, dword [esp + 0xc]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x43628b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x86c]
mov eax, dword [esp + 8]
pop esi
xor ecx, esp
call fcn.0043d02a
mov esp, ebp
pop ebp
ret

Function at 0x4362d0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x1c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
lea eax, [esp + 0xc]
push eax
push 0x28
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x43635c
lea ecx, [esp + 0x14]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x80040002
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x436352
mov ecx, dword [esp + 0xc]
push ecx
call edi
push esi
call edi
xor eax, eax
pop edi
pop esi
add esp, 0x1c
ret
mov edx, dword [esp + 0xc]
push edx
call edi
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x436e10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x46e3d8]
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 0x436eb0
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 0x436eb0
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 0x436eb0
push str.Wow64EnableWow64FsRedirection
push esi
call edi
test eax, eax
je 0x436ea9
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.0043d02a
add esp, 0x210
ret
Function at 0x436ed0
Capabilities:
Check if file exists
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4567d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov eax, dword [0x46e3d8]
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 reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, eax
cmp ebp, ebx
jne 0x43705e
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
mov eax, edi
call fcn.00431c50
test eax, eax
jne 0x436f7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x436f7c
push edi
lea eax, [esp + 0x14]
push eax
mov edx, 0x45c9e8
call fcn.004319e0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
mov eax, edi
call fcn.00431c50
test eax, eax
je 0x437043
cmp byte [esp + 0x4c], bl
je 0x436fcc
push 1
push 0x465bdc
lea ecx, [esp + 0x20]
call fcn.00403ff0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436fb0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00403ff0
jmp 0x436feb
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436fd1
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x20]
call fcn.00404170
cmp dword [esp + 0x30], 8
mov edx, dword [esp + 0x1c]
jae 0x436ffa
lea edx, [esp + 0x1c]
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x437000
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 0x437043
push ebx
push 0x1388
push 2
push 0x465be0
push ebx
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
jmp 0x43704b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x43705a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x30], 8
jb 0x437072
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043e965
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 0x437092
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.0043d02a
add esp, 0x38
ret
Function at 0x437730
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
lea eax, [esp + 4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x43776f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_error:_0x_08X
push 0x46fa40
mov eax, 2
call fcn.00431730
add esp, 0xc
xor eax, eax
add esp, 0x24
ret
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4377a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LookupPrivilegeValue_error:_0x_08X
push 0x46fa40
mov eax, 2
call fcn.00431730
add esp, 0xc
xor eax, eax
add esp, 0x24
ret
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0x10
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
push 0
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x437809
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AdjustTokenPrivileges_error:_0x_08X
push 0x46fa40
mov eax, 2
call fcn.00431730
add esp, 0xc
xor eax, eax
add esp, 0x24
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x43783e
push str.The_token_does_not_have_the_specified_privilege.
push 0x46fa40
mov eax, 2
call fcn.00431730
add esp, 8
xor eax, eax
add esp, 0x24
ret
mov eax, 1
add esp, 0x24
ret
Function at 0x4381c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x457660
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d8]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x94]
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x40], eax
xor esi, esi
mov eax, 7
mov ebx, ecx
mov edi, edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], esi
mov word [esp + 0x64], si
mov dword [esp + 0x88], esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], esi
mov word [esp + 0x48], si
mov byte [esp + 0x88], 1
call fcn.00402220
test eax, eax
je 0x438253
mov edi, dword [esp + 0x98]
lea ebx, [esi + 8]
jmp 0x43834f
mov edx, dword [esp + 0x90]
lea ecx, [esp + 0x60]
push ecx
push edx
mov ecx, 0x470cf8
call fcn.00432320
test ebx, 0xffff0000
jne 0x438284
lea eax, [esp + 0x44]
push eax
push ebx
mov ecx, 0x470cf8
call fcn.00432320
jmp 0x438294
push 0x470cf8
lea edx, [esp + 0x48]
mov ecx, ebx
call fcn.00432d10
cmp edi, esi
je 0x4382a5
lea ecx, [esp + 0x44]
push ecx
call fcn.0043b790
add esp, 4
xor eax, eax
mov ebx, 8
cmp dword [esp + 0x78], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], 0x28
jb 0x4382ec
mov edx, dword [esp + 0x64]
mov dword [esp + 0x28], edx
jmp 0x4382f4
lea eax, [esp + 0x64]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x5c], ebx
jb 0x438304
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x24], ecx
jmp 0x43830c
lea edx, [esp + 0x48]
mov dword [esp + 0x24], edx
movzx eax, word [0x470d08]
mov dword [esp + 0x3c], eax
or ebp, 0x80
and eax, 0x3ff
cmp ax, 1
mov dword [esp + 0x2c], ebp
je 0x438332
cmp ax, 0xd
jne 0x43833a
or dword [esp + 0x2c], 0x180000
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_MessageBoxIndirectW]
mov edi, eax
cmp dword [esp + 0x5c], ebx
jb 0x438362
mov edx, dword [esp + 0x48]
push edx
call fcn.0043e965
add esp, 4
cmp dword [esp + 0x78], ebx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], esi
mov word [esp + 0x48], si
jb 0x438386
mov eax, dword [esp + 0x64]
push eax
call fcn.0043e965
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0043d02a
add esp, 0x78
ret
Function at 0x439ff0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
call fcn.00402220
test eax, eax
jne 0x43a048
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x43a0b0
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 [0x470dc8], 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 0x43a050
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
call fcn.00402220
test eax, eax
jne 0x43a0a8
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x43a100
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 [0x470dc8], 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