joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4175b0
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4d044c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4d4c60], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], eax
je 0x4177a4
cmp dword [0x4d4c64], 0
je 0x4177a4
push ebx
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x417791
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push 0x520b
push str.ID_d
push ebx
call esi
push 0
lea edi, [ebx + eax]
call fcn.0048baa1
push eax
push str.TS_lu
push edi
call esi
push dword [ebp - 0x14]
add edi, eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push str.compsts_lu__lu__lu
push edi
call esi
add esp, 0x30
inc eax
sub edi, ebx
add edi, eax
mov dword [ebp - 0x14], edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push 0x4c95fc
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4176bd
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
nop dword [eax + eax]
call edi
cmp eax, 0xe7
jne 0x41771b
push 0x2710
push 0x4c95fc
call ebx
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push 0x4c95fc
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x417680
mov edi, dword [ebp - 0x14]
lea eax, [edi + 0xc]
push eax
push 0
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x417720
mov dword [ebx], 0x4b374147
mov dword [ebx + 4], 2
mov dword [ebx + 8], edi
test edi, edi
je 0x4176fd
push edi
push dword [ebp - 0x20]
lea eax, [ebx + 0xc]
push eax
call fcn.0046c5d0
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x41772a
xor edi, edi
jmp 0x417750
cmp esi, 0xffffffff
jne 0x4176ba
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
jmp 0x41776e
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov edi, eax
neg edi
sbb edi, edi
neg edi
cmp esi, 0xffffffff
je 0x41775c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
push dword [ebp - 0x20]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret 4
Function at 0x4199b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
push 0xf003f
xor edi, edi
mov esi, edx
push edi
push 0x4c2dc0
xor ebx, ebx
mov dword [ebp - 0x10], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419b0d
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4199f3
sub edx, ecx
sar edx, 1
test esi, esi
je 0x419a21
mov ecx, esi
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419a10
sub ecx, esi
sar ecx, 1
jmp 0x419a23
xor ecx, ecx
lea eax, [ecx + edx]
lea esi, [eax*2 + 0x18]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0x4c2e24
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x419a52
cmp eax, 2
jne 0x419b0d
mov eax, dword [ebp - 4]
add eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, 0x20000
jae 0x419b13
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x419b13
lea eax, [ebp - 4]
mov esi, edi
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push 0
push 0x4c2e24
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x419aa6
mov esi, dword [ebp - 4]
shr esi, 1
dec esi
lea esi, [edi + esi*2]
push dword [ebp - 0xc]
push 0x4c2e5c
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea esi, [esi + eax*2]
xor eax, eax
mov word [esi], ax
add esi, 2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x419add
push eax
push 0x4c2e6c
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea esi, [esi + eax*2]
xor eax, eax
mov word [esi], ax
add esi, 2
mov word [esi], ax
sub esi, edi
add esi, 2
push esi
push edi
push 7
push eax
push 0x4c2e24
push dword [ebp - 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove ebx, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, dword [ebp - 8]
test eax, eax
je 0x419b21
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x419b31
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a010
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4d044c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov esi, edx
test edi, edi
je 0x41a06f
push 0x14
lea eax, [edi + 2]
push 0x4c2e7c
push eax
call fcn.00497892
add esp, 0xc
test eax, eax
jne 0x41a06f
lea eax, [edi + 0x2a]
push eax
movzx eax, word [edi]
push eax
lea eax, [ebp - 0x20c]
push 0x4c2ea8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edi, [ebp - 0x20c]
mov ebx, 1
test esi, esi
je 0x41a0c7
push 0x14
lea eax, [esi + 2]
push 0x4c2e7c
push eax
call fcn.00497892
add esp, 0xc
test eax, eax
jne 0x41a0c7
lea eax, [esi + 0x2a]
push eax
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x414]
push 0x4c2ea8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea esi, [ebp - 0x414]
mov edx, esi
mov ecx, edi
call fcn.00419b40
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x41a0e5
mov edx, esi
mov ecx, edi
call fcn.00419b40
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004606ac
mov esp, ebp
pop ebp
ret

Function at 0x41a110
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4d044c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov esi, edx
test edi, edi
je 0x41a16f
push 0x14
lea eax, [edi + 1]
push str.:WINDOWSSysnative_
push eax
call fcn.0048e4b1
add esp, 0xc
test eax, eax
jne 0x41a16f
lea eax, [edi + 0x15]
push eax
movsx eax, byte [edi]
push eax
lea eax, [ebp - 0x108]
push str._c:WINDOWSSystem32_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edi, [ebp - 0x108]
mov ebx, 1
test esi, esi
je 0x41a1c7
push 0x14
lea eax, [esi + 1]
push str.:WINDOWSSysnative_
push eax
call fcn.0048e4b1
add esp, 0xc
test eax, eax
jne 0x41a1c7
lea eax, [esi + 0x15]
push eax
movsx eax, byte [esi]
push eax
lea eax, [ebp - 0x20c]
push str._c:WINDOWSSystem32_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea esi, [ebp - 0x20c]
mov edx, esi
mov ecx, edi
call fcn.00419d70
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x41a1e5
mov edx, esi
mov ecx, edi
call fcn.00419d70
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004606ac
mov esp, ebp
pop ebp
ret
Function at 0x41e130
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d044c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov esi, ecx
test edx, edx
je 0x41e280
push 0x104
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.004644e0
push 0x104
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.004644e0
push 0x44
lea eax, [ebp - 0x264]
push edi
push eax
call fcn.004644e0
add esp, 0x24
mov dword [ebp - 0x220], edi
lea eax, [ebp - 0x118]
xorps xmm0, xmm0
movups xmmword [ebp - 0x14], xmm0
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x118]
push 0x5c
push eax
call fcn.00463740
add esp, 8
test eax, eax
jne 0x41e1ce
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret
push str._RegElamCert
mov byte [eax], 0
lea eax, [ebp - 0x118]
push str.K7TSHlpr64.exe
push eax
lea eax, [ebp - 0x21c]
push str.__s_s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov dword [ebp - 0x264], 0x44
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x41e1bc
push 0x1388
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41e250
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41e260
push eax
call esi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41e26a
push eax
call esi
mov eax, dword [ebp - 0x220]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret
push ebx
push str.InstallELAMCertificateInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x41e2af
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 3
push 0
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41e302
push esi
call ebx
test eax, eax
jne 0x41e2f6
push 0xa
lea eax, [ebp - 0x10]
mov word [ebp - 8], di
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00498010
add esp, 0xc
jmp 0x41e2fb
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004606ac
mov esp, ebp
pop ebp
ret
Function at 0x41e3e0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4d044c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x64
mov dword [ebp - 0x70], eax
mov esi, ecx
lea eax, [ebp - 0x68]
mov dword [ebp - 0x6c], 0
push 0
push eax
call fcn.004644e0
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x41e436
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret
push 2
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x41e47b
push dword [ebp - 0x70]
push 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
jne 0x41e46d
push 0xa
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00498010
add esp, 0xc
jmp 0x41e474
mov dword [ebp - 0x6c], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x6c]
xor ecx, ebp
pop esi
pop ebx
call fcn.004606ac
mov esp, ebp
pop ebp
ret
Function at 0x41f730
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4d044c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
mov esi, ecx
mov dword [ebp - 0x24], 0
push 0
mov dword [ebp - 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x41f8bb
push 1
lea edi, [esi + 0x30]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x41f78a
push eax
mov dword [ebp - 0x24], 1
call ebx
push dword [ebp - 0x28]
call ebx
cmp dword [ebp - 0x24], 0
je 0x41f8bb
cmp dword [esi + 0x160], 0
je 0x41f7a7
call fcn.0041dcf0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
jne 0x41f7e0
push eax
push edi
push str.Couldnt_open_service_manager
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret
push 0x10020
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x41f81a
push esi
call ebx
push 0
push edi
push str.Couldnt_open_service
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x2c]
mov dword [esi + 0x13c], 1
mov ecx, dword [0x4d3f88]
test ecx, ecx
je 0x41f85a
inc dword [0x4d3fa0]
push 0x4d3f8c
push ecx
mov dword [0x4d3fa4], 0x7d0
mov dword [0x4d3f90], 4
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, 1
jne 0x41f881
push eax
mov ecx, 0x4d3e58
mov dword [esi + 0x13c], 0
call fcn.0041ffe0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push dword [ebp - 0x24]
mov esi, eax
call ebx
push dword [ebp - 0x28]
call ebx
test esi, esi
jne 0x41f8bb
push esi
push edi
push str.Service_could_not_be_deleted
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004606ac
mov esp, ebp
pop ebp
ret
Function at 0x41f8e0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
mov eax, dword [0x4d044c]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [esp + 0x14]
push 0xffffffffffffffff
push eax
call fcn.004019e0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0047e077
add esp, 0x1c
lea eax, [esp + 8]
cmp byte [esi + 0x168], 0
mov dword [esp + 4], eax
je 0x41f97b
lea eax, [esi + 0x30]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x41f988
push 0
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004606ac
mov esp, ebp
pop ebp
ret
lea eax, [esp + 8]
push eax
call fcn.00490adb
add esp, 4
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
call fcn.004606ac
mov esp, ebp
pop ebp
ret

Function at 0x41fae0
Capabilities:
Enumerate processes on remote desktop session host
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4d044c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
movzx eax, byte [eax + 0x41fea4]
jmp dword [eax*4 + 0x41fe8c]
Function at 0x421930
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4d044c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, edx
mov edx, ecx
mov dword [ebp - 0x408], 0
push edi
mov dword [ebp - 0x418], edx
mov ecx, 0xf003f
mov dword [ebp - 0x410], ecx
nop dword [eax + eax]
lea eax, [ebp - 0x408]
push eax
push ecx
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x421a4c
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x421993
xor edi, edi
mov dword [ebp - 0x40c], 0x400
push edi
push edi
lea eax, [ebp - 0x414]
sub esi, ecx
push eax
push edi
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
push edi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x421a34
push esi
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.0048e4b1
add esp, 0xc
test eax, eax
jne 0x4219fd
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4219fe
inc edi
push 0
push 0
lea eax, [ebp - 0x414]
mov dword [ebp - 0x40c], 0x400
push eax
push 0
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
push edi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x4219d1
push dword [ebp - 0x408]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
xor eax, eax
mov dword [ebp - 0x408], eax
jmp 0x421a52
mov eax, dword [ebp - 0x408]
mov ecx, dword [ebp - 0x410]
test ecx, 0x100
jne 0x421a71
mov edx, dword [ebp - 0x418]
or ecx, 0x100
jmp 0x421965
test eax, eax
je 0x421a78
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004606ac
mov esp, ebp
pop ebp
ret
Function at 0x427380
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
mov eax, dword [0x4d044c]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.004272d0
mov esi, eax
test esi, esi
jne 0x427477
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x427449
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00427380
mov esi, eax
test esi, esi
jne 0x427477
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x427410
mov eax, dword [esp + 0xc]
test eax, eax
je 0x427460
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.004275f0
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x427486
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004606ac
mov esp, ebp
pop ebp
ret 4
Function at 0x429420
Capabilities:
Check os version
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4d044c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 0x1c
lea eax, [ebp - 0x20]
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x429465
cmp eax, 0xea
jne 0x4295bf
cmp dword [ebp - 0x24], 0x1c
jne 0x4295bf
cmp dword [ebp - 0x20], 0x4b375453
jne 0x4295bf
cmp dword [ebp - 0x1c], 0x1010
jne 0x4295bf
cmp dword [ebp - 0x18], 0x1c
jne 0x4295bf
cmp dword [ebp - 0x10], 0x1004c
je 0x4294b5
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x4294b5
mov ecx, edi
call fcn.004345d0
test eax, eax
je 0x4295bf
mov eax, dword [ebp - 0xc]
cmp eax, 0x100000
ja 0x4295bf
mov ecx, dword [ebp - 8]
cmp ecx, 0x100000
ja 0x4295bf
add eax, 0x24
add eax, ecx
cmp eax, 0x100000
ja 0x4295bf
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4295bf
mov ecx, dword [ebp - 0xc]
push ebx
lea ebx, [ecx + eax]
lea edx, [ebx + 0x24]
test ecx, ecx
je 0x429546
push 0
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x429538
cmp eax, 0xea
jne 0x4295be
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0xc]
jne 0x4295be
mov eax, dword [ebp - 0x28]
lea edx, [ebx + 0x24]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
push ecx
push edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push ecx
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.00429220
mov dword [ebx], 0x4b375453
add esp, 0xc
mov dword [ebx + 4], 0x1010
mov edx, eax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 8], 0x24
mov dword [ebx + 0xc], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x10], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x14], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebx + 0x1c], eax
lea eax, [ebp - 0x30]
push 0
push eax
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x20], edx
mov eax, dword [ebp - 0x2c]
add eax, 0x24
mov dword [ebp - 0x30], 0
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004606ac
mov esp, ebp
pop ebp
ret