joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001a69
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
jmp 0x14004a460
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x8a0
mov rdi, rsp
mov ecx, 0x228
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x8b0]
mov rax, qword [0x1401940e8]
xor rax, rsp
mov qword [rsp + 0x898], rax
mov byte [rsp + 0x20], 1
movzx eax, word [0x1401503f8]
mov word [rsp + 0x40], ax
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 0x40e
rep stosb byte [rdi], al
movzx eax, word [0x1401503fc]
mov word [rsp + 0x470], ax
lea rax, [rsp + 0x472]
mov rdi, rax
xor eax, eax
mov ecx, 0x40e
rep stosb byte [rdi], al
lea rdx, [rsp + 0x40]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r8d, 0x208
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea r8, str.RaftLogs_
mov edx, 0x208
lea rcx, [rsp + 0x40]
call fcn.14000187a
test eax, eax
je 0x14004a528
mov dword [rsp + 0x890], 1
jmp 0x14004a533
mov dword [rsp + 0x890], 0
mov eax, dword [rsp + 0x890]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x14004a54a
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14004a57d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14004a57d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xb7
je 0x14004a57d
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x884], 0
lea r9, [rsp + 0x470]
xor r8d, r8d
lea rdx, [0x140150418]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [rsp + 0x884], eax
lea rcx, [rsp + 0x470]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14004a5ec
lea r8, [0x140150430]
mov edx, 0x208
lea rcx, [rsp + 0x470]
call fcn.14000187a
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x14004a5ec
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14004a614
xor r8d, r8d
lea rdx, [rsp + 0x470]
mov ecx, 0x1000
call sub.msi.dll_MsiGetComponentPathW
cmp eax, 0x57
jne 0x14004a614
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14004a648
mov rax, qword [rsp + 0x8b0]
mov r8, qword [rax + 0x38]
mov edx, 0x208
lea rcx, [rsp + 0x40]
call fcn.14000187a
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x14004a648
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call fcn.140004a7a
inc rax
lea r8, [rsp + 0x40]
mov rdx, rax
mov rax, qword [rsp + 0x8b0]
mov rcx, qword [rax + 8]
call fcn.1400031e3
mov rcx, qword [rsp + 0x8b0]
call fcn.1400023bf
movzx eax, byte [rsp + 0x20]
mov edi, eax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140005466
mov eax, edi
mov rcx, qword [rsp + 0x898]
xor rcx, rsp
call fcn.1400023b0
add rsp, 0x8a0
pop rdi
ret
Function at 0x140001e65
Capabilities:
Terminate process

Disassembly:
jmp 0x1400568e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140001ec4
Capabilities:
Get system information on windows

Disassembly:
jmp 0x140039d50
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, MsiEnumClientsA
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
lea rax, [rsp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, MsiGetFeatureCostA
rep stosb byte [rdi], al
mov dword [rsp + 0x64], 0
lea rcx, [0x140148280]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140148218]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x140039dbf
lea rcx, [rsp + 0x28]
call qword [rsp + 0x68]
jmp 0x140039dca
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rsp + 0x28]
cmp eax, 9
jne 0x140039dde
mov dword [rsp + 0x64], 1
jmp 0x140039df0
movzx eax, word [rsp + 0x28]
cmp eax, 6
jne 0x140039df0
mov dword [rsp + 0x64], 1
mov eax, dword [rsp + 0x64]
mov edi, eax
mov rcx, rsp
lea rdx, [0x140149f40]
call fcn.140005466
mov eax, edi
add rsp, 0x70
pop rdi
ret

Function at 0x140002324
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400fcef0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1400fbee0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400fcf2f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x1401aa010]
jmp 0x1400fcf3e
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret
Function at 0x140002919
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400606c0
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x48
movzx eax, word [rsp + 0x58]
movd xmm0, eax
movdqa xmmword [rsp + 0x20], xmm0
pshuflw xmm0, xmmword [rsp + 0x20], 0
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmm0, xmmword [rsp + 0x20]
pshufd xmm0, xmm0, 0
movdqa xmmword [rsp + 0x20], xmm0
mov rax, qword [rsp + 0x50]
and rax, 0xfff
cmp rax, 0xff0
ja 0x1400607d1
mov rax, qword [rsp + 0x50]
movdqu xmm0, xmmword [rax]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pxor xmm0, xmmword [rsp + 0x10]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pcmpeqw xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x30]
pcmpeqw xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
por xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pmovmskb eax, xmm0
mov dword [rsp], eax
cmp dword [rsp], 0
je 0x1400607c1
mov eax, dword [rsp]
bsf eax, eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x1400607b1
mov rax, qword [rsp + 0x50]
mov qword [rsp + 8], rax
jmp 0x1400607ba
mov qword [rsp + 8], 0
mov rax, qword [rsp + 8]
jmp 0x14006080c
mov rax, qword [rsp + 0x50]
add rax, 0x10
mov qword [rsp + 0x50], rax
jmp 0x140060807
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x1400607e9
mov rax, qword [rsp + 0x50]
jmp 0x14006080c
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
test eax, eax
jne 0x1400607f9
xor eax, eax
jmp 0x14006080c
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
jmp 0x1400606fb
add rsp, 0x48
ret
Function at 0x140002b35
Capabilities:
Print debug messages

Disassembly:
jmp 0x140115470
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1401940e8]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140115496
jmp 0x140115513
mov rcx, qword [rbp + 0x30]
call fcn.1400014fb
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1401154af
jmp 0x140115513
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1401154cc
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14000105f
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140003fe9
test eax, eax
jne 0x140115513
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400023b0
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140002dbf
Capabilities:
Delete registry key

Disassembly:
jmp 0x14003a1f0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, MsiEnumClientsA
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x98]
mov r8, qword [rax]
lea rdx, [0x1401482a0]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call fcn.14000222a
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14003a290
mov rax, qword [rsp + 0x98]
mov r8, qword [rax]
lea rdx, str.Registry_key_deleted_:___s
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call fcn.1400051a0
jmp 0x14003a3da
cmp dword [rsp + 0x30], 5
jne 0x14003a3a8
cmp dword [rsp + 0xa0], 0
jne 0x14003a3a8
mov dword [rsp + 0xa0], 1
mov byte [0x14019402c], 0
mov qword [rsp + 0x38], 0
mov ecx, MsiEnumProductsW
call fcn.140002af9
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14003a30c
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rax, qword [rsp + 0x98]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.140002bda
mov qword [rsp + 0x60], rax
jmp 0x14003a315
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x38]
call qword [rax]
mov byte [rsp + 0x40], al
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x14003a364
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.140003e2c
mov qword [rsp + 0x68], rax
jmp 0x14003a36d
mov qword [rsp + 0x68], 0
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x14003a3a6
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140002dbf
jmp 0x14003a3da
movzx eax, byte [0x140195680]
test eax, eax
jne 0x14003a3da
mov r9d, dword [rsp + 0x30]
mov rax, qword [rsp + 0x98]
mov r8, qword [rax]
lea rdx, str.Registry_key_not_deleted_:__s___Reason_:__d
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call fcn.1400028b0
add rsp, 0x70
pop rdi
ret
Function at 0x140002e0f
Capabilities:
Query environment variable

Disassembly:
jmp 0x140103434
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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r14d, r14d
mov rbx, rax
test rax, rax
je 0x14010351c
mov rsi, rax
cmp word [rax], r14w
je 0x140103487
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14010346f
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x14010346b
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.140004dcc
movsxd rbp, eax
test eax, eax
je 0x14010351c
mov r9d, MsiProvideComponentW
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov rcx, rbp
lea edx, [r9 - 0x64]
call fcn.14000308a
mov rdi, rax
test rax, rax
je 0x14010350a
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.140004dcc
test eax, eax
je 0x14010350a
mov rsi, rdi
mov rdi, r14
jmp 0x14010350d
mov rsi, r14
mov edx, 2
mov rcx, rdi
call fcn.140004ff7
jmp 0x14010351f
mov rsi, r14
test rbx, rbx
je 0x14010352d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000314d
Capabilities:
Enumerate files on windows

Disassembly:
jmp 0x14004eed0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x370
mov rdi, rsp
mov ecx, 0xdc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x380]
mov rax, qword [0x1401940e8]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov byte [rsp + 0x20], 0
mov qword [rsp + 0x298], 0xffffffffffffffff
lea rcx, [rsp + 0x2a8]
call fcn.1400036c5
nop
lea rcx, [rsp + 0x2e8]
call fcn.1400036c5
nop
mov rdx, qword [rsp + 0x388]
mov rcx, qword [rsp + 0x380]
call fcn.140003e45
movzx eax, al
test eax, eax
je 0x14004f0ae
mov rdx, qword [rsp + 0x388]
lea rcx, [rsp + 0x2e8]
call fcn.140001b45
mov r8, 0xffffffffffffffff
lea rdx, [0x14015415c]
lea rcx, [rsp + 0x2e8]
call fcn.1400046a6
mov qword [rsp + 0x318], rax
lea rcx, [rsp + 0x2e8]
call fcn.140003323
dec rax
cmp qword [rsp + 0x318], rax
jne 0x14004efcf
lea rcx, [rsp + 0x2e8]
call fcn.140003323
dec rax
mov rdx, rax
lea rcx, [rsp + 0x2e8]
call fcn.140003468
cmp dword [rsp + 0x390], 0
jne 0x14004f033
lea r8, str.Acrobat
lea rdx, [rsp + 0x2e8]
lea rcx, [rsp + 0x320]
call fcn.1400024dc
mov qword [rsp + 0x358], rax
mov rdx, qword [rsp + 0x358]
lea rcx, [rsp + 0x2e8]
call fcn.140004089
lea rcx, [rsp + 0x320]
call fcn.1400049d0
lea rdx, str.Acrobat.exe
lea rcx, [rsp + 0x2a8]
call fcn.140003198
cmp dword [rsp + 0x390], 0
jne 0x14004f060
lea rcx, [rsp + 0x2e8]
call fcn.140003567
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x298], rax
cmp qword [rsp + 0x298], 0xffffffffffffffff
jne 0x14004f072
mov byte [rsp + 0x20], 0
jmp 0x14004f0ae
lea rcx, [rsp + 0x2a8]
call fcn.140003567
mov rdx, rax
lea rcx, [rsp + 0x6c]
call fcn.140002b99
test eax, eax
jne 0x14004f097
mov byte [rsp + 0x20], 1
jmp 0x14004f0ae
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x298]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14004f072
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x350], al
lea rcx, [rsp + 0x2e8]
call fcn.1400049d0
nop
lea rcx, [rsp + 0x2a8]
call fcn.1400049d0
movzx eax, byte [rsp + 0x350]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1401557f0]
call fcn.140005466
mov eax, edi
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.1400023b0
add rsp, 0x370
pop rdi
ret
Function at 0x1400036bb
Capabilities:
Clear file content

Disassembly:
jmp 0x140123880
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x98
mov r8, qword [rsp + 0xa8]
mov edx, dword [rsp + 0xa0]
lea rcx, [rsp + 0x68]
call fcn.140004dfe
cmp qword [rsp + 0x68], 0xffffffffffffffff
je 0x1401238b9
cmp qword [rsp + 0x70], 0xffffffffffffffff
jne 0x1401238d7
call fcn.140002545
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x68]
call fcn.14000347c
mov eax, dword [rsp + 0x40]
jmp 0x140123af3
cmp qword [rsp + 0x78], 0
jle 0x140123a38
mov dword [rsp + 0x20], reloc.msi.dll_MsiGetSummaryInformationW
lea r9, str.minkernelcrtsucrt_src_appcrtlowiochsize.cpp
mov r8d, 2
mov edx, 1
mov ecx, 0x1000
call fcn.14000248c
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400011ef
lea rcx, [rsp + 0x38]
call fcn.14000564b
movzx eax, al
test eax, eax
jne 0x140123958
call fcn.140002545
mov dword [rax], MsiDatabaseExportA
call fcn.140002545
mov eax, dword [rax]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x38]
call fcn.140001dd9
lea rcx, [rsp + 0x68]
call fcn.14000347c
mov eax, dword [rsp + 0x44]
jmp 0x140123af3
mov edx, 0x8000
mov ecx, dword [rsp + 0xa0]
call fcn.1400022fc
mov dword [rsp + 0x50], eax
cmp qword [rsp + 0x78], 0x1000
jl 0x140123982
mov dword [rsp + 0x30], 0x1000
jmp 0x14012398a
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x38]
call fcn.140004453
mov r8d, dword [rsp + 0x48]
mov rdx, rax
mov ecx, dword [rsp + 0xa0]
call fcn.140001f8c
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
jne 0x1401239f8
call fcn.14000101e
cmp dword [rax], 5
jne 0x1401239d0
call fcn.140002545
mov dword [rax], MsiDatabaseExportA
call fcn.140002545
mov eax, dword [rax]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x38]
call fcn.140001dd9
lea rcx, [rsp + 0x68]
call fcn.14000347c
mov eax, dword [rsp + 0x4c]
jmp 0x140123af3
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jg 0x14012396d
mov edx, dword [rsp + 0x50]
mov ecx, dword [rsp + 0xa0]
call fcn.1400022fc
lea rcx, [rsp + 0x38]
call fcn.140001dd9
jmp 0x140123add
cmp qword [rsp + 0x78], 0
jge 0x140123add
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0xa0]
call fcn.140002dd8
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0xffffffffffffffff
jne 0x140123a89
call fcn.140002545
mov eax, dword [rax]
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x68]
call fcn.14000347c
mov eax, dword [rsp + 0x54]
jmp 0x140123af3
mov ecx, dword [rsp + 0xa0]
call fcn.140002482
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140123add
call fcn.140002545
mov dword [rax], MsiDatabaseExportA
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
call fcn.14000101e
mov ecx, dword [rsp + 0x58]
mov dword [rax], ecx
call fcn.140002545
mov eax, dword [rax]
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0x68]
call fcn.14000347c
mov eax, dword [rsp + 0x5c]
jmp 0x140123af3
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x68]
call fcn.14000347c
mov eax, dword [rsp + 0x60]
add rsp, 0x98
ret
Function at 0x1400036e8
Capabilities:
Check os version
Get common file path

Disassembly:
jmp 0x14003b8a0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x3a0
mov rdi, rsp
mov ecx, 0xe8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3b0]
mov rax, qword [0x1401940e8]
xor rax, rsp
mov qword [rsp + 0x390], rax
lea rax, [rsp + 0x170]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov r8d, 0x11c
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140003959
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x154], eax
cmp dword [rsp + 0x34], 5
jne 0x14003b9e6
cmp dword [rsp + 0x38], 2
jne 0x14003b9e6
mov rcx, qword [rsp + 0x3b0]
call fcn.140001ec4
test eax, eax
je 0x14003b9e6
mov rax, qword [rsp + 0x3b0]
mov byte [rax + 8], 1
lea rdx, str.Machine_is_Win_Xp_64_bit.
mov rax, qword [rsp + 0x3b0]
mov rcx, qword [rax]
call fcn.1400051a0
xor r9d, r9d
mov r8d, reloc.msi.dll_MsiEnumComponentsW
lea rdx, [rsp + 0x170]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea r8, [0x1401486d0]
mov edx, 0x104
lea rcx, [rsp + 0x170]
call fcn.1400021b2
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [rsp + 0x3b8]
mov qword [rcx], rax
mov rax, qword [rsp + 0x3b8]
cmp qword [rax], 0
je 0x14003b9e6
lea rdx, str.RegDeleteKeyExW
mov rax, qword [rsp + 0x3b8]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x3b0]
mov qword [rcx + 0x10], rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140005466
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.1400023b0
add rsp, 0x3a0
pop rdi
ret
Function at 0x140003963
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14007ce10
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14007c7e0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14007ce51
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401aa010]
jmp 0x14007ce57
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x140003dc3
Capabilities:
Get token membership

Disassembly:
jmp 0x14004e350
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
mov rdi, rsp
mov ecx, 0x34
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [0x1401940e8]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov byte [rsp + 0x64], 0
mov byte [rsp + 0x65], 0
mov byte [rsp + 0x66], 0
mov byte [rsp + 0x67], 0
mov byte [rsp + 0x68], 0
mov byte [rsp + 0x69], 5
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, reloc.msi.dll_MsiEnumClientsA
mov dl, 2
lea rcx, [rsp + 0x64]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x84], eax
cmp dword [rsp + 0x84], 0
je 0x14004e448
lea rdx, str.User_has_admin_privileges.
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rax]
call fcn.14000222a
lea r8, [rsp + 0x84]
mov rdx, qword [rsp + 0xa8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x84], 1
jne 0x14004e45f
mov dword [rsp + 0xc0], 1
jmp 0x14004e46a
mov dword [rsp + 0xc0], 0
movzx eax, byte [rsp + 0xc0]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1401555b0]
call fcn.140005466
mov eax, edi
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1400023b0
add rsp, 0xd0
pop rdi
ret
Function at 0x1400040fc
Capabilities:
Get session user name

Disassembly:
jmp 0x14004a8b0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, rsp
mov ecx, reloc.msi.dll_MsiDatabaseCommit
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x24], 0x104
mov byte [rsp + 0x34], 0
lea rdx, [rsp + 0x24]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14004a91a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
mov r8d, dword [rsp + 0x38]
lea rdx, str.Cannot_fetch_logged_in_user_._Error_number___d
mov rcx, qword [rsp + 0x50]
call fcn.1400028b0
mov byte [rsp + 0x34], 0
jmp 0x14004a91f
mov byte [rsp + 0x34], 1
movzx eax, byte [rsp + 0x34]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1401506c0]
call fcn.140005466
mov eax, edi
add rsp, 0x40
pop rdi
ret

Function at 0x1400041ab
Capabilities:
Delete file
Move file

Disassembly:
jmp 0x140035130
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, MsiDatabaseCommit
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0
mov edx, 0x80
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003519b
mov r8d, 4
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x140004250
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400eead0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret

Function at 0x140004516
Capabilities:
Set environment variable

Disassembly:
jmp 0x1401203c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
lea rcx, [rsp + 0x70]
call fcn.140005a65
lea rcx, [rsp + 0x40]
call fcn.140005a65
call fcn.14000546b
mov r8d, eax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call fcn.140001a55
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14012042f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x40]
call fcn.1400056eb
lea rcx, [rsp + 0x70]
call fcn.1400056eb
mov eax, dword [rsp + 0x24]
jmp 0x1401204bc
call fcn.14000546b
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xb8]
call fcn.140001a55
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140120476
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x40]
call fcn.1400056eb
lea rcx, [rsp + 0x70]
call fcn.1400056eb
mov eax, dword [rsp + 0x2c]
jmp 0x1401204bc
lea rcx, [rsp + 0x40]
call fcn.140001023
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x70]
call fcn.140001023
mov rcx, qword [rsp + 0x38]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.1400056eb
lea rcx, [rsp + 0x70]
call fcn.1400056eb
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
ret