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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41e96b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41e98f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41e9aa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x424473
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4244b5
call fcn.00427daf
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4244b5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4244ac
xor eax, eax
jmp 0x4244bd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004244c3
pop edi
pop esi
pop ebx
ret 4

Function at 0x428ebc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x428eea
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x428f08
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00428e22
jmp 0x428f08
mov eax, dword [esi + 0x14]
test eax, eax
je 0x428f08
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00428e22
test edi, edi
mov eax, edi
jne 0x428ef2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4013d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x418e93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x41a868
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call fcn.00418706
mov dword [ebx], 0x41a854
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call fcn.00418706
or eax, 0xffffffff
push 0x422340
mov dword [ebx], 0x41a818
push edi
mov dword [esi], 0x41a82c
mov dword [esi + 0x54], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x38], 0xc0c0c0
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x58], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404a20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4192a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x41a8c0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
push ecx
push eax
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_2
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov ecx, esi
lea eax, [edi + 2]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 5]
mov ecx, esi
push eax
push ebx
call sub.MFC42.DLL_CDC::LineTo
lea ebp, [edi + 3]
lea eax, [ebx + 1]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 1]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [edi + 4]
lea ecx, [ebx + 2]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 7]
mov ecx, esi
push eax
lea eax, [ebx + 2]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [ebx + 3]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 3]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [edi + 2]
lea ecx, [ebx + 4]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 5]
mov ecx, esi
push eax
lea eax, [ebx + 4]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea ecx, [edi + 1]
lea eax, [ebx + 5]
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 4]
mov ecx, esi
push eax
lea eax, [ebx + 5]
push eax
call sub.MFC42.DLL_CDC::LineTo
add ebx, 6
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
push ebp
push ebx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_2
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x10], 0x41a898
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x405bb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x419430
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov eax, esi
mov ebp, ecx
push edi
xor edi, edi
mov ecx, dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 0x41a8d4
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], edi
call fcn.00401540
test eax, eax
je 0x405c0e
push 0xf
jmp 0x405c10
push 4
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
call ebx
cmp dword [esp + 0x40], edi
jne 0x405c31
push 0x3fe33333
push 0x33333333
push eax
call fcn.00402460
add esp, 0xc
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
call fcn.00401530
test eax, eax
je 0x405c89
mov eax, dword [edi + 4]
push 0xf
lea edx, [esp + 0x1c]
push 2
push edx
push eax
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [esp + 0x44]
push 7
test eax, eax
jne 0x405cad
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add ecx, 4
push eax
add edx, 4
push ecx
push edx
push edi
mov ecx, ebp
call fcn.00404a20
jmp 0x405cc5
call ebx
mov ecx, dword [esi]
push eax
mov eax, dword [esi + 4]
add ecx, 5
add eax, 4
push eax
push ecx
push edi
mov ecx, ebp
call fcn.00404900
mov dword [esp + 0x10], 0x41a898
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10

Function at 0x4062d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
and esi, 0xffff
push 2
push esi
call sub.MFC42.DLL_AfxFindResourceHandle
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push 2
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x40630d
xor ebx, ebx
push 2
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x40630d
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40631e
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x40632e
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call fcn.00406290
add esp, 4
cmp ax, 0x10
je 0x406344
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push edi
push ebx
call sub.MFC42.DLL_AfxLoadSysColorBitmap
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x406420
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x422378]
sub esp, 0x134
test eax, eax
jne 0x4064f5
lea eax, [esp]
mov dword [0x422378], 1
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4064f5
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4064e8
mov ecx, 5
mov esi, str.Windows_Classic.theme
lea edi, [esp + 0x14]
lea edx, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x4064e8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4064e8
mov dword [0x422374], 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [0x422374]
add esp, 0x134
ret

Function at 0x4070e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4195ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x41a900
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x407170
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x407137
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x407161
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x407176
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x407176
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x41a898
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x41a884
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x409340
Capabilities:
Get local ipv4 addresses
Get socket information
Send data
Send data on socket

Disassembly:
sub esp, 0x6f0
xor eax, eax
push ebx
mov dword [esp + 0x1d], eax
push ebp
mov dword [esp + 0x25], eax
push esi
mov dword [esp + 0x2d], eax
push edi
mov dword [esp + 0x35], eax
xor ebx, ebx
mov word [esp + 0x39], ax
mov ecx, 0x40
lea edi, [esp + 0x75]
mov byte [esp + 0x3b], al
mov byte [esp + 0x74], bl
mov dword [esp + 0x4c], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x50]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], ebx
xor ebp, ebp
call fcn.0040d640
test eax, eax
je 0x4093c8
mov edi, 0x422c34
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x74]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x3c], ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], ecx
push edx
mov dword [esp + 0x48], ecx
push eax
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x70c]
push ecx
mov dword [esp + 0x30], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x40940b
push str.ERROR::_getsockname_error
call fcn.0040b9a0
add esp, 4
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x28]
push edx
mov esi, eax
push eax
lea eax, [esp + 0x54]
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0040b5a0
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_ntohl]
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x15], edx
lea eax, [esp + 0x14]
mov dword [esp + 0x19], edx
push eax
mov byte [esp + 0x18], bl
mov byte [esp + 0x21], dl
call fcn.0040bb20
mov ecx, 0x162
xor eax, eax
lea edi, [esp + 0x17c]
add esp, 4
rep stosd dword es:[edi], eax
mov edi, 0x41e0e4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x178]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebp, 1
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x17c], 0x15
mov dword [esp + 0x180], 1
jne 0x4094d1
lea ecx, [esp + 0x74]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
lea edx, [esp + 0x198]
push str._10u__s__s__s__s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
jmp 0x4094f6
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push ecx
push edx
lea eax, [esp + 0x194]
push str._10u__s__s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
mov edx, dword [esp + 0x704]
push ebx
lea ecx, [esp + 0x17c]
push 0x58
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40952f
push 0x41e0a8
call fcn.0040b9a0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6f0
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x6f0
ret
Function at 0x409540
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x590
mov eax, dword [esp + 0x598]
push ebx
mov ebx, dword [esp + 0x598]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_send]
add eax, 0x44
push esi
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
test eax, eax
je 0x4095d8
push eax
call fcn.0040ac60
add esp, 4
test eax, eax
jne 0x40962b
mov ecx, 0x162
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, 0x41e0e4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x10
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 0x1f
push ecx
push ebx
mov dword [esp + 0x30], 0
call ebp
cmp eax, 0xffffffff
je 0x409644
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc eax
add edx, 4
cmp eax, 0xa
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jl 0x40956d
mov ecx, 0x10
xor eax, eax
mov edi, 0x4223ac
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov edi, 0x4223f0
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov edi, 0x422434
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebp
mov eax, 0xfffffff9
pop ebx
add esp, 0x590
ret
lea edx, [esp + 0x18]
push edx
push ebx
call fcn.0040b250
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x590
ret
push 0x41e104
call fcn.0040b9a0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x590
ret
Function at 0x40a8a0
Capabilities:
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x5dc
xor eax, eax
push ebp
mov dword [esp + 0xd], eax
push edi
mov dword [esp + 0x15], eax
mov ecx, 9
mov dword [esp + 0x19], eax
lea edi, [esp + 0x38]
mov dword [esp + 0x1d], eax
mov ebp, dword [esp + 0x5e8]
mov word [esp + 0x21], ax
lea edx, [esp + 0xc]
mov dword [esp + 0x34], eax
mov byte [esp + 0x23], al
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x28], ecx
push edx
mov dword [esp + 0x30], ecx
push eax
push ebp
mov byte [esp + 0x1c], 0
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x40a91e
push str.ERROR::_getsockname_error
call fcn.0040b9a0
add esp, 4
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push esi
push ecx
mov esi, eax
push eax
lea edx, [esp + 0x40]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.0040b5a0
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, 0x162
xor eax, eax
lea edi, [esp + 0x60]
lea edx, [esp + 0x60]
rep stosd dword es:[edi], eax
mov edi, 0x41e0e4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x64]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x10
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x422b2c]
push ebp
mov dword [esp + 0x74], 0x2b
mov dword [esp + 0x78], 1
mov dword [esp + 0x7c], ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
pop esi
jne 0x40a9be
push str.ERROR::_Send_logoff_info_failed_
call fcn.0040b9a0
add esp, 4
or eax, 0xffffffff
pop edi
pop ebp
add esp, 0x5dc
ret
mov ecx, 0x162
xor eax, eax
lea edi, [esp + 0x5c]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x60]
push 0x588
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x40a9fa
push str.ERROR::_Recv_logoff_result_failed_
call fcn.0040b9a0
add esp, 4
or eax, 0xffffffff
pop edi
pop ebp
add esp, 0x5dc
ret
push 3
lea ecx, [esp + 0x60]
push 0x41e0e4
push ecx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x40aa5d
cmp dword [esp + 0x60], 0xc9
jne 0x40aa5d
lea edx, [esp + 0x6c]
push edx
call fcn.004092f0
add esp, 4
test eax, eax
jne 0x40aa3c
pop edi
mov eax, 1
pop ebp
add esp, 0x5dc
ret
mov ecx, dword [0x4225c4]
test ecx, ecx
je 0x40aa4f
push eax
call fcn.0040bd20
add esp, 4
pop edi
mov eax, 0xfffffffb
pop ebp
add esp, 0x5dc
ret
push str.ERROR::_Recved_bad_logoff_result_info_
call fcn.0040b9a0
add esp, 4
mov eax, 0xfffffffa
pop edi
pop ebp
add esp, 0x5dc
ret
Function at 0x40aa80
Capabilities:
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x5dc
xor eax, eax
push ebp
mov dword [esp + 0xd], eax
push edi
mov dword [esp + 0x15], eax
mov ecx, 9
mov dword [esp + 0x19], eax
lea edi, [esp + 0x38]
mov dword [esp + 0x1d], eax
mov ebp, dword [esp + 0x5e8]
mov word [esp + 0x21], ax
lea edx, [esp + 0xc]
mov dword [esp + 0x34], eax
mov byte [esp + 0x23], al
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x28], ecx
push edx
mov dword [esp + 0x30], ecx
push eax
push ebp
mov byte [esp + 0x1c], 0
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x40aafe
push str.ERROR::_getsockname_error
call fcn.0040b9a0
add esp, 4
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push esi
push ecx
mov esi, eax
push eax
lea edx, [esp + 0x40]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.0040b5a0
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, 0x162
xor eax, eax
lea edi, [esp + 0x60]
lea edx, [esp + 0x60]
rep stosd dword es:[edi], eax
mov edi, 0x41e0e4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x64]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x10
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x422b2c]
push ebp
mov dword [esp + 0x74], 0x2c
mov dword [esp + 0x78], 1
mov dword [esp + 0x7c], ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
pop esi
jne 0x40ab9e
push str.ERROR::_Send_logof_key_info_failed_
call fcn.0040b9a0
add esp, 4
or eax, 0xffffffff
pop edi
pop ebp
add esp, 0x5dc
ret
mov ecx, 0x162
xor eax, eax
lea edi, [esp + 0x5c]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x60]
push 0x588
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x40abda
push str.ERROR::_Recv_logof_key_result_failed_
call fcn.0040b9a0
add esp, 4
or eax, 0xffffffff
pop edi
pop ebp
add esp, 0x5dc
ret
push 3
lea ecx, [esp + 0x60]
push 0x41e0e4
push ecx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x40ac3d
cmp dword [esp + 0x60], 0xc9
jne 0x40ac3d
lea edx, [esp + 0x6c]
push edx
call fcn.004092f0
add esp, 4
test eax, eax
jne 0x40ac1c
pop edi
mov eax, 1
pop ebp
add esp, 0x5dc
ret
mov ecx, dword [0x4225c4]
test ecx, ecx
je 0x40ac2f
push eax
call fcn.0040bd20
add esp, 4
pop edi
mov eax, 0xfffffffb
pop ebp
add esp, 0x5dc
ret
push str.ERROR::_Recved_bad_logof_key_result_info_
call fcn.0040b9a0
add esp, 4
mov eax, 0xfffffffa
pop edi
pop ebp
add esp, 0x5dc
ret