joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b108c
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
lea rcx, [0x1400f0cf0]
mov r14d, r9d
mov rsi, r8
mov rdi, rdx
call fcn.140002a54
movsxd rcx, eax
mov rax, qword [0x1400f0d90]
mov rcx, qword [rax + rcx*8]
mov rbx, qword [rcx]
cmp rsi, rdi
jne 0x1400b1110
cmp qword [rbx + 0x2d0], 0
je 0x1400b1174
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
and qword [rsp + 0x28], 0
mov rcx, qword [rbx + 0x2d0]
mov qword [rsp + 0x20], rdi
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov r9d, dword [rsp + 0x54]
call qword [sym.imp.USER32.dll_TrackPopupMenuEx]
jmp 0x1400b1196
mov rdx, rsi
call fcn.140002750
cmp eax, 0xffffffff
je 0x1400b1174
movsxd rbp, eax
mov rax, qword [0x1400f0db8]
mov rcx, qword [rax + rbp*8]
mov rdx, qword [rcx]
mov cl, byte [rdx + 0xfc]
lea eax, [rcx - 0xe]
cmp al, 2
jbe 0x1400b1174
cmp cl, 0x13
je 0x1400b1174
cmp qword [rdx + 0x18], 0
je 0x1400b1174
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rax, qword [0x1400f0db8]
and qword [rsp + 0x28], 0
mov rcx, qword [rax + rbp*8]
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0x18]
jmp 0x1400b10f9
movzx r9d, word [rsp + 0x70]
mov r8, rsi
shl r9, 0x10
mov edx, 0x7b
movzx eax, r14w
mov rcx, rdi
or r9, rax
call qword [sym.imp.USER32.dll_DefDlgProcW]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14013228c
Capabilities:
Access peb ldr_data
Execute anti-debugging instructions
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sbb al, 0x75
sbb cl, byte [rbp - 0x73c563]
push rdi
shr dword [rbx - 0x3ed5241c], 0xd5
neg r10
leave
mov byte [rsp + rax + 0x4b], sil
inc rax
cmp rax, 0xa
jb 0x14013220f
jmp 0x14013252f
mov r8, qword [rax + 0x50]
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
je 0x140132277
jne 0x140132277
lea esi, [rcx + 0xecf]
call rcx
lea edi, [rdx - 0x1564]
jg 0x140131e40
jmp rcx
jmp 0x1401322a2
mov bh, 0x14
push rcx
mov ecx, dword [r11 + r9 + 0x1c]
add rcx, r9
mov ebx, dword [rcx + rdx*4]
add rbx, r9
jmp 0x14013220f
xchg rdx, rax
mov rdx, qword [rcx + 0x10]
xchg rdx, rax
movzx r10d, word [rax + 0x48]
mov rax, qword gs:[0x60]
xchg rdi, rcx
mov rdi, qword [rax + 0x18]
xchg rdi, rcx
mov rax, qword [rcx + 0x10]
jne 0x140132587
je 0x140132587
jmp 0x140131e71
jmp 0x140132226
Function at 0x1400110dc
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001ba60
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400340f3]
call fcn.140011857
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001bab8
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14001bbca
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14001bb63
cmp qword [rbp + 0x28], 0
jle 0x14001bb63
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001bb01
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1400117df
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x14001bbb9
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001bbb9
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140011497
Capabilities:
Terminate process

Disassembly:
jmp 0x14001e6b0
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]
nop
add rsp, 0x28
ret
Function at 0x1400115aa
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x14001bc50
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x62
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14002d040]
xor rax, rbp
mov qword [rbp + 0x238], rax
lea rcx, [0x1400340f5]
call fcn.140011857
nop
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
nop
mov byte [rbp + 4], 0x78
xor eax, eax
cmp eax, 1
je 0x14001bd72
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov dword [rbp + 0x24], 8
jmp 0x14001bccc
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0xbe
jg 0x14001bd6d
mov ecx, dword [rbp + 0x24]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
cmp eax, 0xffff8001
jne 0x14001bd68
mov ecx, dword [rbp + 0x24]
call fcn.140011050
movzx eax, al
test eax, eax
jne 0x14001bd68
mov edx, 0x118
lea rcx, [rbp + 0x50]
call fcn.140011776
mov edx, 1
lea rcx, [rbp + 0x50]
call fcn.140011834
nop
mov r9d, 0x40
mov r8d, 8
lea rdx, str.dat.txt
lea rcx, [rbp + 0x50]
call fcn.14001191a
nop
lea rcx, [rbp + 0x50]
call fcn.1400114dd
movzx eax, al
test eax, eax
je 0x14001bd5e
lea rax, [rbp + 0x60]
movzx edx, byte [rbp + 0x24]
mov rcx, rax
call fcn.14001164a
nop
lea rcx, [rbp + 0x50]
call fcn.14001114a
nop
lea rcx, [rbp + 0x50]
call fcn.140011712
nop
jmp 0x14001bcc4
jmp 0x14001bca4
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400276f0]
call fcn.1400116ea
mov eax, edi
mov rcx, qword [rbp + 0x238]
xor rcx, rbp
call fcn.1400113ed
lea rsp, [rbp + 0x248]
pop rdi
pop rbp
ret

Function at 0x1400115c8
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001f1e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001f200
xor al, al
jmp 0x14001f281
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001f213
xor al, al
jmp 0x14001f281
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001f23d
xor al, al
jmp 0x14001f281
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001f251
xor al, al
jmp 0x14001f281
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001f263
xor al, al
jmp 0x14001f281
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001f27f
xor al, al
jmp 0x14001f281
mov al, 1
add rsp, 0x38
ret
Function at 0x14001183e
Capabilities:
Write file on windows

Disassembly:
jmp 0x140018410
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x14002d040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x1400340f3]
call fcn.140011857
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x140018477
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001847e
mov al, 1
jmp 0x1400185ce
call fcn.140011249
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.140011249
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.14001169a
movzx eax, al
test eax, eax
je 0x1400184cf
xor al, al
jmp 0x1400185ce
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x140018534
cmp dword [rbp + 0x154], 1
je 0x14001853f
cmp dword [rbp + 0x154], 3
je 0x1400185bd
jmp 0x1400185cc
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001858f
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001858f
xor al, al
jmp 0x1400185ce
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400185aa
mov dword [rbp + 0x154], 1
jmp 0x1400185b4
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x1400185ce
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400185ce
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400275f0]
call fcn.1400116ea
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.1400113ed
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x14001cad0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400118a2
movzx eax, al
test eax, eax
jne 0x14001caf0
mov ecx, 7
call fcn.1400116fe
nop
mov byte [rsp + 0x20], 0
call fcn.14001173f
mov byte [rsp + 0x21], al
cmp dword [0x14002d7d0], 1
jne 0x14001cb14
mov ecx, 7
call fcn.1400116fe
nop
jmp 0x14001cb6c
cmp dword [0x14002d7d0], 0
jne 0x14001cb67
mov dword [0x14002d7d0], 1
lea rdx, [0x140026770]
lea rcx, [0x140026440]
call fcn.1400113ca
test eax, eax
je 0x14001cb48
mov eax, 0xff
jmp 0x14001cc71
lea rdx, [0x140026330]
lea rcx, [section..rdata]
call fcn.140011726
mov dword [0x14002d7d0], 2
jmp 0x14001cb6c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400116d6
call fcn.1400115f5
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14001cbc9
mov rcx, qword [rsp + 0x30]
call fcn.140011311
movzx eax, al
test eax, eax
je 0x14001cbc9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140035020]
nop
call fcn.14001166d
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001cbfd
mov rcx, qword [rsp + 0x38]
call fcn.140011311
movzx eax, al
test eax, eax
je 0x14001cbfd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011816
nop
call fcn.14001cd20
mov dword [rsp + 0x28], eax
call fcn.1400115c8
movzx eax, al
test eax, eax
jne 0x14001cc1c
mov ecx, dword [rsp + 0x28]
call fcn.1400110a0
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001cc2b
call fcn.14001182a
nop
xor edx, edx
mov cl, 1
call fcn.1400112df
mov eax, dword [rsp + 0x28]
jmp 0x14001cc71
add rsp, 0x68
ret
Function at 0x140067790
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14006785c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14006785c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140067875
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14006784c
cmp byte [rax], 0x5c
jne 0x140067846
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140067846
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140067832
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140067843
test r8b, 0x10
jne 0x140067846
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140067846
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140069fc0
test edi, edi
jne 0x1400677b0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.140068bf0
int3

Function at 0x140086e28
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x14008e108]
test rax, rax
je 0x140086e72
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140086e72
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140086e72
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140086e72
cmp dword [rcx + 0x84], 0xe
jbe 0x140086e72
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140086e74
xor al, al
add rsp, 0x28
ret
Function at 0x140002cb8
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1400220b8]
xor rax, rsp
mov qword [rbp + 0x380], rax
and dword [rsp + 0x44], 0
lea rdx, [rsp + 0x60]
and dword [rsp + 0x40], 0
mov r8d, 0x104
mov rbx, qword [str.unknown]
xor ecx, ecx
and qword [rsp + 0x50], 0
mov dword [rsp + 0x48], r8d
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140002d28
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call fcn.140006cb0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x60]
call fcn.14000588c
test eax, eax
jns 0x140002d4a
and dword [rsp + 0x44], 0
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x140002d6e
lea rdi, [rbp + 0x170]
mov ecx, 0x208
rep stosb byte [rdi], al
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140005e28
mov r8, qword [rsp + 0x50]
lea rdx, str._Logging_started:__ls_
mov edi, 2
mov ecx, edi
call fcn.14000310c
mov edx, dword [rsp + 0x40]
lea r8, [rsp + 0x60]
mov r9d, dword [rsp + 0x44]
movzx ecx, dx
mov dword [rsp + 0x30], ecx
mov ecx, edi
shr edx, 0x10
mov dword [rsp + 0x28], edx
lea rdx, str.Executable:__ls_v_d._d._d._d
movzx eax, r9w
shr r9d, 0x10
mov dword [rsp + 0x20], eax
call fcn.14000310c
lea r8, [rbp + 0x170]
mov ecx, edi
lea rdx, str.Computer__:__ls
call fcn.14000310c
mov ecx, dword [0x140022008]
test ecx, ecx
je 0x140002e1f
sub ecx, 1
je 0x140002e16
sub ecx, 1
je 0x140002e0d
sub ecx, 1
je 0x140002e04
cmp ecx, 1
jne 0x140002e26
mov rbx, qword [str.debug]
jmp 0x140002e26
mov rbx, qword [str.verbose]
jmp 0x140002e26
mov rbx, qword [str.standard]
jmp 0x140002e26
mov rbx, qword [str.warning]
jmp 0x140002e26
mov rbx, qword [str.none]
mov r8, rbx
lea rdx, str.____logging_level:__hs____
mov ecx, edi
call fcn.14000310c
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140002e46
call fcn.14000504c
xor eax, eax
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1400062b0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14000315c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rbp, rcx
and dword [rax + 0x10], ebx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [section..data]
mov esi, eax
cmp rcx, 0xffffffffffffffff
jne 0x1400031ab
xor r8d, r8d
lea rcx, [0x140022b38]
mov rdx, rbp
call fcn.140004c7c
mov ebx, eax
test eax, eax
js 0x14000320c
xor ebx, ebx
jmp 0x14000320c
test esi, esi
je 0x14000320c
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, esi
mov edx, edi
sub r8d, edi
add rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400031e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400031f8
add edi, dword [rsp + 0x48]
cmp edi, esi
jae 0x14000320c
mov rcx, qword [section..data]
jmp 0x1400031af
mov r8d, ebx
lea rcx, str.c:_agent_work138_s_srclibsdutillogutil.cpp
mov edx, 0x310
call fcn.140005770
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140005394
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea rdx, [0x140022bc8]
lea rcx, [0x140017610]
call fcn.14000577c
mov ebx, eax
test eax, eax
js 0x140005534
mov rcx, qword [rsp + 0x30]
lea r8, [0x140022c10]
lea rdx, [0x140022c0c]
call fcn.14000588c
mov rcx, qword [0x140022bc8]
lea rdx, str.MsiDeterminePatchSequenceW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140022b90]
lea rdx, str.MsiDetermineApplicablePatchesW
test rcx, rcx
mov qword [0x140022bd0], rax
cmove rcx, rax
mov qword [0x140022b90], rcx
mov rcx, qword [0x140022bc8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140022b98]
lea rdx, str.MsiEnumProductsExW
test rcx, rcx
mov qword [0x140022bd8], rax
cmove rcx, rax
mov qword [0x140022b98], rcx
mov rcx, qword [0x140022bc8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140022ba0]
lea rdx, str.MsiGetPatchInfoExW
test rcx, rcx
mov qword [0x140022be0], rax
cmove rcx, rax
mov qword [0x140022ba0], rcx
mov rcx, qword [0x140022bc8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140022ba8]
lea rdx, str.MsiGetProductInfoExW
test rcx, rcx
mov qword [0x140022be8], rax
cmove rcx, rax
mov qword [0x140022ba8], rcx
mov rcx, qword [0x140022bc8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140022bb0]
lea rdx, str.MsiSetExternalUIRecord
test rcx, rcx
mov qword [0x140022bf0], rax
cmove rcx, rax
mov qword [0x140022bb0], rcx
mov rcx, qword [0x140022bc8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140022bb8]
lea rdx, str.MsiSourceListAddSourceExW
test rcx, rcx
mov qword [0x140022bf8], rax
cmove rcx, rax
mov qword [0x140022bb8], rcx
mov rcx, qword [0x140022bc8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140022bc0]
test rcx, rcx
mov qword [0x140022c00], rax
mov dword [0x140022c08], 1
cmove rcx, rax
mov qword [0x140022bc0], rcx
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140005543
call fcn.14000504c
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14000588c
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, rdx
and dword [rax + 0x20], ebx
lea rdx, [rax + 0x20]
and qword [rax - 0x20], rbx
mov r14, r8
and dword [rax - 0x28], ebx
mov rbp, rcx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
jne 0x1400058f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400058f9
mov edx, 0x115
mov r8d, ebx
lea rcx, str.c:_agent_work138_s_srclibsdutil_fileutil.cpp
call fcn.140005770
jmp 0x1400059b2
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
jne 0x140005918
mov ebx, 0x8007000e
mov edx, 0x119
jmp 0x1400058e5
mov edx, dword [rsp + 0x68]
mov r9, rdi
mov r8d, esi
mov rcx, rbp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x14000595c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14000595c
mov edx, 0x11d
mov r8d, ebx
lea rcx, str.c:_agent_work138_s_srclibsdutil_fileutil.cpp
call fcn.140005770
jmp 0x1400059a9
lea r9, [rsp + 0x20]
mov rcx, rdi
lea r8, [rsp + 0x28]
lea rdx, [0x1400173c8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x140005998
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140005998
mov edx, 0x122
jmp 0x14000594b
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rdx + 8]
mov dword [r15], ecx
mov ecx, dword [rdx + 0xc]
mov dword [r14], ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140005cdc
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x20
xor r14d, r14d
mov rbp, rdx
mov ebx, r14d
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140005dd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140005dd4
cmp eax, 3
je 0x140005d36
xor edx, edx
mov rcx, rdi
call fcn.140005df0
test eax, eax
jne 0x140005dd4
movzx ecx, word [rdi]
mov rsi, r14
mov rdx, rdi
test cx, cx
je 0x140005dbb
mov r12d, 0x5c
cmp cx, r12w
mov rax, rdx
cmovne rax, rsi
add rdx, 2
mov rsi, rax
movzx ecx, word [rdx]
test cx, cx
jne 0x140005d4a
test rax, rax
je 0x140005dbb
mov rdx, rbp
mov word [rax], r14w
mov rcx, rdi
call fcn.140005cdc
mov word [rsi], r12w
mov ebx, eax
test eax, eax
js 0x140005dd4
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140005db6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140005da6
mov ebx, 1
jmp 0x140005dd4
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140005dd4
mov ebx, r14d
jmp 0x140005dd4
mov ebx, 0x80070003
lea rcx, str.c:_agent_work138_s_srclibsdutildirutil.cpp
mov r8d, ebx
mov edx, 0x72
call fcn.140005770
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop r12
pop rdi
ret

Function at 0x140005df0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140005e1a
test al, 0x10
je 0x140005e1a
test rdi, rdi
je 0x140005e15
mov dword [rdi], eax
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000ac04
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000aa30
Function at 0x401540
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
aesimc xmm0, xmmword [rdx + 0x10]
aesimc xmm1, xmmword [rdx + 0x20]
aesimc xmm2, xmmword [rdx + 0x30]
aesimc xmm3, xmmword [rdx + 0x40]
aesimc xmm4, xmmword [rdx + 0x50]
aesimc xmm5, xmmword [rdx + 0x60]
aesimc xmm6, xmmword [rdx + 0x70]
aesimc xmm7, xmmword [rdx + 0x80]
aesimc xmm8, xmmword [rdx + 0x90]
movaps xmm9, xmmword [rdx]
movaps xmm10, xmmword [rdx + 0xa0]
movaps xmmword [rcx], xmm9
movdqa xmmword [rcx + 0x10], xmm0
movdqa xmmword [rcx + 0x20], xmm1
movdqa xmmword [rcx + 0x30], xmm2
movdqa xmmword [rcx + 0x40], xmm3
movdqa xmmword [rcx + 0x50], xmm4
movdqa xmmword [rcx + 0x60], xmm5
movdqa xmmword [rcx + 0x70], xmm6
movdqa xmmword [rcx + 0x80], xmm7
movdqa xmmword [rcx + 0x90], xmm8
movaps xmmword [rcx + 0xa0], xmm10
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret