joyce8/EMBER2024-capa huggingface dataset:
Function at 0x518e14
Capabilities:
Create process on windows
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404800
mov eax, dword [ebp + 8]
call fcn.00404800
xor eax, eax
push ebp
push 0x51907b
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x519048
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
push ebx
call sub.kernel32.dll_Process32First
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x519030
cmp edi, dword [ebp - 0x124]
jne 0x51901d
call fcn.0040b874
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004b0b90
cmp eax, 0x1f4
jge 0x519038
cmp byte [0x52afe0], 1
jne 0x518ed5
cmp eax, 0x1f4
jge 0x518ee7
mov edx, 0x1f4
sub edx, eax
push edx
call sub.kernel32.dll_Sleep_1
jmp 0x518ee7
cmp eax, 0xa
jge 0x518ee7
mov edx, 0xa
sub edx, eax
push edx
call sub.kernel32.dll_Sleep_1
mov eax, dword [esi + 0x36c]
push dword [eax + 0x30]
mov eax, dword [esi + 0x370]
push dword [eax + 0x30]
mov eax, dword [esi + 0x374]
push dword [eax + 0x30]
lea eax, [ebp - 0x130]
mov edx, 3
call fcn.004046d0
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp + 8]
call fcn.0040475c
jne 0x518f2c
mov eax, dword [ebp + 8]
call fcn.00518c84
jmp 0x518f44
push 0
mov eax, dword [ebp - 0x124]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
push 0x1f4
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp + 8]
mov edx, 0x519094
call fcn.0040475c
je 0x518f6c
mov eax, dword [ebp + 8]
mov edx, 0x5190ac
call fcn.0040475c
jne 0x518f95
push 1
push 0
mov eax, dword [0x52afec]
call fcn.00404810
push eax
mov eax, dword [ebp - 4]
call fcn.00404810
push eax
push 0x5190c0
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x519038
mov eax, dword [ebp + 8]
mov edx, 0x5190d0
call fcn.0040475c
je 0x518fd1
mov eax, dword [ebp + 8]
mov edx, 0x5190ec
call fcn.0040475c
je 0x518fd1
mov eax, dword [ebp + 8]
mov edx, 0x519100
call fcn.0040475c
je 0x518fd1
mov eax, dword [ebp + 8]
mov edx, 0x519114
call fcn.0040475c
jne 0x518ff7
push 1
push 0
mov eax, dword [0x52afe8]
call fcn.00404810
push eax
mov eax, dword [ebp - 4]
call fcn.00404810
push eax
push 0x5190c0
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x519038
push 1
push 0
mov eax, dword [0x52afe4]
call fcn.00404810
push eax
mov eax, dword [ebp - 4]
call fcn.00404810
push eax
push 0x5190c0
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x519038
lea eax, [ebp - 0x12c]
push eax
push ebx
call sub.kernel32.dll_Process32Next
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x518e88
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x519052
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x519082
lea eax, [ebp - 0x130]
call fcn.00404350
lea eax, [ebp - 4]
call fcn.00404350
lea eax, [ebp + 8]
call fcn.00404350
ret
Function at 0x4043f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f008
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x43d010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea edi, [ebx + 4]
push edi
mov dword [ebp - 0x48], edi
call fcn.00406181
add esp, 4
test eax, eax
je 0x40443d
push eax
call fcn.00406352
add esp, 4
cmp byte [esi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jne 0x40445f
xor ecx, ecx
jmp 0x40446d
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404464
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00404af0
lea eax, [ebx + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
push ecx
mov ecx, eax
call fcn.004028f0
cmp dword [ebp - 0x14], 0x10
mov byte [ebp - 4], 0
mov ebx, dword [eax]
jb 0x4044a3
push dword [ebp - 0x28]
call fcn.00406592
add esp, 4
mov dword [ebp - 0x18], 0
test ebx, ebx
je 0x40455d
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x21
push str.GameMain::addPlug
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004048e0
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [esi], 0
jne 0x4044f1
xor ecx, ecx
jmp 0x4044ff
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4044f6
sub ecx, edi
push ecx
push esi
mov ecx, edx
call fcn.00404af0
lea eax, [ebp - 0x40]
push eax
call fcn.00405700
add esp, 0x1c
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00404810
cmp dword [ebp - 0x2c], 8
jb 0x404536
push dword [ebp - 0x40]
call fcn.00406592
add esp, 4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x30
cmovae eax, dword [ebp - 0x28]
push str.Plug_Message_
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call fcn.00407011
cmp byte [esi], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
jne 0x404571
xor ecx, ecx
jmp 0x40457f
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404576
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00404af0
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 4
call fcn.004028f0
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
cmp dword [ebp - 0x14], 0x10
jb 0x4045af
push dword [ebp - 0x28]
call fcn.00406592
add esp, 4
push edi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00406192
add esp, 4
test eax, eax
je 0x4045de
push eax
call fcn.00406352
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407566
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409cf3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4188f9
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43d010]
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.0040ae2c
mov dword [ebp - 0x14], eax
cmp dword [0x44034c], esi
jne 0x4189ec
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x418979
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x418acc
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x418acc
push 0x434c3c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x418acc
push eax
call ebx
push 0x434c48
push edi
mov dword [0x44034c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x440350], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x440354], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44035c], eax
test eax, eax
je 0x4189e9
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x440358], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x418a11
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x418a04
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x418a26
push 4
pop eax
jmp 0x418ace
cmp dword [ebp - 0x14], esi
je 0x418a26
push dword [0x44034c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x418a0b
mov eax, dword [0x440358]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x418a84
cmp dword [0x44035c], edi
je 0x418a84
push eax
call ebx
push dword [0x44035c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x418a84
test eax, eax
je 0x418a84
call ecx
test eax, eax
je 0x418a79
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 0x418a79
test byte [ebp - 8], 1
jne 0x418a84
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x418ab4
mov eax, dword [0x440350]
cmp eax, edi
je 0x418ab1
push eax
call ebx
test eax, eax
je 0x418ab1
call eax
mov esi, eax
test esi, esi
je 0x418ab1
mov eax, dword [0x440354]
cmp eax, edi
je 0x418ab1
push eax
call ebx
test eax, eax
je 0x418ab1
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x44034c]
call ebx
test eax, eax
je 0x418acc
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x418ace
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407566
mov esp, ebp
pop ebp
ret
Function at 0x402a35
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push dword [0x41ac80]
call sub.USER32.dll_GetDC
mov dword [ebp - 0x14], eax
push dword [0x41ac88]
push dword [ebp - 0x14]
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x1c], eax
push dword [ebp + 8]
call sub.KERNEL32.dll_lstrlenA
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
push dword [ebp + 8]
push dword [ebp - 0x14]
call sub.GDI32.dll_GetTextExtentPoint32A
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push dword [ebp - 8]
pop dword [ebp - 0x24]
push dword [ebp - 4]
pop dword [ebp - 0x20]
lea eax, [ebp - 0x10]
push eax
call sub.USER32.dll_GetCursorPos
push dword [ebp + 8]
push 0xffffffffffffffeb
push dword [0x41ac80]
call sub.USER32.dll_SetWindowLongA
add dword [ebp - 0x10], 8
add dword [ebp - 0xc], 8
add dword [ebp - 8], 2
add dword [ebp - 4], 2
push 1
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [0x41ac80]
call sub.USER32.dll_MoveWindow
push 4
push dword [0x41ac80]
call sub.USER32.dll_ShowWindow
push 0
push 0
push dword [0x41ac80]
call sub.USER32.dll_InvalidateRect
push dword [0x41ac80]
call sub.USER32.dll_UpdateWindow
push dword [ebp - 0x14]
push dword [0x41ac80]
call sub.USER32.dll_ReleaseDC
leave
ret 4

Function at 0x4034ab
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
cmp dword [0x41916e], 0
jne 0x4034be
leave
ret 4
lea eax, [ebp - 0x18]
push eax
push dword [0x419004]
call sub.USER32.dll_GetWindowRect
push 5
call sub.USER32.dll_GetSystemMetrics
cmp dword [ebp + 8], 1
jne 0x4034dd
add dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
push 4
call sub.USER32.dll_GetSystemMetrics
sub eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
sub dword [ebp - 8], 2
push dword [ebp - 0xc]
push dword [ebp - 8]
call main
add dword [ebp - 0x14], eax
cmp dword [ebp + 8], 0
jne 0x40350e
mov eax, dword [ebp - 0xc]
sub dword [ebp - 0x14], eax
push dword [ebp - 8]
pop dword [ebp - 0xc]
push 6
call sub.USER32.dll_GetSystemMetrics
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
sub dword [ebp - 0x10], eax
push dword [ebp - 0x10]
pop dword [ebp - 0x18]
push dword [ebp - 8]
pop dword [ebp - 0x10]
cmp dword [ebp + 8], 0
jne 0x403599
mov eax, 0
or eax, 0x80000000
push 0
push dword [section..data]
push 0
push dword [0x419004]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
push 0x419181
push 0x41917a
push 0
call sub.USER32.dll_CreateWindowExA
mov dword [0x41ac78], eax
push 0x403986
push 0xfffffffffffffffc
push dword [0x41ac78]
call sub.USER32.dll_SetWindowLongA
mov dword [0x41ac7c], eax
push 4
push dword [0x41ac78]
call sub.USER32.dll_ShowWindow
jmp 0x4035b2
push 1
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [0x41ac78]
call sub.USER32.dll_MoveWindow
leave
ret 4
Function at 0x40b009
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push 0xffffffffffffffeb
push dword [ebp + 8]
call sub.USER32.dll_GetWindowLongA
mov esi, eax
cmp dword [esi + 0x1c], 0
je 0x40b032
push 0x4000
push dword [esi + 0x20]
push dword [esi + 0x1c]
call sub.KERNEL32.dll_VirtualFree
push dword [ebp + 8]
call sub.USER32.dll_GetWindowTextLengthA
or eax, eax
je 0x40b066
inc eax
mov dword [esi + 0x20], eax
push 4
push 0x1000
push dword [esi + 0x20]
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [esi + 0x1c], eax
push dword [esi + 0x1c]
push dword [esi + 0x20]
push 0xd
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
push dword [esi]
call sub.GDI32.dll_DeleteObject
push dword [esi + 4]
call sub.GDI32.dll_DeleteObject
mov dword [esi + 0x18], 0
mov dword [esi + 0x30], 1
push 0
push 0
push 0xce
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
mov dword [esi + 0x24], eax
push 0
push 0xffffffffffffffff
push 0xbb
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
mov dword [esi + 0x28], eax
push 0
push eax
push 0xd6
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
mov ax, 1
push eax
push 0
push 0xd7
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
and eax, 0xffff
sub eax, dword [esi + 0x28]
mov dword [esi + 0x28], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.USER32.dll_GetClientRect
mov eax, dword [ebp - 0xc]
inc eax
shl eax, 0x10
and dword [ebp - 8], 0xffff
dec dword [ebp - 8]
or eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push 0
push 0xd7
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
and eax, 0xffff
add eax, dword [esi + 0x24]
mov dword [esi + 0x2c], eax
push dword [ebp + 8]
call sub.USER32.dll_DestroyWindow
pop esi
leave
ret 4
Function at 0x40c053
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push 0xffffffffffffffeb
push dword [ebp + 8]
call sub.USER32.dll_GetWindowLongA
mov esi, eax
cmp dword [esi + 0x1c], 0
je 0x40c07c
push 0x4000
push dword [esi + 0x20]
push dword [esi + 0x1c]
call sub.KERNEL32.dll_VirtualFree
push dword [ebp + 8]
call sub.USER32.dll_GetWindowTextLengthA
or eax, eax
je 0x40c0b0
inc eax
mov dword [esi + 0x20], eax
push 4
push 0x1000
push dword [esi + 0x20]
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [esi + 0x1c], eax
push dword [esi + 0x1c]
push dword [esi + 0x20]
push 0xd
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
push dword [esi]
call sub.GDI32.dll_DeleteObject
push dword [esi + 4]
call sub.GDI32.dll_DeleteObject
mov dword [esi + 0x18], 0
mov dword [esi + 0x28], 1
push 0
push 0
push 0x147
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
mov dword [esi + 0x24], eax
push dword [ebp + 8]
call sub.USER32.dll_DestroyWindow
pop esi
leave
ret 4
Function at 0x40dae3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
push esi
mov byte [ebp - 0x404], 0
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.dll_lstrcatA
push 0x41915e
lea eax, [ebp - 0x404]
push eax
push 1
call fcn.0040f888
mov dword [ebp - 4], eax
lea eax, [ebp - 0x404]
push eax
call fcn.0040f93c
cmp dword [ebp - 4], 0
jbe 0x40db3e
cmp dword [ebp - 4], eax
jne 0x40db37
mov eax, 0x41914f
jmp 0x40db43
mov eax, 0x419156
jmp 0x40db43
mov eax, 0x41915e
push eax
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.dll_lstrcatA
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.dll_lstrcatA
push 1
push 0
push 0
lea eax, [ebp - 0x404]
push eax
push 0x409889
push dword [0x419004]
call sub.SHELL32.dll_ShellExecuteA
cmp eax, 0x20
jbe 0x40db88
mov eax, 0
jmp 0x40dbaa
push dword [0x41acd0]
push 0xf
call fcn.00404f76
push 0
push 0
push eax
push dword [0x419004]
call sub.USER32.dll_MessageBoxA
mov eax, 1
pop esi
leave
ret 8
Function at 0x40e19d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x204]
push eax
push 0x200
call sub.KERNEL32.dll_GetTempPathA
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call sub.KERNEL32.dll_lstrcatA
mov eax, dword [ebp + 0xc]
inc dword [eax]
inc dword [ebp - 4]
push dword [eax]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x40e216
leave
ret 8
cmp dword [ebp - 4], 0xa
jae 0x40e21e
jmp 0x40e1cd
leave
ret 8

Function at 0x40e222
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
lea eax, [ebp - 0x200]
push eax
push 0x200
call sub.KERNEL32.dll_GetTempPathA
push dword [ebp + 8]
lea eax, [ebp - 0x200]
push eax
call sub.KERNEL32.dll_lstrcatA
push dword [ebp + 0xc]
lea eax, [ebp - 0x200]
push eax
push dword [ebp + 0x10]
call sub.USER32.dll_wsprintfA
add esp, 0xc
leave
ret 0xc

Function at 0x40e264
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
lea eax, [ebp - 0x204]
push eax
push 0x200
call sub.KERNEL32.dll_GetTempPathA
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call sub.KERNEL32.dll_lstrcatA
mov eax, dword [0x419d64]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40e29f
leave
ret 8
push dword [ebp - 4]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.dll_DeleteFileA
dec dword [ebp - 4]
jmp 0x40e295

Function at 0x40e85f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push 0x75
lea eax, [ebp - 0x85]
push eax
push dword [ebp + 8]
call fcn.0040f9d0
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
je 0x40e92a
mov dword [ebp - 0x79], eax
cmp byte [ebp - 0x39], 0
jne 0x40e8df
push dword [ebp - 0x85]
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x40e8d6
push dword [ebp - 0x85]
call sub.WSOCK32.dll_gethostbyname
or eax, eax
jne 0x40e8ca
push 0x75
push dword [ebp + 8]
lea eax, [ebp - 0x85]
push eax
call fcn.0040f9d0
leave
ret 4
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
jmp 0x40e8d9
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], 2
push dword [ebp - 0x81]
call sub.WSOCK32.dll_htons
mov word [ebp - 0xe], ax
push 0x31
push dword [ebp - 0x6d]
push dword [ebp - 0x7d]
push dword [ebp - 0x79]
call sub.WSOCK32.dll_WSAAsyncSelect
or eax, eax
jne 0x40e931
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x79]
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x40e928
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x40e928
mov dword [ebp - 0x75], 0
jmp 0x40e931
mov dword [ebp - 0x75], 0
push 0x75
push dword [ebp + 8]
lea eax, [ebp - 0x85]
push eax
call fcn.0040f9d0
leave
ret 4
Function at 0x40e946
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push 0x75
lea eax, [ebp - 0x75]
push eax
push dword [ebp + 8]
call fcn.0040f9d0
push dword [ebp - 0x28]
call sub.KERNEL32.dll_lstrlenA
push 0
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x69]
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x40e9b7
mov dword [ebp - 0x3b], 0
mov byte [ebp - 0x37], 0
mov byte [ebp - 0x36], 0
mov byte [ebp - 0x35], 0
mov word [ebp - 0x3d], 0
push 0x200
push dword [ebp - 0x24]
call sub.KERNEL32.dll_RtlZeroMemory
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x30], 0
mov byte [ebp - 0x2f], 0
mov byte [ebp - 0x2e], 0
mov dword [ebp - 0x2d], 0
jmp 0x40e9be
mov dword [ebp - 0x65], 0
mov dword [ebp - 0x14], 0
push 0x75
push dword [ebp + 8]
lea eax, [ebp - 0x75]
push eax
call fcn.0040f9d0
leave
ret 4

Function at 0x40e9d7
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push 0x75
lea eax, [ebp - 0x75]
push eax
push dword [ebp + 8]
call fcn.0040f9d0
lea eax, [ebp - 0x45]
push eax
push 0x4004667f
push dword [ebp - 0x69]
call sub.WSOCK32.dll_ioctlsocket
push dword [ebp - 0x45]
push 0x42
call sub.KERNEL32.dll_GlobalAlloc
mov dword [ebp - 0x59], eax
push eax
call sub.KERNEL32.dll_GlobalLock
mov dword [ebp - 0x55], eax
push 0
push dword [ebp - 0x45]
push dword [ebp - 0x55]
push dword [ebp - 0x69]
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
je 0x40ea7f
mov dword [ebp - 0x45], eax
cmp byte [ebp - 0x37], 0
jne 0x40ea3b
lea eax, [ebp - 0x75]
push eax
call fcn.0040eddf
jmp 0x40ea6d
cmp byte [ebp - 0x2e], 0
je 0x40ea4d
cmp byte [ebp - 0x2e], 1
jne 0x40ea64
cmp byte [ebp - 0x30], 1
jne 0x40ea64
cmp dword [ebp - 4], 2
jne 0x40ea6d
push dword [ebp - 0x45]
push dword [ebp - 0x55]
lea eax, [ebp - 0x75]
push eax
call fcn.0040f2ab
jmp 0x40ea6d
lea eax, [ebp - 0x75]
push eax
call fcn.0040ed54
push dword [ebp - 0x55]
call sub.KERNEL32.dll_GlobalUnlock
push dword [ebp - 0x59]
call sub.KERNEL32.dll_GlobalFree
jmp 0x40ea86
mov dword [ebp - 0x65], 0
push 0x75
push dword [ebp + 8]
lea eax, [ebp - 0x75]
push eax
call fcn.0040f9d0
leave
ret 4