joyce8/EMBER2024-capa huggingface dataset:
Function at 0x93c4bc
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov esi, eax
xor eax, eax
push ebp
push 0x93c6c4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x9b8d04]
cmp dword [eax], 1
jne 0x93c696
mov eax, dword [esi + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x40]
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x93c6d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
sete bl
test bl, bl
je 0x93c54d
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x93c704
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
sete bl
test bl, bl
je 0x93c664
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
cmp dword [ebp - 0x14], 0
je 0x93c664
lea eax, [ebp - 0x10]
mov ecx, 0x21
xor edx, edx
call fcn.00404170
mov edi, dword [ebp - 0x14]
dec edi
test edi, edi
jl 0x93c664
inc edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0x21
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004044dc
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0x10]
call fcn.004044dc
mov edx, eax
lea eax, [ebp - 0x12c]
call fcn.00402fb8
lea edx, [ebp - 0x12c]
lea eax, [ebp - 0x2c]
call fcn.004042bc
push dword [ebp - 0x2c]
push 0x93c720
push 0x93c72c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004043d8
lea eax, [ebp - 0x24]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.004044dc
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x93c65a
mov eax, dword [ebp - 0x10]
call fcn.004044dc
mov edx, eax
lea eax, [ebp - 0x130]
call fcn.00404250
mov edx, dword [ebp - 0x130]
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc dword [ebp - 0x1c]
dec edi
jne 0x93c5af
cmp dword [ebp - 4], 0
je 0x93c673
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp dword [ebp - 8], 0
je 0x93c682
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [esi + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x93c696
mov eax, dword [esi + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x7c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x93c6cb
lea eax, [ebp - 0x130]
call fcn.00404088
lea eax, [ebp - 0x2c]
call fcn.00404088
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004040ac
ret
Function at 0x403f00
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x403f25
xor al, al
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x94
push 0x42bba0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x403f1f
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x403f1f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x403f1f
push ebx
push 0
push 0
push dword [ebp - 0xc]
xor bl, bl
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
test eax, eax
movzx ebx, bl
mov eax, dword [ebp - 4]
mov ecx, 1
cmovne ebx, ecx
test eax, eax
je 0x403fa7
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x403fb7
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403fc0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push str.C:Windows_system32_rdpzeh.msc
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403ff5
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ebx
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [ebp - 0x14]
push esi
push 0x40
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
test eax, eax
jne 0x404036
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
mov eax, esi
mov dword [edi], 0
test eax, eax
jle 0x40407c
nop word [eax + eax]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
push dword [ecx]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
test eax, eax
je 0x404079
add dword [edi], eax
sub esi, eax
mov ecx, dword [ebp - 4]
test esi, esi
jg 0x404050
mov eax, dword [ebp - 0xc]
cmp dword [edi], eax
pop edi
push ebx
je 0x40409b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
push dword [edx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4063d0
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push 0
push eax
call fcn.00410900
push str.Diagnostics.txt
push esi
push 0x42784c
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004045b0
add esp, 0x20
push 0
push 0
push 3
push 0
push 1
push closesocket
push str.C:Windows_system32_rdpzeh.msc
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40651d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x108]
mov edx, 0x153
push eax
call fcn.00406530
add esp, 4
test al, al
je 0x40651d
mov edx, esi
lea ecx, [ebp - 0x108]
call fcn.00404440
test al, al
je 0x40651d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00410900
push 0x104
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00410900
push esi
push str._sx86.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004045b0
push esi
push str._sx64.dll
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.004045b0
lea eax, [ebp - 0x20c]
mov edx, 0x1a7
push eax
call fcn.00406530
add esp, 0x3c
test al, al
je 0x40651d
lea eax, [ebp - 0x310]
mov edx, 0x1ac
push eax
call fcn.00406530
add esp, 4
test al, al
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e04d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0040e04d
mov esp, ebp
pop ebp
ret

Function at 0x406530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
call fcn.004040b0
add esp, 8
test al, al
jne 0x40655c
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [ebp - 4]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x4065a6
push 0
lea eax, [ebp - 0xc]
push eax
push edi
mov edi, dword [ebp - 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x4065ae
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4061ae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x4061bd
pop dword [ebp - 0x2c]
mov eax, 0x4061bd
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x8edd02e7
sub dword [ebp - 0x3c], 0x408abd9c
mov dword [ebp - 0x38], 0x9a7fe650
add dword [ebp - 0x38], 0x97b365f5
mov dword [ebp - 0x34], 0x7a71d73d
sub dword [ebp - 0x34], 0x2e25930f
mov dword [ebp - 0x30], 0xa10ff2d3
sub dword [ebp - 0x30], 0xa10ff2d3
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x2125118e
sub dword [ebp - 0x3c], 0xacb2a838
mov dword [ebp - 0x38], 0x8da915f2
add dword [ebp - 0x38], 0xb3c34b83
mov dword [ebp - 0x34], 0xa09aacd4
sub dword [ebp - 0x34], 0x3d2b4068
mov dword [ebp - 0x30], 0xb51b140f
sub dword [ebp - 0x30], 0xb51b140f
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xcdbf1235
sub eax, 0xcd7ea125
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3ba9d
push 0
call eax
mov ecx, 0x12258ac0
sub ecx, 0x122531e8
mov esi, eax
mov edi, 0xeafa0a15
sub edi, 0xeab6aa15
add edi, dword [ebp - 0x2c]
mov ebx, 0xfe37057b
sub ebx, 0xd9e54a9
mov dword [ebp - 0x1c], 0x79b1b8d
mov edx, dword [edi]
xor dword [ebp - 0x10], ebx
add edx, ebx
add dword [ebp - 0x1c], edx
mov dword [esi], edx
sub dword [ebp - 0x28], edi
add esi, 0xd0f44dff
sub esi, 0xd0f44dfb
add edi, 4
loop 0x4062d5
add eax, 0x15633
xor ebx, ebx
add ebx, eax
add eax, 0x1ddd6aa2
add eax, 0xe2229563
mov ecx, 0x15b327d6
add ecx, 0xea8cd82a
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40633c
pop dword [ebp - 0x18]
mov eax, 0x29164553
add eax, 0xd72a1de9
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xb86175df
add dword [ebp - 0x28], 0x95f0cf6c
mov dword [ebp - 0x24], 0x40e40d3c
sub dword [ebp - 0x24], 0xeb0c0f7
mov dword [ebp - 0x20], 0xcabd6b09
sub dword [ebp - 0x20], 0x7e7126db
mov dword [ebp - 0x1c], 0x9ca8c019
add dword [ebp - 0x1c], 0x63573fe7
lea eax, [ebp - 0x28]
push eax
mov eax, 0x2b7f5549
sub eax, 0x2b3ee4e9
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xa142425
sub dword [ebp - 0x28], 0x95a1bacf
mov dword [ebp - 0x24], 0xf4a16c09
sub dword [ebp - 0x24], 0xb3350a94
mov dword [ebp - 0x20], 0xb45d6c6d
sub dword [ebp - 0x20], 0x50ee0001
mov dword [ebp - 0x1c], 0xa8e94a3c
add dword [ebp - 0x1c], 0x5716b5c4
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xd701512d
sub eax, 0xd6c0e02d
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x39f09
push 0
call eax
mov ecx, 0x6cf71d5b
sub ecx, 0x6cf6c812
xor ebx, ebx
add ebx, eax
mov esi, 0x410000
add esi, dword [ebp - 0x18]
mov edx, 0x266889e1
sub edx, 0x2f13824b
sub dword [ebp - 4], 0x4b55b614
mov edi, dword [esi]
xor dword [ebp - 8], ecx
xor edi, edx
xor dword [ebp - 4], edi
mov dword [ebx], edi
add dword [ebp - 0x14], 0x132b4bf
add ebx, 0xf15963bc
add ebx, 0xea69c48
add esi, 0x6c8af553
add esi, 0x93750ab1
loop 0x40645a
add eax, 0x147f7
xor ebx, ebx
add ebx, eax
add eax, 0x7e46c3c2
sub eax, 0x7e46c3bd
mov ecx, 0xe436952e
sub ecx, 0xe3f6952e
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x401150
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x46200c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x401218
test edi, edi
je 0x401218
push esi
lea eax, [ebp - 8]
mov byte [ebp - 0x11], 0
push eax
xor esi, esi
push ebx
mov dword [ebp - 8], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4011fb
push eax
call fcn.00414089
mov esi, eax
add esp, 4
test esi, esi
je 0x4011fb
push esi
push dword [ebp - 0x18]
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x401204
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x458564
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x401204
mov ecx, dword [ebp - 0x10]
pop esi
movzx eax, word [ecx + 0xa]
mov dword [edi], eax
movzx eax, word [ecx + 8]
mov dword [edi + 4], eax
movzx eax, word [ecx + 0xe]
mov dword [edi + 8], eax
movzx eax, word [ecx + 0xc]
mov dword [edi + 0xc], eax
mov al, 1
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414073
mov esp, ebp
pop ebp
ret
push esi
call fcn.00414084
add esp, 4
mov al, byte [ebp - 0x11]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414073
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop ebx
call fcn.00414073
mov esp, ebp
pop ebp
ret

Function at 0x401230
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x46200c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401346
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x401346
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00417760
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00418907
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x21c], ax
mov dword [ebp - 0x212], eax
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x21c]
push eax
movq qword [ebp - 0x21a], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
mov ecx, 0x458560
cmovne ecx, eax
movzx eax, word [ebp - 0x210]
push ecx
push eax
movzx eax, word [ebp - 0x212]
push eax
movzx eax, word [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x216]
push eax
movzx eax, word [ebp - 0x21a]
push eax
movzx eax, word [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x458568
push 0x104
push eax
call fcn.004010c0
add esp, 0x2c
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x401346
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00414073
mov esp, ebp
pop ebp
ret
Function at 0x401360
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46200c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x401443
test edi, edi
je 0x401443
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4013a3
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414073
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x24]
movq qword [ebp - 0x20], xmm0
mov ecx, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
call fcn.00401150
test al, al
je 0x401391
lea edx, [ebp - 0x14]
mov ecx, edi
call fcn.00401150
test al, al
je 0x401443
push ebx
xor bl, bl
xor eax, eax
nop dword [eax]
mov ecx, dword [ebp + eax - 0x14]
mov edx, dword [ebp + eax - 0x24]
cmp ecx, edx
ja 0x40142e
jne 0x401419
add eax, 4
cmp eax, 0x10
jl 0x4013f0
mov al, bl
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414073
mov esp, ebp
pop ebp
ret
xor bl, bl
mov al, bl
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414073
mov esp, ebp
pop ebp
ret
mov bl, 1
mov al, bl
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414073
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00414073
mov esp, ebp
pop ebp
ret

Function at 0x401460
Capabilities:
Create service
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x46200c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0
push 0
push 0
push 0
push 0x4586a0
push 1
push 1
push 1
push 0xf01ff
push 0x4586d8
push 0x4586d8
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
je 0x40158d
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServices_]
mov eax, dword [0x4585e8]
mov dword [ebp - 0x1cc], eax
mov ax, word [0x4585ec]
movups xmmword [ebp - 0x20c], xmm0
push 0x1c2
movups xmm0, xmmword [0x4585b8]
mov word [ebp - 0x1c8], ax
lea eax, [ebp - 0x1c6]
push 0
movups xmmword [ebp - 0x1fc], xmm0
push eax
movups xmm0, xmmword [0x4585c8]
movups xmmword [ebp - 0x1ec], xmm0
movups xmm0, xmmword [0x4585d8]
movups xmmword [ebp - 0x1dc], xmm0
call fcn.00417760
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x4586d8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40158b
push 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 8
push eax
push 4
push 0
push 0x4585f0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00414073
mov esp, ebp
pop ebp
ret
Function at 0x4015a0
Capabilities:
Delete service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x46200c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0xf003f
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push 0
push 0
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
jne 0x4015e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4016f5
push esi
push edi
push 0x10014
push 0x4586d8
push ebx
mov dword [ebp - 0x24], 0
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x401639
call edi
cmp eax, 0x424
jne 0x4016ec
push ecx
mov ecx, ebx
call fcn.00401460
mov esi, eax
add esp, 4
test esi, esi
jne 0x401632
call edi
jmp 0x4016ec
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [ebp - 0x1c]
cmp eax, 1
jne 0x4016b1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4016ae
call edi
cmp eax, 0x420
je 0x4016a4
cmp dword [ebp - 0x24], 0
jne 0x4016e1
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x401679
call edi
jmp 0x4016e1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ecx
mov ecx, ebx
call fcn.00401460
mov esi, eax
add esp, 4
test esi, esi
je 0x40162b
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4016ae
call edi
jmp 0x4016e1
mov eax, 4
mov dword [ebp - 0x1c], eax
jmp 0x4016b1
mov eax, dword [ebp - 0x1c]
xor edi, edi
cmp eax, 4
je 0x4016e1
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop
cmp edi, 5
jae 0x4016de
push 0x1f4
call ebx
lea eax, [ebp - 0x20]
inc edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 4
jne 0x4016c0
mov ebx, dword [ebp - 0x28]
test esi, esi
je 0x4016ec
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x1c], 4
pop ebx
sete al
xor ecx, ebp
call fcn.00414073
mov esp, ebp
pop ebp
ret
Function at 0x4017a0
Capabilities:
Copy file
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x46200c]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x418], 0
lea eax, [ebp - 0x438]
push eax
movups xmmword [ebp - 0x438], xmm0
movups xmmword [ebp - 0x428], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x438], 9
je 0x4017f5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414073
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00417760
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.driversmsrep.sys
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00417760
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.ModulesdriversBootRepairx64BootRepair.sys
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x43c], 0
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
lea edx, [ebp - 0x414]
lea ecx, [ebp - 0x20c]
call fcn.00401360
test al, al
je 0x4018c5
lea ecx, [ebp - 0x20c]
call fcn.00401230
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [ebp - 0x43c]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
call fcn.004015a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414073
mov esp, ebp
pop ebp
ret

Function at 0x4018f0
Capabilities:
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x46200c]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x230]
push eax
movups xmmword [ebp - 0x230], xmm0
movups xmmword [ebp - 0x220], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x230], 9
jne 0x4019a2
call fcn.00401710
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00417760
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.driversmsrep.sys
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
lea ecx, [ebp - 0x20c]
call fcn.00401230
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414073
mov esp, ebp
pop ebp
ret