joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c9f3
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 8]
push edi
lea ebx, [esi + 0x44]
mov dword [esi], 0x767728
push ebx
call fcn.0041d678
jmp 0x41ca1c
mov edx, dword [eax]
mov ecx, eax
call dword [edx]
lea ecx, [esp + 0xc]
call fcn.0041d620
test eax, eax
jne 0x41ca16
mov ecx, dword [esp + 0xc]
sub dword [ecx + 0xc], 1
jne 0x41ca38
call fcn.0041dc9a
xor edi, edi
mov ecx, esi
call fcn.0041d129
mov ecx, esi
call fcn.0041d0f3
mov ecx, esi
call fcn.0041d129
test al, al
je 0x41ca59
inc edi
cmp edi, 0x64
jl 0x41ca3a
call fcn.0041d47f
xor edi, edi
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 0xec]
test ecx, ecx
je 0x41ca7f
push ecx
call fcn.0041cb1d
mov dword [esi + 0xec], edi
mov ecx, esi
call fcn.0041c7c7
test al, al
je 0x41cab3
lea ecx, [esi + 0xd0]
call fcn.0041da37
mov edx, dword [eax]
test edx, edx
je 0x41cab3
mov eax, dword [esi + 0xe8]
push edx
mov dword [eax + 0xe4], edi
mov ecx, dword [esi + 0xcc]
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [esi + 0xd0]
call fcn.0041d508
lea ecx, [esi + 0xb4]
call fcn.0041e61f
lea eax, [esi + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0x74]
call fcn.0041d8db
push edi
push 1
lea ecx, [esi + 0x5c]
call fcn.004191aa
mov ecx, ebx
call fcn.0041e6fa
lea ecx, [esi + 0x40]
call fcn.0041d76b
lea ecx, [esi + 0x2c]
call fcn.0041d8db
lea ecx, [esi + 0x1c]
call fcn.0041dcda
lea ecx, [esi + 8]
call fcn.0041d8db
pop edi
mov dword [esi], 0x767738
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4227f4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x422807
test al, 0x10
je 0x422807
mov al, 1
ret
xor al, al
ret

Function at 0x422867
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42287a
test al, 0x10
jne 0x42287a
mov al, 1
ret
xor al, al
ret
Function at 0x42a7b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x42a7f0
test edi, edi
je 0x42a7f0
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push esi
call fcn.006c0ffd
pop ecx
pop ecx
test eax, eax
jne 0x42a7f0
push esi
push dword [ebp + 0x10]
push 1
push edi
call fcn.006b053f
add esp, 0x10
jmp 0x42a7f3
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42ab9c
Capabilities:
Create directory

Disassembly:
push ecx
push esi
push edi
call fcn.0042cedb
mov edi, eax
push edi
call fcn.006c0d31
pop ecx
push edi
mov esi, eax
call fcn.006a389b
pop ecx
test esi, esi
je 0x42abfd
call fcn.006a3919
cmp dword [eax], 0x11
je 0x42abfd
call fcn.006a3919
mov esi, eax
call fcn.006a3919
push dword [esi]
mov edi, eax
call fcn.006bc6fe
pop ecx
push eax
push dword [edi]
push str.arkhttp_mkdir__mkdir_fail__err_d___s
push 0x101
push str.arkhttp
push 0x7d0
call fcn.0041c482
add esp, 0x18
xor al, al
jmp 0x42abff
mov al, 1
pop edi
pop esi
pop ecx
ret

Function at 0x42ccb6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0041c008
test eax, eax
jne 0x42cd08
push 0x210
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00689b00
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x106
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x42cd08
lea ecx, [ebp - 0x218]
call fcn.0042cf23
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret

Function at 0x42d110
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xc
mov edi, edx
mov ebx, ecx
call fcn.006a66fd
mov esi, eax
add esp, 4
test esi, esi
jne 0x42d134
pop edi
pop esi
mov eax, 0xfffff027
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
push 0
push 4
push esi
push 0x42d0d0
push 0
push 0
mov dword [esi], edi
mov dword [esi + 4], eax
call fcn.006ad77b
add esp, 0x18
test eax, eax
jne 0x42d16d
call fcn.006a3919
push esi
mov edi, dword [eax]
call fcn.006a389b
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [ebx], eax
xor edi, edi
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4341bb
Capabilities:
Hash data with md5

Disassembly:
push esi
push edi
push 0x5c
xor edi, edi
mov esi, ecx
push edi
push esi
call fcn.00689b00
add esp, 0xc
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x58], edi
mov dword [esi], 0x67452301
pop edi
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
ret
Function at 0x435610
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x8004667e
push edi
mov esi, edx
mov dword [ebp - 8], 1
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x435649
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
push dword [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x43566a
cmp dword [ebp + 0x10], eax
je 0x435747
or dword [esi + 0x2c], 0x100000
cmp dword [ebp + 0xc], 0x17
mov eax, dword [0xac34a0]
cmove eax, dword [0xac349c]
mov ecx, dword [0xac34dc]
test ecx, ecx
je 0x4356a5
test dword [esi + 0x2c], 0x100000
jne 0x4356a5
test eax, eax
jne 0x4356a5
push 3
push edi
call ecx
test eax, eax
je 0x435754
or dword [esi + 0x2c], 0x40000
test dword [esi + 0x2c], 0x2000000
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
je 0x4356dd
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 1
push 6
push edi
call eax
cmp eax, 0xffffffff
jne 0x4356d8
call ebx
test eax, eax
jne 0x435740
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
test dword [esi + 0x2c], 0x4000000
je 0x43572b
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], 0x3c
push ecx
push 8
push 0xffff
push edi
mov dword [ebp - 4], 1
call eax
cmp eax, 0xffffffff
je 0x435725
cmp dword [ebp - 4], 0
je 0x43572b
push 4
lea eax, [ebp - 0xc]
push eax
push 3
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x43572b
call ebx
test eax, eax
jne 0x435740
cmp dword [ebp + 0xc], 0x17
mov dword [esi + 0x90], edi
jne 0x43573e
or dword [esi + 0x2c], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 1
je 0x4356a5
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435a40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
cmp dword [esi + 0x90], 0xffffffff
jne 0x435ac9
movzx eax, word [ebx]
push 0
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x435a76
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 1
push edi
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x435a9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx]
mov edx, esi
mov ecx, dword [esi + 4]
push 0
push eax
push edi
call fcn.00435610
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
je 0x435ac9
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [ebx], 0x17
jne 0x435aec
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x1b
push 0x29
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp + 8]
push ebx
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x435b14
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x435b1d
mov dword [esi + 0x94], eax
or dword [esi + 0x2c], 0x200
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435e20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0xc], 0xac0df1
mov ebx, ecx
mov dword [ebp - 0x10], 0
xorps xmm0, xmm0
lea esi, [edi + 0x44]
lea ecx, [esi + 0x20]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
or dword [edi + 0x2c], 0x80000
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
test dword [edi + 0x2c], 0x100000
je 0x435e71
mov eax, dword [esi + 0x3c]
or eax, 1
mov dword [esi + 0x30], eax
push 0
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push dword [edi + 0x90]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x435ee9
mov eax, dword [edi + 0x2c]
test eax, 0x40000
je 0x435f4d
or eax, 0x20000
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x24], eax
inc dword [edi + 0x3c]
mov dword [esi + 0x38], 0
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x435edc
mov eax, dword [eax + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x28]
mov dword [eax + 0x38], esi
mov dword [ebx + 0x28], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x38], esi
mov dword [ebx + 0x28], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x435f4d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
jg 0x435f09
call eax
jmp 0x435f13
call eax
movzx eax, ax
or eax, 0x80070000
mov dword [esi + 0x20], eax
mov dword [esi + 0x38], 0
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x435f3d
mov eax, dword [eax + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x28]
mov dword [eax + 0x38], esi
mov dword [ebx + 0x28], esi
inc dword [edi + 0x3c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x38], esi
mov dword [ebx + 0x28], esi
inc dword [edi + 0x3c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or dword [edi + 0x2c], 0x20000
inc dword [edi + 0x3c]
test dword [edi + 0x2c], 0x100000
je 0x435fb8
cmp dword [esi + 0x40], 0xffffffff
lea eax, [esi + 0x40]
jne 0x435fb8
push 4
push 0xffffffffffffffff
push esi
push 0x435b30
push dword [esi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x435fb8
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x435fa2
call edi
mov edx, esi
mov dword [esi + 0x20], eax
mov ecx, ebx
call fcn.004354f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call edi
movzx eax, ax
mov edx, esi
or eax, 0x80070000
mov ecx, ebx
mov dword [esi + 0x20], eax
call fcn.004354f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4365f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
push ebx
push esi
mov esi, edx
mov ebx, ecx
lea ecx, [esi + 0x20]
mov dword [ecx], 0
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 4], 3
mov dword [esi + 0x44], edi
mov dword [esi + 0x3c], eax
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
test dword [edi + 0x2c], 0x100000
je 0x436667
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x54], eax
test eax, eax
jne 0x436654
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.CreateEvent
mov ecx, eax
call fcn.0044c080
mov eax, dword [esi + 0x54]
lea ecx, [esi + 0x20]
or eax, 1
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x30], eax
push 0
push ecx
push 0
lea eax, [ebp + 8]
push eax
push 1
push dword [ebp + 0xc]
push dword [edi + 0x90]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x4366fe
test dword [edi + 0x2c], 0x40000
je 0x436717
mov dword [esi + 0x34], eax
mov ecx, dword [edi + 0x40]
inc dword [edi + 0x3c]
inc dword [edi + 0x88]
lea eax, [ecx + 1]
mov dword [edi + 0x40], eax
test ecx, ecx
jne 0x4366c2
mov eax, dword [edi + 0x2c]
test al, 0x40
jne 0x4366c2
or eax, 0x40
mov dword [edi + 0x2c], eax
test al, 0x20
je 0x4366c2
mov eax, dword [edi + 4]
inc dword [eax + 4]
lea ecx, [esi + 8]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
mov eax, dword [ebx + 0x14]
mov dword [esi + 0xc], eax
mov dword [eax], ecx
mov dword [ebx + 0x14], ecx
mov dword [esi + 0x38], 0
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4367b9
mov eax, dword [eax + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x28]
mov dword [eax + 0x38], esi
xor eax, eax
mov dword [ebx + 0x28], esi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x436717
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, 1
call fcn.0042ca80
mov dword [esi + 0x34], eax
mov ecx, dword [edi + 0x40]
inc dword [edi + 0x3c]
inc dword [edi + 0x88]
lea eax, [ecx + 1]
mov dword [edi + 0x40], eax
test ecx, ecx
jne 0x436754
mov eax, dword [edi + 0x2c]
test al, 0x40
jne 0x436754
or eax, 0x40
mov dword [edi + 0x2c], eax
test al, 0x20
je 0x436754
mov eax, dword [edi + 4]
inc dword [eax + 4]
lea ecx, [esi + 8]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
mov eax, dword [ebx + 0x14]
mov dword [esi + 0xc], eax
mov dword [eax], ecx
mov dword [ebx + 0x14], ecx
mov eax, dword [esi + 0x34]
add dword [edi + 0x30], eax
test dword [edi + 0x2c], 0x100000
je 0x4367bf
push 0xc
push 0xffffffffffffffff
push esi
push 0x435b70
push dword [esi + 0x54]
lea eax, [esi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x4367bf
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x4367a7
call edi
mov dword [esi + 0x20], eax
jmp 0x4366d5
call edi
movzx eax, ax
or eax, 0x80070000
mov dword [esi + 0x20], eax
jmp 0x4366d5
mov dword [esi + 0x38], esi
mov dword [ebx + 0x28], esi
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
pop ebp
ret
Function at 0x436b80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 4], ecx
mov edx, dword [edi + 0x3c]
cmp edx, 0xffffffff
jne 0x436bf0
mov eax, dword [esi + 0x2c]
test eax, 0x800
je 0x436c5f
and eax, 0xfffff7ff
add dword [esi + 0x40], edx
mov dword [esi + 0x2c], eax
jne 0x436bca
test al, 1
jne 0x436bca
test al, 0x40
je 0x436bca
and eax, 0xffffffbf
mov dword [esi + 0x2c], eax
test al, 0x20
je 0x436bca
mov eax, dword [esi + 4]
dec dword [eax + 4]
mov ebx, dword [esi + 0x88]
test ebx, ebx
je 0x436c5f
mov ecx, dword [edi + 0x20]
call fcn.0044d860
mov ecx, eax
call fcn.0044c110
push eax
push esi
call ebx
add esp, 8
jmp 0x436c5c
cmp dword [edi + 0x20], 0
jl 0x436c3a
push 4
lea eax, [esi + 0x90]
push eax
push 0x700b
push 0xffff
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x436c3a
mov eax, dword [esi + 0xa0]
mov dword [edi + 0x168], eax
mov eax, dword [esi + 0x88]
mov dword [esi + 0xa0], edi
test eax, eax
je 0x436c5c
push 0
push esi
call eax
add esp, 8
jmp 0x436c5c
push dword [edi + 0x3c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x3c], 0xffffffff
test dword [esi + 0x2c], 0x800
je 0x436c5c
mov edx, edi
mov ecx, esi
call fcn.00435bb0
mov ecx, dword [ebp - 4]
dec dword [esi + 0x3c]
mov eax, dword [esi + 0x2c]
test al, 1
je 0x436c82
cmp dword [esi + 0x3c], 0
jne 0x436c82
test al, 4
jne 0x436c82
or eax, 4
mov dword [esi + 0x2c], eax
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x28], eax
mov dword [ecx + 0x2c], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x436c90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov ebx, ecx
cmp dword [edi + 8], 0
jne 0x436cad
cmp dword [edi + 0xc], 0
je 0x436d58
add dword [esi + 0x40], 0xffffffff
jne 0x436cce
mov eax, dword [esi + 0x2c]
test al, 1
jne 0x436cce
test al, 0x40
je 0x436cce
and eax, 0xffffffbf
mov dword [esi + 0x2c], eax
test al, 0x20
je 0x436cce
mov eax, dword [esi + 4]
dec dword [eax + 4]
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov dword [ecx], eax
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0x20]
test ecx, ecx
js 0x436d1f
push 0
push 0
push 0x7010
push 0xffff
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x436d17
mov ecx, esi
call fcn.00435560
or dword [esi + 0x2c], 0x18000
inc dword [ebx + 0x58]
jmp 0x436d24
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x436d24
call fcn.0044d860
mov ecx, eax
call fcn.0044c110
push eax
mov eax, dword [edi + 0x3c]
push edi
call eax
dec dword [esi + 0x3c]
add esp, 8
mov eax, dword [esi + 0x2c]
test al, 1
je 0x436d58
cmp dword [esi + 0x3c], 0
jne 0x436d58
test al, 4
jne 0x436d58
or eax, 4
mov dword [esi + 0x2c], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x28], eax
mov dword [ebx + 0x2c], esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4376a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x27c]
push eax
push 0x8004667e
push edi
mov esi, edx
mov dword [ebp - 0x27c], 1
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x4376f6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret
push 0
push 1
push edi
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x43771c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret
push 0
push edi
push dword [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x437705
cmp dword [0xac34dc], 0
je 0x437795
lea eax, [ebp - 0x280]
mov dword [ebp - 0x280], 0x274
push eax
lea eax, [ebp - 0x278]
push eax
push 0x2005
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x437705
cmp dword [ebp - 0x250], 1
jne 0x437795
push 3
push edi
call dword [0xac34dc]
test eax, eax
je 0x4377b8
or dword [esi + 0x2c], 0x40000
mov dword [esi + 0x114], 0x44dbe0
mov dword [esi + 0x118], 0x44dd30
cmp dword [ebp + 0xc], 0x17
mov dword [esi + 0x38], edi
jne 0x4377a5
or dword [esi + 0x2c], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 1
je 0x437795
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00682c16
mov esp, ebp
pop ebp
ret
Function at 0x437930
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov dword [ebp - 0xc], 0
push edi
mov edi, edx
test dword [esi + 0x2c], 0x200
je 0x437954
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
and eax, 1
mov dword [ebp - 8], eax
je 0x437970
cmp word [edi], 0x17
je 0x437970
pop edi
mov eax, 0x57
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x38], 0xffffffff
push ebx
jne 0x437a0c
movzx eax, word [edi]
push 0
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x437a3b
movzx eax, word [edi]
mov edx, esi
mov ecx, dword [esi + 4]
push eax
push ebx
call fcn.004376a0
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x4379be
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test byte [ebp + 0xc], 4
je 0x4379fc
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 4
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4379fc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
cmp word [edi], 0x17
jne 0x437a29
or dword [esi + 0x2c], 0x1000000
mov eax, dword [ebp - 8]
cmp word [edi], 0x17
jne 0x437a29
test eax, eax
jne 0x437a29
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1b
push 0x29
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp + 8]
push edi
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x437a48
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or dword [esi + 0x2c], 0x200
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x437c60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
push 0
lea esi, [ebx + 0x20]
xorps xmm0, xmm0
push esi
mov eax, dword [edi + 4]
push dword [ebp + 0x14]
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x40], eax
lea eax, [ebp + 0x18]
mov dword [esi], 0
push 0
mov dword [ebx + 4], 5
mov dword [ebx + 0x3c], edi
movups xmmword [esi], xmm0
push eax
mov dword [esi + 0x10], 0
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
push dword [edi + 0x38]
call dword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
jne 0x437d49
test dword [edi + 0x2c], 0x40000
je 0x437d63
mov dword [ebx + 0x34], eax
mov ecx, dword [edi + 0x40]
inc dword [edi + 0x3c]
mov eax, dword [ebx + 0x34]
add dword [edi + 0x30], eax
inc dword [edi + 0x34]
lea eax, [ecx + 1]
mov dword [edi + 0x40], eax
test ecx, ecx
jne 0x437cfe
mov eax, dword [edi + 0x2c]
test al, 0x40
jne 0x437cfe
or eax, 0x40
mov dword [edi + 0x2c], eax
test al, 0x20
je 0x437cfe
mov eax, dword [edi + 4]
inc dword [eax + 4]
mov edx, dword [ebp - 4]
lea ecx, [ebx + 8]
lea eax, [edx + 0x10]
mov dword [ecx], eax
mov eax, dword [edx + 0x14]
mov dword [ebx + 0xc], eax
mov dword [eax], ecx
mov dword [edx + 0x14], ecx
mov dword [ebx + 0x38], 0
mov eax, dword [edx + 0x28]
test eax, eax
je 0x437d3a
mov eax, dword [eax + 0x38]
mov dword [ebx + 0x38], eax
mov eax, dword [edx + 0x28]
pop edi
pop esi
mov dword [eax + 0x38], ebx
xor eax, eax
mov dword [edx + 0x28], ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov dword [ebx + 0x38], ebx
xor eax, eax
pop esi
mov dword [edx + 0x28], ebx
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x437d63
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.0042ca80
mov dword [ebx + 0x34], eax
mov ecx, dword [edi + 0x40]
inc dword [edi + 0x3c]
mov eax, dword [ebx + 0x34]
add dword [edi + 0x30], eax
inc dword [edi + 0x34]
lea eax, [ecx + 1]
mov dword [edi + 0x40], eax
test ecx, ecx
jne 0x437da0
mov eax, dword [edi + 0x2c]
test al, 0x40
jne 0x437da0
or eax, 0x40
mov dword [edi + 0x2c], eax
test al, 0x20
je 0x437da0
mov eax, dword [edi + 4]
inc dword [eax + 4]
mov edx, dword [ebp - 4]
lea ecx, [ebx + 8]
pop edi
pop esi
lea eax, [edx + 0x10]
mov dword [ecx], eax
mov eax, dword [edx + 0x14]
mov dword [ebx + 0xc], eax
pop ebx
mov dword [eax], ecx
xor eax, eax
mov dword [edx + 0x14], ecx
mov esp, ebp
pop ebp
ret