joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ce0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b159d
mov eax, dword fs:[0]
push eax
sub esp, 0x8d0
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x814], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x812]
push ecx
call fcn.00495570
add esp, 0xc
push 0
push 0xb
lea edx, [ebp - 0x814]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x818], eax
cmp dword [ebp - 0x818], 0
je 0x405ed7
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x834]
call fcn.00401680
mov dword [ebp - 4], 0
push 0x4c6880
lea ecx, [ebp - 0x834]
call fcn.00401e50
lea ecx, [ebp - 0x834]
push ecx
call fcn.0040e4d0
add esp, 4
mov dword [ebp - 0x818], eax
cmp dword [ebp - 0x818], 0
je 0x405ec5
push 0x4c6890
lea edx, [ebp - 0x834]
push edx
lea eax, [ebp - 0x86c]
push eax
call fcn.00401d00
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x86c]
call fcn.00402ab0
push eax
lea ecx, [ebp - 0x888]
call fcn.00401680
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
call fcn.00402ab0
push eax
lea ecx, [ebp - 0x8a4]
call fcn.00401680
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x888]
push ecx
lea edx, [ebp - 0x8a4]
push edx
call fcn.00405700
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8a4]
call fcn.004016c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x888]
call fcn.004016c0
push 0x4c68ac
lea eax, [ebp - 0x834]
push eax
lea ecx, [ebp - 0x850]
push ecx
call fcn.00401d00
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x850]
call fcn.00402ab0
push eax
lea ecx, [ebp - 0x8c0]
call fcn.00401680
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0xc]
call fcn.00402ab0
push eax
lea ecx, [ebp - 0x8dc]
call fcn.00401680
mov byte [ebp - 4], 6
lea edx, [ebp - 0x8c0]
push edx
lea eax, [ebp - 0x8dc]
push eax
call fcn.00405700
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8dc]
call fcn.004016c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c0]
call fcn.004016c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x850]
call fcn.004016c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x86c]
call fcn.004016c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x834]
call fcn.004016c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004922e7
mov esp, ebp
pop ebp
ret
Function at 0x40a1c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.0040a730
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040a650
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40a22b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.0040a710
mov eax, dword [ebp - 0x224]
jmp 0x40a2bc
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40a291
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040a1c0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40a288
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.0040a710
mov eax, dword [ebp - 0x228]
jmp 0x40a2bc
mov dword [ebp - 4], pe_nt_image_headers32
jmp 0x40a232
lea ecx, [ebp - 0x14]
call fcn.0040a6c0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.0040a130
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.0040a710
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004922e7
mov esp, ebp
pop ebp
ret 4

Function at 0x40a590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x40a599
xor ecx, ecx
jne 0x40a599
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40a5e0
mov eax, dword [ebp - 0xc]
jmp 0x40a63d
cmp dword [ebp - 4], 1
je 0x40a5f3
cmp dword [ebp - 4], 2
je 0x40a5f3
mov eax, 0xd
jmp 0x40a63d
cmp dword [ebp + 0xc], 0
je 0x40a631
cmp dword [ebp - 8], 0
je 0x40a629
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x40a620
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x40a627
mov eax, 0xd
jmp 0x40a63d
jmp 0x40a631
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e270
Capabilities:
Create process on windows
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b161b
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x470], ecx
push str.taskkill__f__im
lea ecx, [ebp - 0x4c]
call fcn.00401680
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040c580
push 0x4c58c8
lea ecx, [ebp - 0x4c]
call fcn.00401e50
push str._c__
lea ecx, [ebp - 0x468]
call fcn.00401680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x468]
call fcn.0040c580
push 0x4c58dc
lea ecx, [ebp - 0x468]
call fcn.00401e50
xor edx, edx
mov word [ebp - 0x44c], dx
push 0x3fe
push 0
lea eax, [ebp - 0x44a]
push eax
call fcn.00495570
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x44c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [ebp - 0x44c]
push edx
lea ecx, [ebp - 0x30]
call fcn.00401680
mov byte [ebp - 4], 2
push 0x4c58e0
lea ecx, [ebp - 0x30]
call fcn.00401e50
lea ecx, [ebp - 0x468]
call fcn.00402ab0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 0x4c58f4
lea ecx, [ebp - 0x468]
call fcn.00402ab0
push eax
lea ecx, [ebp - 0x30]
call fcn.00402ab0
push eax
push 0x4c58f8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x46c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004016c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x468]
call fcn.004016c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004016c0
mov eax, dword [ebp - 0x46c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004922e7
mov esp, ebp
pop ebp
ret 4
Function at 0x40e4d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1458
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.00402ab0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40e515
mov eax, 1
jmp 0x40e5ed
mov eax, dword [0x4c6f1c]
push eax
push 0x4c4a30
mov ecx, dword [ebp + 8]
call fcn.0040f1f0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [0x4c6f1c]
je 0x40e5e4
mov edx, dword [ebp - 0x10]
push edx
push 0
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040c6e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00402ab0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40e591
lea ecx, [ebp - 0x30]
push ecx
call fcn.0040e4d0
add esp, 4
test eax, eax
jne 0x40e591
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004016c0
mov eax, dword [ebp - 0x38]
jmp 0x40e5ed
push 0
mov ecx, dword [ebp + 8]
call fcn.00402ab0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e5d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xb7
je 0x40e5d3
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004016c0
mov eax, dword [ebp - 0x3c]
jmp 0x40e5ed
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004016c0
jmp 0x40e5e8
xor eax, eax
jmp 0x40e5ed
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004922e7
mov esp, ebp
pop ebp
ret
Function at 0x40e690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5018
call fcn.00496360
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x18]
call fcn.0040c5a0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00402ab0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e6dc
xor al, al
jmp 0x40e88d
xor edx, edx
mov word [ebp - 0x5010], dx
push 0x4ffe
push 0
lea eax, [ebp - 0x500e]
push eax
call fcn.00495570
add esp, 0xc
mov dword [ebp - 0x5014], 0x2800
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x5018], edx
lea eax, [ebp - 0x5014]
push eax
lea ecx, [ebp - 0x5010]
push ecx
lea edx, [ebp - 0x5018]
push edx
push 0
mov ecx, dword [ebp + 0x10]
call fcn.00402ab0
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40e7b3
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 1
jne 0x40e75c
lea edx, [ebp - 0x5010]
push edx
mov ecx, dword [ebp + 0x18]
call fcn.004069e0
jmp 0x40e79d
mov eax, dword [ebp + 0x14]
cmp dword [eax], 4
je 0x40e76c
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 3
jne 0x40e79d
mov edx, dword [ebp - 0x5010]
push edx
push 0x4c4a84
push 0xffffffffffffffff
push 0x2800
lea eax, [ebp - 0x5010]
push eax
call fcn.00493875
add esp, 0x14
lea ecx, [ebp - 0x5010]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.004069e0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40e88d
cmp dword [ebp - 8], 2
jne 0x40e881
lea eax, [ebp - 4]
push eax
push 0x101
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00402ab0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e7e6
xor al, al
jmp 0x40e88d
lea edx, [ebp - 0x5014]
push edx
lea eax, [ebp - 0x5010]
push eax
lea ecx, [ebp - 0x5018]
push ecx
push 0
mov ecx, dword [ebp + 0x10]
call fcn.00402ab0
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40e881
mov eax, dword [ebp + 0x14]
cmp dword [eax], 1
jne 0x40e832
lea ecx, [ebp - 0x5010]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.004069e0
jmp 0x40e873
mov edx, dword [ebp + 0x14]
cmp dword [edx], 4
je 0x40e842
mov eax, dword [ebp + 0x14]
cmp dword [eax], 3
jne 0x40e873
mov ecx, dword [ebp - 0x5010]
push ecx
push 0x4c4a8c
push 0xffffffffffffffff
push 0x2800
lea edx, [ebp - 0x5010]
push edx
call fcn.00493875
add esp, 0x14
lea eax, [ebp - 0x5010]
push eax
mov ecx, dword [ebp + 0x18]
call fcn.004069e0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40e88d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004922e7
mov esp, ebp
pop ebp
ret
Function at 0x40ea20
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], str.SoftwareMicrosoftWindowsCurrentVersionRun
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp - 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40eb11
xor edx, edx
mov word [ebp - 0x410], dx
push 0x3fe
push 0
lea eax, [ebp - 0x40e]
push eax
call fcn.00495570
add esp, 0xc
mov dword [ebp - 0x414], 0x200
mov dword [ebp - 0xc], 1
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00402ab0
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40eb07
lea edx, [ebp - 0x410]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00402ab0
push eax
call fcn.0049347c
add esp, 8
test eax, eax
je 0x40eae2
mov ecx, dword [ebp + 0xc]
call fcn.00406a00
movzx eax, al
test eax, eax
je 0x40eb07
mov ecx, dword [ebp + 8]
call fcn.00402ab0
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40eb07
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40eb13
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004922e7
mov esp, ebp
pop ebp
ret

Function at 0x40eb30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40eb5d
or eax, 0xffffffff
jmp 0x40ec06
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40ebf9
movzx edx, byte [ebp + 0xc]
test edx, edx
je 0x40ebb6
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00409a70
add esp, 8
movzx edx, al
test edx, edx
je 0x40ebb4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
jmp 0x40ec06
jmp 0x40ebe4
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402ab0
push eax
call fcn.0049347c
add esp, 8
test eax, eax
jne 0x40ebe4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
jmp 0x40ec06
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 4], eax
jmp 0x40eb7a
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004922e7
mov esp, ebp
pop ebp
ret
Function at 0x40eee0
Capabilities:
Create process on windows
Schedule task via schtasks

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b13b8
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x42c], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x42a]
push ecx
call fcn.00495570
add esp, 0xc
push 0xf
mov ecx, dword [ebp + 0xc]
call fcn.00402ab0
push eax
mov ecx, dword [ebp + 8]
call fcn.00402ab0
push eax
push str._create__tn__s__tr____s_____sc_ONLOGON__DELAY_0000:_2d__RL_HIGHEST__f
lea edx, [ebp - 0x42c]
push edx
call fcn.0040f300
add esp, 0x14
push 0x44
push 0
lea eax, [ebp - 0x484]
push eax
call fcn.00495570
add esp, 0xc
mov dword [ebp - 0x484], 0x44
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x458], 1
xor ecx, ecx
mov word [ebp - 0x454], cx
push 0x4c54bc
lea ecx, [ebp - 0x2c]
call fcn.00401680
mov dword [ebp - 4], 0
push 0x4c54d0
lea ecx, [ebp - 0x2c]
call fcn.00401e50
lea edx, [ebp - 0x42c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401e50
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x484]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00402ab0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40f017
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x488], eax
mov byte [ebp - 0x489], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004016c0
mov al, byte [ebp - 0x489]
jmp 0x40f04d
mov edx, dword [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x48a], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004016c0
mov al, byte [ebp - 0x48a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004922e7
mov esp, ebp
pop ebp
ret
Function at 0x40f070
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b13b8
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x42c], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x42a]
push ecx
call fcn.00495570
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.00402ab0
push eax
push 0x4c54d4
lea edx, [ebp - 0x42c]
push edx
call fcn.0040f300
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x484]
push eax
call fcn.00495570
add esp, 0xc
mov dword [ebp - 0x484], 0x44
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x458], 1
xor ecx, ecx
mov word [ebp - 0x454], cx
push str.Schtasks
lea ecx, [ebp - 0x2c]
call fcn.00401680
mov dword [ebp - 4], 0
push 0x4c550c
lea ecx, [ebp - 0x2c]
call fcn.00401e50
lea edx, [ebp - 0x42c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401e50
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x484]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00402ab0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40f19c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x488], eax
mov byte [ebp - 0x489], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004016c0
mov al, byte [ebp - 0x489]
jmp 0x40f1d2
mov edx, dword [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x48a], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004016c0
mov al, byte [ebp - 0x48a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004922e7
mov esp, ebp
pop ebp
ret

Function at 0x40f410
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.0040f4b0
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
shl ecx, 0xa
cmp dword [ebp - 4], ecx
jg 0x40f439
cmp dword [ebp - 4], 0
jne 0x40f448
mov ecx, dword [ebp + 8]
call fcn.00402ab0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.004016e0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x24], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f960
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret

Function at 0x413060
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x413070
xor eax, eax
jmp 0x41320d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x4131ce
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4c3e58]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4c3e58]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4c3e58]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4c3e58]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4c3e58]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4c3e58]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4c3e58]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4c3e58]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x413079
cmp dword [ebp + 0x10], 0
je 0x413207
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4c3e58]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x4131d4
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret