joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001e9c
Capabilities:
Query service status

Disassembly:
jmp 0x140013c00
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
mov rdi, rsp
mov ecx, 0x38
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov rax, qword [0x1401dc280]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x2c]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xf0]
add rax, 8
mov rcx, rax
call fcn.14000110e
mov r8d, 0xf003f
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400014a1
nop
lea rcx, [rsp + 0x68]
call fcn.140001dc5
test rax, rax
je 0x140013caf
mov dword [rsp + 0xc0], 1
jmp 0x140013cba
mov dword [rsp + 0xc0], 0
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x74], 0
jne 0x140013ced
mov dword [rsp + 0xa8], 0
lea rcx, [rsp + 0x68]
call fcn.1400021bc
mov eax, dword [rsp + 0xa8]
jmp 0x140013e66
xor eax, eax
test eax, eax
jne 0x140013c93
mov rax, qword [rsp + 0xf0]
mov rcx, rax
call fcn.14000110e
mov qword [rsp + 0xc8], rax
lea rcx, [rsp + 0x68]
call fcn.140001dc5
mov r8d, 4
mov rcx, qword [rsp + 0xc8]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.1400014a1
nop
lea rcx, [rsp + 0x88]
call fcn.140001dc5
test rax, rax
je 0x140013d5f
mov dword [rsp + 0xd0], 1
jmp 0x140013d6a
mov dword [rsp + 0xd0], 0
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x94], eax
cmp dword [rsp + 0x94], 0
jne 0x140013db1
mov dword [rsp + 0xac], 0
lea rcx, [rsp + 0x88]
call fcn.1400021bc
nop
lea rcx, [rsp + 0x68]
call fcn.1400021bc
mov eax, dword [rsp + 0xac]
jmp 0x140013e66
xor eax, eax
test eax, eax
jne 0x140013d40
lea rcx, [rsp + 0x88]
call fcn.140001dc5
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140013de3
mov dword [rsp + 0xd4], 1
jmp 0x140013dee
mov dword [rsp + 0xd4], 0
mov eax, dword [rsp + 0xd4]
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0
jne 0x140013e32
mov dword [rsp + 0xb0], 0
lea rcx, [rsp + 0x88]
call fcn.1400021bc
nop
lea rcx, [rsp + 0x68]
call fcn.1400021bc
mov eax, dword [rsp + 0xb0]
jmp 0x140013e66
xor eax, eax
test eax, eax
jne 0x140013db7
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0xb4], eax
lea rcx, [rsp + 0x88]
call fcn.1400021bc
nop
lea rcx, [rsp + 0x68]
call fcn.1400021bc
mov eax, dword [rsp + 0xb4]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14016bc50]
call fcn.14009d1e0
mov rax, rdi
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1400a2180
add rsp, 0xe0
pop rdi
ret
Function at 0x140002158
Capabilities:
Get file version info

Disassembly:
jmp 0x14001c590
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x80]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x80]
add rax, 4
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x80]
cmp dword [rax + 8], 0
je 0x14001c712
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 8]
mov qword [rsp + 0x60], rax
mov eax, 2
mov rcx, qword [rsp + 0x60]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14004f5f0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x10], 0
je 0x14001c710
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x10]
mov rax, qword [rsp + 0x80]
mov r8d, dword [rax + 8]
mov rax, qword [rsp + 0x80]
mov edx, dword [rax + 4]
mov rcx, qword [rsp + 0x88]
call sub.VERSION.dll_GetFileVersionInfoW
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x48]
lea rdx, [0x1401788a8]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0x10]
call sub.VERSION.dll_VerQueryValueW
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0x18], rcx
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x48]
lea rdx, str.VarFileInfoTranslation
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0x10]
call sub.VERSION.dll_VerQueryValueW
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax]
mov ecx, 2
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x48]
movzx ecx, word [rdx + rcx]
shl ecx, 0x10
add eax, ecx
mov rcx, qword [rsp + 0x80]
mov dword [rcx], eax
jmp 0x14001c722
mov rax, qword [rsp + 0x80]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x80]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140177330]
call fcn.14009d1e0
mov rax, rdi
add rsp, 0x70
pop rdi
ret

Function at 0x1400021f8
Capabilities:
Print debug messages

Disassembly:
jmp 0x140022c50
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
mov eax, 0x4090
call fcn.1400ab620
sub rsp, rax
mov rdi, rsp
mov ecx, 0x1024
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40a0]
mov rax, qword [0x1401dc280]
xor rax, rsp
mov qword [rsp + 0x4080], rax
lea rax, [rsp + 0x40a8]
mov qword [rsp + 0x28], rax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40a0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wvsprintfW]
lea r8, [rsp + 0x50]
lea rdx, str._s_r_n
lea rcx, [rsp + 0x2070]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x2070]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rsp
lea rdx, [0x140175db0]
call fcn.14009d1e0
mov rcx, qword [rsp + 0x4080]
xor rcx, rsp
call fcn.1400a2180
add rsp, 0x4090
pop rdi
ret
Function at 0x14000222a
Capabilities:
Check for time delay via gettickcount

Disassembly:
jmp 0x140022ac0
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rdi, rsp
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x98]
mov r8d, dword [rsp + 0x80]
mov edx, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x140022b6b
cmp dword [rsp + 0x50], 0x20
jne 0x140022b6b
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x140022b6b
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x140022b91
cmp dword [rsp + 0x50], 0x20
jne 0x140022b91
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x40]
cmp eax, dword [rsp + 0xa8]
jb 0x140022af6
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x48]
add rsp, 0x60
pop rdi
ret

Function at 0x140002392
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400362e0
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rdi, rsp
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
je 0x140036322
mov dword [rsp + 0x58], 1
jmp 0x14003632a
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140036345
lea rax, str.m_h___0
test rax, rax
jne 0x14003637f
lea rax, str.__atl_condVal_m_h___0_
mov qword [rsp + 0x28], rax
lea rax, [0x14016bf04]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x9d
lea rdx, str.C:Program_Files__x86_Microsoft_Visual_Studio_12.0VC_atlmfcinclude_atlfile.h
mov ecx, 2
call fcn.14009c570
cmp eax, 1
jne 0x14003637f
int3
cmp dword [rsp + 0x30], 0
jne 0x140036390
mov ecx, 0x80004005
call fcn.1400020ae
xor eax, eax
test eax, eax
jne 0x14003630d
xor eax, eax
test eax, eax
jne 0x14003639a
xor eax, eax
test eax, eax
jne 0x14003630d
cmp qword [rsp + 0x88], 0
jne 0x1400363c2
lea rax, [rsp + 0x44]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x88]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x140036400
call fcn.140001262
jmp 0x140036402
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401749f0]
call fcn.14009d1e0
mov rax, rdi
add rsp, 0x60
pop rdi
ret
Function at 0x14000a690
Capabilities:
Check for time delay via gettickcount

Disassembly:
jmp 0x14000a690
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, rsp
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
mov byte [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x34], eax
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x14000a6d9
mov rcx, qword [rsp + 0x50]
call fcn.1400012fd
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.14000226b
movzx eax, al
test eax, eax
je 0x14000a6f5
mov al, 1
jmp 0x14000a7c4
cmp dword [rsp + 0x60], 0xffffffff
jne 0x14000a706
mov dword [rsp + 0x38], 0xffffffff
jmp 0x14000a735
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x60], eax
ja 0x14000a725
xor al, al
jmp 0x14000a7c4
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 8]
test rax, rax
jne 0x14000a77d
lea rax, str.m_hSemaphore
mov qword [rsp + 0x28], rax
lea rax, [0x140164d5c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x3c
lea rdx, str...CommonCritSectEx.cpp
mov ecx, 2
call fcn.14009c570
cmp eax, 1
jne 0x14000a77d
int3
mov edx, dword [rsp + 0x38]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x14000a7a7
cmp dword [rsp + 0x3c], 0x102
je 0x14000a7ae
jmp 0x14000a7b5
mov byte [rsp + 0x30], 0
jmp 0x14000a7bf
mov byte [rsp + 0x30], 1
jmp 0x14000a7bf
mov ecx, 1
call fcn.140001b7c
jmp 0x14000a6c6
add rsp, 0x40
pop rdi
ret
Function at 0x14000ac70
Capabilities:
Terminate thread

Disassembly:
jmp 0x14000ac70
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x80]
add rax, 0x48
mov rcx, rax
call fcn.140001bc7
mov rax, qword [rsp + 0x80]
add rax, 0x50
mov rcx, rax
call fcn.1400013bb
mov edx, 0x1388
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x14000acd6
mov dword [rsp + 0x60], 1
jmp 0x14000acde
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000213a
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x20], 0
je 0x14000ad14
lea rax, str.WaitForSingleObject_m_hMainThread__5000______DWORD_0xFFFFFFFF_
test rax, rax
je 0x14000ad14
mov dword [rsp + 0x64], 1
jmp 0x14000ad1c
mov dword [rsp + 0x64], 0
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x14000ad50
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x54]
call fcn.14000159b
mov eax, dword [rax]
mov dword [rsp + 0x50], eax
lea rdx, [0x1401db250]
lea rcx, [rsp + 0x50]
call fcn.1400a1400
xor eax, eax
test eax, eax
jne 0x14000acf7
xor eax, eax
test eax, eax
jne 0x14000aca5
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x80]
add rax, 0x50
mov rcx, rax
call fcn.1400013bb
lea rdx, [rsp + 0x34]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x14000ad98
mov dword [rsp + 0x68], 1
jmp 0x14000ada0
mov dword [rsp + 0x68], 0
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x44], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000213a
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x44], 0
je 0x14000add6
lea rax, str.GetExitCodeThread_m_hMainThread__dwExitCode_
test rax, rax
je 0x14000add6
mov dword [rsp + 0x6c], 1
jmp 0x14000adde
mov dword [rsp + 0x6c], 0
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jne 0x14000ae12
mov edx, dword [rsp + 0x48]
lea rcx, [rsp + 0x5c]
call fcn.14000159b
mov eax, dword [rax]
mov dword [rsp + 0x58], eax
lea rdx, [0x1401db250]
lea rcx, [rsp + 0x58]
call fcn.1400a1400
xor eax, eax
test eax, eax
jne 0x14000adb9
xor eax, eax
test eax, eax
jne 0x14000ad68
cmp dword [rsp + 0x34], 0x103
jne 0x14000ae4b
mov rax, qword [rsp + 0x80]
add rax, 0x50
mov rcx, rax
call fcn.1400013bb
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rsp
lea rdx, [0x1401691c0]
call fcn.14009d1e0
add rsp, 0x70
pop rdi
ret
Function at 0x140012120
Capabilities:
Create thread

Disassembly:
jmp 0x140012120
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.1400a0d10
add rsp, 0x30
pop rdi
ret
Function at 0x140019120
Capabilities:
Query service status
Resolve function by parsing pe exports

Disassembly:
jmp 0x140019120
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rdi, rsp
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 4]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x24], eax
xor eax, eax
cmp eax, 1
je 0x1400192f8
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140019197
mov dword [rsp + 0x48], 1
jmp 0x14001919f
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000213a
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x28], 0
je 0x1400191d5
lea rax, str.QueryServiceStatus_hService__status_
test rax, rax
je 0x1400191d5
mov dword [rsp + 0x4c], 1
jmp 0x1400191dd
mov dword [rsp + 0x4c], 0
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140019211
mov edx, dword [rsp + 0x2c]
lea rcx, [rsp + 0x44]
call fcn.14000159b
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
lea rdx, [0x1401db250]
lea rcx, [rsp + 0x40]
call fcn.1400a1400
xor eax, eax
test eax, eax
jne 0x1400191b8
xor eax, eax
test eax, eax
jne 0x140019176
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x70]
cmp dword [rax + 4], ecx
jne 0x14001923c
mov eax, 1
jmp 0x1400192fd
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x78]
cmp eax, dword [rsp + 0x80]
jbe 0x140019256
xor eax, eax
jmp 0x1400192fd
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x20], eax
je 0x140019287
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 4]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x38], eax
jmp 0x1400192ad
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x24]
cmp dword [rax + 0x14], ecx
jb 0x1400192a9
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x24], eax
jmp 0x1400192ad
xor eax, eax
jmp 0x1400192fd
xor edx, edx
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x18]
mov ecx, 0xa
div ecx
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0x3e8
jae 0x1400192d7
mov dword [rsp + 0x3c], 0x3e8
cmp dword [rsp + 0x3c], 0x2710
jbe 0x1400192e9
mov dword [rsp + 0x3c], 0x2710
mov ecx, dword [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001916b
mov eax, 1
add rsp, 0x50
pop rdi
ret
Function at 0x14001c590
Capabilities:
Get file version info

Disassembly:
jmp 0x14001c590
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x80]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x80]
add rax, 4
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x80]
cmp dword [rax + 8], 0
je 0x14001c712
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 8]
mov qword [rsp + 0x60], rax
mov eax, 2
mov rcx, qword [rsp + 0x60]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14004f5f0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x10], 0
je 0x14001c710
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x10]
mov rax, qword [rsp + 0x80]
mov r8d, dword [rax + 8]
mov rax, qword [rsp + 0x80]
mov edx, dword [rax + 4]
mov rcx, qword [rsp + 0x88]
call sub.VERSION.dll_GetFileVersionInfoW
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x48]
lea rdx, [0x1401788a8]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0x10]
call sub.VERSION.dll_VerQueryValueW
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0x18], rcx
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x48]
lea rdx, str.VarFileInfoTranslation
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0x10]
call sub.VERSION.dll_VerQueryValueW
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax]
mov ecx, 2
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x48]
movzx ecx, word [rdx + rcx]
shl ecx, 0x10
add eax, ecx
mov rcx, qword [rsp + 0x80]
mov dword [rcx], eax
jmp 0x14001c722
mov rax, qword [rsp + 0x80]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x80]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140177330]
call fcn.14009d1e0
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x140022960
Capabilities:
Set environment variable

Disassembly:
jmp 0x140022960
push rdi
sub rsp, 0x60
mov rdi, rsp
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov qword [rsp + 0x48], 0xfffffffffffffffe
lea rcx, [rsp + 0x38]
call fcn.14000200e
nop
mov r8d, 0x9b9
lea rdx, [0x140178d78]
lea rcx, [rsp + 0x38]
call fcn.14000151e
lea rcx, [rsp + 0x38]
call fcn.14000110e
mov qword [rsp + 0x50], rax
lea rcx, [0x1401e3338]
call fcn.14000110e
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x1400229da
mov dword [rsp + 0x58], 1
jmp 0x1400229e2
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x1400229fd
lea rax, str.SetEnvironmentVariableW_Common::BuildNumberEnvironmentVariableName__sBuild_
test rax, rax
jne 0x140022a37
lea rax, str.__atl_condVal_SetEnvironmentVariableW_Common::BuildNumberEnvironmentVariableName__sBuild__
mov qword [rsp + 0x28], rax
lea rax, [0x14016bf04]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 7
lea rdx, str.c:_buildagentwork6ef1b807bd9726a1commonCommon.inl
mov ecx, 2
call fcn.14009c570
cmp eax, 1
jne 0x140022a37
int3
cmp dword [rsp + 0x44], 0
jne 0x140022a48
mov ecx, 0x80004005
call fcn.1400020ae
xor eax, eax
test eax, eax
jne 0x1400229a0
lea rcx, [rsp + 0x38]
call fcn.14000119a
mov rcx, rsp
lea rdx, [0x140178420]
call fcn.14009d1e0
add rsp, 0x60
pop rdi
ret

Function at 0x140022ac0
Capabilities:
Check for time delay via gettickcount

Disassembly:
jmp 0x140022ac0
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rdi, rsp
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x98]
mov r8d, dword [rsp + 0x80]
mov edx, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x140022b6b
cmp dword [rsp + 0x50], 0x20
jne 0x140022b6b
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x140022b6b
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x140022b91
cmp dword [rsp + 0x50], 0x20
jne 0x140022b91
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x40]
cmp eax, dword [rsp + 0xa8]
jb 0x140022af6
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x48]
add rsp, 0x60
pop rdi
ret
Function at 0x140022c50
Capabilities:
Print debug messages

Disassembly:
jmp 0x140022c50
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
mov eax, 0x4090
call fcn.1400ab620
sub rsp, rax
mov rdi, rsp
mov ecx, 0x1024
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40a0]
mov rax, qword [0x1401dc280]
xor rax, rsp
mov qword [rsp + 0x4080], rax
lea rax, [rsp + 0x40a8]
mov qword [rsp + 0x28], rax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40a0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wvsprintfW]
lea r8, [rsp + 0x50]
lea rdx, str._s_r_n
lea rcx, [rsp + 0x2070]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x2070]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rsp
lea rdx, [0x140175db0]
call fcn.14009d1e0
mov rcx, qword [rsp + 0x4080]
xor rcx, rsp
call fcn.1400a2180
add rsp, 0x4090
pop rdi
ret