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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x20019
push esi
push 0x4f769c
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x4cd31b
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x4f76c4
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
pop ebx
jne 0x4cd31b
cmp dword [ebp - 8], 4
jne 0x4cd31b
mov eax, dword [ebp - 0xc]
jmp 0x4cd31d
xor eax, eax
pop esi
leave
ret

Function at 0x4cd61a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
inc dword [0x570694]
push esi
xor esi, esi
cmp dword [0x570684], esi
push edi
jne 0x4cd712
call fcn.004cd1f2
cmp eax, esi
jne 0x4cd714
push str.CFAPI_Initialize
push dword [0x570684]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4cd71a
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [0x570688], ecx
push ecx
call eax
mov edi, eax
cmp edi, esi
jge 0x4cd687
push dword [0x570684]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x570684], esi
mov eax, edi
jmp 0x4cd714
cmp dword [0x570690], esi
je 0x4cd6de
mov eax, dword [0x57068c]
cmp eax, esi
je 0x4cd6d2
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x57068c], esi
je 0x4cd6d2
push 0x3e8
push dword [0x570690]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x570690]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [0x57068c]
cmp eax, esi
je 0x4cd6d2
push eax
call edi
mov dword [0x570690], esi
mov dword [0x57068c], esi
call fcn.004cd2ad
test al, 1
jne 0x4cd712
push esi
push esi
push 1
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x57068c], eax
lea eax, [ebp + 8]
push eax
push esi
push esi
push 0x4cd40c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x570690], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
mov eax, 0x80100101
jmp 0x4cd714
Function at 0x4cd721
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x4f783c
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jne 0x4cd7b7
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.CCAPI
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
pop edi
jne 0x4cd7b7
lea eax, [ebp - 0x110]
push eax
call esi
mov dword [0x570698], eax
cmp dword [0x570698], ebx
jne 0x4cd7d6
push 0x4f786c
call esi
cmp eax, ebx
mov dword [0x570698], eax
jne 0x4cd7d6
mov eax, 0x80100100
jmp 0x4cd7d8
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x4cd7dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x20019
push esi
push 0x4f787c
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x4cd84a
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x4f78a4
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
pop ebx
jne 0x4cd84a
cmp dword [ebp - 8], 4
jne 0x4cd84a
mov eax, dword [ebp - 0xc]
jmp 0x4cd84c
xor eax, eax
pop esi
leave
ret
Function at 0x4cdc4b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
inc dword [0x5706a8]
push esi
xor esi, esi
cmp dword [0x570698], esi
push edi
jne 0x4cdd43
call fcn.004cd721
cmp eax, esi
jne 0x4cdd45
push str.CCAPI_Initialize
push dword [0x570698]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4cdd4b
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [0x57069c], ecx
push ecx
call eax
mov edi, eax
cmp edi, esi
jge 0x4cdcb8
push dword [0x570698]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x570698], esi
mov eax, edi
jmp 0x4cdd45
cmp dword [0x5706a4], esi
je 0x4cdd0f
mov eax, dword [0x5706a0]
cmp eax, esi
je 0x4cdd03
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x5706a0], esi
je 0x4cdd03
push 0x3e8
push dword [0x5706a4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x5706a4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [0x5706a0]
cmp eax, esi
je 0x4cdd03
push eax
call edi
mov dword [0x5706a4], esi
mov dword [0x5706a0], esi
call fcn.004cd7dc
test al, 1
jne 0x4cdd43
push esi
push esi
push 1
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x5706a0], eax
lea eax, [ebp + 8]
push eax
push esi
push esi
push 0x4cd93b
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5706a4], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
mov eax, 0x80100101
jmp 0x4cdd45

Function at 0x4cdd52
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x4f7a98
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jne 0x4cdde8
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.DIAPI
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
pop edi
jne 0x4cdde8
lea eax, [ebp - 0x110]
push eax
call esi
mov dword [0x5706ac], eax
cmp dword [0x5706ac], ebx
jne 0x4cde07
push str.PCCS_ABAPI.dll
call esi
cmp eax, ebx
mov dword [0x5706ac], eax
jne 0x4cde07
mov eax, 0x80100100
jmp 0x4cde09
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x4cde0d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x20019
push esi
push str.SOFTWAREPC_Connectivity_SolutionAPI_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x4cde7b
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.Options
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
pop ebx
jne 0x4cde7b
cmp dword [ebp - 8], 4
jne 0x4cde7b
mov eax, dword [ebp - 0xc]
jmp 0x4cde7d
xor eax, eax
pop esi
leave
ret

Function at 0x4ce297
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
inc dword [0x5706bc]
push esi
xor esi, esi
cmp dword [0x5706ac], esi
push edi
jne 0x4ce38f
call fcn.004cdd52
cmp eax, esi
jne 0x4ce391
push str.DIAPI_Initialize
push dword [0x5706ac]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4ce397
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [0x5706b0], ecx
push ecx
call eax
mov edi, eax
cmp edi, esi
jge 0x4ce304
push dword [0x5706ac]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x5706ac], esi
mov eax, edi
jmp 0x4ce391
cmp dword [0x5706b8], esi
je 0x4ce35b
mov eax, dword [0x5706b4]
cmp eax, esi
je 0x4ce34f
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x5706b4], esi
je 0x4ce34f
push 0x3e8
push dword [0x5706b8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x5706b8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [0x5706b4]
cmp eax, esi
je 0x4ce34f
push eax
call edi
mov dword [0x5706b8], esi
mov dword [0x5706b4], esi
call fcn.004cde0d
test al, 1
jne 0x4ce38f
push esi
push esi
push 1
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x5706b4], eax
lea eax, [ebp + 8]
push eax
push esi
push esi
push 0x4cdf6c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5706b8], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
mov eax, 0x80100101
jmp 0x4ce391

Function at 0x4ce3bb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x56e01c]
jne 0x4ce3c5
repz ret
jmp fcn.004ce8d2
Function at 0x4cef90
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.QtCore4.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_unsigned_short_int_const___int_]
add esp, 0xc
mov ecx, eax
call dword [sym.imp.QtCore4.dll_public:_class_QByteArray___thiscall_QString::toLocal8Bit_void_]
mov edx, dword [esp + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4cefd2
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
add esp, 4
push 8
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0
call fcn.004cef10
lea ecx, [esp + 4]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QByteArray::detach_void_]
mov ecx, dword [esp + 0x20]
lea edx, [esp]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
mov eax, dword [edx + 0xc]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
push edx
call sub.QtCore4.dll_void___cdecl_qWinMain_struct_HINSTANCE_____struct_HINSTANCE_____char___int__int___class_QVector_char____
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add esp, 0x18
cmp ecx, 1
je 0x4cf036
mov eax, dword [esp]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push edx
push eax
lea ecx, [esp + 8]
call fcn.004ced60
mov eax, dword [esp]
mov ecx, dword [esp + 0xc]
push esi
add eax, 0x10
push eax
push ecx
call fcn.00401020
mov esi, eax
mov eax, dword [esp + 0xc]
add esp, 8
test eax, eax
je 0x4cf06e
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x4cf06e
mov eax, dword [esp + 4]
push 4
push eax
call dword [sym.imp.QtCore4.dll_public:_static_void___cdecl_QVectorData::free_struct_QVectorData___int_]
add esp, 8
mov ecx, dword [esp + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4cf089
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.QtCore4.dll_void___cdecl_qFree_void__]
add esp, 4
mov eax, esi
pop esi
add esp, 0x10
ret 0x10
Function at 0x401a85
Capabilities:
Create service
Modify service
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x40501c]
push ebx
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x108]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, ebx
mov byte [ebp - 5], bl
je 0x401c3f
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 0x614], eax
je 0x401c3f
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x65
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push ebx
push ebx
push 0x401584
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
push 1
push 3
push 0x110
mov edi, 0xf01ff
push edi
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x40157c
push esi
push dword [ebp - 0x614]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, ebx
mov dword [ebp - 0x610], eax
je 0x401bab
cmp dword [0x405058], 2
jne 0x401c25
push 1
push 0x40156c
call fcn.00403d92
mov edi, eax
cmp edi, ebx
je 0x401c25
push 0x401554
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x401ba2
push 0x400
lea eax, [ebp - 0x60c]
push eax
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x60c]
mov dword [ebp - 0x618], eax
lea eax, [ebp - 0x618]
push eax
push 1
push dword [ebp - 0x610]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x401c25
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x401c31
push edi
push esi
push dword [ebp - 0x614]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, ebx
mov dword [ebp - 0x610], eax
je 0x401c31
mov esi, 0x4050e0
push esi
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401c0c
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401bf4
cmp dword [0x4050e4], 3
jne 0x401c0c
push 0x3e8
call edi
push esi
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x401beb
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x614]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.004039e7
leave
ret
Function at 0x401c4f
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [ebp - 8], eax
je 0x401ceb
push ebx
push 0xf01ff
push 0x40157c
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], ebx
je 0x401ce1
push esi
mov esi, 0x4050e0
push esi
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401cce
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
push esi
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x401cc7
cmp dword [0x4050e4], 3
jne 0x401ccd
push 0x3e8
call edi
push esi
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x401cb3
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
leave
ret

Function at 0x401d97
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 1
push esi
mov dword [ebp - 0x10], 0x40157c
mov dword [ebp - 0xc], 0x401d59
jle 0x401e17
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x401dcf
cmp cl, 0x2f
jne 0x401e16
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringA]
push 0xffffffffffffffff
inc eax
push eax
push 0xffffffffffffffff
push 0x4015b4
push 1
push 0x7f
call esi
dec eax
dec eax
jne 0x401df1
call fcn.00401a85
jmp 0x401e0e
mov eax, dword [ebx + 4]
push 0xffffffffffffffff
inc eax
push eax
push 0xffffffffffffffff
push 0x4015ac
push 1
push 0x7f
call esi
dec eax
dec eax
jne 0x401e16
call fcn.00401c4f
push 0
call dword [sym.imp.msvcrt.dll_exit]
pop ebx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x401e37
push 0x401588
push 0xc0000001
push eax
push 1
call fcn.00403d35
pop esi
leave
ret
Function at 0x401eb7
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0x40501c]
push ebx
mov dword [ebp - 4], eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x314], eax
je 0x401f9d
push esi
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401f94
push edi
xor eax, eax
mov dword [ebp - 0x324], ebx
lea edi, [ebp - 0x320]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
pop ecx
push dword [ebp - 0x314]
xor eax, eax
lea edi, [ebp - 0x364]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push 0x4015f0
push eax
mov dword [ebp - 0x368], 0x44
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x368]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x310]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x401f94
push dword [ebp - 0x320]
inc ebx
call esi
push dword [ebp - 0x324]
call esi
push dword [ebp - 0x314]
call esi
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
call fcn.004039e7
leave
ret
Function at 0x402037
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [0x405114], 2
je 0x40204c
xor eax, eax
leave
ret
mov ecx, dword [0x405160]
push esi
xor esi, esi
cmp ecx, esi
push edi
mov dword [0x405114], 1
je 0x402084
mov eax, dword [0x405168]
cmp eax, esi
je 0x40207e
mov ecx, dword [eax]
push esi
push esi
push esi
push 0x65
push eax
call dword [ecx + 0x38]
mov ecx, dword [0x405160]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x3c]
call fcn.00402bd3
mov eax, dword [0x40516c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
push esi
push esi
push esi
mov dword [0x40516c], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
mov edi, 0x3e8
mov dword [ebp - 4], 1
push 0xff
push edi
push esi
lea eax, [ebp - 8]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
je 0x402135
cmp eax, 0x102
je 0x402135
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp - 0xc]
lea ecx, [edi + 0x3e8]
cmp eax, ecx
jae 0x402135
sub edi, eax
add edi, 0x3e8
jmp 0x40211d
cmp dword [ebp - 0x24], 0x12
je 0x402113
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40211d
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [ebp - 4], esi
push 1
push esi
push esi
lea eax, [ebp - 0x28]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x4020f7
cmp dword [ebp - 4], esi
jne 0x4020bc
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
call fcn.00402b93
push 0x40163c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x40215b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x405058], 2
je 0x402176
mov eax, dword [0x405110]
cmp eax, esi
je 0x402176
push eax
call edi
mov dword [0x405110], esi
xor eax, eax
pop edi
mov dword [0x405114], esi
inc eax
pop esi
leave
ret

Function at 0x40296e
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [0x405168], 0
mov eax, dword [0x40501c]
mov dword [ebp - 4], eax
je 0x402a1a
push 0
push 1
push 0x80000002
push 0x401750
lea ecx, [ebp - 0x38]
call fcn.00403e41
push 2
push 0x40173c
lea ecx, [ebp - 0x38]
call fcn.00403fb3
mov ecx, dword [0x405168]
mov edx, dword [ecx]
push eax
push 0x46
push ecx
call dword [edx + 0x34]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x4029e7
push 0x401738
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402559
push dword [eax]
mov ecx, dword [0x405168]
mov edx, dword [ecx]
push 6
push ecx
call dword [edx + 0x14]
cmp dword [ebp - 0x18], 0
je 0x402a12
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x38]
call fcn.00404059
mov ecx, dword [ebp - 4]
call fcn.004039e7
leave
ret
Function at 0x403aff
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x401890
call fcn.00403ccc
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x403b3a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403b3a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403b52
cmp eax, 0x20b
je 0x403b3f
mov dword [ebp - 0x1c], edi
jmp 0x403b66
cmp dword [ecx + 0x84], 0xe
jbe 0x403b3a
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x403b60
cmp dword [ecx + 0x74], 0xe
jbe 0x403b3a
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x4051a0], 0xffffffff
or dword [0x4051a4], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x405194]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x405190]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4051a8], eax
call fcn.00403cc4
cmp dword [0x405020], edi
jne 0x403bc1
push fcn.00403cc4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00403cad
push 0x405010
push 0x40500c
call sub.msvcrt.dll__initterm
mov eax, dword [0x40518c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x405188]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x405008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00401e3f
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x403c38
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x403c6d
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00403d07
ret

Function at 0x403d92
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 0xc], 0
mov eax, dword [0x40501c]
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x108]
je 0x403dfc
push 0x102
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x403e06
mov byte [ebp + eax - 0x108], 0x5c
mov byte [ebp + eax - 0x107], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
lea eax, [ebp - 0x108]
push eax
call esi
push ebx
mov edi, eax
call esi
mov ecx, eax
add ecx, edi
mov eax, 0x104
cmp ecx, eax
jl 0x403e0a
xor eax, eax
jmp 0x403e2d
push eax
call fcn.004042d5
test eax, eax
jne 0x403dd5
xor eax, eax
jmp 0x403e2f
sub eax, edi
push eax
push ebx
lea eax, [ebp + edi - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.004039e7
leave
ret 8