joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460c6f
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x56600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 0x548ed8
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
jne 0x460cb6
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x548ed8
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
jne 0x460cb6
xor al, al
jmp 0x460d25
or dword [ebp - 0x20], 0xffffffff
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x20], 0xffffffff
je 0x460cd4
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00455432
mov eax, dword [ebp - 0xc]
add eax, eax
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 8], 8
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push 0x7d0
push 0x20
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x4a
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00455d7e
test esi, esi
setne al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00478339
leave
ret
Function at 0x4649cf
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x56600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x1d]
push eax
lea eax, [ebp + 8]
push eax
and dword [esi], 0
lea ecx, [ebp - 0x1c]
call fcn.004580eb
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x1c]
push esi
cmovae ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea ecx, [ebp - 0x1c]
mov dword [esi + 4], eax
call fcn.00455d7e
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00478339
leave
ret 8
Function at 0x472eff
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x472f11
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jb 0x472f4a
cmp eax, 4
jbe 0x472f27
cmp eax, 6
jne 0x472f4a
cmp dword [esi + 0x14], 8
jb 0x472f2f
mov esi, dword [esi]
push 0
push 0
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x472f4a
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
jmp 0x472f4e
xor eax, eax
xor edx, edx
pop esi
leave
ret

Function at 0x476134
Capabilities:
Check if file exists

Disassembly:
push 0x58
mov eax, 0x5019cd
call fcn.004fb730
mov ebx, dword [ebp + 8]
lea eax, [ecx + 8]
cmp dword [eax + 0x14], 8
mov ecx, eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x64], eax
jb 0x476156
mov ecx, dword [eax]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [ebp - 0x5d]
push eax
lea eax, [ebp + 0x1c]
push eax
jne 0x476172
mov ecx, ebx
call fcn.004580eb
jmp 0x4761d5
lea ecx, [ebp - 0x5c]
call fcn.004580eb
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x5d]
push eax
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x44]
call fcn.004580eb
mov esi, eax
lea eax, [ebp - 0x5d]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004580eb
push dword [ebp - 0x64]
mov edx, eax
mov byte [ebp - 4], 2
push 0x513
push edi
push esi
mov ecx, ebx
call fcn.004ca48a
lea ecx, [ebp - 0x2c]
call fcn.00455d7e
lea ecx, [ebp - 0x44]
call fcn.00455d7e
lea ecx, [ebp - 0x5c]
call fcn.00455d7e
mov eax, ebx
call fcn.004fb6da
ret 0x1c
Function at 0x4762cd
Capabilities:
Check if file exists

Disassembly:
push 0x8c
mov eax, 0x502aba
call fcn.004fb730
mov edi, ecx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 7
xor ebx, ebx
mov word [ebp - 0x28], ax
push str.SettingsGamesApp.ini
mov dword [ebp - 0x18], ebx
call fcn.00455536
push ebx
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], ebx
call fcn.004ca5b1
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.004ca7c7
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x98]
call fcn.004b5022
lea esi, [edi + 8]
mov byte [ebp - 0x74], bl
push dword [ebp - 0x74]
lea eax, [ebp - 0x98]
mov dword [edi + 4], ebx
mov dword [edi], 0x54c304
mov ecx, esi
push eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.00455bd7
lea ecx, [ebp - 0x98]
call fcn.00455d7e
lea ecx, [ebp - 0x58]
call fcn.00455d7e
lea ecx, [ebp - 0x70]
call fcn.00455d7e
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4763b7
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ecx
cmp eax, 0x1000
jb 0x4763ae
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00455f19
mov eax, dword [ebp - 0x78]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x74]
push eax
push ecx
call fcn.0047834a
pop ecx
pop ecx
xor eax, eax
mov dword [edi], 0x54c304
cmp dword [esi + 0x14], 8
mov word [ebp - 0x28], ax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
jb 0x4763d8
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.004b50f5
mov byte [ebp - 4], 7
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x476404
lea ecx, [ebp - 0x40]
call fcn.0047625b
lea ecx, [ebp - 0x40]
call fcn.00455d7e
mov eax, edi
call fcn.004fb6da
ret

Function at 0x4766d2
Capabilities:
Get process image filename

Disassembly:
push 0x424
mov eax, 0x502b28
call fcn.004fb730
mov esi, ecx
mov dword [ebp - 0x42c], esi
push edx
xor ebx, ebx
mov dword [ebp - 0x42c], esi
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x47678e
push edi
lea ecx, [ebp - 0x42c]
call fcn.0045c011
mov eax, 0x208
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x428]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
jle 0x476783
mov ecx, 0x208
cmp eax, ecx
cmovg eax, ecx
add eax, eax
cmp eax, 0x412
jae 0x4767a5
xor ecx, ecx
mov word [ebp + eax - 0x428], cx
lea eax, [ebp - 0x428]
push ecx
push ecx
mov edx, esp
mov ecx, eax
mov dword [edx], eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x47675d
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.004b5267
lea ecx, [ebp - 0x42c]
call fcn.004ac292
jmp 0x47679d
lea ecx, [ebp - 0x42c]
call fcn.004ac292
xor eax, eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, esi
call fcn.004fb6da
ret
call fcn.0047892b
int3
Function at 0x4767ab
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push ecx
xor ebx, ebx
push ebx
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4767ca
xor al, al
jmp 0x4767fe
push esi
lea ecx, [ebp - 4]
call fcn.0045c011
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4767f4
push 0x7d0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
setne bl
lea ecx, [ebp - 4]
call fcn.004ac292
mov al, bl
pop esi
pop ebx
leave
ret

Function at 0x4768df
Capabilities:
Enumerate gui resources

Disassembly:
push 0x34
mov eax, 0x502b9b
call fcn.004fb730
mov edi, ecx
lea eax, [ebp - 0x38]
xor ebx, ebx
push eax
push 0x4768b2
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
cmp esi, eax
je 0x476983
mov eax, dword [esi]
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
call fcn.004766d2
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x47693f
mov ecx, dword [edi]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004d7d5a
pop ecx
pop ecx
test eax, eax
jne 0x476964
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_IsHungAppWindow]
test eax, eax
jne 0x476976
lea ecx, [ebp - 0x28]
call fcn.00455d7e
add esi, 4
cmp esi, dword [ebp - 0x40]
jne 0x476917
jmp 0x476980
lea ecx, [ebp - 0x28]
call fcn.00455d7e
mov bl, 1
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x476998
mov ecx, dword [ebp - 0x30]
sub ecx, esi
and ecx, 0xfffffffc
push ecx
push esi
call fcn.00455f3d
pop ecx
pop ecx
mov al, bl
call fcn.004fb6da
ret
Function at 0x4769a0
Capabilities:
Enumerate gui resources

Disassembly:
push 0xb4
mov eax, 0x502bda
call fcn.004fb730
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, 0x8002
mov dword [ebp - 0xc0], eax
lea ecx, [ebp - 0x32]
call fcn.0045b8b7
lea ecx, [ebp - 0xa9]
push ecx
lea ecx, [ebp - 0x32]
push ecx
push eax
lea ecx, [ebp - 0x8c]
call fcn.0045b9b0
push 7
pop esi
xor edi, edi
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], edi
xor eax, eax
push 0x54c308
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], esi
mov word [ebp - 0x74], ax
call fcn.00455536
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0xc0]
lea ecx, [ebp - 0xa4]
call fcn.0045b76a
mov eax, dword [ebp - 0x60]
cmp eax, 8
jb 0x476a6f
mov ecx, dword [ebp - 0x74]
lea eax, [eax*2 + 2]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xa8], ecx
cmp eax, 0x1000
jb 0x476a66
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00455f19
mov eax, dword [ebp - 0xbc]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xa8]
push eax
push ecx
call fcn.0047834a
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x64], edi
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x60], esi
mov word [ebp - 0x74], ax
call fcn.00455d7e
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], edi
push eax
push 0x4768b2
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb0], edi
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0xb8]
mov ebx, dword [ebp - 0xb4]
cmp esi, ebx
je 0x476b35
mov edi, dword [esi]
lea eax, [ebp - 0xa8]
and dword [ebp - 0xa8], 0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0xc0]
cmp dword [ebp - 0xa8], eax
jne 0x476b26
push 0x10
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x476b26
push 0xf
pop ecx
cmp eax, ecx
cmovg eax, ecx
add eax, eax
cmp eax, 0x20
jae 0x476b70
xor ecx, ecx
mov word [ebp + eax - 0x30], cx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xa4]
call fcn.004582e4
test al, al
je 0x476b26
push 0
push 0
push 0x10
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
add esi, 4
cmp esi, ebx
jne 0x476aba
mov esi, dword [ebp - 0xb8]
xor edi, edi
test esi, esi
je 0x476b5f
mov eax, dword [ebp - 0xb0]
sub eax, esi
and eax, 0xfffffffc
push eax
push esi
call fcn.00455f3d
pop ecx
pop ecx
mov dword [ebp - 0xb8], edi
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb0], edi
lea ecx, [ebp - 0xa4]
call fcn.00455d7e
call fcn.004fb6da
ret
call fcn.0047892b
int3
Function at 0x4ac85b
Capabilities:
Get file version info

Disassembly:
push 0x42c
mov eax, 0x508325
call fcn.004fb730
push str.mshtml.dll
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4ac971
push 0x207
lea eax, [ebp - 0x420]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
lea eax, [ebp - 0x420]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
lea ecx, [ebp - 0x430]
lea esi, [eax + 1]
xor eax, eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x421]
push eax
push esi
call fcn.0045b6ea
and dword [ebp - 4], ebx
lea eax, [ebp - 0x420]
push dword [ebp - 0x430]
push esi
xor esi, esi
push esi
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4ac91f
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], esi
push eax
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], esi
push eax
push 0x548a84
push dword [ebp - 0x430]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4ac91f
mov eax, dword [ebp - 0x434]
mov ebx, dword [eax + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x430]
test ecx, ecx
je 0x4ac971
mov edx, dword [ebp - 0x428]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4ac956
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ac979
push edx
push ecx
call fcn.0047834a
pop ecx
pop ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x428], esi
mov eax, ebx
call fcn.004fb6da
ret
call fcn.004d7bfa
int3

Function at 0x4acc07
Capabilities:
Enumerate process modules

Disassembly:
push 0x1c
mov eax, 0x508493
call fcn.004fb6fc
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor ebx, ebx
lea eax, [ebp - 0xd]
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x28]
push eax
push 0x200
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.004ac384
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], ebx
jmp 0x4acc67
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
sar ecx, 2
mov eax, ecx
shl eax, 2
cmp edx, eax
jne 0x4accbd
lea eax, [ecx + ecx]
lea ecx, [ebp - 0xd]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004ac426
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
sub eax, dword [ebp - 0x28]
push ecx
and eax, 0xfffffffc
push eax
push dword [ebp - 0x28]
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
jne 0x4acc42
mov eax, dword [ebp - 0x28]
mov ecx, esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004ac5a1
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4accb5
mov edx, dword [ebp - 0x20]
sub edx, ecx
and edx, 0xfffffffc
call fcn.004ac011
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov eax, esi
call fcn.004fb6c5
ret
lea eax, [ebp - 0xd]
shr edx, 2
push eax
push edx
lea ecx, [ebp - 0x28]
call fcn.004ac426
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004ac5a1
jmp 0x4acc92
Function at 0x4acdf2
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x24], 9
je 0x4ace1b
cmp word [ebp - 0x24], 6
je 0x4ace1b
cmp word [ebp - 0x24], 7
je 0x4ace1b
xor al, al
leave
ret
mov al, 1
leave
ret

Function at 0x4ad21c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5085cd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x56600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ad2a3
cmp dword [ebp + 0x10], 1
je 0x4ad278
cmp dword [ebp + 0x10], 2
jne 0x4ad293
mov ecx, dword [ebp - 0x10]
test esi, esi
je 0x4ad29d
test ecx, ecx
je 0x4ad298
test cl, 1
jne 0x4ad293
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x4ad29d
push 0xd
pop eax
jmp 0x4ad2a3
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4ad438
Capabilities:
Delete file

Disassembly:
push 0xf4
mov eax, 0x50860a
call fcn.004fb730
mov dword [ebp - 0xfc], edx
mov esi, ecx
xor ebx, ebx
xor edi, edi
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4ad45d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4ad47d
inc ebx
add edi, 0x32
cmp ebx, dword [ebp - 0xfc]
jae 0x4ad485
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4ad453
mov al, 1
call fcn.004fb6da
ret
push esi
mov edx, str.Could_not_DeleteFileW__
lea ecx, [ebp - 0x40]
call fcn.004ad389
and dword [ebp - 4], 0
mov edx, eax
push 0x548818
lea ecx, [ebp - 0x28]
call fcn.004ad34d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x100]
push ecx
mov ecx, eax
call fcn.00457f7a
push str.WT::System::IO::CFile::DeleteAFile
push 0x20
push str.E:_bamboo_agent_home_2xml_data_build_dirPGSC_MON_JOB1monolith_sourcePhoenixWtSystemIoFile.cpp
push dword [eax + 4]
lea ecx, [ebp - 0x9c]
push dword [eax]
call fcn.004b3ef8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00455362
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.00455362
lea ecx, [ebp - 0x9c]
call fcn.004b4228
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0xf8]
call fcn.004b3c43
push 0x5626ac
lea eax, [ebp - 0xf8]
push eax
call fcn.004d4a8e
int3

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x4ad523
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad536
test al, 0x10
jne 0x4ad536
mov al, 1
ret
xor al, al
ret
Function at 0x4b0775
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x114
mov eax, 0x5093f6
call fcn.004fb730
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x118], ebx
mov eax, esi
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x11c], 4
cmp dword [esi + 0x14], 8
jb 0x4b07ab
mov eax, dword [esi]
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x114]
push ecx
push ebx
push eax
push dword [edi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x4b0892
cmp eax, 0x3fa
je 0x4b0892
test eax, eax
js 0x4b089d
push 4
pop ebx
cmp dword [ebp - 0x114], ebx
je 0x4b088a
push str.Unexpected_type_for_registry_value_
lea ecx, [ebp - 0x28]
call fcn.00455432
mov dword [ebp - 4], ebx
lea edx, [edi + 8]
push 0x5c
lea ecx, [ebp - 0x40]
call fcn.004afdd7
mov byte [ebp - 4], 5
mov edx, eax
push esi
lea ecx, [ebp - 0x58]
call fcn.004ad311
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
push eax
call fcn.00455429
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.00455362
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.00455362
push str.._REG_DWORD_expected.
lea ecx, [ebp - 0x28]
call fcn.0045b59a
push str.WT::System::Win32::CRegistryKey::GetUint32
push 0x14b
push str.E:_bamboo_agent_home_2xml_data_build_dirPGSC_MON_JOB1monolith_sourcePhoenixWtSystemWin32RegistryKey.cpp
push ecx
push ecx
lea ecx, [ebp - 0x28]
mov esi, esp
call fcn.00455f7d
push eax
mov ecx, esi
call fcn.00457fc7
lea ecx, [ebp - 0xb4]
call fcn.004b3ef8
mov byte [ebp - 4], 7
jmp 0x4b092c
mov eax, dword [ebp - 0x118]
jmp 0x4b0895
mov eax, dword [ebp + 0xc]
call fcn.004fb6da
ret 8
push str.RegQueryValueEx_failure_reading_registry_value_
lea ecx, [ebp - 0x28]
call fcn.00455432
mov dword [ebp - 4], ebx
lea edx, [edi + 8]
push 0x5c
lea ecx, [ebp - 0x58]
call fcn.004afdd7
mov byte [ebp - 4], 1
mov edx, eax
push esi
lea ecx, [ebp - 0x40]
call fcn.004ad311
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.00455429
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00455362
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x58]
call fcn.00455362
push 0x534610
lea ecx, [ebp - 0x28]
call fcn.0045b59a
push str.WT::System::Win32::CRegistryKey::GetUint32
push 0x143
push str.E:_bamboo_agent_home_2xml_data_build_dirPGSC_MON_JOB1monolith_sourcePhoenixWtSystemWin32RegistryKey.cpp
push ecx
push ecx
lea ecx, [ebp - 0x28]
mov esi, esp
call fcn.00455f7d
push eax
mov ecx, esi
call fcn.00457fc7
lea ecx, [ebp - 0xb4]
call fcn.004b3ef8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb4]
call fcn.004b4228
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x110]
call fcn.004b3c43
push 0x5626ac
lea eax, [ebp - 0x110]
push eax
call fcn.004d4a8e
int3
Function at 0x4b0b18
Capabilities:
Query service status
Start service

Disassembly:
push 0x40
mov eax, 0x5094a5
call fcn.004fb730
mov esi, ecx
push SysReAllocString
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x48], edi
and dword [ebp - 4], 0
test edi, edi
je 0x4b0cd7
push 0x14
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x4c], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x4b0cc8
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4b0cc8
mov eax, dword [ebp - 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount64]
cmp eax, 1
je 0x4b0c19
cmp eax, 3
je 0x4b0b9e
cmp eax, 2
jne 0x4b0cc8
jmp 0x4b0c19
call ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x44], edx
xor edx, edx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
push 0xa
pop ecx
div ecx
mov ecx, 0x2710
cmp eax, ecx
jbe 0x4b0bc3
mov eax, ecx
jmp 0x4b0bcd
mov ecx, 0x3e8
cmp eax, ecx
cmovb eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4b0cc8
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x20], eax
jbe 0x4b0bfb
call ebx
jmp 0x4b0c16
call ebx
sub eax, dword [ebp - 0x40]
sbb edx, dword [ebp - 0x44]
test edx, edx
ja 0x4b0cc8
jb 0x4b0c16
cmp eax, dword [ebp - 0x1c]
ja 0x4b0cc8
mov eax, dword [ebp - 0x30]
cmp eax, 3
je 0x4b0b9e
cmp eax, 1
jne 0x4b0c36
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x4b0cc8
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4b0cc8
cmp dword [ebp - 0x30], 2
jne 0x4b0cc8
mov edi, 0x3e8
call ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], edx
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1c]
push 0xa
pop ecx
div ecx
mov ecx, 0x2710
cmp eax, ecx
jbe 0x4b0c7d
mov eax, ecx
jmp 0x4b0c82
cmp eax, edi
cmovb eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4b0cc5
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x20], eax
jbe 0x4b0cac
call ebx
jmp 0x4b0cbf
call ebx
sub eax, dword [ebp - 0x40]
sbb edx, dword [ebp - 0x3c]
test edx, edx
ja 0x4b0cc5
jb 0x4b0cbf
cmp eax, dword [ebp - 0x1c]
ja 0x4b0cc5
cmp dword [ebp - 0x30], 2
je 0x4b0c58
mov edi, dword [ebp - 0x48]
mov byte [ebp - 4], 0
test esi, esi
je 0x4b0cd7
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4b0ce6
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.004fb6da
ret