joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100393d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006325d
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x10074040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x10142a5c]
mov esi, dword [ebx + 0xc]
cmp byte [eax + 0x4c], 0
je 0x1003945c
movzx eax, word [eax + 2]
test ax, ax
je 0x1003945c
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1003945c
cmp dword [0x10141540], 0
jne 0x1003944a
push 0x10066848
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [0x10141540], eax
jmp 0x1003945c
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x10141540]
jne 0x1003945c
or dword [esi + 0x24], 1
test byte [esi + 0x24], 1
je 0x100395f1
movss xmm2, dword [edi + 0x3c]
movss xmm1, dword [edi + 0x40]
mulss xmm2, dword [0x1006c164]
mov edi, dword [ebx + 8]
mulss xmm1, dword [0x1006c164]
mov dword [esi + 0x14], 0
xorps xmm2, xmmword [0x1006c2d0]
movss dword [esi + 0xc], xmm2
movss dword [esi + 0x10], xmm1
mov ecx, dword [0x10142a3c]
movss dword [ecx + 0x2d4], xmm2
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x2d8], eax
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x2dc], eax
mov ecx, edi
mov eax, dword [0x10142a3c]
mov dword [eax + 0x2e0], 0xe8
mov eax, dword [edi]
mov eax, dword [eax + 0x5f4]
call eax
cmp eax, 0x18
je 0x100394fd
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x5f4]
call eax
cmp eax, 0x3d
je 0x100394fd
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x5f4]
call eax
cmp eax, 0x5b
jne 0x10039570
mov eax, dword fs:[0x2c]
mov ecx, dword [0x101413f8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10141638]
cmp eax, dword [ecx + 4]
jle 0x1003955e
push 0x10141638
call fcn.1005e6a1
add esp, 4
cmp dword [0x10141638], 0xffffffff
jne 0x1003955e
push str.m_flChargeBeginTime
push str.CTFPipebombLauncher
mov dword [ebp - 4], 0
call fcn.1005a6e0
push 0x10141638
mov dword [0x1014163c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1005e650
add esp, 4
mov eax, dword [0x1014163c]
xorps xmm1, xmm1
movss xmm0, dword [eax + edi]
comiss xmm0, xmm1
ja 0x100395ed
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x5f4]
call eax
cmp eax, 0x5b
jne 0x100395f1
mov eax, dword [0x101413f8]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x101416a8]
cmp eax, dword [ecx + 4]
jle 0x100395db
push 0x101416a8
call fcn.1005e6a1
add esp, 4
cmp dword [0x101416a8], 0xffffffff
jne 0x100395db
push str.m_flDetonateTime
push str.CTFCannon
mov dword [ebp - 4], 1
call fcn.1005a6e0
push 0x101416a8
mov dword [0x101416ac], eax
call fcn.1005e650
add esp, 4
mov eax, dword [0x101416ac]
xorps xmm1, xmm1
movss xmm0, dword [eax + edi]
comiss xmm0, xmm1
jbe 0x100395f1
and dword [esi + 0x24], 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x10048a10
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10074040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10048b0a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10048b03
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x10048ae9
call ebx
cmp dword [ebp - 0x14], eax
jne 0x10048ae9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10048ae9
mov edx, dword [esi]
test edx, edx
jne 0x10048ab2
push 0x200
push edx
push dword [0x101416cc]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10048b03
jmp 0x10048add
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10048add
shl eax, 3
push eax
push edx
push 0
push dword [0x101416cc]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10048b03
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10048a71
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x10048b4f
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10048b4f
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10048b49
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.100488a0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10048b16
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005e617
mov esp, ebp
pop ebp
ret
Function at 0x10048b60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10074040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x10142dc0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10048bc1
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e617
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10048be2
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10048c03
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10048c03
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10048bfd
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10048c03
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.1005e617
mov esp, ebp
pop ebp
ret
Function at 0x10048c60
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [0x10142dc8]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov ebx, ecx
test edx, edx
je 0x10048d51
mov eax, dword [0x10142dc0]
add eax, 0x14
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x10048ca5
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x10048c88
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x10048d51
xor eax, eax
lea ecx, [ebp - 0x10]
test ebx, ebx
setne al
or edx, 0xffffffff
push eax
call fcn.10048a10
mov ecx, dword [0x10142dc8]
add esp, 4
cmp esi, ecx
jae 0x10048d05
imul edi, esi, 0x2c
mov eax, dword [0x10142dc0]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x10048cfa
mov edx, ebx
mov ecx, esi
call fcn.10048b60
mov dword [ebp - 4], eax
test eax, eax
jne 0x10048d02
mov ecx, dword [0x10142dc8]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10048cd1
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10048d51
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x10048d42
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10048d36
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10048d15
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x101416cc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004a810
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x10074040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x40
lea eax, [ebp - 0x48]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, 0x20
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x48]
shr eax, 3
mov edx, 0x3f
and eax, 0x3f
mov dword [ebp - 0x5c], 0xefcdab89
add ecx, eax
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
sub edx, eax
mov dword [ebp - 0x4c], 0
add esp, 0xc
mov dword [ebp - 0x48], esi
mov byte [ecx], 0x80
inc ecx
cmp edx, 8
jae 0x1004a8a2
push edx
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x60]
call fcn.1004a190
push 0x38
lea eax, [ebp - 0x48]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
jmp 0x1004a8b1
lea eax, [edx - 8]
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x48]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x60]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xc], eax
call fcn.1004a190
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x5a]
xor ecx, ebp
pop esi
call fcn.1005e617
mov esp, ebp
pop ebp
ret

Function at 0x1004dac0
Capabilities:
Hash data using fnv

Disassembly:
mov eax, dword [0x10142a3c]
add ecx, 4
push esi
mov esi, dword [eax + 0x34]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov edx, dword [esi]
mov ecx, esi
push eax
mov edx, dword [edx + 0xc]
call edx
pop esi
mov cl, byte [eax]
test cl, cl
je 0x1004db19
movsx ecx, cl
xor ecx, 0x811c9dc5
imul edx, ecx, 0x1000193
lea ecx, [eax + 1]
call fcn.10014e60
cmp eax, 0x7c4a5426
ja 0x1004db1c
je 0x1004db5a
cmp eax, 0x19acc50e
je 0x1004db5a
cmp eax, 0x43d6266e
je 0x1004db5a
cmp eax, 0x4d7aa8c1
je 0x1004db5a
xor al, al
ret
cmp eax, 0xc941ff64
ja 0x1004db43
je 0x1004db5a
cmp eax, 0x9d08c4c8
ja 0x1004db3c
je 0x1004db5a
cmp eax, 0x7f11af2d
je 0x1004db5a
cmp eax, 0x84ea2fe5
jmp 0x1004db17
cmp eax, 0xa7eab73f
jmp 0x1004db17
cmp eax, 0xe80bc214
ja 0x1004db5d
je 0x1004db5a
cmp eax, 0xd614ea2e
je 0x1004db5a
cmp eax, 0xe1525a25
jne 0x1004db19
mov al, 1
ret
cmp eax, 0xf8573d98
sete al
ret

Function at 0x1004db70
Capabilities:
Hash data using fnv

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 8]
call eax
cmp dword [eax + 0x14], 0xb5
je 0x1004dbf5
mov eax, dword [0x10142a3c]
lea ecx, [edi + 4]
push esi
mov esi, dword [eax + 0x34]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov edx, dword [esi]
mov ecx, esi
push eax
mov edx, dword [edx + 0xc]
call edx
pop esi
mov cl, byte [eax]
test cl, cl
je 0x1004dbe0
movsx ecx, cl
xor ecx, 0x811c9dc5
imul edx, ecx, 0x1000193
lea ecx, [eax + 1]
call fcn.10014e60
cmp eax, 0x5978b32e
ja 0x1004dbe4
je 0x1004dbf5
cmp eax, 0x1b20e275
je 0x1004dbf5
cmp eax, 0x3cb8abb3
je 0x1004dbf5
cmp eax, 0x4c849f3c
je 0x1004dbf5
xor al, al
pop edi
ret
cmp eax, 0x97113ea7
je 0x1004dbf5
cmp eax, 0xa8d619ea
pop edi
sete al
ret
mov al, 1
pop edi
ret
Function at 0x1005c4b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [ebp + 0xc], 1
jne 0x1005c4e3
push 0
push 0
push dword [ebp + 8]
push 0x1005c440
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1005c4e3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401090
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop

Function at 0x401100
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call sym.___main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40117d
cmp al, 9
je 0x401170
cmp al, 0x20
je 0x401170
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp al, 0x5c
je 0x4011d0
cmp al, 0x22
je 0x4011e0
mov dword [ebp - 0x54], 0
movzx eax, byte [ebx + 1]
inc ebx
test al, al
je 0x40117d
cmp al, 9
sete cl
cmp al, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x401130
test edi, 1
jne 0x401130
lea esi, [esi]
movzx eax, byte [ebx + 1]
inc ebx
cmp al, 9
je 0x401170
cmp al, 0x20
je 0x401170
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x24], 1
jne 0x401198
mov word [ebp - 0x20], 1
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
inc dword [ebp - 0x54]
jmp 0x401147
and dword [ebp - 0x54], 1
jne 0x401140
xor edi, 1
jmp 0x401147

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x1b27528a
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x210a53f5
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401c10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414898
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x421034]
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.00401580
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.00403180
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 0x401ca1
push dword [ebp - 0x38]
call edi
mov al, byte [ebp - 0xd]
add esp, 4
test al, al
jne 0x401cd4
push str.WARN:temp_dir_not_exsit_so_not_need_replace_any_files_
push 1
push 0x12
push 0x417e8c
push str.CReplaceFileTask::Start
call fcn.00408f90
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.00401580
mov ecx, ebx
call fcn.00401de0
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.00401580
lea ecx, [ebp - 0x20]
call fcn.004058e0
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 0x401daa
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.00401580
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00403320
cmp dword [ebp - 0x24], 8
lea edx, [ebp - 0x38]
push ecx
cmovae edx, dword [ebp - 0x38]
call fcn.004059d0
add esp, 4
cmp dword [ebp - 0x24], 8
jb 0x401da7
push dword [ebp - 0x38]
call edi
add esp, 4
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x401dc2
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push esi
call fcn.004024e0
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 0x402380
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414980
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x421034]
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 0x402414
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 0x402414
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 0x4180b0
push 0x418128
jmp 0x40243a
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.00409320
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 0x40245b
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 0x40247d
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 0x4059d0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.004147c0
mov eax, dword [0x421034]
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 0x405a30
xor eax, eax
movzx ecx, word [eax + 0x41b1d0]
lea eax, [eax + 2]
mov word [ebp + eax - 0x1006], cx
test cx, cx
jne 0x405a42
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.00413de2
mov esp, ebp
pop ebp
ret
Function at 0x4069a0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414e40
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x421034]
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 0x9c
push 0x418ea8
push 0x418ef0
call fcn.00409320
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 pe_nt_image_headers32
push 0xf01ff
push edx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x406a65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:CreateService_fail_0x_x
push 1
push 0xbd
push 0x418f34
push 0x418f58
jmp 0x406b62
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 0x406af0
push str.ChangeConfig2:__SERVICE_CONFIG_FAILURE_ACTIONS__SUCCESS_
push 1
push 0xd8
push 0x418fa8
push 0x418fcc
call fcn.00408f90
add esp, 0x14
jmp 0x406b11
call edi
push eax
push str.ERR:ChangeServiceConfig2_fail_0x_x
push 1
push 0xdc
push 0x419004
push 0x419028
call fcn.00408f90
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 0x406b49
push str.ChangeConfig2:__SERVICE_CONFIG_DELAYED_AUTO_START_INFO__SUCCESS_
push 1
push 0xe4
push 0x41903c
push 0x4190a4
call fcn.00408f90
add esp, 0x14
jmp 0x406b6a
call edi
push eax
push str.ERR:ChangeServiceConfig2_Fail_set_delay_auto_start__0x_x
push 1
push 0xe8
push 0x4190f4
push str.CServiceObj::Create
call fcn.00408f90
add esp, 0x18
cmp dword [ebp + 0x1c], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x406b7e
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 0x406ba0
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.00413de2
mov esp, ebp
pop ebp
ret 0x30