joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cd40
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov esi, ecx
call fcn.00407390
mov ecx, esi
call fcn.0040cbe0
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ebx, eax
push 8
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xa
push ebx
mov edi, eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x10]
push eax
push ecx
call ebx
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
lea edx, [ebp - 0x20]
push edx
push eax
call ebx
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
push 1
push ecx
push eax
sub edx, ecx
push edx
sub edi, eax
push edi
mov ecx, esi
call fcn.0042489f
push 1
push 0xc
push 0x67
push 0x1e
push 8
lea ecx, [esi + 0x130]
call fcn.0042489f
push 1
push 0xc
push 0x1c
push 0x1e
push 0x72
lea ecx, [esi + 0x1cc]
call fcn.0042489f
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40cfe0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push str.M2diskCMC.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi], eax
test eax, eax
je 0x40d097
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.L_MurekaSearchUpload
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi]
push str.L_MurekaSearchDownload
push eax
call edi
mov ecx, dword [esi]
push str.L_MurekaMemoryRelease
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi]
push str.L_MurekaPayLog
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi]
push str.L_MurekaAddBillingLog
push eax
call edi
mov ecx, dword [esi]
push str.L_MurekaIsZipfile
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi]
push str.L_MurekaZipCancel
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi]
push str.L_MurekaGetHash
push eax
call edi
mov ecx, dword [esi]
push str.L_MurekaSetZipOption
push ecx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
pop edi
test eax, eax
je 0x40d084
push 0x40cf30
push 7
call eax
mov al, 1
pop esi
ret
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], 0
xor al, al
pop esi
ret
push 0
push 0
push str.DLL
call fcn.00426223
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], 0
xor al, al
pop esi
ret
Function at 0x40f3f0
Capabilities:
Check mutex on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b19b
mov eax, dword fs:[0]
push eax
sub esp, 0x7c8
mov eax, dword [0x47a480]
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
push str.Me2Disk_mutex_down
push 1
mov ebx, ecx
xor esi, esi
push esi
mov dword [ebp - 0x7ac], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
jne 0x40f470
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40f450
cmp esi, 3
je 0x40f50a
push 0x1f4
inc esi
call ebx
call edi
cmp eax, 0xb7
je 0x40f450
mov ebx, dword [ebp - 0x7ac]
call fcn.00425c40
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x7d4]
push ecx
push str.32770
push eax
call dword [sym.imp.USER32.dll_GetClassInfoA]
lea edx, [ebp - 0x7d4]
push edx
mov dword [ebp - 0x7b0], 0x4626cc
call fcn.00424001
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, ebx
call fcn.0042fc52
push 0
call fcn.004318a7
add esp, 4
lea ecx, [ebp - 0x7a8]
call fcn.00419e10
lea eax, [ebp - 0x7a8]
mov ecx, eax
mov dword [ebp - 4], 0
mov dword [ebx + 0x20], eax
call fcn.0042c6fb
lea ecx, [ebp - 0x7a8]
mov dword [ebp - 4], 0xffffffff
call fcn.00419d30
xor eax, eax
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.0044471a
mov esp, ebp
pop ebp
ret
push 0
push 0x4626cc
call dword [sym.imp.USER32.dll_FindWindowA]
push 9
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40f4ec
Function at 0x4101a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b2c1
mov eax, dword fs:[0]
push eax
sub esp, 0x204
mov eax, dword [0x47a480]
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 edi, ecx
mov eax, dword [edi + 0x5e8]
lea ebx, [edi + 0x5e8]
sub eax, 0x10
push eax
call fcn.004031f0
lea esi, [eax + 0x10]
mov dword [ebp - 0x20c], esi
push 0x45fd02
push esi
mov dword [ebp - 4], 0
call fcn.004451d1
add esp, 0xc
test eax, eax
sete al
test al, al
je 0x410257
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x410236
push 0x104
lea ecx, [ebp - 0x20c]
call fcn.004031a0
mov esi, dword [ebp - 0x20c]
push 0
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov eax, 0x104
cmp dword [esi - 8], eax
jl 0x4102bf
mov dword [esi - 0xc], eax
mov byte [esi + 0x104], 0
push 0x4627f4
push edi
push 0
push 0x806
push esi
push 0
lea ecx, [ebp - 0x208]
call fcn.00405d30
lea ecx, [ebp - 0x208]
mov byte [ebp - 4], 1
call fcn.0042b540
cmp eax, 2
jne 0x4102c9
lea ecx, [ebp - 0x208]
mov byte [ebp - 4], 0
call fcn.004059e0
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4102b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x410357
push 0x80070057
call fcn.00402fa0
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x208]
call fcn.00405ba0
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004033d0
mov eax, dword [ebp - 0x210]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41030d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
push str.rPathBasic
push str.SoftwareMe2Disk
lea ecx, [edi + 0xe8]
call fcn.00405720
lea ecx, [ebp - 0x208]
mov byte [ebp - 4], 0
call fcn.004059e0
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410355
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
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.0044471a
mov esp, ebp
pop ebp
ret
Function at 0x4164c0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x14], 0
je 0x416521
mov eax, dword [esi + 8]
test eax, eax
je 0x416521
push 0x1388
push eax
mov byte [esi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4164ff
call dword [sym.imp.NAT.DLL_Ordinal_18]
call dword [sym.imp.NAT.DLL_Ordinal_22]
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esi + 8]
push edx
mov dword [esi + 4], 0
call edi
mov dword [esi + 8], 0
pop edi
pop esi
ret
Function at 0x4170d0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x28], 0
je 0x41713b
mov eax, dword [esi + 0xc]
push 0x1388
push eax
mov byte [esi + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41713b
mov ecx, dword [esi + 8]
push edi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 4]
mov dword [esi + 8], 0
test eax, eax
je 0x417124
push eax
call edi
mov dword [esi + 4], 0
mov eax, dword [esi + 0x2c]
pop edi
cmp eax, 0xffffffff
je 0x41713b
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x2c], 0xffffffff
pop esi
ret
Function at 0x417270
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bbf8
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x47a480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 1
push 2
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_socket]
or edi, 0xffffffff
mov dword [esi + 0x2c], eax
cmp eax, edi
je 0x417301
mov edx, dword [ebp + 8]
mov ecx, 2
push edx
mov word [ebp - 0x20], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x2c]
push 0x10
lea ecx, [ebp - 0x20]
push ecx
push edx
mov word [ebp - 0x1e], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, edi
jne 0x417327
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x2c], edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x417320
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4173f9
mov ecx, dword [esi + 0x2c]
xor eax, eax
lea edx, [ebp - 0x28]
push edx
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x12c]
push eax
push 0
push 0
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x28], 0xa
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x417395
push 0x17
lea ecx, [esi + 0x38]
push 0x463d70
call fcn.004032e0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x417320
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4173f9
cmp eax, edi
jne 0x4173d8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.select___Error_code_:__d
add esi, 0x38
push esi
call fcn.00403c40
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 0xc
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x417320
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4173f9
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x4173f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044471a
mov esp, ebp
pop ebp
ret 8
Function at 0x417420
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x19008
call fcn.00445b30
mov eax, dword [0x47a480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0x19000
mov edi, ecx
mov ecx, dword [edi + 0x2c]
lea eax, [ebp - 0x19004]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
test ecx, ecx
jne 0x417493
mov edx, dword [edi + 0x24]
cmp edx, dword [esi + 4]
jb 0x41747e
ja 0x417471
mov eax, dword [edi + 0x20]
cmp eax, dword [esi]
jbe 0x41747e
push 0x463da8
lea ecx, [edi + 0x38]
call fcn.00403e20
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044471a
mov esp, ebp
pop ebp
ret 8
cmp ecx, 0xffffffff
jne 0x4174c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.recv__
add edi, 0x38
push edi
call fcn.00403c40
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044471a
mov esp, ebp
pop ebp
ret 8
cdq
add dword [esi], eax
push 0
lea eax, [ebp - 0x19004]
adc dword [esi + 4], edx
add dword [ebx], ecx
lea edx, [ebp - 0x19008]
push edx
push ecx
mov ecx, dword [edi + 4]
push eax
push ecx
mov dword [ebp - 0x19008], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0044471a
mov esp, ebp
pop ebp
ret 8

Function at 0x417510
Capabilities:
Access peb ldr_data
Get ntdll base address
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bc2e
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x47a480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
push 0x45fd02
lea ecx, [esi + 0x10]
mov dword [ebp - 0x1a4], esi
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00403e60
push 0x45fd02
lea ecx, [esi + 0x30]
mov dword [ebp - 4], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov byte [esi + 0x28], bl
mov dword [esi + 0x2c], 0xffffffff
call fcn.00403e60
mov dword [esi + 0x34], ebx
call fcn.0041d226
cmp eax, ebx
jne 0x41759e
push 0x80004005
call fcn.00402fa0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [ebp - 0x1a0]
push ecx
add eax, 0x10
push 0x202
mov dword [esi + 0x38], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044471a
mov esp, ebp
pop ebp
ret 4
Function at 0x4175e0
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
push edi
xor edi, edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [esi + 0x28], 0
mov ebx, eax
je 0x417727
mov edx, dword [esi + 0x2c]
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea ecx, [ebp - 0x118]
push ecx
push 0
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x14], 5
mov dword [ebp - 0x10], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x4176de
cmp eax, 0xffffffff
je 0x4176ef
mov eax, dword [esi + 0x2c]
lea edx, [ebp - 0x118]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4176d2
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
mov ecx, esi
call fcn.00417420
test al, al
je 0x417709
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp - 4]
sub eax, ebx
cmp eax, 0x3e8
jb 0x4176ba
test edi, edi
jle 0x4176ba
mov eax, dword [0x47ba68]
mov ecx, dword [esi]
push 0
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
cmp byte [esi + 0x28], 0
je 0x41770c
mov edx, dword [esi + 0x24]
cmp edx, dword [ebp - 8]
jb 0x41770c
ja 0x4176d2
mov eax, dword [esi + 0x20]
cmp eax, dword [ebp - 0xc]
jbe 0x41770c
cmp byte [esi + 0x28], 0
jne 0x417611
jmp 0x41770c
push 0x1b
push 0x463dd4
lea ecx, [esi + 0x38]
call fcn.004032e0
jmp 0x41770c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esi + 0x38]
push str.select__
push ecx
call fcn.00403c40
add esp, 0xc
jmp 0x41770c
mov edi, dword [ebp - 4]
test edi, edi
jle 0x417727
mov edx, dword [0x47ba68]
mov eax, dword [esi]
push 0
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push edx
push eax
call edi
jmp 0x41772d
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 0x2c]
push edx
mov dword [esi + 4], 0
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0x24]
mov ebx, dword [ebp - 8]
mov dword [esi + 0x2c], 0xffffffff
cmp eax, ebx
ja 0x417792
jb 0x417763
mov ecx, dword [esi + 0x20]
cmp ecx, dword [ebp - 0xc]
jae 0x417792
cmp byte [esi + 0x28], 0
je 0x417792
mov edx, dword [esi + 0xc]
push edx
mov byte [esi + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x38]
mov ecx, dword [0x47ba64]
mov edx, dword [esi]
push 0
push eax
push ecx
push edx
call edi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
push eax
mov byte [esi + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x24]
cmp ecx, ebx
ja 0x4177c0
jb 0x4177b1
mov edx, dword [esi + 0x20]
cmp edx, dword [ebp - 0xc]
ja 0x4177c0
mov eax, dword [0x47ba6c]
mov ecx, dword [esi]
push 0
push 0
push eax
push ecx
call edi
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417b80
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x47a480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 0
push 0
push 6
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi + 0x10], eax
pop esi
cmp eax, 0xffffffff
jne 0x417beb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Failed_in_Socket_Creation:__d
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.004447a6
add esp, 0x10
push 0x10
push str.Socket_Creation
lea ecx, [ebp - 0x68]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044471a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0044471a
mov esp, ebp
pop ebp
ret

Function at 0x417c00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x470fb0
push 0x446910
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x47a480]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
or edi, 0xffffffff
cmp dword [esi + 0x10], edi
je 0x417c95
mov eax, dword [esi + 0x24]
test eax, eax
je 0x417c95
mov ecx, 1
mov word [ebp - 0x1c], cx
xor edx, edx
mov word [ebp - 0x1a], dx
mov eax, dword [eax]
cmp eax, edi
je 0x417c81
push 4
lea ecx, [ebp - 0x1c]
push ecx
push 0x80
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esi + 0x24]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esi + 0x24]
mov dword [ecx], edi
mov dword [esi + 0x10], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.00417cb6
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418330
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4710a0
push 0x446910
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x47a480]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], edi
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x4184e1
cmp dword [esi + 0x10], 0xffffffff
je 0x4184e1
cmp byte [esi + 0x28], 0
je 0x4184e1
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x1c], eax
mov ebx, dword [eax + 0xc]
cmp dword [ebx + 8], edi
jg 0x4183d5
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x47a480
call fcn.00447440
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov ecx, ebx
call fcn.00418270
mov edi, dword [eax]
test edi, edi
jne 0x4183f8
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
jmp 0x4183b1
push 0
push 0
mov ecx, ebx
call fcn.00418220
cmp byte [esi + 0x28], 0
je 0x4184cb
push 0x100000
push 0
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 8]
add ecx, 0x1c
push ecx
call fcn.004446a0
mov edx, dword [edi + 4]
mov eax, dword [edx + 4]
mov ecx, dword [edi]
push eax
push ecx
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 8]
add ecx, 0x1c
push ecx
call fcn.004449c0
add esp, 0x18
mov edx, dword [edi + 4]
mov eax, dword [edx + 4]
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx + 8]
mov dword [edx + 0x14], eax
xor eax, eax
mov ecx, dword [esi + 0x24]
mov ecx, dword [ecx + 8]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov edx, dword [esi + 0x24]
mov eax, dword [edx + 8]
mov dword [eax + 0x10], 0
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 8]
push 0x417d10
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
push 1
add ecx, 0x14
push ecx
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x4184cb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x4184cb
mov ecx, dword [esi + 0x24]
add ecx, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x47a480
call fcn.00447440
add esp, 0xc
xor eax, eax
jmp 0x4183c3
push 1
mov ecx, edi
call fcn.00417cd0
mov eax, dword [esi + 0x24]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
jmp 0x4183b1