joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46eb30
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x664
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x660], eax
push ebp
push esi
mov esi, dword [esp + 0x670]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x262]
push ecx
mov word [esp + 0x264], ax
call fcn.00487630
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x476]
push eax
mov word [esp + 0x478], dx
call fcn.00487630
push esi
push 0x4a6f18
lea ecx, [esp + 0x480]
push 0x208
push ecx
call fcn.00466960
add esp, 0x28
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x46ec9b
push edi
lea ecx, [esp + 0xc]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x46ec84
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [esp + 0x10], 0x10
je 0x46ec36
cmp word [esp + 0x3c], 0x2e
je 0x46ec6f
lea edx, [esp + 0x3c]
push edx
push esi
push 0x4a6f24
lea eax, [esp + 0x26c]
push 0x208
push eax
call fcn.00466960
add esp, 0x14
push 0x80
lea ecx, [esp + 0x264]
push ecx
call edi
lea edx, [esp + 0x260]
push edx
call fcn.0046eb30
add esp, 4
jmp 0x46ec6f
lea eax, [esp + 0x3c]
push eax
push esi
push 0x4a6f30
lea ecx, [esp + 0x26c]
push 0x208
push ecx
call fcn.00466960
add esp, 0x14
push 0x80
lea edx, [esp + 0x264]
push edx
call edi
lea eax, [esp + 0x260]
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46ebe2
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
mov ecx, dword [esp + 0x668]
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00486dc0
add esp, 0x664
ret
Function at 0x46ecc0
Capabilities:
Resolve function by parsing pe exports
Send icmp echo request

Disassembly:
sub esp, 0x7c
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x88]
push ebp
mov ebp, dword [esp + 0x88]
xor eax, eax
push esi
xor esi, esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], eax
mov byte [esp + 0x3c], 0x80
test ebp, ebp
je 0x46ee39
test ecx, ecx
je 0x46ee39
mov dword [ebp], eax
mov dword [ecx], eax
call sub.IPHLPAPI.DLL_IcmpCreateFile
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x46ee37
xor eax, eax
push ebx
mov ebx, dword [esp + 0x8c]
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
xor edi, edi
mov esi, dword [0x4ca334]
push esi
lea eax, [esp + 0x50]
push 0
push eax
call fcn.00487630
mov eax, dword [esp + 0x1c]
add esp, 0xc
push 0xc8
push esi
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x50]
push edx
push 0x20
push 0x4ca314
push ebx
push eax
call sub.IPHLPAPI.DLL_IcmpSendEcho
test eax, eax
je 0x46eda6
cmp dword [esp + 0x50], 0
jne 0x46eda6
movzx edx, byte [esp + 0x60]
mov ecx, dword [esp + 0x54]
mov dword [esp + edi*4 + 0x14], ecx
mov dword [ebp], edx
inc edi
cmp edi, 0xa
jl 0x46ed53
cmp dword [ebp], 0
pop edi
pop ebx
je 0x46ee29
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jle 0x46edc2
mov eax, ecx
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jle 0x46edcc
mov eax, ecx
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jle 0x46edd6
mov eax, ecx
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jle 0x46ede0
mov eax, ecx
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jle 0x46edea
mov eax, ecx
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jle 0x46edf4
mov eax, ecx
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jle 0x46edfe
mov eax, ecx
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jle 0x46ee08
mov eax, ecx
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jle 0x46ee12
mov eax, ecx
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
test eax, eax
ja 0x46ee22
mov dword [ecx], 1
mov esi, 1
jmp 0x46ee2d
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 8]
push eax
call sub.IPHLPAPI.DLL_IcmpCloseHandle
mov eax, esi
mov ecx, dword [esp + 0x80]
pop esi
pop ebp
xor ecx, esp
call fcn.00486dc0
add esp, 0x7c
ret
Function at 0x46ee50
Capabilities:
Send icmp echo request

Disassembly:
sub esp, 0x48
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push esi
mov esi, dword [esp + 0x58]
xor eax, eax
xor ebx, ebx
push edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov byte [esp + 0xc], 0x80
test esi, esi
je 0x46ef05
test edi, edi
je 0x46ef05
mov dword [esi], eax
push ebp
mov dword [edi], eax
call sub.IPHLPAPI.DLL_IcmpCreateFile
mov ebp, eax
cmp ebp, 0xffffffff
je 0x46ef02
mov eax, dword [0x4ca358]
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.00487630
mov edx, dword [0x4ca358]
add esp, 0xc
push 0xc8
push edx
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x20
push str.EEEEEEEEEEEE
push edx
push ebp
call sub.IPHLPAPI.DLL_IcmpSendEcho
test eax, eax
je 0x46eefc
cmp dword [esp + 0x1c], ebx
jne 0x46eefc
mov eax, dword [esp + 0x20]
test eax, eax
ja 0x46eeee
mov eax, 1
mov dword [esp + 0x20], eax
mov dword [edi], eax
movzx eax, byte [esp + 0x2c]
mov dword [esi], eax
mov ebx, 1
push ebp
call sub.IPHLPAPI.DLL_IcmpCloseHandle
mov eax, ebx
pop ebp
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00486dc0
add esp, 0x48
ret

Function at 0x46ef20
Capabilities:
Send icmp echo request

Disassembly:
sub esp, 0x4c
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
xor eax, eax
xor esi, esi
mov dword [esp + 4], eax
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov byte [esp + 8], 1
mov dword [esp + 0x14], esi
call sub.IPHLPAPI.DLL_IcmpCreateFile
mov edi, eax
cmp edi, 0xffffffff
jne 0x46ef68
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00486dc0
add esp, 0x4c
ret
push ebx
mov ebx, dword [esp + 0x5c]
lea ecx, [ecx]
cmp esi, ebx
jg 0x46efbd
push 0x3e8
push 0x3c
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x20
push 0x4ce284
push 0x72727272
push edi
call sub.IPHLPAPI.DLL_IcmpSendEcho
test eax, eax
je 0x46efa9
cmp esi, ebx
je 0x46efb5
cmp dword [esp + 0x18], 0x72727272
je 0x46efbd
inc byte [esp + 0xc]
inc esi
cmp esi, 0x1e
jl 0x46ef70
jmp 0x46efbd
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
push edi
call sub.IPHLPAPI.DLL_IcmpCloseHandle
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.00486dc0
add esp, 0x4c
ret
Function at 0x46f1f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49dbdb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4cacfc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.00401350
push 0x53
lea ecx, [esi + 0x14]
mov dword [esi + 0x10], vtable.DuiLib::CNotifyPump.0
call fcn.00402970
mov dword [esi + 0x20], vtable.DuiLib::INotifyUI.0
mov dword [esi + 0x24], vtable.DuiLib::IMessageFilterUI.0
mov dword [esi + 0x28], vtable.DuiLib::IDialogBuilderCallback.0
mov dword [esi + 0x2c], vtable.DuiLib::IQueryControlText.0
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], 0
mov dword [esi], vtable.DuiLib::WindowImplBase.5.0
mov dword [esi + 0x10], vtable.DuiLib::WindowImplBase.4.0
mov dword [esi + 0x20], vtable.DuiLib::WindowImplBase.3.0
mov dword [esi + 0x24], vtable.DuiLib::WindowImplBase.2.0
mov dword [esi + 0x28], vtable.DuiLib::WindowImplBase.1.0
mov dword [esi + 0x2c], vtable.DuiLib::WindowImplBase.0
call fcn.00403ca0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x46fff0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x47005e
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x470000
sub eax, edx
push edi
mov edi, eax
cmp edi, 1
jl 0x47005d
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x47005d
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x47005d
push esi
lea eax, [edi + 1]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x47005c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
push eax
call fcn.004877d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop esi
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
pop ebx
ret

Function at 0x470090
Capabilities:
Create process on windows

Disassembly:
movzx eax, word [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push 0
push ecx
push edx
push 0x4a70ac
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x4701d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xc], ebx
cmp dword [0x4ce2ac], ebx
je 0x4701ea
cmp dword [0x4ce2b0], ebx
ja 0x470245
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x4a718c
mov esi, eax
push 0xb
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x470309
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x470309
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x4ce2ac], eax
test eax, eax
je 0x470309
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x4ce2b0], eax
test eax, eax
jbe 0x470309
mov eax, dword [esp + 0x14]
test eax, eax
je 0x470309
push ebp
push eax
call fcn.00465f90
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x470301
mov byte [ebp + 8], bl
lea edx, [eax + 1]
jmp 0x470270
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x470270
sub eax, edx
mov esi, eax
test esi, esi
jle 0x4702f8
mov eax, dword [0x4ce2ac]
push ebp
push eax
call fcn.00488890
add esp, 8
test eax, eax
je 0x4702f8
lea ebx, [eax + esi + 1]
push 0x4a719c
push ebx
call fcn.00488890
add esp, 8
test eax, eax
jne 0x4702b6
push eax
push ebx
call fcn.004887d0
add esp, 8
test eax, eax
je 0x4702f4
sub eax, ebx
inc eax
mov edi, eax
cmp edi, 1
jle 0x4702f4
push edi
call fcn.0048690e
push edi
mov esi, eax
push 0
push esi
call fcn.00487630
dec edi
push edi
push ebx
push esi
call fcn.004877d0
push esi
call fcn.00466000
add esp, 0x20
mov dword [esp + 0x10], eax
test esi, esi
je 0x4702f4
push esi
call fcn.00487d04
add esp, 4
mov ebx, dword [esp + 0x10]
push ebp
call fcn.00487d04
add esp, 4
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x470400
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4ce304]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
xor edi, edi
mov ebx, ecx
cmp eax, edi
je 0x47041f
push eax
call esi
mov dword [0x4ce304], edi
mov eax, dword [0x4ce2fc]
cmp eax, edi
je 0x470431
push eax
call esi
mov dword [0x4ce2fc], edi
mov eax, dword [0x4ce2f8]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push eax
call ebp
mov eax, dword [0x4ce2f8]
cmp eax, edi
je 0x470454
push eax
call esi
mov dword [0x4ce2f8], edi
mov eax, dword [0x4ce2e8]
cmp eax, edi
je 0x470466
push eax
call esi
mov dword [0x4ce2e8], edi
mov eax, dword [0x4ce2f4]
cmp eax, edi
je 0x470478
push eax
call esi
mov dword [0x4ce2f4], edi
mov eax, dword [0x4ce2ec]
cmp eax, edi
je 0x47048a
push eax
call esi
mov dword [0x4ce2ec], edi
mov eax, dword [0x4ce2f0]
cmp eax, edi
je 0x47049c
push eax
call esi
mov dword [0x4ce2f0], edi
mov eax, dword [0x4ce2d8]
cmp eax, edi
je 0x4704ae
push eax
call esi
mov dword [0x4ce2d8], edi
mov eax, dword [0x4ce2dc]
cmp eax, edi
je 0x4704c0
push eax
call esi
mov dword [0x4ce2dc], edi
mov eax, dword [0x4ce2e4]
cmp eax, edi
je 0x4704d2
push eax
call esi
mov dword [0x4ce2e4], edi
mov eax, dword [0x4ce2e0]
cmp eax, edi
je 0x4704e4
push eax
call esi
mov dword [0x4ce2e0], edi
mov ecx, dword [ebx + 4]
push 6
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebx + 0x93c]
push 0xffffffffffffffff
push edx
call ebp
mov eax, dword [ebx + 0x93c]
pop ebp
cmp eax, edi
je 0x47050f
push eax
call esi
mov dword [ebx + 0x93c], edi
call dword [sym.imp.WS2_32.dll_WSACleanup]
push edi
call dword [sym.imp.USER32.dll_PostQuitMessage]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x471720
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x22c
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x228], eax
xor eax, eax
push esi
mov esi, ecx
lea ecx, [esp + 0x24]
push 0x208
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
mov edx, ecx
push 0
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 3
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x4a7da0
mov dword [esp + 0x24], 0
call fcn.00487630
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test eax, eax
je 0x4717fc
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4717fc
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
jne 0x4717fc
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4717fc
lea ecx, [esp + 0x24]
push ecx
call fcn.00479890
add esp, 4
test eax, eax
je 0x4717eb
mov edx, dword [esi + 4]
push 0x4a7dcc
push edx
jmp 0x4717f4
mov eax, dword [esi + 4]
push 0x4a7dd4
push eax
call fcn.004772b0
add esp, 8
mov ecx, dword [esp + 0x22c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00486dc0
add esp, 0x22c
ret

Function at 0x472290
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49e6ab
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push esi
push edi
mov eax, dword [0x4cacfc]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [0x4ce30c]
mov eax, dword [ecx + 0x6c0]
mov edx, dword [eax + 8]
add ecx, 0x6c0
call edx
test eax, eax
jl 0x4723b3
mov ecx, dword [0x4ce30c]
mov edx, dword [ecx + 0x550]
add ecx, 0x550
push eax
mov eax, dword [edx]
call eax
test eax, eax
je 0x4723b8
mov edx, dword [eax + 0x550]
lea ecx, [eax + 0x550]
mov eax, dword [edx]
push 2
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call edx
sub esp, 0x84
mov edi, esp
push 0x4a7b2c
push 0x80
mov ecx, 0x21
lea esi, [esp + 0x9c]
push 0x4ce520
mov dword [esp + 0x130], 0
rep movsd dword es:[edi], dword [esi]
call fcn.00466990
push 0x4ce520
push 0x4a7b38
push 0x104
push 0x4ce318
call fcn.00466960
add esp, 0xa0
push 0x4ce318
mov ecx, ebx
call fcn.004720f0
push 5
push 0
push 0
push 0x4ce520
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x10]
mov dword [esp + 0xa0], 0xffffffff
call fcn.00401fd0
mov eax, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00486dc0
add esp, 0x94
ret
Function at 0x472b30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49e6ab
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push esi
push edi
mov eax, dword [0x4cacfc]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [0x4ce310]
mov eax, dword [ecx + 0x6c0]
mov edx, dword [eax + 8]
add ecx, 0x6c0
call edx
test eax, eax
jl 0x472c3f
mov ecx, dword [0x4ce310]
mov edx, dword [ecx + 0x550]
add ecx, 0x550
push eax
mov eax, dword [edx]
call eax
test eax, eax
je 0x472c3f
mov edx, dword [eax + 0x550]
lea ecx, [eax + 0x550]
mov eax, dword [edx]
push 1
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call edx
sub esp, 0x84
mov edi, esp
push 0x4a7bd0
push 0x104
mov ecx, 0x21
lea esi, [esp + 0x9c]
push 0x4ce9b0
mov dword [esp + 0x130], 0
rep movsd dword es:[edi], dword [esi]
call fcn.00466960
add esp, 0x90
push 0x4ce9b0
mov ecx, ebx
call fcn.004720f0
push 5
push 0
push 0
lea ecx, [esp + 0x1c]
call fcn.00402010
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x10]
mov dword [esp + 0xa0], 0xffffffff
call fcn.00401fd0
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00486dc0
add esp, 0x94
ret
Function at 0x4772b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49eaeb
mov eax, dword fs:[0]
push eax
sub esp, 0x92c
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x928], eax
push esi
push edi
mov eax, dword [0x4cacfc]
xor eax, esp
push eax
lea eax, [esp + 0x938]
mov dword fs:[0], eax
mov esi, dword [esp + 0x948]
mov edi, dword [esp + 0x94c]
lea ecx, [esp + 0xc]
call fcn.00477150
push 0
push connect
push connect
push connect
push connect
push 0x81
push 0x96c80000
push 0
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x964], 0
call fcn.00401370
push str.content
lea ecx, [esp + 0x40]
call fcn.0040a7c0
test eax, eax
je 0x477353
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x2c]
push edi
call eax
lea ecx, [esp + 0xc]
call fcn.00401480
lea ecx, [esp + 0xc]
mov dword [esp + 0x940], 0xffffffff
mov dword [esp + 0xc], vtable.MsgBox.5.0
mov dword [esp + 0x1c], vtable.MsgBox.4.0
mov dword [esp + 0x2c], vtable.MsgBox.3.0
mov dword [esp + 0x30], vtable.MsgBox.2.0
mov dword [esp + 0x34], vtable.MsgBox.1.0
mov dword [esp + 0x38], vtable.MsgBox.0
call fcn.00465840
mov ecx, dword [esp + 0x938]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x928]
xor ecx, esp
call fcn.00486dc0
add esp, 0x938
ret
Function at 0x477750
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x124
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
mov ebp, dword [esp + 0x138]
push esi
mov esi, dword [esp + 0x134]
push edi
push 0xf4
push 0
push ebp
call fcn.00487630
mov eax, dword [esp + 0x148]
lea edi, [esi + eax]
add esi, 0xc
mov dword [esp + 0x1c], esi
push pe_nt_image_headers32
lea eax, [esp + 0x40]
lea esi, [esp + 0x20]
mov dword [esp + 0x28], edi
call fcn.004776a0
mov esi, dword [esp + 0x20]
movzx eax, word [esi]
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
add esp, 0x10
push eax
add esi, 2
call ebx
movzx eax, word [esi]
push eax
call ebx
movzx eax, word [esi + 6]
add esi, 6
push eax
add esi, 2
call ebx
movzx ecx, ax
mov edx, edi
sub edx, esi
cmp ecx, edx
jle 0x4777e5
xor eax, eax
jmp 0x4778f6
movzx eax, byte [esi]
inc esi
test eax, eax
jl 0x4777de
cmp eax, 0xa
lea ecx, [eax + eax*8]
lea ecx, [esi + ecx*2]
mov dword [esp + 0x14], ecx
jle 0x477801
mov eax, 0xa
lea edx, [eax + eax*8]
lea eax, [esi + edx*2]
mov dword [esp + 0x10], eax
cmp esi, eax
jae 0x47789b
mov eax, dword [ebp + 0xec]
mov ecx, eax
inc eax
imul ecx, ecx, 0x17
mov dword [ebp + 0xec], eax
xor eax, eax
mov word [esp + 0x2c], ax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov edx, dword [esi]
mov dword [esp + 0x1c], edx
mov eax, dword [esi + 4]
mov dword [esp + 0x20], eax
lea edi, [ecx + ebp + 6]
mov ecx, dword [esi + 8]
mov dword [esp + 0x24], ecx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x28], edx
mov ax, word [esi + 0x10]
mov word [esp + 0x2c], ax
mov ecx, dword [esp + 0x2c]
push ecx
call ebx
mov word [edi + 0x11], ax
mov dl, byte [esp + 0x2b]
push 0xf
lea eax, [esp + 0x20]
push eax
push edi
mov byte [edi + 0x10], dl
call fcn.00488920
add esi, 0x12
add esp, 0xc
mov byte [edi + 0xf], 0
cmp esi, dword [esp + 0x10]
jb 0x477813
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub edi, ecx
cmp edi, 0x2e
jl 0x4778d1
mov edx, dword [ecx]
cmp edx, dword [0x4a83f0]
jne 0x4778b8
cmp byte [ecx + 4], 0
jne 0x4778b8
cmp byte [ecx + 5], 0
je 0x4778d1
mov eax, edx
mov dword [ebp], eax
mov cx, word [ecx + 4]
mov word [ebp + 4], cx
mov dword [ebp + 0xf0], 1
jmp 0x4778db
mov dword [ebp + 0xf0], 0
cmp dword [ebp + 0xec], 0
jg 0x4778f1
cmp dword [ebp + 0xf0], 0
jle 0x4777de
mov eax, 1
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00486dc0
add esp, 0x124
ret
Function at 0x477910
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
mov esi, eax
test esi, esi
jne 0x47791f
pop esi
add esp, 0x54
ret
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00487630
add esp, 0xc
xor eax, eax
xor ecx, ecx
lea edx, [esp + 4]
push edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push esi
push ecx
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
mov word [esp + 0x6c], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x477994
cmp dword [esp + 0x5c], 0
je 0x477994
mov ecx, dword [esp + 4]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x477994
mov esi, 1
mov eax, esi
pop esi
add esp, 0x54
ret
Function at 0x477e60
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x2c
push ebp
push esi
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x10], esi
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
cmp dword [esp + 0x38], esi
je 0x478011
push edi
mov edi, dword [esp + 0x40]
cmp edi, esi
je 0x478019
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
lea edx, [esp + 0x1c]
push edx
push esi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov eax, dword [esp + 0x10]
cmp eax, esi
jbe 0x478019
cmp dword [esp + 0xc], esi
jbe 0x478019
push ebx
push eax
call fcn.0048690e
mov esi, eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048690e
mov ebx, eax
mov eax, dword [esp + 0x1c]
push eax
push ebp
push esi
call fcn.00487630
mov ecx, dword [esp + 0x24]
lea edx, [ecx + ecx]
push edx
push ebp
push ebx
call fcn.00487630
add esp, 0x20
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push esi
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x477fde
push 1
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x477fde
push esi
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edi, eax
add edi, 0x10
push edi
call fcn.0048690e
push edi
mov ebp, eax
push 0
push ebp
call fcn.00487630
add esp, 0x10
push 2
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x477fde
mov al, byte [esp + 0x4c]
test al, al
jne 0x477f7d
mov ecx, dword [esp + 0x48]
push esi
push ecx
push 3
push 2
push ebp
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAceEx]
jmp 0x477f92
cmp al, 1
jne 0x477fde
mov edx, dword [esp + 0x48]
push esi
push edx
push 3
push 2
push ebp
call dword [sym.imp.ADVAPI32.dll_AddAccessDeniedAceEx]
test eax, eax
je 0x477fde
push 0
push ebp
push 1
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x477fde
mov eax, dword [esp + 0x40]
push 0
lea edx, [esp + 0x24]
push edx
push 0x5dd
push eax
lea ecx, [esp + 0x38]
push 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], ecx
call sub.NETAPI32.dll_NetShareSetInfo
test eax, eax
jne 0x477fde
mov dword [esp + 0x18], 1
test esi, esi
je 0x477feb
push esi
call fcn.00487d04
add esp, 4
test ebx, ebx
je 0x477ff8
push ebx
call fcn.00487d04
add esp, 4
pop ebx
test ebp, ebp
je 0x478006
push ebp
call fcn.00487d04
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
add esp, 0x2c
ret
mov eax, esi
pop esi
pop ebp
add esp, 0x2c
ret
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x2c
ret