joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5060c4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.004bfed8
test al, al
jne 0x506270
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14c]
test al, al
je 0x5060fe
cmp byte [0x56dda0], 0
jne 0x5060fe
mov byte [ebx + 0x43c], 1
cmp byte [ebx + 0x43c], 0
je 0x50610d
cmp dword [esi + 4], 0
je 0x50613a
test byte [ebx + 0x55], 1
jne 0x50612c
mov eax, ebx
call fcn.00453798
test eax, eax
jne 0x50612c
mov edx, esi
mov eax, ebx
call fcn.00458820
jmp 0x506270
mov edx, esi
mov eax, ebx
call fcn.0045471c
jmp 0x506270
push 0
call sub.user32.dll_GetDC
mov edi, eax
mov eax, ebx
call fcn.0044fcb0
push eax
mov eax, ebx
call fcn.0044fc6c
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x506269
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x50]
push eax
mov eax, ebx
call fcn.00456aec
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x48]
push eax
call sub.gdi32.dll_CreateRectRgn
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.004b639c
push eax
mov ecx, eax
mov edx, 0x14
mov eax, ebx
call fcn.00451434
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectClipRgn
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.005060c4
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x60]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x54]
push eax
lea edx, [ebp - 0x70]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x68]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x50]
push eax
mov eax, ebx
call fcn.00456aec
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x506270
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50faf4
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x50fb0e
add esp, 0xfffffff0
call fcn.004037d4
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x50fb9c
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, edi
call fcn.00403440
mov dword [edi + 4], esi
lea eax, [edi + 0x40]
call fcn.004e1b50
mov byte [edi + 0x34], 1
mov dl, 1
mov eax, dword [0x41c218]
call fcn.00403440
mov dword [edi + 0x28], eax
mov dl, 1
mov eax, dword [0x41c218]
call fcn.00403440
mov dword [edi + 0x14], eax
mov dl, 1
mov eax, dword [0x4a4f3c]
call fcn.004a50dc
mov esi, eax
mov dword [edi + 0x30], esi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], 0x5104cc
lea eax, [ebp - 0x10]
call fcn.00419520
lea edx, [ebp - 0x10]
lea eax, [edi + 0x18]
call fcn.004115f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50fba3
lea eax, [ebp - 0x10]
call fcn.004111d8
ret

Function at 0x529100
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5291ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404a90
mov eax, dword [0x56becc]
cmp byte [eax], 0
je 0x52916f
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404ee4
mov eax, dword [ebx]
call fcn.00404c1c
push eax
mov eax, dword [ebx]
call fcn.00404c0c
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404c1c
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404ee4
jmp 0x5291a1
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00409dec
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404bfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5291c1
lea eax, [ebp - 0x3f0]
call fcn.00404384
ret

Function at 0x52c414
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x52c46e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi + 0x2c8], ecx
mov dword [esi + 0x2cc], edx
mov eax, dword [edx + 0x4c]
mov dword [esi + 0x2bc], eax
mov eax, dword [eax + 0x44]
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0x2c8]
mov eax, esi
call fcn.0052c478
mov eax, dword [esi + 0x2c8]
mov edx, dword [eax + 0x30]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52c475
ret

Function at 0x535570
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.00456aec
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x279], 0
xor edx, edx
mov eax, ebx
call fcn.00450188
pop ebx
ret
Function at 0x53baf8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x53bbb2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404a90
mov eax, dword [0x56becc]
cmp byte [eax], 0
je 0x53bb67
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404ee4
mov eax, dword [ebx]
call fcn.00404c1c
push eax
mov eax, dword [ebx]
call fcn.00404c0c
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404c1c
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404ee4
jmp 0x53bb99
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00409dec
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404bfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53bbb9
lea eax, [ebp - 0x3f0]
call fcn.00404384
ret

Function at 0x53bbc0
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.00409dec
add esp, 0x3ec
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [0x56c6a8]
mov eax, dword [eax]
cmp dword [eax + 0x58], 0
jne 0x5421ee
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x80]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x84]
cdq
cmp edx, dword [esp + 4]
jne 0x54218d
cmp eax, dword [esp]
pop edx
pop eax
jae 0x5421c9
jmp 0x542191
pop edx
pop eax
jge 0x5421c9
mov eax, dword [0x56c6a8]
mov eax, dword [eax]
mov dword [eax + 0x38], 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0053cb74
mov eax, dword [ebx + 0xf4]
test eax, eax
je 0x5421ee
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x5421ee
cmp dword [ebx + 0x11c], 0
je 0x5421ee
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.00439390
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x12c]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x54cca0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
cmp byte [ebx + 0x98], 0
je 0x54ccc6
push 0
mov eax, dword [ebx + 0x94]
call fcn.00456aec
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x98], 0
pop ebx
ret

Function at 0x54cd80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x54cef1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xa4], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x54ced6
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.00409dec
mov dl, 1
mov eax, dword [0x5231d0]
call fcn.00523228
mov edx, dword [ebp - 4]
mov dword [edx + 0x9c], eax
mov dl, 1
mov eax, dword [0x41c52c]
call fcn.00403440
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
call fcn.005232a4
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x54ced3
mov dl, 1
mov eax, dword [0x5247c0]
call fcn.00524828
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, 0x54cf08
call fcn.00523a0c
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404690
xor eax, eax
push ebp
push 0x54cecc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00524b28
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0054cf10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54ced3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
call fcn.00403470
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00403470
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00403470
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54cef8
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004043a8
ret
Function at 0x556840
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x556848
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x556a3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x556a50
mov eax, esi
call fcn.005545d0
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004043d8
lea ecx, [ebp - 0x10]
mov edx, 0x556a64
mov eax, esi
call fcn.005545d0
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004043d8
lea ecx, [ebp - 0x14]
mov edx, 0x556a7c
mov eax, esi
call fcn.005545d0
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004043d8
lea ecx, [ebp - 0x18]
mov edx, 0x556a98
mov eax, esi
call fcn.005545d0
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004043d8
lea ecx, [ebp - 0x1c]
mov edx, 0x556ab4
mov eax, esi
call fcn.005545d0
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004043d8
lea ecx, [ebp - 0x24]
mov edx, 0x556acc
mov eax, esi
call fcn.005545d0
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408f68
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.0040966c
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x556ae4
mov eax, esi
call fcn.005545d0
mov eax, dword [ebp - 0x28]
call fcn.005536e8
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x556af4
mov eax, esi
call fcn.005545d0
mov eax, dword [ebp - 0x2c]
call fcn.005536e8
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x556b0c
mov eax, esi
call fcn.005545d0
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.0040966c
inc eax
je 0x5569dd
lea ecx, [ebp - 0x34]
mov edx, 0x556b0c
mov eax, esi
call fcn.005545d0
mov eax, dword [ebp - 0x34]
call fcn.00409630
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040b0ec
fstp qword [ebp - 0x3c]
wait
call fcn.0040b52c
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x5569f8
lea ecx, [ebp - 0x40]
mov edx, 0x556b0c
mov eax, esi
call fcn.005545d0
mov eax, dword [ebp - 0x40]
call fcn.005536e8
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x556b1c
mov eax, esi
call fcn.005545d0
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004043d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x556a41
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004043a8
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004043a8
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x78942131
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x75634d75
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401b80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413a18
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x41f034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x24], 7
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
call fcn.00401520
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.004030f0
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov dword [ebp - 4], 0xffffffff
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
setne al
cmp dword [ebp - 0x24], 8
mov byte [ebp - 0xd], al
jb 0x401c11
push dword [ebp - 0x38]
call edi
mov al, byte [ebp - 0xd]
add esp, 4
test al, al
jne 0x401c44
push str.WARN:temp_dir_not_exsit_so_not_need_replace_any_files_
push 1
push 0x12
push 0x416e64
push str.CReplaceFileTask::Start
call fcn.004071c0
add esp, 0x14
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push ebx
mov word [ecx], ax
call fcn.00401520
mov ecx, ebx
call fcn.00401d50
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
sub esp, 0x18
mov dword [ebp - 4], 1
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push ebx
mov word [ecx], ax
call fcn.00401520
lea ecx, [ebp - 0x20]
call fcn.00405530
mov ecx, dword [ebp - 0x1c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x20]
add esp, 0x18
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x401d1a
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], eax
mov word [ebp - 0x38], ax
call fcn.00401520
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00403290
cmp dword [ebp - 0x24], 8
lea edx, [ebp - 0x38]
push ecx
cmovae edx, dword [ebp - 0x38]
call fcn.00405620
add esp, 4
cmp dword [ebp - 0x24], 8
jb 0x401d17
push dword [ebp - 0x38]
call edi
add esp, 4
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x401d32
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push esi
call fcn.00402450
push dword [ebp - 0x20]
call edi
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4022f0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413b00
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x41f034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmovae eax, dword [ebp + 0x20]
push 4
push 0
push eax
call esi
mov edi, eax
test edi, edi
je 0x402384
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 0x20]
push 4
cmovae ecx, dword [ebp + 0x20]
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
push eax
call esi
mov edi, eax
test edi, edi
je 0x402384
cmp dword [ebp + 0x1c], 8
lea esi, [ebp + 8]
cmovae esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.ForceReplaceFile__s_SUCCESS_
push 1
push 0x6e
push 0x417050
push 0x4170d0
jmp 0x4023aa
cmp dword [ebp + 0x1c], 8
lea esi, [ebp + 8]
cmovae esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.ForceReplaceFile__s_fail__0x_x
push 1
push 0x72
push str..._srcMonitorServiceReplaceFileTask.cpp
push str.CReplaceFileTask::ForceReplaceFile
call fcn.00407550
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 0x1c
test edi, edi
setne bl
cmp dword [ebp + 0x1c], 8
jb 0x4023cb
push dword [ebp + 8]
call esi
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x4023ed
push dword [ebp + 0x20]
call esi
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x405620
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00413940
mov eax, dword [0x41f034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov esi, edx
push 0x7fe
push eax
mov word [ebp - 0x804], ax
xor bl, bl
lea eax, [ebp - 0x802]
push eax
call sub.MSVCR120.dll_memset
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push eax
call sub.MSVCR120.dll_memset
lea ecx, [ebp - 0x804]
add esp, 0x18
sub ecx, esi
mov edi, edi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x405680
xor eax, eax
movzx ecx, word [eax + 0x4192a0]
lea eax, [eax + 2]
mov word [ebp + eax - 0x1006], cx
test cx, cx
jne 0x405692
xorps xmm0, xmm0
mov dword [ebp - 0x1024], 0
movdqu xmmword [ebp - 0x1020], xmm0
mov eax, 0x14
mov word [ebp - 0x1008], cx
movq qword [ebp - 0x1010], xmm0
mov word [ebp - 0x1014], ax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x101c], eax
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x1024]
push eax
mov dword [ebp - 0x1020], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
movzx ecx, bl
mov edx, 1
cmove ecx, edx
mov al, cl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00412f62
mov esp, ebp
pop ebp
ret
Function at 0x405e70
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413ea0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x41f034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
push str.Create_Service_:__s...
push 1
push 0x9a
push 0x417cc0
push 0x417d08
call fcn.00407550
add esp, 0x18
lea esi, [ebp + 8]
cmp dword [ebp + 0x1c], 8
lea edx, [ebp + 8]
lea eax, [ebp + 0x20]
cmovae esi, dword [ebp + 8]
cmovae edx, dword [ebp + 8]
cmp dword [ebp + 0x34], 8
push 0
cmovae eax, dword [ebp + 0x20]
push 0
push 0
push 0
push 0
push eax
push 2
push 2
push 0x110
push 0xf01ff
push edx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x405f35
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:CreateService_fail_0x_x
push 1
push 0xbb
push 0x417d4c
push 0x417d70
jmp 0x406032
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0x15180
movdqu xmmword [ebp - 0x3c], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push eax
push 2
push esi
mov dword [ebp - 0x24], 0xea60
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0xea60
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 0xea60
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x38], 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x405fc0
push str.ChangeConfig2:__SERVICE_CONFIG_FAILURE_ACTIONS__SUCCESS_
push 1
push 0xd6
push 0x417dc0
push 0x417de4
call fcn.004071c0
add esp, 0x14
jmp 0x405fe1
call edi
push eax
push str.ERR:ChangeServiceConfig2_fail_0x_x
push 1
push 0xda
push 0x417e1c
push 0x417e40
call fcn.004071c0
add esp, 0x18
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 1
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x406019
push str.ChangeConfig2:__SERVICE_CONFIG_DELAYED_AUTO_START_INFO__SUCCESS_
push 1
push 0xe2
push 0x417e54
push 0x417ebc
call fcn.004071c0
add esp, 0x14
jmp 0x40603a
call edi
push eax
push str.ERR:ChangeServiceConfig2_Fail_set_delay_auto_start__0x_x
push 1
push 0xe6
push 0x417f0c
push str.CServiceObj::Create
call fcn.004071c0
add esp, 0x18
cmp dword [ebp + 0x1c], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x40604e
push dword [ebp + 8]
call edi
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x406070
push dword [ebp + 0x20]
call edi
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412f62
mov esp, ebp
pop ebp
ret 0x30