joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7c0250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7d4808
push 0x7c4288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x7c0329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x7c0329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.007c31d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x7c0329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x7c0329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x7c032c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.007c0351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x7c1000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x7c1131
push esi
call fcn.007c4145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.007b3080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x7c1131
push 0
push ebp
call fcn.007b33a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.007b3260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x7c108b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.007b32f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x7c1121
push 0x7d9918
push edi
call fcn.007c23f0
push eax
push ebx
push esi
call fcn.007c0f60
push 0x7d98f8
push edi
call fcn.007c23f0
push eax
push ebx
push esi
call fcn.007c0f60
push 0x7d98d8
push edi
call fcn.007c23f0
push eax
push ebx
push esi
call fcn.007c0f60
push 0x7d98c0
push edi
call fcn.007c23f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.007c0f60
push 0x7d98a0
push edi
call fcn.007c23f0
push eax
push ebx
push esi
call fcn.007c0f60
push 0x7d9888
push edi
call fcn.007c23f0
push eax
push ebx
push esi
call fcn.007c0f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x7c21b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.007c2140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.007c2140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.007c2140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.007c2140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x7c2bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x7c2c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x7d487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7c2c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x7c2c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401f20
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004c7050
mov eax, dword [0x4f600c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x2004]
push 0x2000
push 0x2000
push eax
call fcn.004018a0
push dword [eax + 4]
push dword [eax]
call fcn.0049825a
add esp, 0x20
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret

Function at 0x401f80
Capabilities:
Reference google public dns server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9101
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push esi
push edi
mov eax, dword [0x4f600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 8]
mov dword [edi], vtable.DnsResolver.0
push 2
push esi
call fcn.0046901d
lea eax, [esi + 0x30]
push eax
call fcn.0046891a
lea eax, [esi + 0x58]
push eax
call fcn.0046891a
mov dword [esi + 0x80], 0
mov byte [esi + 0x84], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
add esp, 0xc
lea ecx, [edi + 0xb0]
call fcn.004047d0
lea eax, [edi + 0x1e8]
push 2
push eax
call fcn.0046901d
add esp, 8
lea ecx, [edi + 0x218]
mov byte [ebp - 4], 5
call fcn.00404690
lea ecx, [edi + 0x258]
call fcn.00402180
mov dword [edi + 0x2f4], 0
xorps xmm0, xmm0
mov dword [edi + 0x2f8], 0
mov eax, 2
mov dword [edi + 0x2fc], 0
mov dword [edi + 0xa8], 0xffffffff
mov dword [edi + 0xac], 0xffffffff
mov byte [edi + 5], 0
movups xmmword [edi + 0x248], xmm0
push 0x35
mov byte [edi + 4], 0
movups xmmword [edi + 0x238], xmm0
mov word [edi + 0x248], ax
call dword [sym.imp.WS2_32.dll_htons]
push str.8.8.8.8
mov word [edi + 0x24a], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [edi + 0x24c], eax
lea ecx, [edi + 0x258]
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x84], 0xf
push eax
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x98], 0
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
call fcn.004022e0
lea ecx, [ebp - 0x9c]
call fcn.004021e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4045c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4f600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 0x10
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
jb 0x4045ed
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x404609
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x4045f8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0xc]
and eax, esi
lea esi, [eax*8]
add ecx, esi
cmp dword [ecx + 4], edi
jne 0x40463f
cmp dword [ecx], edi
jne 0x404637
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x404647
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x404647
cmp dword [ecx], edi
jne 0x40464a
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [edx + 8]
call fcn.00406e60
push edi
call fcn.004677cb
mov eax, dword [ebp - 0xc]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
mov dword [eax], esi
pop esi
pop ebx
call fcn.00467552
mov esp, ebp
pop ebp
ret 8
Function at 0x404dc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4f600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x1c], eax
push edi
mov edi, dword [edx + 0x10]
cmp eax, 0x10
jb 0x404df4
mov ebx, dword [edx]
jmp 0x404df6
mov ebx, edx
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x404e12
movzx eax, byte [ebx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x404e01
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
and eax, esi
mov ebx, dword [ebx + 4]
mov dword [ebp - 0xc], ebx
mov esi, dword [ecx + eax*8]
add eax, eax
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ebp - 0x14], edx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 8]
cmp dword [ebp - 0x14], ebx
jne 0x404e41
mov eax, ebx
jmp 0x404e45
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x404ed9
cmp dword [edx + 0x14], 0x10
lea ecx, [esi + 8]
jb 0x404e58
mov edx, dword [edx]
cmp dword [ecx + 0x14], 0x10
lea ebx, [ecx + 0x10]
jb 0x404e63
mov ecx, dword [ecx]
mov ebx, dword [ebx]
mov eax, edi
cmp ebx, edi
cmovb eax, ebx
push eax
call fcn.00401920
add esp, 4
test eax, eax
jne 0x404e7f
cmp ebx, edi
jb 0x404e7f
jbe 0x404e89
mov esi, dword [esi]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
jmp 0x404e35
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
lea ebx, [edx + 0x10]
jb 0x404e97
mov edx, dword [edx]
cmp dword [ebp - 0x1c], 0x10
mov ecx, dword [ebp - 8]
jb 0x404ea2
mov ecx, dword [ecx]
mov ebx, dword [ebx]
cmp edi, ebx
mov eax, ebx
cmovb eax, edi
push eax
call fcn.00401920
add esp, 4
test eax, eax
jne 0x404ebe
cmp edi, ebx
jb 0x404ebe
jbe 0x404ec1
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [eax], ebx
xor ecx, ebp
pop ebx
call fcn.00467552
mov esp, ebp
pop ebp
ret 8
Function at 0x408f70
Capabilities:
Get socket status

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c99c8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x298
mov eax, dword [0x4f600c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [ebx + 0x10]
push 0x48
mov dword [ebp - 0x2a4], eax
lea eax, [ebp - 0x298]
push 0
push eax
mov byte [ebp - 0x299], 0
call fcn.004924b0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x298]
push 0x40
push eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x34], 0
push eax
mov dword [ebp - 0x30], 0x186a0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x278], 1
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x28], 0xffffffff
call fcn.0046e4b0
add esp, 0x18
test eax, eax
jne 0x409173
lea eax, [ebp - 0x28]
push eax
push 0x409210
push 2
push edi
push dword [ebp - 0x24c]
call fcn.0046dcf0
call fcn.0044e850
mov edi, eax
mov dword [ebp - 0x2a0], edx
lea eax, [ebp - 0x140]
mov dword [ebp - 0x248], 0
push eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x140], 0
push eax
push dword [ebp - 0x24c]
call fcn.0046dbb0
add esp, 0x20
test eax, eax
je 0x409138
mov esi, dword [sym.imp.WS2_32.dll_select]
lea ecx, [ebp - 0x34]
push ecx
push 0
lea ecx, [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x248]
push ecx
push eax
call esi
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x24c]
call fcn.00470510
add esp, 0xc
call fcn.0044e850
sub eax, edi
sbb edx, dword [ebp - 0x2a0]
test edx, edx
ja 0x409138
jb 0x409100
cmp eax, 0x3e8
ja 0x409138
lea eax, [ebp - 0x140]
mov dword [ebp - 0x248], 0
push eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x140], 0
push eax
push dword [ebp - 0x24c]
call fcn.0046dbb0
add esp, 0xc
test eax, eax
jne 0x4090b3
push dword [ebp - 0x24c]
call fcn.0046e0d0
mov esi, dword [ebp - 0x20]
add esp, 4
cmp dword [ebp - 0x28], 0
jne 0x409176
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 0x299], 1
cmp esi, edi
je 0x409176
nop dword [eax]
mov ecx, dword [ebp - 0x2a4]
push esi
call fcn.004084a0
add esi, 0x1c
cmp esi, edi
jne 0x409160
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x409199
mov ecx, dword [ebp - 0x18]
mov eax, 0x92492493
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
push esi
call fcn.00405620
mov al, byte [ebp - 0x299]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x409e10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4f600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
mov dword [esi + 0x14], eax
je 0x409e41
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x409e2e
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edi, 2
push 0
push 0
push esi
push 0x409ff0
push 0
push 0
call fcn.004984d4
add esp, 0x18
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x409e8f
lea eax, [ebp - 8]
push eax
lea ecx, [esi + 8]
call fcn.0040bff0
sub edi, 1
jne 0x409e65
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov ecx, dword [ebp - 4]
test eax, 0xfffffffc
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.00467552
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4f600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 1
push 2
mov edi, ecx
mov dword [ebp - 0x14], 0x25a207b9
mov dword [ebp - 0x10], 0x4660ddf3
mov dword [ebp - 0xc], 0xe576e98e
mov dword [ebp - 8], 0x3e06748c
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a275
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push eax
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0xc8000006
push esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov eax, dword [ebp - 0x1c]
push esi
mov dword [edi + 0x30], eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [edi + 0x30], 0
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop edi
pop esi
call fcn.00467552
mov esp, ebp
pop ebp
ret
Function at 0x40a380
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9bb7
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4f600c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
cmp eax, 0x11
jne 0x40a3c0
push 1
push 0
push 0
push eax
push 2
jmp 0x40a3cd
cmp eax, 1
jne 0x40a409
push eax
push 0
push 0
push eax
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a409
mov esi, dword [ebx + 0xb8]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
push 0x1f
push 0
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x40a429
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret 0xc
push 0x78
call fcn.004677d0
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040a010
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0x54]
mov dword [ebp - 0x18], esi
lea ecx, [esi + 0x28]
mov dword [esi], edi
cmp ecx, eax
je 0x40a466
push 0xffffffffffffffff
push 0
push eax
call fcn.004050f0
lea eax, [ebx + 0x6c]
lea ecx, [esi + 0x40]
cmp ecx, eax
je 0x40a47a
push 0xffffffffffffffff
push 0
push eax
call fcn.004050f0
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [esi + 0x64], eax
lea esi, [ebx + 0x84]
movq qword [ebp - 0x20], xmm0
push esi
mov dword [ebp - 0x20], esi
call fcn.004693aa
add esp, 4
mov byte [ebp - 0x1c], 1
lea ecx, [ebp + 8]
mov dword [ebp - 4], 1
push ecx
lea eax, [ebx + 0x28]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x24], eax
push ecx
mov ecx, eax
call fcn.0040d490
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
push esi
mov dword [eax + 0x18], ecx
call fcn.004693c6
add esp, 4
push 1
push edi
push dword [ebx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x40a533
push esi
xor bl, bl
call fcn.004693aa
mov edi, dword [ebp - 0x24]
lea eax, [ebp + 8]
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040bce0
mov esi, dword [ebp - 0x18]
cmp esi, dword [edi]
je 0x40a521
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x40a515
push ecx
call fcn.0040a750
push esi
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.0040bd50
push dword [ebp - 0x20]
call fcn.004693c6
add esp, 4
mov al, bl
jmp 0x40a40b
mov bl, 1
mov al, bl
jmp 0x40a40b
Function at 0x411c30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca2a8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4f600c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
lea eax, [ebx + 0x84]
movq qword [ebp - 0x20], xmm0
push eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 1
call fcn.004693b8
add esp, 4
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea ecx, [ebx + 0x28]
call fcn.0040bce0
mov eax, dword [ebx + 0x28]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x44], eax
cmp esi, eax
je 0x411d7c
mov edi, dword [esi + 0x18]
mov eax, dword [edi]
mov dword [ebp - 0x40], eax
call fcn.0044e850
mov dword [edi + 0x70], eax
mov ecx, ebx
mov dword [edi + 0x74], edx
call fcn.00411de0
mov ecx, dword [esi + 0x18]
mov ebx, eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 0x64]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x50], ecx
mov dword [ebx + 0x20], 3
test eax, eax
jle 0x411d15
push eax
lea ecx, [ebx + 0x44]
call fcn.004049c0
push dword [ebp + 0x14]
push dword [ebp - 0x38]
push dword [ebx + 0x44]
call fcn.00492a90
add esp, 0xc
mov eax, dword [ebx + 0x44]
mov edi, dword [ebp - 0x40]
push 0
push ebx
push 0x10
push dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x48]
sub eax, dword [ebx + 0x44]
push 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
je 0x411da7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x411da7
mov esi, dword [ebp - 0x30]
push ebx
mov dword [ebx + 0x20], 4
mov eax, dword [ebx + 0x44]
push edi
push 0
mov dword [ebx + 0x48], eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x411d7c
push ebx
mov ecx, esi
call fcn.00411e70
push dword [ebp - 0x34]
call fcn.004693d4
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [esi + 0x18]
cmp byte [eax + 0x60], 0
jne 0x411dc8
push dword [ebp + 0x20]
mov ecx, dword [ebp - 0x30]
push 0
push dword [ebp + 0xc]
mov byte [eax + 0x60], 1
push dword [ebp + 8]
push edi
call fcn.00411f70
push dword [ebp - 0x34]
call fcn.004693d4
add esp, 4
mov al, 1
jmp 0x411d89