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

Disassembly:
mov dword [rsp + 0x20], r9d
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov byte [rsp + 0x20], 0
mov rax, qword [rsp + 0xe0]
cmp qword [rax], 0
jne 0x1401af58c
mov rcx, qword [rsp + 0xe0]
call fcn.1401b04b0
movzx eax, al
test eax, eax
jne 0x1401af58c
xor al, al
jmp 0x1401af761
mov rcx, qword [rsp + 0xe8]
call fcn.14000c690
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov r8d, reloc.msi.dll_MsiDatabaseGenerateTransformW
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1401af62a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xe0]
mov dword [rcx + 0x90], eax
mov rax, qword [rsp + 0xe0]
mov edx, dword [rax + 0x90]
lea rcx, [rsp + 0x60]
call fcn.1400f1950
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xe0]
add rax, 0x30
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.14001e7a0
lea rcx, [rsp + 0x60]
call fcn.14000a800
jmp 0x1401af75c
mov rax, qword [rsp + 0xe0]
add rax, 0x90
mov r8, rax
movzx edx, byte [rsp + 0xf0]
mov rcx, qword [rsp + 0x28]
call fcn.1401b17f0
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0xe0]
cmp dword [rax + 0x90], 0
je 0x1401af6ad
mov rax, qword [rsp + 0xe0]
mov edx, dword [rax + 0x90]
lea rcx, [rsp + 0x80]
call fcn.1400f1950
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xe0]
add rax, 0x30
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call fcn.14001e7a0
lea rcx, [rsp + 0x80]
call fcn.14000a800
jmp 0x1401af751
cmp dword [rsp + 0xf8], 0
jle 0x1401af751
lea rax, [rsp + 0x24]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 7
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1401af751
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xe0]
mov dword [rcx + 0x90], eax
mov rax, qword [rsp + 0xe0]
mov edx, dword [rax + 0x90]
lea rcx, [rsp + 0xa0]
call fcn.1400f1950
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xe0]
add rax, 0x30
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.14001e7a0
lea rcx, [rsp + 0xa0]
call fcn.14000a800
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140222a60
add rsp, 0xd0
pop rdi
ret
Function at 0x1401b14c0
Capabilities:
Query service configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x20]
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
mov eax, dword [rsp + 0x20]
mov edx, eax
mov ecx, 1
call fcn.14022d6f8
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x1401b1549
cmp qword [rsp + 0x48], 0
je 0x1401b1547
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x48]
mov dword [rcx], eax
jmp 0x1401b1555
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 4]
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x28]
call fcn.140229904
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret

Function at 0x1401b1570
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1401b15c0
cmp qword [rsp + 0x68], 0
je 0x1401b15be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x68]
mov dword [rcx], eax
jmp 0x1401b15c8
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x58
ret

Function at 0x1401b15e0
Capabilities:
Query service configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x20]
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
mov eax, dword [rsp + 0x20]
mov edx, eax
mov ecx, 1
call fcn.14022d6f8
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x1401b1669
cmp qword [rsp + 0x48], 0
je 0x1401b1667
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x48]
mov dword [rcx], eax
jmp 0x1401b1674
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x28]
call fcn.140229904
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret
Function at 0x1401b1690
Capabilities:
Pause service

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x20], 0
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1401b1570
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 7
jne 0x1401b16d0
mov byte [rsp + 0x20], 1
jmp 0x1401b1721
cmp dword [rsp + 0x24], 4
je 0x1401b16ec
cmp qword [rsp + 0x68], 0
je 0x1401b16ea
mov rax, qword [rsp + 0x68]
mov dword [rax], 0x426
jmp 0x1401b1721
lea r8, [rsp + 0x28]
mov edx, 2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1401b171c
cmp qword [rsp + 0x68], 0
je 0x1401b171a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x68]
mov dword [rcx], eax
jmp 0x1401b1721
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x58
ret

Function at 0x1401b1740
Capabilities:
Continue service

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x20], 0
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1401b1570
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 4
jne 0x1401b1780
mov byte [rsp + 0x20], 1
jmp 0x1401b17d1
cmp dword [rsp + 0x24], 7
je 0x1401b179c
cmp qword [rsp + 0x68], 0
je 0x1401b179a
mov rax, qword [rsp + 0x68]
mov dword [rax], 0x10dd
jmp 0x1401b17d1
lea r8, [rsp + 0x28]
mov edx, 3
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1401b17cc
cmp qword [rsp + 0x68], 0
je 0x1401b17ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x68]
mov dword [rcx], eax
jmp 0x1401b17d1
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x58
ret

Function at 0x1401b17f0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x18], r8
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov byte [rsp + 0x20], 0
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.1401b1570
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 4
je 0x1401b1825
cmp dword [rsp + 0x24], 2
jne 0x1401b182c
mov byte [rsp + 0x20], 1
jmp 0x1401b1873
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x1401b1857
cmp qword [rsp + 0x50], 0
je 0x1401b1855
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x50]
mov dword [rcx], eax
jmp 0x1401b1873
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x48]
test eax, eax
je 0x1401b1873
mov rcx, qword [rsp + 0x40]
call fcn.1401b1ad0
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x1401b1880
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x20], 0
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.1401b1570
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 1
jne 0x1401b18cc
mov byte [rsp + 0x20], 1
jmp 0x1401b19a9
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x2c], 0
je 0x1401b195d
movzx eax, byte [rsp + 0x78]
test eax, eax
je 0x1401b195d
cmp dword [rsp + 0x28], 1
je 0x1401b195d
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.1401b1570
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x12c
jne 0x1401b195b
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x28], 1
je 0x1401b195b
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [rsp + 0x2c], eax
jmp 0x1401b18ed
cmp dword [rsp + 0x2c], 0
jne 0x1401b19a4
mov rax, qword [rsp + 0x80]
movzx eax, byte [rax]
test eax, eax
jne 0x1401b1990
cmp qword [rsp + 0x88], 0
je 0x1401b1990
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x88]
mov dword [rcx], eax
jmp 0x1401b19a2
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
call fcn.1401b19c0
jmp 0x1401b19a9
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x68
ret

Function at 0x1401b19c0
Capabilities:
Query service status
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, SQLSetConnectAttr
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1401b1a8d
mov r8d, dword [rsp + 0x64]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1401b1a70
mov edx, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1401b1a48
mov byte [rsp + 0x30], 1
jmp 0x1401b1a63
cmp qword [rsp + 0x98], 0
je 0x1401b1a63
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x98]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1401b1a8b
cmp qword [rsp + 0x98], 0
je 0x1401b1a8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x98]
mov dword [rcx], eax
jmp 0x1401b1aa8
cmp qword [rsp + 0x98], 0
je 0x1401b1aa8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x98]
mov dword [rcx], eax
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x88
ret
Function at 0x1401b1ad0
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, reloc.msi.dll_MsiDatabaseOpenViewW
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1401b1b15
xor al, al
jmp 0x1401b1bcd
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x34], 2
jne 0x1401b1bbe
xor edx, edx
mov eax, dword [rsp + 0x48]
mov ecx, 0xa
div ecx
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x3e8
jae 0x1401b1b57
mov dword [rsp + 0x20], 0x3e8
jmp 0x1401b1b69
cmp dword [rsp + 0x20], 0x2710
jbe 0x1401b1b69
mov dword [rsp + 0x20], 0x2710
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1401b1b89
jmp 0x1401b1bbe
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x44], eax
jbe 0x1401b1ba7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x24], eax
jmp 0x1401b1bb9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x28]
cmp eax, dword [rsp + 0x48]
jbe 0x1401b1bb9
jmp 0x1401b1bbe
jmp 0x1401b1b27
cmp dword [rsp + 0x34], 4
jne 0x1401b1bcb
mov al, 1
jmp 0x1401b1bcd
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x60
pop rdi
ret
Function at 0x1401fd650
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x260
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
cmp qword [rsp + 0x278], 0xffffffff80000002
jne 0x1401fd6c3
mov rcx, qword [rsp + 0x280]
call fcn.14000c690
mov r8, rax
lea rdx, str.RegistryMACHINE_s
lea rcx, [rsp + 0x40]
call fcn.1401fd930
jmp 0x1401fd6fb
cmp qword [rsp + 0x278], 0xffffffff80000003
jne 0x1401fd6f4
mov rcx, qword [rsp + 0x280]
call fcn.14000c690
mov r8, rax
lea rdx, str.RegistryUSER_s
lea rcx, [rsp + 0x40]
call fcn.1401fd930
jmp 0x1401fd6fb
mov eax, MsiOpenProductA
jmp 0x1401fd73f
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov eax, eax
shl rax, 1
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 6
xor r8d, r8d
lea rdx, str.SymbolicLinkValue
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x260
pop rdi
ret

Function at 0x1401fd8f0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
lea rdx, [0x140335370]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 2
jne 0x1401fd922
xor eax, eax
jmp 0x1401fd926
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140223404
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14022344e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14022344e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14022344e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14022344e
cmp dword [rcx + 0x84], 0xe
jbe 0x14022344e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140223450
xor al, al
add rsp, 0x28
ret

Function at 0x14023a008
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140239e9b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140239e9b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140239e9b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140239e9b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140239e9b
cmp dword [rcx + 0x84], 0xe
jbe 0x140239e9b
cmp dword [rcx + 0xf8], 0
je 0x140239e9b
mov ecx, ebx
call fcn.140239f3c
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140239d2c
cmp dword [rbp + 0x20], 0
je 0x140239ee8
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140239ef0
int3
xor r8d, r8d
xor edx, edx
jmp 0x140239e34
Function at 0x140248ee4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140248c0a
call fcn.14022b000
mov dword [rax], reloc.msi.dll_MsiDatabaseGetPrimaryKeysW
call fcn.14022986c
jmp 0x140248d55
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140248d55
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140248d55
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140248c39
lock or dword [rcx + 0x14], 0x10
jmp 0x140248d55
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140248c4d
call fcn.140254654
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x140248c5d
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x140248c60
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.140246888
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.14024b0d8
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140248d43
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140248cf1
mov rcx, rbx
call fcn.140246888
cmp eax, 0xffffffff
je 0x140248cdc
mov rcx, rbx
call fcn.140246888
cmp eax, 0xfffffffe
je 0x140248cdc
mov rcx, rbx
call fcn.140246888
movsxd rdi, eax
lea r14, [0x140904ef0]
mov rcx, rbx
sar rdi, 6
call fcn.140246888
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140248ce3
lea rdx, [0x1408faf00]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140248cf1
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140248d15
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140248d15
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140248d15
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x140248d33
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x140248d3e
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x140248d5a
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x140248bd4
Function at 0x1402598d0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1402598fe
xor eax, eax
jmp 0x1402599e4
cmp qword [rcx + 0x68], 0
je 0x14025990f
call fcn.14005f760
jmp 0x1402599e4
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140259926
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140259928
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14025995a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140223780
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1402599de
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140259991
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1402599ba
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140238df8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1402599de
cmp rsi, rbx
ja 0x140259998
test rsi, rsi
je 0x1402599de
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140238df8
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140259a00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140259a2f
call fcn.14005f890
jmp 0x140259aa6
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140259a46
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140259a48
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140259aa0
test ecx, ecx
jle 0x140259a81
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.140223780
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140259aa0
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140259aa0
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.140239110
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14025afe0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14025b085
mov eax, dword [rsp + 0x20]
xor r8d, r8d
mov edx, eax
mov rcx, qword [rsp + 0x48]
call fcn.1400371f0
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.14001e9c0
mov r8d, dword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x48]
call fcn.140016630
dec rax
mov rcx, qword [rsp + 0x28]
cmp rcx, rax
jne 0x14025b076
mov eax, dword [rsp + 0x20]
xor r8d, r8d
mov edx, eax
mov rcx, qword [rsp + 0x48]
call fcn.1400371f0
mov al, 1
jmp 0x14025b087
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.1400371f0
xor al, al
add rsp, 0x38
ret

Function at 0x14025b220
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp eax, 1
jne 0x14025b24d
mov dword [rsp + 0x20], 1
jmp 0x14025b255
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x14025c680
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x10], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x10], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x10325476
ret

Function at 0x14025ff50
Capabilities:
Check os version

Disassembly:
sub rsp, 0xe8
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0xd0], rax
lea rax, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], MsiDatabaseIsTablePersistentA
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14025ffac
cmp dword [rsp + 0x34], 5
jne 0x14025ffac
movzx eax, byte [rsp + 0xca]
cmp eax, 1
jne 0x14025ffac
lea rax, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140222a60
add rsp, 0xe8
ret