joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa0de00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0xa238f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0xa0ded2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.00a0a7a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0xa0de61
mov edx, dword [eax]
jmp 0xa0de63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00a0c050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0xa0debf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xa0debf
cmp esi, edi
je 0xa0debf
mov ecx, esi
call fcn.00a05a00
push esi
call fcn.00a131c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00a0a990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0xa0def5
mov eax, dword [eax]
jmp 0xa0def7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.00a09640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0xa0df25
mov eax, dword [eax]
jmp 0xa0df27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0xa0df76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xa0df76
cmp esi, edi
je 0xa0df76
mov eax, dword [esi]
cmp eax, edi
je 0xa0df5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0xa0df6d
push eax
call fcn.00a131c8
add esp, 4
push esi
call fcn.00a131c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xa0df90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0xa0dffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xa0e035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00a0de00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0xa0dfc5
mov edi, 0xa288b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xa0e035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00a0de00
add edi, 4
add esp, 0xc
cmp edi, 0xa288c0
jb 0xa0e000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0xa0e070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00a14082
mov esi, eax
add esp, 8
test esi, esi
je 0xa0e107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0xa0e102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00a13946
add esp, 8
test eax, eax
je 0xa0e0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0xa0e0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00a13946
add esp, 8
test eax, eax
jne 0xa0e0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0xa0e102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0xa0ef10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xa239fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xa0f002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00a12dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xa0f002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00a0a6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00a1320b
push 0x10
call fcn.00a131d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xa0efc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.009ff1c0
jmp 0xa0efc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00a0eb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xa0eff0
mov ecx, edi
call fcn.009ff2c0
push edi
call fcn.00a131c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xa0f021
inc ebx
cmp ebx, 0x20
jb 0xa0ef3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xa10250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa24808
push 0xa14288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xa10329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xa10329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00a131d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xa10329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xa10329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xa1032c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00a10351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xa10d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xa10d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xa10d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xa10d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xa10d94
push eax
push esi
call fcn.00a1320b
add esp, 8
pop esi
ret 0x10

Function at 0xa10da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa10e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xa10e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xa29320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a12dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xa10dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xa10e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa10ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xa10eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xa29320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a12dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xa10eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xa10e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xa11000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xa11131
push esi
call fcn.00a14145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00a03080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xa11131
push 0
push ebp
call fcn.00a033a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00a03260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xa1108b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00a032f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xa11121
push 0xa29918
push edi
call fcn.00a123f0
push eax
push ebx
push esi
call fcn.00a10f60
push 0xa298f8
push edi
call fcn.00a123f0
push eax
push ebx
push esi
call fcn.00a10f60
push 0xa298d8
push edi
call fcn.00a123f0
push eax
push ebx
push esi
call fcn.00a10f60
push 0xa298c0
push edi
call fcn.00a123f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00a10f60
push 0xa298a0
push edi
call fcn.00a123f0
push eax
push ebx
push esi
call fcn.00a10f60
push 0xa29888
push edi
call fcn.00a123f0
push eax
push ebx
push esi
call fcn.00a10f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xa121b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00a12140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00a12140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00a12140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00a12140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xa12bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xa12c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xa2487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xa12c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xa12c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401226
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
cmp eax, ebx
je 0x4012e7
cmp word [eax], bx
je 0x4012e7
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp edi, ebx
jne 0x4012a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x401275
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x401280
mov esi, 0x80004005
push esi
push 0x212
push str.engine.cpp
call fcn.0043166e
push str.Failed_to_get_command_line.
push esi
call fcn.0042eef6
pop ecx
pop ecx
jmp 0x401344
xor esi, esi
cmp dword [ebp - 0x10], ebx
jle 0x4012e7
mov eax, dword [edi + esi*4]
movzx ecx, word [eax]
cmp ecx, 0x2d
je 0x4012b9
cmp ecx, 0x2f
jne 0x4012d5
push 0xffffffffffffffff
push str.burn.runonce
push 0xffffffffffffffff
add eax, 2
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x4012e1
push dword [edi + esi*4]
lea eax, [ebp - 0xc]
push eax
call fcn.00430adb
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x4012a9
push ebx
lea eax, [ebp - 4]
push eax
call fcn.00430da7
mov esi, eax
cmp esi, ebx
jge 0x401306
push str.Failed_to_get_current_process_path.
push esi
call fcn.0042eef6
pop ecx
pop ecx
jmp 0x401339
mov eax, dword [ebp - 0xc]
cmp eax, ebx
ja 0x401312
mov eax, 0x4395e8
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
push eax
push dword [ebp - 4]
call fcn.0042f3b9
mov esi, eax
cmp esi, ebx
jge 0x401339
push dword [ebp - 4]
push str.Failed_to_re_launch_bundle_process_after_RunOnce:__ls
push esi
call fcn.0042eef6
add esp, 0xc
cmp edi, ebx
je 0x401344
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], ebx
je 0x401355
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], ebx
cmp dword [ebp - 0xc], ebx
je 0x401362
push dword [ebp - 0xc]
call fcn.0042f657
cmp dword [ebp - 4], ebx
je 0x40136f
push dword [ebp - 4]
call fcn.0042f657
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x40161d
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
cmp dword [esi + 0x488], 2
push ebx
push edi
jne 0x401681
lea ebx, [esi + 0x498]
lea eax, [esi + 0x494]
push ebx
push eax
call fcn.00402957
mov edi, eax
test edi, edi
jns 0x401658
push str.Failed_to_create_implicit_elevated_connection_name_and_secret.
jmp 0x4017c3
push dword [esi + 0x4c8]
push dword [ebx]
push dword [esi + 0x494]
push dword [esi + 0x2c]
push dword [ebp + 0xc]
call fcn.00402a95
mov edi, eax
test edi, edi
jns 0x401681
push str.Failed_to_launch_unelevated_process.
jmp 0x4017c3
push 1
lea eax, [esi + 0x494]
push eax
call fcn.00403903
mov edi, eax
test edi, edi
jns 0x40169f
push str.Failed_to_connect_to_unelevated_process.
jmp 0x4017c3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 0x48c], eax
cmp eax, 0xffffffff
jne 0x4016e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4016c4
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x4016cf
mov edi, 0x80004005
push edi
push 0x1c5
push str.engine.cpp
call fcn.0043166e
push str.Failed_to_allocate_thread_local_storage_for_logging.
jmp 0x4017c3
push dword [esi + 0x4a4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x401733
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40170e
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x401719
mov edi, 0x80004005
push edi
push 0x1ca
push str.engine.cpp
call fcn.0043166e
push str.Failed_to_set_elevated_pipe_into_thread_local_storage_for_logging.
jmp 0x4017c3
push esi
push dword [ebp + 8]
call fcn.00411143
mov edi, eax
test edi, edi
jns 0x401749
push str.Failed_to_create_the_message_window.
jmp 0x4017c3
push 1
call fcn.00432363
push esi
push 0x4013c0
call fcn.0042e553
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0xf4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0xb8]
push eax
lea eax, [esi + 0xf8]
push eax
lea eax, [esi + 0x88]
push eax
lea eax, [esi + 0x2b0]
push eax
lea eax, [esi + 0x2b8]
push eax
lea eax, [esi + 0x2a0]
push eax
push dword [esi + 0x4a8]
push dword [esi + 0x4a4]
push dword [esi + 0x48c]
call fcn.00410d4b
push 0
push 0
mov edi, eax
call fcn.0042e553
test edi, edi
jns 0x4017cb
push str.Failed_to_pump_messages_from_parent_process.
push edi
call fcn.0042eef6
pop ecx
pop ecx
xor ebx, ebx
push ebx
push ebx
call fcn.0042e553
push esi
call fcn.00410e6e
cmp dword [ebp - 8], ebx
je 0x4017e4
call fcn.0040e5e2
cmp dword [ebp - 4], ebx
je 0x4017fb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x402fbe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 8], edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call fcn.00402f22
mov ebx, eax
cmp ebx, edi
jge 0x402ff8
push str.Failed_to_allocate_message_to_write.
push ebx
call fcn.0042eef6
pop ecx
pop ecx
jmp 0x403065
push esi
xor esi, esi
mov dword [ebp + 0x14], edi
cmp dword [ebp - 4], edi
jbe 0x403064
push edi
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp - 4]
sub eax, esi
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403028
add esi, dword [ebp + 0x14]
cmp esi, dword [ebp - 4]
jb 0x403003
jmp 0x403064
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x40303c
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x403047
mov ebx, 0x80004005
push ebx
push 0x2f5
push str.pipe.cpp
call fcn.0043166e
push str.Failed_to_write_message_type_to_pipe.
push ebx
call fcn.0042eef6
pop ecx
pop ecx
pop esi
cmp dword [ebp - 8], edi
je 0x403072
push dword [ebp - 8]
call fcn.00431a27
pop edi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x40307a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
mov ebx, eax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
stosd dword es:[edi], eax
mov dword [ebp - 8], esi
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, esi
push eax
lea eax, [ebp + esi - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4030df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4030c5
and dword [ebp - 4], 0
jmp 0x4030df
cmp eax, 0x6d
je 0x40312a
test eax, eax
jle 0x4030d8
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jl 0x40313a
add esi, dword [ebp - 8]
cmp esi, 8
jb 0x403094
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
xor esi, esi
mov dword [ebx + 4], eax
cmp eax, esi
je 0x4031b5
push esi
push eax
call fcn.0043186c
mov dword [ebx + 0xc], eax
cmp eax, esi
jne 0x403153
mov esi, 0x8007000e
push esi
push 0x328
push str.pipe.cpp
mov dword [ebp - 4], esi
call fcn.0043166e
push str.Failed_to_allocate_data_for_message.
push esi
jmp 0x4031a5
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], 1
jmp 0x4030e7
push dword [ebp - 4]
push 0x31d
push str.pipe.cpp
call fcn.0043166e
push str.Failed_to_read_message_from_pipe.
jmp 0x4031a2
push esi
lea ecx, [ebp - 8]
push ecx
push dword [ebx + 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4031ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x40317d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, esi
jl 0x40318b
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x32c
push str.pipe.cpp
call fcn.0043166e
push str.Failed_to_read_data_for_message.
push dword [ebp - 4]
call fcn.0042eef6
pop ecx
pop ecx
jmp 0x4031b5
mov dword [ebx + 8], 1
cmp dword [ebx + 8], 0
jne 0x4031c8
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x4031c8
push ebx
call fcn.00431a27
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405bad
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 8], ebx
je 0x405c06
push dword [ebp + 0xc]
push str.Resume
push dword [ebp + 8]
call fcn.0043298e
mov esi, eax
cmp esi, ebx
jge 0x405be1
push str.Failed_to_write_Resume_value.
jmp 0x405ce8
cmp dword [ebp + 0xc], 3
jne 0x405c06
push 1
push str.Installed
push dword [ebp + 8]
call fcn.0043298e
mov esi, eax
cmp esi, ebx
jge 0x405c0c
push str.Failed_to_write_Installed_value.
jmp 0x405ce8
cmp dword [ebp + 0xc], 1
je 0x405c86
cmp dword [ebp + 0x10], ebx
jne 0x405c86
lea eax, [ebp - 4]
push eax
push 0x20006
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push dword [edi + 0x4c]
call fcn.00432aef
mov esi, eax
cmp esi, 0x80070002
je 0x405c82
cmp esi, 0x80070003
je 0x405c82
push dword [edi + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
jne 0x405c4c
xor eax, eax
cmp eax, ebx
je 0x405cf0
jle 0x405c60
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x405c6b
mov esi, 0x80004005
push esi
push 0x486
push str.registration.cpp
call fcn.0043166e
push str.Failed_to_delete_run_key_value.
jmp 0x405ce8
xor esi, esi
jmp 0x405cf0
push str.burn.runonce
push dword [edi + 0x58]
lea eax, [ebp - 8]
push str._ls___ls
push eax
call fcn.00430aad
mov esi, eax
add esp, 0x10
cmp esi, ebx
jge 0x405cac
push str.Failed_to_format_resume_command_line_for_RunOnce.
jmp 0x405ce8
lea eax, [ebp - 4]
push eax
push 0x20006
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push dword [edi + 0x4c]
call fcn.00432a2f
mov esi, eax
cmp esi, ebx
jge 0x405ccf
push str.Failed_to_create_run_key.
jmp 0x405ce8
push dword [ebp - 8]
push dword [edi + 0xc]
push dword [ebp - 4]
call fcn.00432e66
mov esi, eax
cmp esi, ebx
jge 0x405cf0
push str.Failed_to_write_run_key_value.
push esi
call fcn.0042eef6
pop ecx
pop ecx
cmp dword [ebp - 8], ebx
je 0x405cfd
push dword [ebp - 8]
call fcn.0042f657
cmp dword [ebp - 4], ebx
je 0x405d0b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret 0xc