joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d01c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x1001d15c
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x1001d0f6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
push 1
mov ecx, dword [ebp - 0x44]
call fcn.10017262
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
push 0
mov ecx, dword [ebp - 0x48]
call fcn.10017262
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax]
mov eax, dword [ebp - 4]
imul ecx, dword [eax]
mov eax, dword [ebp - 4]
cmp ecx, dword [eax]
je 0x1001d0c6
mov dword [ebp - 0x10], 1
jmp 0x1001d0ca
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
inc eax
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx]
jl 0x1001d0de
mov dword [ebp - 0x14], 1
jmp 0x1001d0e2
and dword [ebp - 0x14], 0
imul eax, dword [ebp - 0x14], 0x53a3
mov ecx, dword [ebp - 4]
add eax, dword [ecx]
jne 0x1001d0f6
and dword [ebp - 0x18], 0
jmp 0x1001d0fd
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
sub eax, dword [ecx]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx]
jl 0x1001d11c
mov dword [ebp - 8], 1
jmp 0x1001d120
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 8], eax
jl 0x1001d13b
mov dword [ebp - 0x20], 1
jmp 0x1001d13f
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0
jl 0x1001d14e
mov dword [ebp - 0x24], 1
jmp 0x1001d152
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
jmp 0x1001d166
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esp, ebp
pop ebp
ret
Function at 0x1001d16a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1001d187
push 0xfc5
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x1001d1d2
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1001d1b5
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x1001d1d2
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10017262
mov dword [eax], 0x69f7
jmp 0x1001d1aa
mov esp, ebp
pop ebp
ret
Function at 0x1001d22e
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1001d3be
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0x3a34c865
je 0x1001d32e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
lea eax, [eax + ecx + 1]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx]
jle 0x1001d2b5
mov dword [ebp - 0x14], 1
jmp 0x1001d2b9
and dword [ebp - 0x14], 0
imul eax, dword [ebp - 0x14], 0xff60
test eax, eax
jne 0x1001d2d2
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x1001d2d2
and dword [ebp - 0x18], 0
jmp 0x1001d2d9
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 0xfffffff6
je 0x1001d2e8
mov dword [ebp - 0x1c], 1
jmp 0x1001d2ec
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x1c], eax
je 0x1001d2ff
mov dword [ebp - 0x48], 1
jmp 0x1001d303
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
sub eax, 9
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
jne 0x1001d32e
and dword [ebp - 0x28], 0
jmp 0x1001d335
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [eax]
cmp ecx, 0xde81
jg 0x1001d34e
mov dword [ebp - 0xc], 1
jmp 0x1001d352
and dword [ebp - 0xc], 0
push 0
mov ecx, dword [ebp - 0x4c]
call fcn.10017262
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
sub ecx, dword [eax]
cmp ecx, dword [ebp - 0xc]
jle 0x1001d38e
push 0xfffffffffffffffb
pop eax
test eax, eax
jne 0x1001d38e
and dword [ebp - 0x2c], 0
jmp 0x1001d395
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x2c], eax
jne 0x1001d3a8
mov dword [ebp - 0x10], 1
jmp 0x1001d3ac
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
jmp 0x1001d3c8
push 0
push 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov esp, ebp
pop ebp
ret
Function at 0x1002f929
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002f94f
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax]
and dword [eax + 0xc], 0
jmp 0x1002f959
push 0
push 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov esp, ebp
pop ebp
ret

Function at 0x1002fafd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1002fc47
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push 0x14
push 0
push 0x1824
push 0x15f3
call fcn.10024fe1
pop ecx
pop ecx
call eax
push eax
push 0x1824
push 0x254a
call fcn.10024fe1
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [eax + 4], ecx
push 1
lea eax, [ebp - 4]
push eax
call fcn.1002f929
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and dword [eax + 8], 0
push 0x455a
push 0x5b3
push 1
lea eax, [ebp - 4]
push eax
call fcn.1002f95d
add esp, 0x10
push 4
push 0x1000
mov eax, dword [ebp - 0xc]
push dword [eax + 0x50]
mov eax, dword [ebp - 8]
push dword [eax]
push 0x1824
push 0x1a55
call fcn.10024fe1
pop ecx
pop ecx
call eax
push 4
push 0x1000
mov eax, dword [ebp - 0xc]
push dword [eax + 0x54]
mov eax, dword [ebp - 8]
push dword [eax]
push 0x1824
push 0x1a55
call fcn.10024fe1
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 0x54]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.10025095
add esp, 0xc
push 0x7ee7
lea eax, [ebp - 0x10]
push eax
push 0x363b
push 0x23b9
lea eax, [ebp - 0x14]
push eax
push 1
push 0x12f8
lea eax, [ebp - 4]
push eax
call fcn.1002f9aa
add esp, 0x20
lea eax, [ebp - 4]
push eax
push 0x41f3
push 1
lea eax, [ebp - 8]
push eax
call fcn.1002fa7e
add esp, 0x10
jmp 0x1002fc6a
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x1002fc6a
push 0xfc5
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esp, ebp
pop ebp
ret
Function at 0x1002fdcb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
call fcn.1002fc6e
add esp, 0xc
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1002fdfb
xor eax, eax
jmp 0x1002ff3c
push 0x2ad
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push 0x7236
call fcn.1002fcaf
add esp, 0x18
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1002fe2d
xor eax, eax
jmp 0x1002ff3c
lea eax, [ebp - 0xc]
push eax
push 0x5d6b
push 0x7ec6
push 0
push 0x765c
push dword [ebp - 8]
call fcn.1002fcaf
add esp, 0x18
cmp dword [ebp - 0xc], 0
jne 0x1002fe5a
xor eax, eax
jmp 0x1002ff3c
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
push 0xcf4
push 1
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.1002fafd
add esp, 0x1c
push 0x4eb9
push 0x7f33
push dword [ebp + 8]
push dword [ebp - 8]
push 0x5403
push 0
push 0x34e6
push dword [ebp - 4]
push 0x10af
call fcn.10027b57
add esp, 0x24
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
call fcn.1002fd5f
add esp, 0xc
push dword [ebp - 4]
call fcn.1002f2b6
pop ecx
test eax, eax
jne 0x1002fed6
xor eax, eax
jmp 0x1002ff3c
push 1
push dword [ebp - 4]
call fcn.10029843
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002ff24
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x14], ecx
jne 0x1002ff01
xor eax, eax
jmp 0x1002ff3c
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002ff1a
xor eax, eax
jmp 0x1002ff3c
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002ff35
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
jmp 0x1002ff39
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x10080429
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10089330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1006fd2c
mov dword [ebp - 0x14], eax
cmp dword [0x1067630c], esi
jne 0x1008051c
push 0x800
push esi
push 0x10007a8c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x100804a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100805fc
push esi
push esi
push 0x10007a8c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x100805fc
push 0x10007aa4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100805fc
push eax
call ebx
push 0x10007ab0
push edi
mov dword [0x1067630c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007ac0
push edi
mov dword [0x10676310], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007ad4
push edi
mov dword [0x10676314], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1067631c], eax
test eax, eax
je 0x10080519
push 0x10007af0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10676318], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10080541
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10080534
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10080556
push 4
pop eax
jmp 0x100805fe
cmp dword [ebp - 0x14], esi
je 0x10080556
push dword [0x1067630c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1008053b
mov eax, dword [0x10676318]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x100805b4
cmp dword [0x1067631c], edi
je 0x100805b4
push eax
call ebx
push dword [0x1067631c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x100805b4
test eax, eax
je 0x100805b4
call ecx
test eax, eax
je 0x100805a9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x100805a9
test byte [ebp - 8], 1
jne 0x100805b4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x100805e4
mov eax, dword [0x10676310]
cmp eax, edi
je 0x100805e1
push eax
call ebx
test eax, eax
je 0x100805e1
call eax
mov esi, eax
test esi, esi
je 0x100805e1
mov eax, dword [0x10676314]
cmp eax, edi
je 0x100805e1
push eax
call ebx
test eax, eax
je 0x100805e1
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1067630c]
call ebx
test eax, eax
je 0x100805fc
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x100805fe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x59ecd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb3000]
push edi
jmp 0x59ecea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x59ecf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59ece0
mov eax, 1
add ebx, ebx
jne 0x59ed03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x59ed14
jne 0x59ed33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59ed33
dec eax
add ebx, ebx
jne 0x59ed20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x59ecf8
add ebx, ebx
jne 0x59ed2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x59ed85
xor ecx, ecx
sub eax, 3
jb 0x59ed4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x59edba
sar eax, 1
mov ebp, eax
jmp 0x59ed56
add ebx, ebx
jne 0x59ed56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59ed24
inc ecx
add ebx, ebx
jne 0x59ed64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59ed24
add ebx, ebx
jne 0x59ed71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x59ed66
jne 0x59ed82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x59ed66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x59eda4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x59ed96
jmp 0x59ece6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x59eda4
add edi, ecx
jmp 0x59ece6
pop esi
mov edi, esi
mov ecx, 0x4ee4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x59edc2
cmp byte [edi], 0x13
jne 0x59edc2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x59edc7
lea edi, [esi + 0x19a000]
mov eax, dword [edi]
or eax, eax
je 0x59ee36
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d8b0c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d8bd0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x59edf4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d8bd8]
or eax, eax
je 0x59ee30
mov dword [ebx], eax
add ebx, 4
jmp 0x59ee11
call dword [esi + 0x1d8bd4]
mov ebp, dword [esi + 0x1d8bdc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x59ee6a
sub esp, 0xffffff80
jmp 0x4ad0e6
Function at 0x402400
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415620
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x423034]
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 0x402494
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 0x402494
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 0x419130
push 0x419190
jmp 0x4024ba
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.00409fb0
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 0x4024db
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 0x4024fd
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 0x405c50
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00415460
mov eax, dword [0x423034]
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 0x405cb0
xor eax, eax
movzx ecx, word [eax + 0x41cea8]
lea eax, [eax + 2]
mov word [ebp + eax - 0x1006], cx
test cx, cx
jne 0x405cc2
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.00414a82
mov esp, ebp
pop ebp
ret
Function at 0x406c30
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415ae0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x423034]
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 0x41a148
push 0x41a104
call fcn.00409fb0
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 0x406cf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:CreateService_fail_0x_x
push 1
push 0xbd
push 0x41a190
push 0x41a1b4
jmp 0x406df2
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 0x406d80
push str.ChangeConfig2:__SERVICE_CONFIG_FAILURE_ACTIONS__SUCCESS_
push 1
push 0xd8
push 0x41a204
push 0x41a228
call fcn.00409c20
add esp, 0x14
jmp 0x406da1
call edi
push eax
push str.ERR:ChangeServiceConfig2_fail_0x_x
push 1
push 0xdc
push 0x41a260
push 0x41a284
call fcn.00409c20
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 0x406dd9
push str.ChangeConfig2:__SERVICE_CONFIG_DELAYED_AUTO_START_INFO__SUCCESS_
push 1
push 0xe4
push 0x41a2dc
push 0x41a300
call fcn.00409c20
add esp, 0x14
jmp 0x406dfa
call edi
push eax
push str.ERR:ChangeServiceConfig2_Fail_set_delay_auto_start__0x_x
push 1
push 0xe8
push 0x41a350
push str.CServiceObj::Create
call fcn.00409c20
add esp, 0x18
cmp dword [ebp + 0x1c], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x406e0e
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 0x406e30
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.00414a82
mov esp, ebp
pop ebp
ret 0x30