joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f380
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x202]
push ecx
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x20c], 0
mov word [ebp - 0x204], ax
call fcn.004238b0
lea edx, [ebp - 0x204]
push str.SystemCurrentControlSetServicesWin_Win7
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
push 0x2001f
push 0
lea ecx, [ebp - 0x204]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x40f46f
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x208]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x204]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40f440
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x208]
push edx
push 0xf003f
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x40f46f
mov ecx, dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x40f480
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x413110
Capabilities:
Delete registry key
Delete registry value
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor edi, edi
push 0x1fe
lea ecx, [ebp - 0x206]
xor eax, eax
push edi
push ecx
xor bl, bl
mov dword [ebp - 0x60c], edi
mov dword [ebp - 0x614], edi
mov word [ebp - 0x208], ax
call fcn.004238b0
add esp, 0xc
push 0x3fe
lea eax, [ebp - 0x606]
xor edx, edx
push edi
push eax
mov word [ebp - 0x608], dx
call fcn.004238b0
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
lea ecx, [ebp - 0x208]
push str.SystemCurrentControlSetServices_s
push ecx
call edi
add esp, 0xc
lea edx, [ebp - 0x60c]
push edx
push 0x2001f
push 0
lea eax, [ebp - 0x208]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x413238
push esi
lea ecx, [ebp - 0x608]
push 0x43c86c
push ecx
call edi
lea edx, [ebp - 0x608]
add esp, 0xc
push edx
call fcn.00403790
add esp, 4
lea eax, [ebp - 0x614]
push eax
lea ecx, [ebp - 0x60c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [ebp - 0x208]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x413236
push esi
lea eax, [ebp - 0x608]
push 0x43c8a0
push eax
call edi
lea ecx, [ebp - 0x608]
add esp, 0xc
push ecx
call fcn.00403790
add esp, 4
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
mov bl, 1
mov eax, dword [ebp - 0x60c]
push 4
lea edx, [ebp - 0x610]
push edx
push 4
push 0
push str.TestValue
push eax
mov dword [ebp - 0x610], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4132a5
push eax
lea ecx, [ebp - 0x608]
push 0x43c8f0
push ecx
call edi
lea edx, [ebp - 0x608]
add esp, 0xc
push edx
call fcn.00403790
mov eax, dword [ebp - 0x60c]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x60c]
push str.TestValue
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push eax
lea edx, [ebp - 0x608]
push 0x43c938
push edx
call edi
lea eax, [ebp - 0x608]
add esp, 0xc
push eax
call fcn.00403790
mov ecx, dword [ebp - 0x60c]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x41331c
lea edx, [ebp - 0x60c]
push edx
push 0xf003f
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41331c
mov ecx, dword [ebp - 0x60c]
lea eax, [ebp - 0x208]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x413340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x614
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x206]
push ecx
mov word [ebp - 0x208], ax
call fcn.004238b0
add esp, 0xc
mov dword [ebp - 0x60c], 0
xor eax, eax
mov edi, edi
movzx ecx, word [eax + str.SystemCurrentControlSetServicesWin_Win]
mov word [ebp + eax - 0x208], cx
add eax, 2
test cx, cx
jne 0x413380
lea edx, [ebp - 0x60c]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x208]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4133ea
mov eax, dword [ebp - 0x60c]
test eax, eax
je 0x4133cc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x43c980
call fcn.00403790
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x406]
push edx
mov word [ebp - 0x408], cx
call fcn.004238b0
add esp, 0xc
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x606]
push ecx
mov dword [ebp - 0x610], 1
mov word [ebp - 0x608], ax
call fcn.004238b0
add esp, 0xc
mov dword [ebp - 0x614], 0x200
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x431a08]
mov word [ebp + eax - 0x408], cx
add eax, 2
test cx, cx
jne 0x413440
lea edx, [ebp - 0x614]
push edx
lea eax, [ebp - 0x608]
push eax
mov eax, dword [ebp - 0x60c]
lea ecx, [ebp - 0x610]
push ecx
push 0
lea edx, [ebp - 0x408]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x60c]
test eax, eax
je 0x413495
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4134b7
push 0x43c9b0
call fcn.00403790
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
push 0x43c9e4
call fcn.00403790
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x415020
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x228
lea ecx, [ebp - 0x22c]
push 0
push ecx
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x230], 0x22c
call fcn.004238b0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea edx, [ebp - 0x230]
mov esi, eax
push edx
push esi
mov dword [ebp - 0x234], esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4150e5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
mov eax, dword [ebp - 0x238]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0041be77
add esp, 8
test eax, eax
jne 0x4150d2
mov edx, dword [ebp - 0x228]
push edx
push eax
push 1
call ebx
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x415090
pop ebx
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x415590
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4155fd
push 0xf01ff
push str.wm7f
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4155fa
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.PbkE
call fcn.00403790
add esp, 4
push esi
call ebx
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x415610
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x103
lea ecx, [ebp - 0x23b]
push 0
push ecx
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 0
call fcn.004238b0
push 0x103
lea edx, [ebp - 0x137]
push 0
push edx
mov byte [ebp - 0x138], 0
call fcn.004238b0
xor eax, eax
add esp, 0x18
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov byte [ebp - 0x14], al
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
push 0x104
lea eax, [ebp - 0x23c]
push eax
mov byte [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor edi, edi
jmp 0x4156c0
push 0x104
lea ecx, [ebp - 0x138]
push 0
push ecx
call fcn.004238b0
push edi
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x138]
push str._sinfoem_i.inf
push eax
call ebx
add esp, 0x1c
lea ecx, [ebp - 0x138]
push ecx
push 0x20
xor eax, eax
lea edx, [ebp - 0x34]
push edx
push 0x435770
push 0x43e05c
push str.Strings
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call esi
test eax, eax
je 0x415795
lea eax, [ebp - 0x34]
push str.SunMoon_Rise
push eax
call fcn.00428b0c
add esp, 8
test eax, eax
jne 0x415795
lea ecx, [ebp - 0x138]
push ecx
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0x435770
push str.DriverName
push str.Strings
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call esi
test eax, eax
je 0x415795
lea eax, [ebp - 0x14]
push 0x436fe8
push eax
call fcn.00428b0c
add esp, 8
test eax, eax
jne 0x415795
lea ecx, [ebp - 0x138]
push 0x5c
push ecx
call fcn.0041dd20
add esp, 8
test eax, eax
jne 0x4157b5
inc edi
cmp edi, 0x3e7
jl 0x4156c0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x240]
push 0xc
inc eax
push eax
push edx
call fcn.0041c0b0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x4157e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x598
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x43e084
call fcn.00403790
xor eax, eax
add esp, 4
xor ebx, ebx
push 0x3e
lea ecx, [ebp - 0x66]
push ebx
push ecx
mov byte [ebp - 0x24], bl
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov word [ebp - 0x68], ax
call fcn.004238b0
add esp, 0xc
push 0x3fe
lea eax, [ebp - 0x56e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x570], dx
call fcn.004238b0
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x16f]
push ebx
push ecx
mov byte [ebp - 0x170], bl
call fcn.004238b0
lea edx, [ebp - 0x24]
add esp, 0xc
push edx
call fcn.00415610
add esp, 4
test eax, eax
je 0x4159a9
lea eax, [ebp - 0x68]
push eax
lea ebx, [ebp - 0x24]
call fcn.00409950
add esp, 4
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x570]
push str.PnP___s__Exist.
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x570]
add esp, 0xc
push eax
call fcn.00403790
add esp, 4
mov ecx, ebx
push ecx
lea edx, [ebp - 0x170]
push str.pnputil.exe__f__d__s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4158f8
lea ecx, [ebp - 0x594]
push ecx
call eax
movzx eax, word [ebp - 0x594]
test eax, eax
je 0x415933
cmp eax, 9
jne 0x415933
call fcn.00404690
push 0
cmp eax, 1
jne 0x41592a
lea edx, [ebp - 0x170]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
call fcn.004046f0
jmp 0x415944
lea eax, [ebp - 0x170]
push eax
jmp 0x41593c
push 0
lea ecx, [ebp - 0x170]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
cmp esi, 0x1f
ja 0x415968
push str.PnP_Delete_Result_Fail___
call fcn.00403790
add esp, 4
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x24]
push edx
call fcn.00415610
add esp, 4
test eax, eax
je 0x4159a2
push str.PnP_Delete_Fail___
call fcn.00403790
add esp, 4
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
push str.PnP_Delete_Success___
jmp 0x4159ae
push str.PnP_oemX.inf_not_Exist.
call fcn.00403790
mov ecx, dword [ebp - 4]
add esp, 4
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x415f80
Capabilities:
Delete file
Delete service
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4c
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x41619e
push 0xf01ff
push 0x43ca38
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0xa4c], ebx
test ebx, ebx
je 0x41619e
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0xa0e]
push ecx
mov word [ebp - 0xa10], ax
call fcn.004238b0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20e]
push eax
xor esi, esi
mov word [ebp - 0x210], dx
call fcn.004238b0
add esp, 0xc
lea ecx, [ebp - 0xa2c]
push ecx
push 0xc8
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
lea edx, [ebp - 0x210]
push str.C:Program_FilesWW2017CFwmcSystem7.exe
push edx
xor edi, edi
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.0041c33e
add esp, 0x10
test eax, eax
jne 0x4160a1
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ebx, [ebx]
cmp edi, 0x1e
je 0x41609b
push 0x431cbc
call fcn.00415020
add esp, 4
push 0x80
lea ecx, [ebp - 0x210]
push ecx
call ebx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x64
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0041c33e
add esp, 8
test eax, eax
je 0x416050
mov ebx, dword [ebp - 0xa4c]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0xa48]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0xa44], 1
je 0x416108
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
inc esi
push esi
lea edx, [ebp - 0xa10]
push 0x43e228
push edx
call edi
lea eax, [ebp - 0xa10]
add esp, 0xc
push eax
call fcn.00403790
add esp, 4
cmp esi, 5
je 0x41611a
lea ecx, [ebp - 0xa2c]
push ecx
push 0xc8
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp esi, 5
jle 0x4160a1
push 0x43e254
call fcn.00403790
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x416124
push str.PbkW
call fcn.00403790
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x416165
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0xa10]
push 0x43e294
push edx
call edi
lea eax, [ebp - 0xa10]
add esp, 0xc
push eax
call fcn.00403790
add esp, 4
mov dword [0x44295c], 0
jmp 0x41618c
lea ecx, [ebp - 0xa10]
push 0x43e2c0
push ecx
call edi
lea edx, [ebp - 0xa10]
push edx
call fcn.00403790
add esp, 0xc
mov dword [0x44295c], 1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x4165b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004238b0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call fcn.004238b0
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x20c]
push str.C:Program_FilesWW2017CFWM7F.cab
push ecx
call edi
lea edx, [ebp - 0x414]
push str.C:Program_FilesWW2017CFwmcRMS7.exe
push edx
call edi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0041c33e
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x30
test eax, eax
jne 0x416669
push esi
mov esi, 0x442628
mov edi, edi
mov ecx, dword [esi]
push ecx
lea edx, [ebp - 0x20c]
push str.C:Program_FilesWW2017CF_s
push edx
call edi
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call ebx
add esi, 4
cmp esi, 0x4426a4
jl 0x416640
pop esi
lea ecx, [ebp - 0x414]
push ecx
call ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
Function at 0x418b10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x418b23
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x418b9d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00422d00
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x418b71
sub eax, edi
jmp 0x418b73
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x418b62
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x418b90
sub eax, edi
jmp 0x418b92
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x418b81
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x418c52
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], edx
cmp ebx, ecx
jbe 0x418bc3
mov ebx, ecx
test ebx, ebx
je 0x418c16
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x418be5
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.00419640
jmp 0x418bfe
cmp eax, 2
jne 0x418c04
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x418bf7
xor eax, eax
jmp 0x418c01
mov edx, ebx
call fcn.00419ce0
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.00422d00
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x418c3e
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x418c52
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x418b20
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419cc0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test ecx, ecx
jne 0x419ccb
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
pop ebp
jmp fcn.00419ce0
Function at 0x41bcde
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x441044]
jne 0x41bce8
repz ret
jmp fcn.0041e371

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x41c2e6
call fcn.0041f642
mov dword [eax], esi
call fcn.0041f62f
push 0x16
pop esi
mov dword [eax], esi
call fcn.0041f5dd
mov eax, esi
jmp 0x41c33b
test dword [ebp + 0xc], 0xfffffff9
jne 0x41c2cc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41c313
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041f655
pop ecx
call fcn.0041f62f
mov eax, dword [eax]
jmp 0x41c33b
test al, 0x10
jne 0x41c339
test al, 1
je 0x41c339
test byte [ebp + 0xc], 2
je 0x41c339
call fcn.0041f642
mov dword [eax], 5
call fcn.0041f62f
mov dword [eax], 0xd
jmp 0x41c30a
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4262b4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041ee94
and dword [ebp - 0x14], 0
cmp dword [0xbf9b08], 0
mov dword [ebp - 0x18], eax
jne 0x426367
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42640f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x430cd0
push ebx
call edi
test eax, eax
je 0x42640f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0xbf9b08], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0xbf9b0c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0xbf9b10], eax
call edi
push eax
call esi
mov dword [0xbf9b18], eax
test eax, eax
je 0x426367
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0xbf9b14], eax
mov eax, dword [0xbf9b14]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4263c0
cmp dword [0xbf9b18], ecx
je 0x4263c0
push eax
call esi
push dword [0xbf9b18]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4263c0
test ebx, ebx
je 0x4263c0
call edi
test eax, eax
je 0x4263b7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4263b7
test byte [ebp - 8], 1
jne 0x4263c0
or dword [ebp + 0x10], 0x200000
jmp 0x4263f3
mov eax, dword [0xbf9b0c]
cmp eax, dword [ebp - 0x18]
je 0x4263f3
push eax
call esi
test eax, eax
je 0x4263f3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4263f3
mov eax, dword [0xbf9b10]
cmp eax, dword [ebp - 0x18]
je 0x4263f3
push eax
call esi
test eax, eax
je 0x4263f3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xbf9b08]
call esi
test eax, eax
je 0x42640f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x426411
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bcde
leave
ret