joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ada0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x57392c], 0
push esi
push edi
jne 0x40aed6
push 0x103
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x110]
push 0x5c
push ecx
call fcn.0042d2e8
add esp, 8
test eax, eax
je 0x40adef
mov byte [eax + 1], 0
push str.dbghelp.dll
lea edx, [ebp - 0x110]
push 0x103
push edx
call fcn.0042d049
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x40ae27
call fcn.00401780
push 0xffffffffffffffff
call fcn.0042d582
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SymInitializeW
push esi
call edi
push str.SymSetOptions
push esi
mov dword [0x473704], eax
call edi
push str.SymCleanup
push esi
mov dword [0x473708], eax
call edi
push str.ImagehlpApiVersionEx
push esi
mov dword [0x47370c], eax
call edi
push str.MiniDumpReadDumpStream
push esi
mov dword [0x473710], eax
call edi
push str.SymGetModuleInfo64
push esi
mov dword [0x473714], eax
call edi
push str.SymLoadModuleExW
push esi
mov dword [0x473718], eax
call edi
push str.SymGetLineFromAddr64
push esi
mov dword [0x47371c], eax
call edi
push str.SymFromAddr
push esi
mov dword [0x473720], eax
call edi
push str.StackWalk64
push esi
mov dword [0x473724], eax
call edi
push str.MiniDumpWriteDump
push esi
mov dword [0x473728], eax
call edi
push str.SymGetModuleBase64
push esi
mov dword [0x47372c], eax
call edi
push str.SymFunctionTableAccess64
push esi
mov dword [0x473730], eax
call edi
mov dword [0x473734], eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042cb12
mov esp, ebp
pop ebp
ret
Function at 0x40c050
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea esi, [eax + 0x34]
push 0x4552cc
push esi
xor eax, eax
call fcn.004034a0
push eax
lea eax, [ebp - 4]
push eax
call fcn.0042e8c2
mov ecx, dword [ebp - 4]
push 2
push 0
push ecx
call fcn.0042f4c9
mov edx, dword [ebp - 4]
push edx
call fcn.0042f3da
mov edi, eax
mov eax, dword [ebp - 4]
push eax
call fcn.0042f188
mov ecx, dword [ebp - 4]
push ecx
push edi
push 1
push 0x77dad8
call fcn.0042eb53
mov eax, dword [0x5738c4]
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], 0x100000
mov ecx, dword [eax + 0x50]
push 0x67dad8
push ecx
push edi
push 0x77dad8
call fcn.00442120
mov edx, dword [ebp - 4]
add esp, 0x44
push edx
call fcn.0042ef8e
mov eax, dword [esi]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4552c0
push esi
xor eax, eax
call fcn.004034a0
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.0042e8c2
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push edx
push eax
push 1
push 0x67dad8
call fcn.0042ecc7
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0042ef8e
add esp, 0x20
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4477a8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x45b480]
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 esi, ecx
mov edi, dword [ebp + 8]
push 0x4552c0
lea eax, [ebp + 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
add edi, 0x44
xor eax, eax
mov dword [edi], ebx
call fcn.004034a0
push eax
push edi
call fcn.0042e8c2
mov ecx, dword [edi]
add esp, 0xc
cmp ecx, ebx
jne 0x40c1bc
mov eax, dword [ebp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x460f3c
je 0x40c1b5
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40c1b5
mov edx, dword [ebp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0042ce4b
add esp, 4
xor eax, eax
jmp 0x40c301
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov eax, 0x4d42
mov word [ebp - 0x20], ax
xor eax, eax
xor edx, edx
cmp esi, ebx
sete al
mov dword [ebp - 0x1a], edx
lea eax, [eax + eax + 1]
imul eax, dword [ebp + 0xc]
mov edx, eax
and edx, reloc.WS2_32.dll_closesocket
jns 0x40c215
dec edx
or edx, 0xfffffffc
inc edx
add edx, eax
mov eax, dword [ebp + 0x10]
imul edx, eax
add edx, 0x36
push ecx
neg esi
mov dword [ebp - 0x40], eax
sbb esi, esi
mov eax, 1
push 1
mov dword [ebp - 0x1e], edx
mov edx, dword [ebp + 0xc]
mov word [ebp - 0x3c], ax
and esi, 0xfffffff0
mov eax, 0xec4
lea ecx, [ebp - 0x20]
push 0xe
add esi, 0x18
push ecx
mov dword [ebp - 0x16], 0x36
mov dword [ebp - 0x48], 0x28
mov dword [ebp - 0x44], edx
mov word [ebp - 0x3a], si
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.0042ecc7
add esp, 0x10
cmp eax, 1
je 0x40c2b5
mov eax, dword [ebp + 0x14]
lea edx, [eax - 0xc]
cmp edx, 0x460f3c
je 0x40c1b5
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40c1b5
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.0042ce4b
add esp, 4
xor eax, eax
jmp 0x40c301
mov ecx, dword [edi]
push ecx
push 1
lea edx, [ebp - 0x48]
push 0x28
push edx
call fcn.0042ecc7
add esp, 0x10
cmp eax, 1
mov eax, dword [ebp + 0x14]
lea ecx, [eax - 0xc]
jne 0x40c190
cmp ecx, 0x460f3c
je 0x40c2fc
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40c2fc
mov edx, dword [ebp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0042ce4b
add esp, 4
mov eax, 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.0042cb12
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40c320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
mov esi, eax
je 0x40c3a6
mov eax, 0x55555556
imul ecx
push ebx
push edi
mov edi, edx
shr edi, 0x1f
add edi, edx
push edi
call fcn.0042d676
add esp, 4
xor ebx, ebx
mov dword [ebp + 0xc], eax
test edi, edi
jle 0x40c37b
inc esi
nop
movzx eax, byte [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, byte [esi]
add ecx, eax
add ecx, edx
mov eax, 0x55555556
imul ecx
mov ecx, dword [ebp + 0xc]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ebx + ecx], al
inc ebx
add esi, 3
cmp ebx, edi
jl 0x40c350
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x44]
mov ecx, dword [ebp + 0xc]
push eax
push 1
push edi
push ecx
call fcn.0042ecc7
mov edx, dword [ebp + 0xc]
push edx
call fcn.0042ce4b
add esp, 0x14
pop edi
pop ebx
mov eax, 1
pop esi
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x44]
push edx
push 1
push ecx
push esi
call fcn.0042ecc7
add esp, 0x10
mov eax, 1
pop esi
pop ebp
ret 8
Function at 0x4134a0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4136a3
mov eax, dword [ebp - 0x9c]
sub eax, 4
push esi
je 0x413629
mov ecx, 1
sub eax, ecx
je 0x413581
sub eax, ecx
je 0x413514
mov eax, str.unknow_os
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cb12
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x98]
sub eax, 0
je 0x413554
sub eax, ecx
jne 0x41368e
cmp byte [ebp - 6], cl
jne 0x413540
mov eax, str.Microsoft_Windows_7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cb12
mov esp, ebp
pop ebp
ret
mov eax, str.Microsoft_Windows_Server_2008_R2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cb12
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 6], cl
jne 0x41356d
mov eax, str.Microsoft_Windows_Vista
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cb12
mov esp, ebp
pop ebp
ret
mov eax, str.Microsoft_Windows_Server_2008
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cb12
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x98]
sub eax, 0
je 0x413615
sub eax, ecx
je 0x413601
sub eax, ecx
jne 0x41368e
cmp byte [ebp - 6], cl
jne 0x4135bf
cmp word [ebp - 0xc8], 9
jne 0x4135bf
mov eax, str.Microsoft_Windows_XP_Professional_x64_Edition
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cb12
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call esi
test eax, eax
jne 0x4135e1
mov eax, str.Microsoft_Windows_Server_2003
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cb12
mov esp, ebp
pop ebp
ret
push 0x59
call esi
test eax, eax
je 0x41368e
mov eax, str.Microsoft_Windows_Server_2003_R2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cb12
mov esp, ebp
pop ebp
ret
mov eax, str.Microsoft_Windows_XP
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cb12
mov esp, ebp
pop ebp
ret
mov eax, str.Microsoft_Windows_2000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cb12
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x413665
cmp eax, 0xa
je 0x413651
cmp eax, 0x5a
jne 0x41368e
mov eax, str.Microsoft_Windows_Me
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cb12
mov esp, ebp
pop ebp
ret
mov eax, str.Microsoft_Windows_98
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cb12
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x90]
cmp eax, 2
jne 0x413684
mov eax, str.Microsoft_Windows_NT_4.0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cb12
mov esp, ebp
pop ebp
ret
cmp eax, 1
mov eax, str.Microsoft_Windows_95
je 0x413694
mov eax, dword [ebp - 0xa4]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cb12
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0042cb12
mov esp, ebp
pop ebp
ret
Function at 0x413b10
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4474e8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x45b480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x413c18
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x413c12
push esi
push 0x44de4c
push 1
push 0
push 0x44df1c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x413c12
lea ebx, [ebp - 0x10]
call fcn.00413760
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x413ba2
mov ecx, dword [eax]
jmp 0x413ba4
xor ecx, ecx
mov eax, dword [esi]
mov edx, dword [eax]
lea ebx, [esi + 4]
push ebx
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00413800
cmp dword [ebp - 0x14], 0
jge 0x413be3
mov esi, dword [esi]
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
jmp 0x413c12
mov eax, dword [ebx]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x413c18
mov ebx, dword [ebx]
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov esi, dword [esi]
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42cb12
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45b480]
jne 0x42cb1c
repz ret
jmp fcn.004304c1
Function at 0x433c9e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00431039
and dword [ebp - 0x14], 0
cmp dword [0x461c5c], 0
mov dword [ebp - 0x18], eax
jne 0x433d51
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x433df9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x433df9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x461c5c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x461c60], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x461c64], eax
call edi
push eax
call esi
mov dword [0x461c6c], eax
test eax, eax
je 0x433d51
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x461c68], eax
mov eax, dword [0x461c68]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x433daa
cmp dword [0x461c6c], ecx
je 0x433daa
push eax
call esi
push dword [0x461c6c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x433daa
test ebx, ebx
je 0x433daa
call edi
test eax, eax
je 0x433da1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x433da1
test byte [ebp - 8], 1
jne 0x433daa
or dword [ebp + 0x10], 0x200000
jmp 0x433ddd
mov eax, dword [0x461c60]
cmp eax, dword [ebp - 0x18]
je 0x433ddd
push eax
call esi
test eax, eax
je 0x433ddd
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x433ddd
mov eax, dword [0x461c64]
cmp eax, dword [ebp - 0x18]
je 0x433ddd
push eax
call esi
test eax, eax
je 0x433ddd
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x461c5c]
call esi
test eax, eax
je 0x433df9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x433dfb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cb12
leave
ret
Function at 0x43c980
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x84
mov eax, dword [0x45b480]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
xor eax, eax
mov dword [ebp], eax
push esi
mov esi, dword [esp + 0x94]
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
push edi
mov dword [ebp + 0xc], eax
mov eax, 2
push 0x3a
push esi
mov word [ebp], ax
call fcn.004333f0
mov edi, eax
add esp, 8
test edi, edi
je 0x43ca05
mov ebx, edi
sub ebx, esi
cmp ebx, 0x80
jge 0x43ca7a
push ebx
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00434eb0
inc edi
add esp, 0xc
mov byte [esp + ebx + 0x10], 0
test edi, edi
je 0x43ca32
push edi
call fcn.0042f0a3
add esp, 4
movzx eax, ax
jmp 0x43ca34
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43ca10
sub eax, edx
cmp eax, 0x80
jae 0x43ca7a
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x43ca28
xor eax, eax
push eax
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 0x10]
push str.1234567890.
push edx
mov word [ebp + 2], ax
call fcn.00442490
lea ecx, [esp + 0x18]
add esp, 8
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x43ca58
sub ecx, esi
cmp eax, ecx
jne 0x43ca7f
add ebp, 4
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.0043ced0
add esp, 8
test eax, eax
jne 0x43ca98
or eax, 0xffffffff
jmp 0x43ca9a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x43ca7a
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp + 4], ecx
xor eax, eax
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042cb12
add esp, 0x84
ret
Function at 0x43ceb0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
jmp 0x43d0d0
sub esp, 0x110
mov eax, dword [0x45b480]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x12c]
test edi, edi
je 0x43d177
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
cmp edi, 0xffffffff
jne 0x43d119
xor ecx, ecx
jmp 0x43d142
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc], eax
imul eax, eax, 0x3e8
mov edx, edi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x10], edx
push ecx
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x43d175
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0042cb12
add esp, 0x110
ret
je 0x43d1d3
mov edx, dword [esp + 0x128]
push 0
push edx
push ebx
push esi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x43d1ed
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x43d1c2
call esi
cmp eax, 0x2733
je 0x43d1c2
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0042cb12
add esp, 0x110
ret
test edi, edi
je 0x43d1d3
push 0x30d40
call fcn.0043d360
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0042cb12
add esp, 0x110
ret
jne 0x43d1f4
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042cb12
add esp, 0x110
ret
Function at 0x43cec0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
jmp 0x43d210
sub esp, 0x110
mov eax, dword [0x45b480]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x12c]
test edi, edi
je 0x43d2c7
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
cmp edi, 0xffffffff
jne 0x43d25d
xor ecx, ecx
jmp 0x43d286
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc], eax
imul eax, eax, 0x3e8
mov edx, edi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x10], edx
push ecx
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x43d2c5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2714
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0042cb12
add esp, 0x110
ret
je 0x43d323
mov edx, dword [esp + 0x128]
push 0
push edx
push ebx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jns 0x43d33d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x43d312
call esi
cmp eax, 0x2733
je 0x43d312
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0042cb12
add esp, 0x110
ret
test edi, edi
je 0x43d323
push 0x186a0
call fcn.0043d360
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0042cb12
add esp, 0x110
ret
jne 0x43d344
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042cb12
add esp, 0x110
ret

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

Disassembly:
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
ret

Function at 0x43cf10
Capabilities:
Create udp socket

Disassembly:
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
ret
Function at 0x43cf50
Capabilities:
Get socket status

Disassembly:
sub esp, 0x214
mov eax, dword [0x45b480]
xor eax, esp
mov dword [esp + 0x210], eax
mov ecx, dword [esp + 0x21c]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp], eax
imul eax, eax, 0x3e8
mov edx, ecx
sub edx, eax
imul edx, edx, 0x3e8
push esi
mov esi, dword [esp + 0x21c]
mov dword [esp + 8], edx
mov dword [esp + 0x114], esi
mov dword [esp + 0x110], 1
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 1
cmp ecx, 0xffffffff
jne 0x43cfd5
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x118]
push ecx
push 0
lea edx, [esi + 1]
push edx
jmp 0x43cfed
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
push 0
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x43d010
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0042cb12
add esp, 0x214
ret
jne 0x43d02d
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0042cb12
add esp, 0x214
ret
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
mov ecx, dword [esp + 0x214]
neg eax
sbb eax, eax
pop esi
xor ecx, esp
call fcn.0042cb12
add esp, 0x214
ret

Function at 0x43d060
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x43d0a9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2748
je 0x43d0a9
cmp eax, 0x2733
je 0x43d095
cmp eax, 0x2735
jne 0x43d0ad
mov edx, dword [esp + 0x14]
push edx
push esi
call fcn.0043cf50
add esp, 8
neg eax
sbb eax, eax
pop esi
ret
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x43d0d0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
jmp 0x43d0d0
sub esp, 0x110
mov eax, dword [0x45b480]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x12c]
test edi, edi
je 0x43d177
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
cmp edi, 0xffffffff
jne 0x43d119
xor ecx, ecx
jmp 0x43d142
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc], eax
imul eax, eax, 0x3e8
mov edx, edi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x10], edx
push ecx
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x43d175
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0042cb12
add esp, 0x110
ret
je 0x43d1d3
mov edx, dword [esp + 0x128]
push 0
push edx
push ebx
push esi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x43d1ed
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x43d1c2
call esi
cmp eax, 0x2733
je 0x43d1c2
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0042cb12
add esp, 0x110
ret
test edi, edi
je 0x43d1d3
push 0x30d40
call fcn.0043d360
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0042cb12
add esp, 0x110
ret
jne 0x43d1f4
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042cb12
add esp, 0x110
ret