joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47800e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5d7480]
sub esp, 0x528
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x478030
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x4781a5
push dword [0x59a2a0]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4781a5
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x478065
mov byte [ebp - 0x528], bl
push esi
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x47807d
mov byte [ebp - 0x320], bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call edi
test eax, eax
jne 0x47809b
mov byte [ebp - 0x110], bl
push esi
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
test eax, eax
pop edi
jne 0x4780b8
mov byte [ebp - 0x218], bl
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00477f73
lea eax, [ebp - 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4780d5
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x420]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4780e9
sub eax, esi
add eax, ecx
mov byte [ebp + eax - 0x217], bl
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00477f73
lea eax, [ebp - 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x478118
sub eax, ecx
lea ecx, [ebp - 0x420]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x47812a
sub ecx, esi
add ecx, eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x320]
push eax
mov byte [ebp + ecx - 0x10f], bl
call fcn.00477ead
test eax, eax
pop esi
jne 0x47816b
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.00477ead
test eax, eax
jne 0x478199
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x528]
push eax
call fcn.00477ead
test eax, eax
jne 0x4781a5
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x528]
push eax
call fcn.00477ead
test eax, eax
je 0x4781a5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x478bea
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x5751f8
call fcn.00478e08
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x478c2a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x478c2a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x478c42
cmp eax, 0x20b
je 0x478c2f
mov dword [ebp - 0x1c], edi
jmp 0x478c56
cmp dword [ecx + 0x84], 0xe
jbe 0x478c2a
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x478c50
cmp dword [ecx + 0x74], 0xe
jbe 0x478c2a
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x5d74f4], 0xffffffff
or dword [0x5d74f8], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x5b167c]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x5b1678]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x5d74f0], eax
call fcn.00478f96
call fcn.00479036
cmp dword [0x59a360], edi
jne 0x478cb6
push fcn.00479036
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00479024
push 0x598bbc
push 0x598bb8
call sub.MSVCR71.dll__initterm
push 0x478fda
call fcn.004789e7
mov eax, dword [0x5b1674]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x5b1670]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x478d0a
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x598bb4
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x478d34
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x478dee
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x478da3
cmp ax, di
je 0x478d4a
cmp dword [ebp - 0x20], edi
jne 0x478da3
mov ax, word [esi]
cmp ax, di
je 0x478d5f
cmp ax, 0x20
ja 0x478d5f
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x478d4a
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [0x5a6d80]
test byte [ebp - 0x58], 1
je 0x478d7b
movzx eax, word [ebp - 0x54]
jmp 0x478d7e
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.00475df0
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x478d9b
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x478de8
cmp ax, 0x22
jne 0x478db4
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x478d34
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00478e43
ret
Function at 0x482b80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00482e60
mov ecx, dword [ebp - 4]
mov dword [ecx], vtable.the::Thread.0
push 0xfa0
mov ecx, dword [ebp - 4]
add ecx, 0x28
call fcn.00484bb0
mov edx, dword [ebp - 4]
add edx, 0x14
push edx
push 4
mov eax, dword [ebp - 4]
push eax
push 0x482b20
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x14], 0xffffffff
jne 0x482be0
jmp 0x482bf7
mov eax, dword [ebp - 4]
mov byte [eax + 0xc], 0
mov ecx, dword [ebp - 4]
mov byte [ecx + 0xd], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x1d], 0
mov edx, dword [ebp - 4]
mov byte [edx + 0x1c], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0x103
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x24], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x482d10
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
add ecx, 0x28
call fcn.00484c10
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
je 0x482d42
mov ecx, dword [ebp - 8]
add ecx, 0x28
call fcn.00484c50
or eax, 0xffffffff
jmp 0x482dc5
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0xd]
test eax, eax
je 0x482d9a
mov ecx, dword [ebp - 8]
mov byte [ecx + 0xd], 0
mov edx, dword [ebp - 8]
mov byte [edx + 0x1d], 1
mov ecx, dword [ebp - 8]
add ecx, 0x28
call fcn.00484c50
mov eax, dword [ebp - 8]
push eax
call fcn.00484f70
add esp, 4
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
call dword [edx + 0x1c]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 8]
mov byte [edx + 0x1d], 0
mov eax, dword [ebp - 8]
mov byte [eax + 0x1c], 1
mov eax, 1
jmp 0x482dc5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jne 0x482db7
mov eax, dword [ebp - 8]
mov byte [eax + 0x1d], 1
mov ecx, dword [ebp - 8]
add ecx, 0x28
call fcn.00484c50
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x482e00
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 0x28
push eax
lea ecx, [ebp - 4]
call fcn.00482ee0
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x1c]
test edx, edx
je 0x482e2d
lea ecx, [ebp - 4]
call fcn.00482f10
jmp 0x482e5c
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 8]
mov dword [edx + 0x20], 0xffffffff
mov eax, dword [ebp - 8]
mov byte [eax + 0x1d], 0
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x1c], 1
lea ecx, [ebp - 4]
call fcn.00482f10
mov esp, ebp
pop ebp
ret
Function at 0x485010
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0
push 0x10000000
push 3
push 0
push 1
push bind
lea ecx, [ebp + 0xc]
call fcn.004d2be0
push eax
call dword [0x5a6d5c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x48505c
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.0049bbe0
lea ecx, [ebp + 0xc]
call fcn.0040dab0
mov eax, dword [ebp + 8]
jmp 0x485160
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [0x5a6d58]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4850ae
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.0049bbe0
lea ecx, [ebp + 0xc]
call fcn.0040dab0
mov eax, dword [ebp + 8]
jmp 0x485160
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4850f6
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.0049bbe0
lea ecx, [ebp + 0xc]
call fcn.0040dab0
mov eax, dword [ebp + 8]
jmp 0x485160
push 0x14
call fcn.00478523
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x485116
mov ecx, dword [ebp - 0x18]
call fcn.00484fb0
mov dword [ebp - 0x1c], eax
jmp 0x48511d
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0x10], edx
push 1
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.0049bbe0
lea ecx, [ebp + 0xc]
call fcn.0040dab0
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x4c5120
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [0x5d4f2c], eax
mov dword [ebp - 4], 0
push 0xfffffffffffffffa
mov ecx, dword [ebp + 8]
push ecx
call dword [0x5a6dbc]
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
push 0x190
push 0x190
push 0xfffffce0
push 0xfffffce0
push 0x50000000
push 0x571098
push str.EDIT
push 0
call dword [0x5a6dac]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x298], eax
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x298]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x4c5230
push 0xfffffffffffffffc
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x298]
push edx
call dword [0x5a6de0]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x29c], eax
push 0
push 0x32
push 0xc5
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x298]
push eax
call dword [0x5a6ddc]
mov esp, ebp
pop ebp
ret 4
Function at 0x4d2000
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
add eax, 0x18
push eax
lea ecx, [ebp - 4]
call fcn.004d3c10
mov ecx, dword [ebp - 0x3c]
movzx edx, byte [ecx + 0x20]
test edx, edx
je 0x4d2037
mov byte [ebp - 0x31], 0
lea ecx, [ebp - 4]
call fcn.004d3ca0
mov al, byte [ebp - 0x31]
jmp 0x4d2152
push 0
push 0
push 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 4], 0xffffffff
jne 0x4d2075
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x32], 0
lea ecx, [ebp - 4]
call fcn.004d3ca0
mov al, byte [ebp - 0x32]
jmp 0x4d2152
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.004d2930
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4d20cd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x3c]
mov dword [eax + 4], 0xffffffff
mov byte [ebp - 0x33], 0
lea ecx, [ebp - 4]
call fcn.004d3ca0
mov al, byte [ebp - 0x33]
jmp 0x4d2152
mov ecx, dword [ebp - 0x3c]
call fcn.004d6960
mov ecx, dword [ebp - 0x3c]
call fcn.004d2700
push 3
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x4d2111
mov ecx, dword [ebp - 0x3c]
call fcn.004d69a0
mov byte [ebp - 0x34], 0
lea ecx, [ebp - 4]
call fcn.004d3ca0
mov al, byte [ebp - 0x34]
jmp 0x4d2152
mov dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x24
call fcn.004d2900
mov ecx, dword [ebp - 0x3c]
mov byte [ecx + 0x20], 1
mov byte [ebp - 0x35], 1
lea ecx, [ebp - 4]
call fcn.004d3ca0
mov al, byte [ebp - 0x35]
mov esp, ebp
pop ebp
ret 4
Function at 0x4d2400
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
mov eax, 1
test eax, eax
je 0x4d2553
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + 0x107c], 0
jne 0x4d24db
mov ecx, dword [ebp - 0x34]
add ecx, 0x54
call fcn.004d2ab0
test eax, eax
jbe 0x4d24d9
mov ecx, dword [ebp - 0x34]
add ecx, 0x54
call fcn.004d2ad0
add eax, 8
push eax
lea ecx, [ebp - 0x2c]
call fcn.00469690
mov edx, dword [ebp - 0x34]
add edx, 0x1080
push edx
mov ecx, dword [ebp - 0x34]
add ecx, 0x54
call fcn.004d2ad0
mov ecx, eax
call fcn.004d2930
mov ecx, dword [ebp - 0x34]
add ecx, 0x54
call fcn.004d2b10
push 0x1000
mov eax, dword [ebp - 0x34]
add eax, 0x7c
push eax
lea ecx, [ebp - 0x10]
call fcn.0041d9a0
push 0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041d5f0
lea ecx, [ebp - 0x2c]
call fcn.00427130
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.00409670
add esp, 8
lea ecx, [ebp - 0x10]
call fcn.004b9c00
mov ecx, dword [ebp - 0x34]
add ecx, 0x7c
sub eax, ecx
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x107c], eax
lea ecx, [ebp - 0x28]
call fcn.0041d640
lea ecx, [ebp - 0x2c]
call fcn.0040a2b0
jmp 0x4d24db
jmp 0x4d2553
mov eax, 1
test eax, eax
je 0x4d254e
push 0x10
mov ecx, dword [ebp - 0x34]
add ecx, 0x1080
push ecx
push 0
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x107c]
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x7c
push ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4d252f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x2733
je 0x4d252d
jmp 0x4d252f
jmp 0x4d254e
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0x107c]
jne 0x4d254c
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x107c], 0
jmp 0x4d254e
jmp 0x4d24db
jmp 0x4d2409
mov esp, ebp
pop ebp
ret
Function at 0x4d2560
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov dword [ebp - 0x78], ecx
mov eax, 1
test eax, eax
je 0x4d26f5
mov dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push 0x1000
mov eax, dword [ebp - 0x78]
add eax, 0x1090
push eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x4d25b0
jmp 0x4d26f5
cmp dword [ebp - 0x50], 0xffffffff
jne 0x4d25d2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x2733
jne 0x4d25cd
jmp 0x4d26f5
jmp 0x4d26f5
lea ecx, [ebp - 0x4c]
call fcn.004b30e0
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x78]
add ecx, 0x1090
push ecx
lea ecx, [ebp - 0x38]
call fcn.0041d9a0
push 0
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x28]
call fcn.0041d5f0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.0041bd20
add esp, 8
lea ecx, [ebp - 0x48]
call fcn.00431c90
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x48]
call fcn.004d2900
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x78]
add ecx, 0x40
call fcn.004d29e0
lea edx, [ebp - 0x64]
push edx
mov ecx, dword [ebp - 0x78]
add ecx, 0x40
call fcn.004bc810
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004d33f0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4d267f
lea ecx, [ebp - 0x40]
call fcn.004096b0
mov edx, dword [eax + 8]
mov dword [ebp - 0x58], edx
push ecx
mov ecx, esp
lea eax, [ebp - 0x4c]
push eax
call fcn.00469690
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x58]
call dword [edx + 8]
jmp 0x4d26e0
mov eax, dword [ebp - 0x78]
movzx ecx, byte [eax + 0x21]
test ecx, ecx
je 0x4d26e0
push 0x54
call fcn.00478523
add esp, 4
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x4d26aa
mov ecx, dword [ebp - 0x6c]
call fcn.004d41d0
mov dword [ebp - 0x7c], eax
jmp 0x4d26b1
mov dword [ebp - 0x7c], 0
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x5c], edx
push ecx
mov ecx, esp
lea eax, [ebp - 0x4c]
push eax
call fcn.00469690
push ecx
mov ecx, esp
push 1
mov edx, dword [ebp - 0x78]
push edx
call fcn.0041d480
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x5c]
call dword [edx + 4]
lea ecx, [ebp - 0x28]
call fcn.004496f0
lea ecx, [ebp - 0x4c]
call fcn.0040a2b0
jmp 0x4d2569
mov esp, ebp
pop ebp
ret
Function at 0x4d3e90
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov dword [ebp - 0x19c], ecx
call fcn.004d41a0
movzx eax, al
test eax, eax
je 0x4d3eaf
mov al, 1
jmp 0x4d3f17
mov word [ebp - 0x194], 0x202
lea ecx, [ebp - 0x190]
push ecx
mov dx, word [ebp - 0x194]
push edx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
je 0x4d3ee0
xor al, al
jmp 0x4d3f17
movzx eax, word [ebp - 0x190]
and eax, 0xff
movzx ecx, al
cmp ecx, 2
jne 0x4d3f06
movzx edx, word [ebp - 0x190]
shr edx, 8
movzx eax, dl
cmp eax, 2
je 0x4d3f10
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x4d3f17
call fcn.004d41b0
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4d5910
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
mov eax, 1
test eax, eax
je 0x4d5ab5
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + 0x1088], 0
jne 0x4d59f7
mov ecx, dword [ebp - 0x34]
add ecx, 0x38
call fcn.004d5dc0
test eax, eax
jbe 0x4d59f2
mov ecx, dword [ebp - 0x34]
add ecx, 0x38
call fcn.004d2ad0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00469690
mov ecx, dword [ebp - 0x34]
add ecx, 0x38
call fcn.004d4930
push 0xffc
mov edx, dword [ebp - 0x34]
add edx, 0x8c
push edx
lea ecx, [ebp - 0x10]
call fcn.0041d9a0
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041d5f0
lea ecx, [ebp - 0x2c]
call fcn.00427130
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00409670
add esp, 8
lea ecx, [ebp - 0x10]
call fcn.004b9c00
mov edx, dword [ebp - 0x34]
add edx, 0x88
sub eax, edx
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x1088], eax
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x1088]
sub eax, 4
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x88], eax
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x108c], 0
lea ecx, [ebp - 0x28]
call fcn.0041d640
lea ecx, [ebp - 0x2c]
call fcn.0040a2b0
jmp 0x4d59f7
jmp 0x4d5ab5
mov eax, 1
test eax, eax
je 0x4d5ab0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x34]
mov eax, dword [ecx + 0x1088]
sub eax, dword [edx + 0x108c]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x108c]
mov ecx, dword [ebp - 0x34]
lea edx, [ecx + eax + 0x88]
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4d5a73
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x2733
je 0x4d5a67
movzx edx, byte [ebp + 8]
test edx, edx
jne 0x4d5a65
jmp 0x4d5ab5
jmp 0x4d5a73
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.004d58b0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x108c]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x108c], edx
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x34]
mov eax, dword [ecx + 0x108c]
cmp eax, dword [edx + 0x1088]
jne 0x4d5aab
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x1088], 0
jmp 0x4d5ab0
jmp 0x4d59f7
jmp 0x4d5919
mov esp, ebp
pop ebp
ret 4