joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f95c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push dword [ebp + 8]
xor esi, esi
push 0x4ffd8c
push eax
mov dword [ebp - 4], esi
call fcn.0048ee25
push 0x44
pop edi
push edi
lea eax, [ebp - 0x58]
push esi
push eax
call sub.MSVCRT.dll_memset
mov dword [ebp - 0x58], edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x1c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x10
push 1
push esi
push esi
lea ecx, [ebp + 0xc]
call fcn.0048e806
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x45f9d0
lea ecx, [ebp + 0xc]
call fcn.0048e50a
pop edi
mov eax, esi
pop esi
leave
ret 8
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov esi, dword [ebp - 4]
jmp 0x45f9c0

Function at 0x460915
Capabilities:
Get disk information

Disassembly:
push esi
mov esi, dword [0x548518]
mov eax, SysReAllocString
and esi, eax
cmp esi, eax
pop esi
jne 0x46092b
mov al, 1
ret
jmp fcn.00460551

Function at 0x460a16
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push edi
mov edi, ecx
call fcn.004b4983
test al, al
je 0x460a3f
cmp dword [0x548518], 0x80000000
mov dword [ebp - 4], fcn.00460551
jb 0x460a46
mov dword [ebp - 4], 0x48a814
push 0x104
push edi
push str.InstallLocation
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionUninstalluTorrent
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.004462b3
mov ebx, 0xc0000000
test al, al
je 0x460a87
mov edx, ebx
mov ecx, edi
call dword [ebp - 4]
test al, al
je 0x460a87
push edi
push str.INSTALLDEBUG:_Chose_Uninstall_Key_Path___s__n
call fcn.0042ebe6
add esp, 8
jmp 0x460b25
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
push 0x26
push edi
push 0
call esi
test eax, eax
je 0x460aae
mov edx, ebx
mov ecx, edi
call dword [ebp - 4]
test al, al
je 0x460aae
push edi
push str.INSTALLDEBUG:_Chose_Program_Files___s__n
jmp 0x460b09
push 0
push 0x28
push edi
push 0
call esi
test eax, eax
je 0x460aeb
push edi
push str.INSTALLDEBUG:_Chose_User_Profile_directory___s__n
call fcn.0042ebe6
add esp, 8
lea esi, [ebp - 0x20c]
call fcn.0045e770
mov eax, 0x4f65b0
mov ecx, edi
call fcn.004720ae
mov eax, esi
mov ecx, edi
call fcn.004720ae
jmp 0x460b11
mov esi, str.C:Program_Files
mov edx, ebx
mov ecx, esi
call dword [ebp - 4]
test al, al
je 0x460b1f
push edi
mov eax, esi
call fcn.00485161
push edi
push str.INSTALLDEBUG:_Chose_Hardcoded_program_files_directory___s__n
call fcn.0042ebe6
add esp, 8
mov eax, str.uTorrent
mov ecx, edi
call fcn.004720ae
jmp 0x460b24
xor eax, eax
mov word [edi], ax
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4616ed
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, str.netsh.exe
call fcn.0045dcde
push 0x10
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
mov eax, str.enterpriseclient
jl 0x461717
mov eax, str.client
movzx ecx, byte [0x548518]
push esi
cmp ecx, 6
jb 0x461784
push ebx
push 1
push 0
push 1
push eax
lea eax, [ebp - 0xc]
push str.interface_ipv6_set_teredo__s
push eax
call fcn.0048ee25
add esp, 0xc
mov ecx, eax
call fcn.0048e806
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.00460930
lea ecx, [ebp - 0xc]
mov bl, al
call fcn.0048e50a
test bl, bl
pop ebx
je 0x46176f
mov ecx, 0x500b68
call fcn.00422199
and dword [ebp - 8], 0
mov esi, eax
jmp 0x4617b7
mov ecx, str.Unknown_error.
call fcn.00422199
mov esi, eax
mov dword [ebp - 8], 1
jmp 0x4617b7
lea ecx, [ebp - 8]
push ecx
push 0
push eax
lea eax, [ebp - 0xc]
push str.netsh.exe_interface_ipv6_set_teredo__s
push eax
call fcn.0048ee25
add esp, 0xc
mov ecx, eax
call fcn.0048e806
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.0045db97
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.0048e50a
mov ecx, dword [ebp - 4]
mov dl, 1
call fcn.0046b197
test esi, esi
je 0x4617d8
cmp dword [ebp - 8], 0
jne 0x4617d8
mov dl, 1
mov ecx, esi
call fcn.0046b197
mov al, 1
jmp 0x4617f0
push esi
push str.Could_not_setup_teredo__result_was:___s_
call fcn.0041ff68
pop ecx
pop ecx
mov dl, 1
mov ecx, esi
call fcn.0046b197
xor al, al
pop esi
leave
ret

Function at 0x461858
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
call fcn.0046e3c9
call fcn.004660ba
mov bl, al
call fcn.0046e3e5
test bl, bl
pop ebx
je 0x461872
mov al, 1
ret
movzx eax, byte [0x548518]
cmp eax, 6
jb 0x461883
jmp fcn.004616ed
jmp fcn.004617f3
Function at 0x461bdb
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, edx
cmp word [eax], 0
mov dword [ebp - 8], ecx
je 0x461c0d
lea ecx, [ebp - 0x210]
push ecx
call fcn.00485161
mov eax, 0x500e74
lea ecx, [ebp - 0x210]
call fcn.004720ae
jmp 0x461c21
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push edi
mov edi, dword [ebp + 8]
test edi, 0x800
je 0x461ccf
push esi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
call fcn.00485161
lea ecx, [ebp - 0x418]
call fcn.004a1fa5
xor ecx, ecx
mov word [eax], cx
mov esi, str.settings.dat
mov edx, esi
lea ecx, [ebp - 0x418]
call fcn.004a307f
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.0048880a
push eax
lea ecx, [ebp + 8]
call fcn.0048e7e6
lea ecx, [ebp + 8]
call fcn.0048e806
mov ecx, eax
call fcn.00472219
pop esi
test al, al
jne 0x461ca5
lea ecx, [ebp - 4]
call fcn.0048e806
mov ecx, eax
call fcn.00472219
test al, al
jne 0x461ca5
call fcn.00489b8c
push 0
lea ecx, [ebp - 4]
call fcn.0048e806
push eax
lea ecx, [ebp + 8]
call fcn.0048e806
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
lea ecx, [ebp + 8]
call fcn.0048e50a
lea ecx, [ebp - 4]
call fcn.0048e50a
cmp byte [0x54afd4], 0
jne 0x461d76
call fcn.004b497d
cmp eax, 2
jne 0x461cee
test edi, 0x8000
je 0x461cfb
mov edx, edi
lea ecx, [ebp - 0x210]
call fcn.0045f28c
mov edx, edi
lea ecx, [ebp - 0x210]
call fcn.00460b29
mov eax, 0x2000
test eax, edi
je 0x461d36
lea ecx, [ebp - 0x210]
call fcn.0044304a
test eax, eax
jge 0x461d45
lea eax, [ebp - 0x210]
push eax
push str.INSTALLDEBUG:_Unable_to_create_firewall_rules_for_path___s__n
call fcn.0042ebe6
add esp, 8
jmp 0x461d45
push edi
push eax
push 0x500d80
call fcn.0042ebe6
add esp, 0xc
test edi, 0x200
je 0x461d52
call fcn.00461858
mov ecx, dword [ebp - 8]
push str.SoftwareBitTorrentuTorrent
push reloc.WS2_32.dll_accept
call fcn.0044622e
mov ecx, dword [ebp - 8]
push 0x681a
push str.Revision
call fcn.004451ac
pop edi
leave
ret 4
Function at 0x464afd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x640
push ebx
push esi
push edi
lea ecx, [ebp - 8]
mov edi, eax
call fcn.0044502c
mov byte [ebp - 1], 1
mov dword [0x54b01c], 0x681a
call fcn.00463d84
mov esi, 0x104
push esi
lea eax, [ebp - 0x438]
push eax
push dword [0x548870]
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
xor ebx, ebx
mov ecx, edi
cmp edi, ebx
jne 0x464b4d
lea ecx, [ebp - 0x438]
push 6
lea edx, [ebp - 0x14]
call fcn.0046bd27
push ebx
push ebx
push ebx
push ebx
push 0x54b9ac
push esi
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
cmp dword [ebp + 8], ebx
jne 0x464b96
cmp edi, ebx
jne 0x464b96
cmp byte [0x54afd4], bl
jne 0x464b9e
mov bl, 1
lea ecx, [ebp - 8]
call fcn.004461e4
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0xc
cmp byte [0x54afd4], bl
je 0x464bc9
mov edx, esi
lea ecx, [ebp - 0x230]
call fcn.004a3f2b
lea edi, [ebp - 0x230]
push 0x207
mov edx, edi
mov ecx, 0x5497a0
call fcn.004225b2
or dword [ebp + 8], 0x800
cmp dword [ebp + 8], 0xffffffff
je 0x464c85
cmp dword [0x5484d4], ebx
je 0x464c18
push 0x14
pop edx
lea ecx, [ebp - 0x28]
call fcn.004a1da2
push 0x29
pop ecx
call fcn.0046b19f
lea ecx, [ebp - 0x28]
push ecx
push 0x29
pop edx
mov ecx, eax
mov dword [0x5484d8], eax
call fcn.004224dc
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
mov edx, 0x502c70
lea ecx, [ebp - 0x28]
call fcn.0044b22f
call fcn.00489b8c
lea eax, [ebp - 1]
push eax
push dword [0x5484d4]
mov edx, edi
push dword [ebp + 8]
lea ecx, [ebp - 8]
call fcn.00463eda
test al, al
jne 0x464c39
test byte [ebp + 8], 0x80
je 0x464c8a
cmp byte [ebp - 1], bl
je 0x464b85
push dword [ebp + 8]
push str.INSTALLDEBUG:_InstallEverything_succeeded__flags___d__n
call fcn.0042ebe6
mov ecx, dword [ebp + 8]
mov eax, 0x400
and ecx, eax
add esp, 8
cmp ecx, eax
sete al
test byte [ebp + 8], 0x80
mov byte [0x54b19d], al
jne 0x464c85
mov edx, dword [ebp + 0xc]
mov ecx, edi
call fcn.0046490a
test al, al
je 0x464c8a
test byte [ebp + 8], 0x40
jne 0x464c85
call fcn.0042ee95
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
mov bl, byte [ebp - 1]
jmp 0x464b85
Function at 0x4661bf
Capabilities:
Reference l3 dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
mov ebx, edx
cmp cl, 2
jne 0x4661ff
test byte [0x54883c], 1
jne 0x4661f0
or dword [0x54883c], 1
push str.4.2.2.1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x548838], eax
push ebx
push dword [0x548838]
call dword [0x548810]
jmp 0x46624c
cmp dword [0x548814], 0
jne 0x46620f
mov eax, 0x2741
jmp 0x46624c
test byte [0x54883c], 2
push esi
mov esi, 0x548824
jne 0x466233
or dword [0x54883c], 2
push 0
mov edx, str.2001:db8::1428:57ab
mov ecx, esi
call fcn.0048ae9b
push 0
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.00466134
push ebx
lea eax, [ebp - 0x80]
push eax
call dword [0x548814]
pop esi
pop ebx
leave
ret

Function at 0x46624f
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push edi
mov edi, ecx
mov bl, dl
mov dword [ebp - 4], edi
call fcn.00465dbc
test al, al
je 0x4662a0
lea edx, [ebp - 8]
mov cl, bl
call fcn.004661bf
test eax, eax
jne 0x4662a0
push dword [ebp - 8]
mov dl, bl
lea ecx, [ebp - 0x1c]
call fcn.00465f68
lea ecx, [ebp - 0x1c]
call fcn.00408daa
test al, al
jne 0x4662a0
mov eax, dword [ebp - 4]
push esi
push 5
pop ecx
lea esi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x4662fd
cmp bl, 2
jne 0x4662f4
push 0x100
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4662f4
cmp word [eax + 8], 2
jne 0x4662f4
cmp word [eax + 0xa], 4
jne 0x4662f4
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x4662f4
mov eax, dword [eax]
push 0
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
mov ecx, edi
call fcn.0048abbb
jmp 0x4662fb
mov ecx, edi
call fcn.0048ab80
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x4674e7
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
mov edi, ecx
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, ebx
je 0x4675f4
push esi
cmp eax, 0xffffffff
je 0x4675de
mov eax, dword [ebp - 0x1c]
cmp eax, 0x8012
je 0x4675f3
cmp dword [edi + 0xc], ebx
je 0x467597
lea ecx, [eax - 0x100]
cmp ecx, 9
ja 0x467597
cmp byte [edi + 8], bl
jne 0x4675de
mov esi, 0x100
cmp eax, esi
jne 0x46755b
push dword [ebp - 0x20]
mov ecx, dword [edi + 0xc]
push dword [ebp - 0x18]
mov eax, dword [ecx]
push 0xfffffffffffffffd
pop edx
call dword [eax + 0x18]
test eax, eax
jne 0x4675de
lea eax, [ebp - 4]
push eax
push 0x4674a8
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 4], ebx
jne 0x467597
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 4]
cmp eax, dword [edi + 0x10]
jne 0x467588
cmp dword [ebp - 0x1c], esi
jne 0x467597
cmp dword [ebp - 0x18], 9
jne 0x4675ca
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x4675de
cmp dword [ebp - 0x1c], 0x20a
jne 0x4675ca
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov esi, eax
cmp esi, ebx
je 0x4675ca
cmp esi, dword [ebp - 0x20]
je 0x4675ca
push ebx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x548888]
jne 0x4675ca
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, ebx
jne 0x467509
pop esi
mov eax, dword [ebp - 0x18]
pop edi
pop ebx
leave
ret

Function at 0x468a23
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
movzx eax, dx
push 5
mov esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x468aa0
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x468a7c
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
push ebx
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x468a80
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
xor eax, eax
jmp 0x468a9f
push esi
push dword [ebp - 4]
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x468a9d
mov dword [eax], esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x46b77a
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
inc edi
push edi
push 0
push 2
push 2
mov esi, ecx
call fcn.004705be
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x46b7b4
mov ebx, dword [esi]
push 0
push edi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, esi
call dword [ebx + 0xc]
xor al, al
jmp 0x46b894
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push eax
mov dword [ebp - 4], edi
call ebx
test eax, eax
jne 0x46b7ad
push 0x1a73
push eax
lea ecx, [ebp - 0x24]
call fcn.0048abbb
push eax
mov ecx, esi
call fcn.0046e951
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push str.239.192.0.0
call edi
push str.0.0.0.0
mov dword [ebp - 0x10], eax
call edi
push 8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0xc
push 0
push dword [esi + 4]
call ebx
test eax, eax
jne 0x46b7ad
mov byte [ebp - 8], al
lea edi, [ebp - 7]
stosw word es:[edi], ax
push 4
stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push 9
push 0
push dword [esi + 4]
call ebx
test eax, eax
jne 0x46b7ad
push 4
lea eax, [ebp - 4]
push eax
push 0xb
push 0
push dword [esi + 4]
mov dword [ebp - 4], 1
call ebx
test eax, eax
jne 0x46b7ad
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push dword [esi + 4]
mov edi, 0xff
mov dword [ebp - 4], edi
call ebx
test eax, eax
jne 0x46b7ad
push 4
lea eax, [ebp - 4]
push eax
push 0xa
push 0
push dword [esi + 4]
mov dword [ebp - 4], edi
call ebx
test eax, eax
jne 0x46b7ad
mov ecx, esi
call fcn.0046f01d
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46bf35
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push 1
push 0
push 2
push 2
mov esi, ecx
call fcn.004705be
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push dword [esi + 4]
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x46bf70
xor al, al
jmp 0x46bf94
push 0x14e7
call fcn.0046beea
push eax
lea ecx, [ebp - 0x18]
call fcn.0048abbb
push eax
mov ecx, esi
call fcn.0046e951
mov ecx, esi
call fcn.0046f01d
mov al, 1
pop esi
leave
ret

Function at 0x46bf97
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x14], ax
mov eax, 0xe714
mov esi, ecx
mov byte [ebp - 4], 0
mov byte [ebp - 3], 0
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 2
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
setg cl
pop edi
mov al, cl
pop esi
leave
ret 4
Function at 0x46bff4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dl, byte [ebp + 0xc]
push esi
push edi
push dword [ebp + 0x14]
mov esi, ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.0046bef9
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x1c], ax
mov eax, 0xe714
mov word [ebp - 0x1a], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xc
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
setg cl
pop edi
mov al, cl
pop esi
leave
ret 0x10

Function at 0x46c7bc
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x8004667e
push edi
mov ebx, ecx
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x46c7ef
or eax, eax
jmp 0x46c89b
mov ecx, dword [ebp + 0xc]
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00466134
call fcn.0046e3c9
push dword [ebp + 8]
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x46c850
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
je 0x46c848
cmp esi, 0x2734
je 0x46c848
push esi
push dword [0x5515b4]
mov ecx, ebx
call fcn.0046c717
mov eax, esi
jmp 0x46c89a
mov ecx, dword [ebp + 0xc]
call fcn.0046f2de
call fcn.0046e3e5
push dword [ebp + 0x10]
mov ecx, ebx
push edi
call fcn.0046c615
mov dword [ebp + 8], eax
call fcn.0046e3c9
cmp dword [ebp + 8], 0
je 0x46c88a
mov esi, dword [0x5518dc]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
mov ecx, ebx
call fcn.0046c717
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 0xc]
call fcn.0046e887
call fcn.0046e3e5
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x46c8a1
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
and dword [ebp + 0x10], 0
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
xor ebx, ebx
jmp 0x46c904
push dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
push dword [ebp + 8]
call fcn.0046c593
test eax, eax
jne 0x46c908
push eax
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x46c916
mov eax, dword [ebp + 0xc]
add dword [ebp - 8], eax
sub esi, eax
add ebx, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x46c931
test eax, eax
je 0x46c931
test esi, esi
jg 0x46c8c0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
pop esi
pop ebx
leave
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
mov esi, eax
push esi
push dword [0x5515b8]
call fcn.0046c717
mov eax, esi
jmp 0x46c90e
mov eax, ebx
jmp 0x46c910

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push esi
push edi
push 0
mov edi, ecx
push 0
lea ecx, [ebp - 0x28]
call fcn.0048abbb
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [ebp + 8]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x46cb83
push 0xfffffffffffffffe
pop eax
jmp 0x46cbfe
lea eax, [ebp - 0x28]
push eax
push esi
mov ecx, edi
call fcn.0046cb20
test eax, eax
je 0x46cba7
push 0xa
push dword [0x551898]
mov ecx, edi
call fcn.0046c6c5
or eax, 0xffffffff
jmp 0x46cbfe
lea ecx, [ebp - 0x14]
call fcn.0048ab80
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0046ca70
test eax, eax
jne 0x46cbfe
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00466134
lea eax, [ebp - 0x14]
push eax
push 0x4f33e0
lea eax, [ebp - 0x38]
push 0x10
push eax
call fcn.0048d2a2
add esp, 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push eax
push dword [esi]
mov ecx, edi
call fcn.0046c7bc
pop edi
pop esi
leave
ret 0x10
Function at 0x46cc04
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
xor ebx, ebx
jmp 0x46cc5c
push dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
push dword [ebp + 8]
call fcn.0046c615
test eax, eax
jne 0x46cc60
push eax
push eax
push eax
lea eax, [ebp + 0x10]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x46cc6e
mov eax, dword [ebp + 0x10]
add dword [ebp - 8], eax
sub esi, eax
add ebx, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x46cc89
test esi, esi
jg 0x46cc1f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
pop esi
pop ebx
leave
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
mov esi, eax
push esi
push dword [0x5515bc]
call fcn.0046c717
mov eax, esi
jmp 0x46cc66
mov eax, ebx
jmp 0x46cc68

Function at 0x46e1cb
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ecx + 4]
mov dword [ebp - 4], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x46e1fe
call fcn.0048ab80
jmp 0x46e20a
lea eax, [ebp - 0x84]
push eax
call fcn.0048ac0c
mov eax, dword [ebp + 8]
leave
ret 4

Function at 0x46e32f
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
sub esp, 0x98
cmp eax, 0xffffffff
jne 0x46e345
or eax, 0xffffffff
leave
ret
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x98]
push ecx
push eax
mov dword [ebp - 4], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x46e340
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.0048ac0c
movzx eax, word [eax + 0x10]
leave
ret