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

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x52b5b0]
cmp dword [eax + 0x30], 0
je 0x46481a
cmp dword [ebx + 0x94], 0
jne 0x464814
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x464700
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x464814
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4647da
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x464814
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419f74
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4647e9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x465534
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x465569
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004052d8
jmp 0x465576
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040523c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x466990
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4669fe
mov eax, esi
call fcn.0044fa68
test al, al
je 0x4669fe
mov eax, dword [ebx + 0x84]
call fcn.0044f6c8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4669fe
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4669f2
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044f6c8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00447ad4
jmp 0x4669fe
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004667cc
pop esi
pop ebx
ret

Function at 0x467404
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
call fcn.004032d4
cmp dword [ebp - 0xc], 0
jle 0x467432
mov al, byte [ebp - 1]
mov edx, dword [ebp - 8]
xor byte [edx], al
inc dword [ebp - 8]
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jg 0x46741e
mov esp, ebp
pop ebp
ret

Function at 0x467438
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
mov ax, word [ebp - 2]
mov word [ebp - 0xe], ax
cmp dword [ebp - 0xc], 1
jle 0x46746e
mov eax, dword [ebp - 8]
mov ax, word [eax]
xor word [ebp - 0xe], ax
add dword [ebp - 8], 2
sub dword [ebp - 0xc], 2
cmp dword [ebp - 0xc], 1
jg 0x467456
mov ax, word [ebp - 0xe]
mov esp, ebp
pop ebp
ret
Function at 0x46a308
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x46a336
mov eax, ebx
call fcn.0046adbc
cmp dword [ebx + 0x40], 0
je 0x46a32f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x46a3a7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x46a399
cmp dword [ebx + 8], 0
je 0x46a358
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46a36a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46a399
cmp dword [ebx + 8], 0
je 0x46a34b
cmp eax, 3
je 0x46a37d
dec eax
jne 0x46a34b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46a34b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46a34b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x46a3c5
cmp dword [ebx + 0x14], 0xcc
je 0x46a3c5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046a3d0
pop ebx
ret

Function at 0x47b358
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040569c
xor eax, eax
push ebp
push 0x47b3dc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004056ac
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x47b3b8
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.Kernel32.dll_GetFileSizeEx
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x47b3c6
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b3e3
lea eax, [ebp - 4]
call fcn.004051e8
ret

Function at 0x47bb48
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
pop ecx
pop ebp
ret
Function at 0x47d6cc
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040569c
xor eax, eax
push ebp
push 0x47d74a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004056ac
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x47d715
mov eax, dword [ebx + 4]
call fcn.004056ac
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
movzx eax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d751
lea eax, [ebp - 4]
call fcn.004051e8
ret

Function at 0x47e7bc
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47e961
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.00403270
cmp word [ebx + 0xa2], 0
je 0x47e805
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x47e819
lea esi, [ebp - 0xc]
jmp 0x47e81b
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x47e828
xor edi, edi
jmp 0x47e835
mov eax, dword [ebx + 0x80]
call fcn.004056ac
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.004056ac
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0047de9c
mov eax, dword [ebp - 0x14]
call fcn.004056ac
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.004056ac
push eax
mov eax, dword [ebp - 4]
call fcn.004056ac
push eax
mov eax, ebx
call fcn.0047dfdc
push eax
mov eax, ebx
call fcn.0047dfb0
push eax
mov eax, ebx
call fcn.0047df68
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0047dd68
mov eax, dword [ebp - 0x18]
call fcn.004056ac
push eax
mov eax, dword [ebx + 8]
call fcn.004056ac
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0x10], 0
jne 0x47e8be
call fcn.0040f7f8
xor edx, edx
push ebp
push 0x47e937
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x47e8fc
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x47e8f2
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47e920
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e93e
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x47e970
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x47e99c
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.004056ac
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47e9c1
call fcn.0040f7f8
xor eax, eax
push ebp
push 0x47e9f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x47e9e1
call fcn.0040f7f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e9ff
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x47f5e4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x47f5ec
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47f7af
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x20]
mov eax, dword [0x527b70]
mov eax, dword [eax]
call fcn.004662e8
mov eax, dword [ebp - 0x20]
call fcn.004056ac
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47f757
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00402d48
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x47f740
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x24]
mov eax, dword [0x527b70]
mov eax, dword [eax]
call fcn.004662e8
mov eax, dword [ebp - 0x24]
call fcn.004056ac
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x47f7c0
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
push 0x47f7cc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.00409dd8
push dword [ebp - 0x28]
push 0x47f7d8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.00409dd8
push dword [ebp - 0x2c]
push 0x47f7d8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.00409dd8
push dword [ebp - 0x30]
push 0x47f7d8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x34]
call fcn.00409dd8
push dword [ebp - 0x34]
lea eax, [ebp - 0x18]
mov edx, 8
call fcn.0040556c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x47f7c0
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x14]
test byte [eax + 0x1c], 2
setne byte [ebp - 0x19]
mov eax, dword [ebp - 8]
call fcn.00402d64
jmp 0x47f74d
lea eax, [ebp - 0x18]
mov edx, 0x47f7e4
call fcn.00405280
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47f76e
cmp byte [ebp - 0x19], 0
je 0x47f781
lea eax, [ebp - 0x18]
mov edx, 0x47f7f4
call fcn.004054b4
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
call fcn.0040523c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f7b6
lea eax, [ebp - 0x34]
mov edx, 6
call fcn.0040520c
lea eax, [ebp - 0x18]
call fcn.004051e8
ret
Function at 0x48014c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040569c
xor eax, eax
push ebp
push 0x480271
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x2710
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x480253
xor eax, eax
push ebp
push 0x48024c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 4
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0047f93c
mov eax, dword [ebp - 0x18]
call fcn.004056ac
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4801d5
call fcn.00404be8
jmp 0x480253
lea eax, [ebp - 8]
mov edx, 0x480284
call fcn.004054b4
xor eax, eax
mov dword [ebp - 0xc], eax
push 2
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48020d
mov eax, dword [ebp - 0x14]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 8]
call fcn.00405704
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480253
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
call sub.kernel32.dll_ReleaseMutex
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480278
lea eax, [ebp - 0x18]
call fcn.004051e8
lea eax, [ebp - 8]
call fcn.004051e8
ret
Function at 0x481c80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040569c
xor eax, eax
push ebp
push 0x481d9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.004056ac
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x481d7c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
call fcn.00402d48
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x481d72
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004056ac
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x481db0
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
shr eax, 0x10
mov word [ebp - 0x2a], ax
mov eax, dword [ebp - 0x20]
mov ax, word [eax + 8]
and ax, 0xffff
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
shr eax, 0x10
mov word [ebp - 0x2e], ax
mov eax, dword [ebp - 0x20]
mov ax, word [eax + 0xc]
and ax, 0xffff
mov word [ebp - 0x30], ax
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x30]
mov ecx, 8
call fcn.00403014
mov eax, dword [ebp - 0x14]
call fcn.00402d64
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x481d86
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481da3
lea eax, [ebp - 4]
call fcn.004051e8
ret

Function at 0x482408
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x482431
mov eax, dword [ebp - 0x14]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x482473
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
call fcn.00405704
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov ebx, dword [ebp - 8]
mov cl, byte [ecx + ebx - 1]
mov ebx, dword [ebp - 8]
and ebx, 3
mov bl, byte [ebx + str.RobS]
xor cl, bl
mov byte [eax + edx - 1], cl
inc dword [ebp - 8]
dec dword [ebp - 0xc]
jne 0x482442
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x486f1c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040569c
xor eax, eax
push ebp
push 0x486fd0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00409b80
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.00405280
mov eax, dword [ebp - 4]
call fcn.00486e9c
test al, al
je 0x486f88
mov byte [ebp - 9], 1
mov eax, dword [ebp - 4]
call fcn.004056ac
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
mov dword [edx], eax
jmp 0x486fb2
mov eax, dword [ebp - 4]
call fcn.004056ac
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x486fb2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486fd7
lea eax, [ebp - 0x14]
call fcn.004051e8
lea eax, [ebp - 4]
call fcn.004051e8
ret

Function at 0x486fe0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x487016
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00405458
jmp 0x48701e
mov eax, dword [ebp - 4]
call fcn.004051e8
mov esp, ebp
pop ebp
ret

Function at 0x487024
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x487079
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00486fe0
lea eax, [ebp - 0xc]
call fcn.00405704
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487080
lea eax, [ebp - 0xc]
call fcn.004051e8
ret

Function at 0x4870d4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe44
lea eax, [ebp - 0x194]
push eax
push 2
call sub.wsock32.dll_WSAStartup
test eax, eax
sete byte [0x52b720]
lea eax, [ebp - 0x1bc]
xor ecx, ecx
mov edx, 0x28
call fcn.00403a94
mov dword [ebp - 4], 0x487088
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1b8], eax
mov eax, dword [0x52a7f8]
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x1b4], 4
mov eax, dword [0x51d310]
call fcn.004056ac
mov dword [ebp - 0x198], eax
lea eax, [ebp - 0x1bc]
push eax
call sub.user32.dll_RegisterClassA
mov esp, ebp
pop ebp
ret
Function at 0x48738c
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004874ac
test al, al
jne 0x487498
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0
jne 0x487498
xor eax, eax
push ebp
push 0x487491
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
je 0x4873d6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
call dword [edx]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x118]
call fcn.00486b18
lea edx, [ebp - 0x118]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00486b08
lea eax, [ebp - 0x10]
push eax
push 0
push 0
lea eax, [ebp - 0x118]
push eax
push 0
call sub.wsock32.dll_select
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jne 0x487441
push 2
push 8
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x48744e
mov dword [ebp - 0x14], 0xffffffff
jmp 0x48744e
cmp dword [ebp - 0x14], 0
je 0x48744e
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 3
jne 0x48745d
cmp dword [ebp - 0x14], 0xffffffff
jne 0x48746b
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.00487648
jmp 0x48746f
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4874a3
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
je 0x487490
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
call dword [edx + 4]
ret
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 3
sete byte [ebp - 5]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x487900
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x38], 0
mov eax, dword [ebp - 4]
call fcn.00487648
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 4
jne 0x487957
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x487950
mov byte [ebp - 5], 0
call sub.wsock32.dll_WSAGetLastError
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
jmp 0x487957
mov eax, dword [ebp - 4]
mov byte [eax + 8], 0
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x487960
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x2a], 0
je 0x487986
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x2c]
call dword [ebx + 0x28]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
imul eax, dword [eax + 0x18], 0x3e8
mov dword [ebp - 0x28], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x24], eax
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xc]
jge 0x487a48
push 0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x487a08
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2733
je 0x4879f7
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
jmp 0x487a4c
push 1
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp - 4]
call fcn.00487608
jmp 0x487a1c
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jle 0x487a1c
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x24], eax
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jbe 0x487a3c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
je 0x487a3c
mov eax, dword [ebp - 4]
call fcn.00487648
jmp 0x487a4c
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xc]
jl 0x4879b6
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
pop ebx
mov esp, ebp
pop ebp
ret