joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ba00
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r13, r8
mov ebx, edx
mov rsi, rcx
test rcx, rcx
je 0x14000bb8b
test edx, edx
je 0x14000bb8b
and dword [rbp + 0x48], 0
lea rdx, [rbp + 0x48]
and dword [rbp + 0x30], 0
xor r14b, r14b
and qword [rbp - 0x10], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r15d, eax
test eax, eax
je 0x14000bb8b
mov ecx, r15d
call fcn.140019d34
mov edx, dword [rbp + 0x48]
mov r9, rax
mov r8d, r15d
mov rcx, rsi
mov rdi, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14000bb7e
mov r15d, 0x40
test bl, 1
je 0x14000bae8
lea r9, [rbp + 0x30]
mov rcx, rdi
lea r8, [rbp - 0x10]
lea rdx, [0x14003e46c]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14000bae8
cmp dword [rbp + 0x30], 0
je 0x14000bae8
mov r8, qword [rbp - 0x10]
cmp dword [r8], 0xfeef04bd
jne 0x14000bae8
movzx ecx, word [r8 + 0xc]
movzx edx, word [r8 + 0xe]
movzx eax, word [r8 + 8]
movzx r9d, word [r8 + 0xa]
lea r8, str._d._d._d._04d
mov dword [rsp + 0x30], ecx
mov rcx, r13
mov dword [rsp + 0x28], edx
mov edx, r15d
mov dword [rsp + 0x20], eax
call fcn.14000d2d0
mov r14b, 1
test bl, 6
je 0x14000bb7e
lea rsi, [r13 + 0x80]
mov rcx, rdi
add r13, r15
mov byte [rsi], 0
lea r9, [rbp + 0x30]
lea r8, [rbp - 8]
lea rdx, str.VarFileInfoTranslation
mov byte [r13], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x14000bb7e
cmp dword [rbp + 0x30], 4
jb 0x14000bb7e
test bl, 2
je 0x14000bb51
mov rax, qword [rbp - 8]
lea r9, [0x14003efc8]
mov dword [rsp + 0x28], 0x100
mov rcx, rdi
mov qword [rsp + 0x20], rsi
movzx r8d, word [rax + 2]
movzx edx, word [rax]
call fcn.14000b7d0
test bl, 4
je 0x14000bb7b
mov rax, qword [rbp - 8]
lea r9, str.OriginalVer
mov dword [rsp + 0x28], r15d
mov rcx, rdi
mov qword [rsp + 0x20], r13
movzx r8d, word [rax + 2]
movzx edx, word [rax]
call fcn.14000b7d0
mov r14b, 1
mov rcx, rdi
call fcn.140019aa0
mov al, r14b
jmp 0x14000bb8d
xor al, al
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x14000c23c
Capabilities:
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x440
mov rax, qword [0x140055180]
xor rax, rsp
mov qword [rsp + 0x430], rax
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x14000c2fa
cmp di, word [rcx]
je 0x14000c2fa
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x410
call fcn.14001bf30
xor r9d, r9d
lea r8d, [rdi + 0x25]
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14000c2fa
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
jne 0x14000c2f6
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, str.downlevel
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
je 0x14000c2fa
mov al, 1
jmp 0x14000c2fc
xor al, al
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140019a80
mov rbx, qword [rsp + 0x458]
add rsp, 0x440
pop rdi
ret

Function at 0x14000c438
Capabilities:
Enumerate processes
Get process image filename
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x390
mov rax, qword [0x140055180]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov ebp, edx
mov r14, rcx
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000c47e
xor al, al
jmp 0x14000c564
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x238
mov rcx, rdi
call sub.KERNEL32.dll_Process32FirstW
xor ebx, ebx
test eax, eax
je 0x14000c559
mov rdx, r14
lea rcx, [rsp + 0x5c]
call fcn.140022cfc
test eax, eax
jne 0x14000c542
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14000c557
test ebp, ebp
js 0x14000c4f2
mov ecx, dword [rsp + 0x38]
lea rdx, [rsp + 0x20]
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x14000c4f2
cmp dword [rsp + 0x20], ebp
jne 0x14000c542
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x104
call fcn.14001bf30
mov r8d, 0x104
lea rdx, [rsp + 0x270]
mov rcx, rsi
call sub.PSAPI.DLL_GetProcessImageFileNameA
mov edx, 0x3e7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, 0x1388
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14000c49d
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.140019a80
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000e3f8
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
mov r8, qword [rdx + 0x10]
xor esi, esi
mov rbx, rcx
test r8, r8
jne 0x14000e489
lea r9, [rax + 8]
mov qword [rax + 8], rsi
xor edx, edx
lea rcx, [0x14003ffa8]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x14000e4a4
mov rdx, qword [rsp + 0x30]
lea rdi, [rbx + 0xc0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], si
jne 0x14000e440
mov rcx, rdi
call fcn.140001dcc
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r8d, 1
lea rdx, [0x14003e46c]
mov rcx, rdi
call fcn.14000d820
mov r8d, 4
lea rdx, str.Zoom
mov rcx, rdi
call fcn.14000d820
jmp 0x14000e4a4
add rcx, 0xc0
cmp rcx, rdx
je 0x14000e4a4
cmp qword [rdx + 0x18], 8
jb 0x14000e49f
mov rdx, qword [rdx]
call fcn.140001dcc
lea r8, [rbx + 0xc0]
add rbx, 0xe0
cmp rbx, r8
je 0x14000e4d0
cmp qword [r8 + 0x18], 8
mov rdx, r8
jb 0x14000e4c4
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
mov rcx, rbx
call fcn.140001dcc
mov r8d, 6
lea rdx, str.data_
mov rcx, rbx
call fcn.14000d820
mov r8d, 0xb
lea rdx, str.Zoom.us.ini
mov rcx, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14000d820

Function at 0x14000f974
Capabilities:
Query service status

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140055180]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rcx, qword [rcx]
test rcx, rcx
je 0x14000f9bb
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov r9d, 0x24
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000f9bb
mov eax, dword [rsp + 0x54]
jmp 0x14000f9bd
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140019a80
add rsp, 0x78
ret

Function at 0x14000fb04
Capabilities:
Query service status

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140055180]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, qword [rcx]
test rcx, rcx
je 0x14000fb34
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14000fb34
mov eax, dword [rsp + 0x24]
jmp 0x14000fb36
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140019a80
add rsp, 0x58
ret
Function at 0x14000fb48
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140055180]
xor rax, rsp
mov qword [rbp + 0x160], rax
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
and dword [rsp + 0x30], 0
lea rcx, str.Wtsapi32.dll
mov rsi, r9
mov dword [rsp + 0x38], edx
mov rbx, r8
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor dil, dil
lea r8, [rsp + 0x30]
lea rdx, str.WTSQueryUserToken
call fcn.14000f69c
cmp dword [rsp + 0x30], 0
je 0x14000fc5b
test rbx, rbx
je 0x14000fc5b
lea rdx, str.Zoom
mov rcx, rbx
call fcn.140024e54
test eax, eax
je 0x14000fbe9
lea rdx, str.ZoomRooms
mov rcx, rbx
call fcn.140024e54
test eax, eax
jne 0x14000fc5b
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.14001bf30
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14000fc5b
test rsi, rsi
je 0x14000fc5b
mov edi, 0x104
lea r8, [0x14003e46c]
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140023ea0
mov r8, rbx
lea rcx, [rsp + 0x50]
mov edx, edi
call fcn.140023ea0
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, rsi
call fcn.140023f20
mov dil, 1
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000fc6b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140019a80
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000fe70
Capabilities:
Create service
Modify service

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x4b8
mov rax, qword [0x140055180]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
mov r14d, 0x208
mov r8d, r14d
lea rcx, [rsp + 0x290]
xor edx, edx
mov rdi, r9
call fcn.14001bf30
mov r8d, r14d
lea rcx, [rsp + 0x80]
xor edx, edx
call fcn.14001bf30
or rax, 0xffffffffffffffff
lea r14, [rbx + 0x70]
xor r15d, r15d
inc rax
cmp word [r14 + rax*2], r15w
jne 0x14000fed3
test rax, rax
je 0x14000ffab
test rsi, rsi
je 0x14000ffab
test rbp, rbp
je 0x14000ffab
lea rcx, [rsp + 0x80]
call fcn.1400024b4
test eax, eax
je 0x14000ffab
test rdi, rdi
je 0x14000ff31
mov r9, rdi
lea r8, [rsp + 0x80]
lea rdx, str.__s___s
lea rcx, [rsp + 0x290]
call fcn.14000571c
mov edi, 2
xor edx, edx
mov r8d, edi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x14000ffab
mov qword [rsp + 0x60], r15
lea rax, [rsp + 0x290]
mov qword [rsp + 0x58], r15
mov r9d, 0xf01ff
mov qword [rsp + 0x50], r15
mov r8, rbp
mov qword [rsp + 0x48], r15
mov rdx, r14
mov qword [rsp + 0x40], r15
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x14000ffcd
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.140019a80
add rsp, 0x4b8
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea r8, [rsp + 0x70]
mov qword [rsp + 0x70], rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x14000ffad

Function at 0x1400100a8
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor r8d, r8d
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
xor ebx, ebx
test eax, eax
je 0x1400100ee
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call fcn.14000fb04
inc ebx
cmp eax, 4
je 0x1400100eb
cmp ebx, 0x64
jl 0x1400100c9
cmp eax, 4
sete al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400101d8
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
or rax, 0xffffffffffffffff
lea rbx, [rcx + 0x70]
xor edi, edi
inc rax
cmp word [rbx + rax*2], di
jne 0x1400101ec
test rax, rax
je 0x14001023c
call fcn.14000fda0
test al, al
jne 0x140010207
mov al, 1
jmp 0x14001023c
mov r9d, 0xf01ff
lea rcx, [rsp + 0x20]
mov r8d, 2
mov rdx, rbx
call fcn.14000f778
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
lea rcx, [rsp + 0x20]
setne bl
call fcn.14000f7d4
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400133b4
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push r14
sub rsp, 0x40
mov r14d, edx
mov rbx, rcx
add rcx, 0x38
cmp dword [rcx + 0x28], 0
je 0x1400133e3
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor dil, dil
mov byte [rsp + 0x30], dil
cmp qword [rbx + 8], 0
jne 0x140013441
mov rcx, qword [rbx]
xor edx, edx
mov rsi, r14
test rcx, rcx
je 0x14001341b
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdx, rax
mov qword [rbx + 8], rax
test rdx, rdx
je 0x140013441
shr rsi, 1
mov al, byte [rsi + rdx]
mov byte [rsi + rdx], al
lea eax, [r14 - 1]
mov ecx, eax
mov al, byte [rax + rdx]
mov byte [rcx + rdx], al
mov dword [rbx + 0x14], r14d
mov dil, 1
mov byte [rsp + 0x30], dil
jmp 0x140013451
lea rcx, [rbx + 0x38]
cmp dword [rcx + 0x28], 0
je 0x140013461
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, dil
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140013e78
Capabilities:
Read .ini file

Disassembly:
mov r11d, r9d
mov r10, r8
lea r9, [rcx + 8]
mov rax, rdx
cmp qword [r9 + 0x18], 8
jb 0x140013e8f
mov r9, qword [r9]
cmp qword [r8 + 0x18], 8
jb 0x140013e99
mov r10, qword [r8]
cmp qword [rdx + 0x18], 8
jb case.default.0x140013eac
mov rax, qword [rdx]
mov r8d, r11d
mov rdx, r10
mov rcx, rax
jmp qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
invalid
iretd
sal dword [rcx], 1
add dl, byte [rdx]
pop rax
cmp dword [rbx + 0x4059ed1a], 0x75101aee
fsubr dword [rsi]
jnp 0x1400915b6
sal ch, cl
stosd dword [rdi], eax
jge case.0x140013ee9.8
invalid
cmc
call [rsi + rsi*8 - 0x1757b064]
cmp r13d, r14d
pushfq
in eax, 0xba
invalid
mov edx, 0x2a8db506
cmp eax, 0xbba76bf
invalid
invalid
mov edx, 0xf053cc0b
jl 0x140091538
in eax, dx
and eax, 0x2fab4024
ja 0x1400915dd
and byte es:[rdx], ch
and byte [rdx], ch
cmp al, 0x74
xor al, dh
out 0xeb, eax
jb 0x14009158e
pop rbx
and al, 0x7b
invalid

Function at 0x140013eb4
Capabilities:
Read .ini file

Disassembly:
push rbx
add rcx, 8
mov r10, r9
mov r11, r8
mov rbx, rdx
cmp qword [rcx + 0x18], 8
jb case.default.0x140013ee9
mov rcx, qword [rcx]
mov eax, dword [rsp + 0x38]
mov r8, r10
mov r9, qword [rsp + 0x30]
mov rdx, r11
mov qword [rsp + 0x38], rcx
mov rcx, rbx
mov dword [rsp + 0x30], eax
pop rbx
jmp qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
shr edi, 0x8a
invalid
Function at 0x14001445c
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
je 0x1400145ba
cmp di, word [rdx]
je 0x1400145ba
cmp qword [rcx + 8], rdi
je 0x140014490
call fcn.140014378
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov rcx, rsi
mov dword [rsp + 0x20], 3
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov qword [rbx], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400145ba
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0x40
jb 0x1400145ba
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov dword [rsp + 0x20], esi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov qword [rbx + 0x18], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400145ba
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 8], rax
mov rdx, rax
test rax, rax
je 0x1400145ba
lea r9, [rsi + rax]
mov qword [rbx + 0x10], r9
cmp dword [rax + 0x3c], 0x40
jb 0x1400145ba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
mov qword [rbx + 0x20], rcx
lea rax, [rcx + 0xf8]
cmp r9, rax
jb 0x1400145ba
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400145ba
cmp dword [rcx], 0x4550
jne 0x1400145ba
mov eax, 0x14c
cmp word [rcx + 4], ax
je 0x140014594
mov eax, 0x8664
cmp word [rcx + 4], ax
je 0x14001458a
mov eax, 0xaa64
cmp word [rcx + 4], ax
jne 0x1400145ba
mov dil, 1
mov eax, 0x108
jmp 0x140014599
mov eax, 0xf8
lea r8, [rcx + rax]
mov byte [rbx + 0x30], dil
mov qword [rbx + 0x28], r8
movzx ecx, word [rcx + 6]
lea rdx, [rcx + rcx*4]
lea rcx, [r8 + rdx*8]
cmp r9, rcx
jb 0x1400145ba
mov al, 1
jmp 0x1400145c4
mov rcx, rbx
call fcn.140014378
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140017ab0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140055180]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [rcx + 0x18], 0
mov r14, rdx
mov rsi, rcx
je 0x140017c2c
cmp byte [rcx + 0x8c], 0
mov ebp, dword [rdx + 0x10]
je 0x140017c0b
mov edx, dword [rcx + 0x98]
mov ecx, dword [rcx + 0x84]
lea eax, [rdx + rbp]
cmp eax, ecx
jle 0x140017c0b
mov ebx, dword [rsi + 0x88]
cmp ebx, 1
jne 0x140017b6a
sub ecx, edx
movsxd rbx, ecx
mov rcx, rbx
call fcn.140019d34
mov r8, rbx
mov edx, 0x20
mov rcx, rax
mov rdi, rax
call fcn.14001bf30
mov r9, qword [rsi + 0x18]
mov r8, rbx
mov edx, 1
mov rcx, rdi
call fcn.140024a14
mov rcx, rdi
call fcn.140019aa0
mov rcx, qword [rsi + 0x18]
xor r8d, r8d
xor edx, edx
call fcn.140025708
and dword [rsi + 0x98], 0
jmp 0x140017c0b
jle 0x140017c0b
mov rcx, rsi
call fcn.1400171cc
mov rcx, rsi
call fcn.140017564
test al, al
je 0x140017c0b
cmp dword [rsi + 0x9c], ebx
jle 0x140017c0b
lea rdi, [rsi + 0xa0]
mov rax, qword [rdi]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140017c0b
and qword [rsp + 0x20], 0
lea rdx, [rbx + 0x28]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x20]
and qword [rsp + 0x38], 0
call fcn.14000d744
mov rdx, rbx
mov rcx, rdi
call fcn.140017118
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140017c0b
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017c06
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017c4e
call fcn.140019aa0
cmp qword [r14 + 0x18], 0x10
jb 0x140017c15
mov r14, qword [r14]
mov r9b, 1
mov r8d, ebp
mov rdx, r14
mov rcx, rsi
call fcn.140017f38
add dword [rsi + 0x98], ebp
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140019a80
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140023e28
int3

Function at 0x140017f38
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, rdx
movsxd r8, r8d
mov bl, r9b
mov rdi, rcx
mov r9, qword [rcx + 0x18]
mov edx, 1
mov rcx, rax
call fcn.140024a14
test bl, bl
je 0x140017f6c
mov rcx, qword [rdi + 0x18]
call fcn.140025498
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140017ffc
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rdx, [rsp + 0x20]
mov rdi, rcx
call fcn.140017fd0
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x140018070
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140018070
mov edx, 0x1d4c0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140018054
mov eax, dword [rbx + 0x10]
mov edi, 1
mov dword [0x1400570a0], eax
mov edx, edi
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x140018075
mov rcx, rdi
call fcn.1400180cc
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [rsp + 0x48]
jmp 0x140018075
mov edi, 1
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1400180bf
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400180bf
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
mov rax, qword [rbx]
mov rax, qword [rax]
call qword [0x14003d600]
or ecx, 0xffffffff
lock xadd dword [rbx + 0xc], ecx
cmp ecx, 1
jne 0x1400180bf
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx]
mov rax, qword [rdx + 8]
call qword [0x14003d600]
mov rbx, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x30
pop rdi
ret

Function at 0x1400181fc
Capabilities:
Create thread
Resume thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x30
mov r9, qword [rcx]
lea r8, [0x1400182e0]
mov rsi, rdx
mov rdi, rcx
xor edx, edx
xor ecx, ecx
lea rax, [r9 + 0x10]
mov qword [r11 - 0x10], rax
mov dword [rsp + 0x20], 4
call fcn.140025d3c
mov rcx, rax
test rax, rax
je 0x1400182b7
mov rax, qword [rdi]
mov rdx, rsi
mov qword [rax + 8], rcx
mov rcx, qword [rdi]
add rcx, 0x18
call fcn.14000af1c
mov rax, qword [rdi]
xor ecx, ecx
mov ebp, dword [rax + 0x10]
lea rax, [0x140056fd0]
cmp dword [rax], 0
je 0x140018284
inc ecx
lea rdx, [0x1400570e0]
add rax, 0x44
cmp rax, rdx
jl 0x14001826b
jmp 0x1400182a8
movsxd rax, ecx
lea r14, [0x140056f90]
imul rbx, rax, 0x44
mov r8, rsi
mov edx, 0x40
lea rcx, [rbx + r14]
call fcn.140024b70
mov dword [rbx + r14 + 0x40], ebp
mov rcx, qword [rdi]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14001bb20
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0
cmp qword [rsp + 0x50], 0
je 0x14001bc37
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add eax, 1
mov edx, eax
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
add rdx, rcx
shl rdx, 1
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14001bb96
xor eax, eax
jmp 0x14001bc3c
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
sub eax, 1
mov ecx, eax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + rcx*2]
cmp eax, 0x5c
je 0x14001bbdd
mov edx, dword [rsp + 0x30]
mov ecx, 0x5c
mov rax, qword [rsp + 0x28]
mov word [rax + rdx*2], cx
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], 0
jmp 0x14001bbf2
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
cmp rdx, rcx
jae 0x14001bc37
mov edi, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x20]
mov eax, dword [rsp + 0x30]
add eax, ecx
mov edx, eax
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + rdi*2]
mov word [rcx + rdx*2], ax
jmp 0x14001bbe7
mov rax, qword [rsp + 0x28]
add rsp, 0x40
pop rdi
ret
Function at 0x14001e8a0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, r8
lea rax, [rsp + 0x50]
xor r8d, r8d
mov rbx, r9
mov qword [rsp + 0x40], r8
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r8
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001e95b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14001e940
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.RegSetValueEx_failed_n
call fcn.14001d900
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.RegOpenKeyEx_failed:_Registry_Key_does_not_found_n
call fcn.14001d900
mov rbx, qword [rsp + 0x70]
xor eax, eax
add rsp, 0x60
pop rdi
ret