joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4218d5
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, eax
call fcn.0041e99b
mov ecx, dword [esi + 0x2c]
mov edi, edx
mov ebx, eax
mov eax, dword [esi + 0x28]
mov edx, ebx
add edx, 1
mov dword [ebp - 0xc], edi
adc edi, 0
cmp edi, ecx
jb 0x421911
ja 0x421904
cmp edx, eax
jb 0x421911
sub eax, ebx
sbb ecx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
jmp 0x42191c
and dword [ebp - 4], 0
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [ebp - 0x18], eax
sub eax, dword [esi + 8]
push 0
sbb ecx, dword [esi + 0xc]
push 0xf
push ecx
push eax
call fcn.00468c10
push 0
mov edi, 0xc8
push edi
push edx
push eax
call fcn.0047a870
mov ebx, eax
cmp ebx, dword [esi]
mov dword [ebp - 0xc], edx
jne 0x421955
cmp edx, dword [esi + 4]
je 0x421992
mov eax, dword [esi]
mov ecx, dword [esi + 0x20]
mov dword [esi + eax*8 + 0x30], ecx
mov ecx, dword [esi + 0x24]
mov dword [esi + eax*8 + 0x34], ecx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push 0
add eax, 1
push edi
adc ecx, 0
push ecx
push eax
call fcn.0047a870
cmp eax, ebx
mov dword [esi], eax
mov dword [esi + 4], edx
jne 0x421955
mov eax, edx
cmp eax, dword [ebp - 0xc]
jne 0x421955
mov eax, dword [ebp - 0xc]
mov dword [esi], ebx
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, eax
or ecx, edx
je 0x4219a4
add dword [esi + 0x20], eax
adc dword [esi + 0x24], edx
mov ebx, dword [esi + 0x18]
mov edi, dword [ebp - 0x18]
xor ecx, ecx
or ebx, dword [esi + 0x1c]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
jne 0x4219bd
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4231e6
Capabilities:
Create tcp socket
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push 0x840
mov eax, 0x47d57e
call fcn.0046436b
mov eax, dword [ebp + 8]
push 0
push 2
push 2
mov dword [ebp - 0x848], eax
call dword [sym.imp.WS2_32.dll_socket]
push 4
mov esi, eax
lea eax, [ebp - 0x84c]
push eax
push 0x20
push 0xffff
push esi
mov dword [ebp - 0x84c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov word [ebp - 0x24], 2
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
push dword [ebp - 0x848]
mov word [ebp - 0x22], ax
mov ecx, 0x124
lea eax, [ebp - 0x844]
call fcn.0041f0e8
and dword [ebp - 4], 0
push 0x10
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x83c]
push 0
add eax, 0x14
push eax
lea eax, [ebp - 0x838]
push eax
push esi
call dword [sym.imp.WS2_32.dll_sendto]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [0x4a674c], 1
jne 0x4232b9
movzx eax, word [ebp + 0x10]
movzx esi, word [0x4a6f9c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
movzx eax, si
push eax
push 0x48a8bc
call fcn.00417a54
add esp, 0x10
mov al, 1
call fcn.004643ee
ret 0xc
Function at 0x42c233
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp - 8], eax
mov ax, word [ebp + 8]
and dword [ebp - 0x1c], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x10
mov word [esi + 0xc], ax
pop ebx
call fcn.004368a5
mov eax, esi
call fcn.00436855
test al, al
je 0x42c2f7
movzx eax, word [esi + 0xc]
inc dword [ebp - 0x1c]
test ax, ax
je 0x42c284
movzx eax, ax
push eax
call fcn.0043696f
mov edi, eax
jmp 0x42c2c5
push 0
call fcn.0043696f
mov edi, eax
test edi, edi
jne 0x42c2c5
push ebx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0045c920
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [esi]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
mov edi, eax
test edi, edi
jne 0x42c2ce
push dword [ebp - 0x16]
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esi + 0xc], ax
cmp edi, 1
jne 0x42c30e
inc word [esi + 0xc]
call fcn.00436866
cmp dword [ebp - 0x1c], 0x32
jl 0x42c257
mov ebx, esi
call fcn.0043690f
mov al, 1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045c29b
leave
ret 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x48b504
call fcn.00417a54
pop ecx
pop ecx
xor al, al
jmp 0x42c2e6
cmp edi, 2
jne 0x42c2dd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
movzx eax, word [esi + 0xc]
push eax
push 0x48b530
call fcn.00417a54
add esp, 0xc
call fcn.00436866
jmp 0x42c30a
Function at 0x4305b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov esi, eax
push 0x64
call fcn.0043069c
mov ecx, dword [esi + 0x2c]
mov edi, edx
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x28]
add edx, 1
mov dword [ebp - 4], edi
adc edi, ebx
cmp edi, ecx
jb 0x4305f3
ja 0x4305e5
cmp edx, eax
jb 0x4305f3
sub eax, dword [ebp - 8]
sbb ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
jmp 0x4305fd
mov dword [ebp - 8], 1
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [ebp - 0x18], eax
sub eax, dword [esi + 8]
push ebx
sbb ecx, dword [esi + 0xc]
push 0x64
push ecx
push eax
call fcn.00468c10
push ebx
push 0x64
push edx
push eax
call fcn.0047a870
mov edi, eax
cmp edi, dword [esi]
mov dword [ebp - 0xc], edx
jne 0x430630
cmp edx, dword [esi + 4]
je 0x43066c
mov eax, dword [esi]
mov ecx, dword [esi + 0x20]
mov dword [esi + eax*8 + 0x30], ecx
mov ecx, dword [esi + 0x24]
mov dword [esi + eax*8 + 0x34], ecx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push ebx
add eax, 1
push 0x64
adc ecx, ebx
push ecx
push eax
call fcn.0047a870
cmp eax, edi
mov dword [esi], eax
mov dword [esi + 4], edx
jne 0x430630
mov eax, edx
cmp eax, dword [ebp - 0xc]
jne 0x430630
mov eax, dword [ebp - 0xc]
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, eax
or ecx, edx
je 0x43067e
add dword [esi + 0x20], eax
adc dword [esi + 0x24], edx
mov ebx, dword [esi + 0x18]
mov edi, dword [ebp - 0x18]
xor ecx, ecx
or ebx, dword [esi + 0x1c]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
jne 0x430697
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4307a6
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, eax
call fcn.00431a7c
mov ecx, dword [esi + 0x2c]
mov edi, edx
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x28]
push 0
add edx, 1
pop ebx
mov dword [ebp - 4], edi
adc edi, ebx
cmp edi, ecx
jb 0x4307e7
ja 0x4307d9
cmp edx, eax
jb 0x4307e7
sub eax, dword [ebp - 8]
sbb ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
jmp 0x4307f1
mov dword [ebp - 8], 1
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [ebp - 0x18], eax
sub eax, dword [esi + 8]
push ebx
sbb ecx, dword [esi + 0xc]
push 0x64
push ecx
push eax
call fcn.00468c10
push ebx
push 0xa
push edx
push eax
call fcn.0047a870
mov edi, eax
cmp edi, dword [esi]
mov dword [ebp - 0xc], edx
jne 0x430824
cmp edx, dword [esi + 4]
je 0x430860
mov eax, dword [esi]
mov ecx, dword [esi + 0x20]
mov dword [esi + eax*8 + 0x30], ecx
mov ecx, dword [esi + 0x24]
mov dword [esi + eax*8 + 0x34], ecx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push ebx
add eax, 1
push 0xa
adc ecx, ebx
push ecx
push eax
call fcn.0047a870
cmp eax, edi
mov dword [esi], eax
mov dword [esi + 4], edx
jne 0x430824
mov eax, edx
cmp eax, dword [ebp - 0xc]
jne 0x430824
mov eax, dword [ebp - 0xc]
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, eax
or ecx, edx
je 0x430872
add dword [esi + 0x20], eax
adc dword [esi + 0x24], edx
mov ebx, dword [esi + 0x18]
mov edi, dword [ebp - 0x18]
xor ecx, ecx
or ebx, dword [esi + 0x1c]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
jne 0x43088b
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43457c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4345b7
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401144
xor eax, eax
pop edi
pop esi
leave
ret
cmp dword [ebp + 0x18], 0xffffffff
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jne 0x4345dd
lea eax, [ebp - 0x18]
push eax
push edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 0x18], eax
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x434611
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x434611
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401144
mov eax, esi
jmp 0x4345b3
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
mov dword [ebp - 8], esi
push dword [ebp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 8]
jmp 0x434602
Function at 0x434632
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
cmp byte [ebp + 0x14], bl
push 4
pop eax
je 0x434646
push 2
pop eax
push ebx
push 0x80
push eax
push ebx
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x434676
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401144
xor eax, eax
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push eax
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4346b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4346b4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401144
mov eax, ebx
jmp 0x434672
push ebx
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x1c]
mov dword [ebp + 0x14], ebx
push dword [ebp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ebp + 0x20], bl
je 0x4346d5
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp + 0x14]
jmp 0x4346a5

Function at 0x434b81
Capabilities:
Check if file exists

Disassembly:
push ebx
push dword [esp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [esp + 8]
setne bl
add eax, 0xfffffff0
call fcn.00401144
mov al, bl
pop ebx
ret

Function at 0x434ba1
Capabilities:
Delete file

Disassembly:
push ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, dword [esp + 8]
setne bl
add eax, 0xfffffff0
call fcn.00401144
mov al, bl
pop ebx
ret

Function at 0x4351fb
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0046b070
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, 0xfff
push esi
push eax
mov dword [ebp - 0x1008], eax
mov byte [ebp - 0x1004], al
lea eax, [ebp - 0x1003]
push eax
call fcn.0045c920
add esp, 0xc
push dword [0x4a6f30]
lea eax, [ebp - 0x1004]
push esi
push eax
mov esi, 0x485228
push esi
push 0x4899c0
push 0x4899ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x435262
push esi
jmp 0x435269
lea eax, [ebp - 0x1004]
push eax
push edi
call fcn.00413c14
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.0045c29b
leave
ret

Function at 0x435c91
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov dword [ebp - 0x210], eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0045c920
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.004045f7
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0045c29b
leave
ret
Function at 0x436066
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
push edi
call fcn.00435ef1
movzx eax, al
mov esi, 0x103
xor ebx, ebx
push esi
mov dword [0x4a792c], eax
lea eax, [ebp - 0x7f]
push ebx
push eax
mov byte [ebp - 0x80], bl
call fcn.0045c920
add esp, 0xc
push esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push ebx
push ebx
push ebx
push ebx
mov edi, 0x4a7940
push edi
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 0x7d], bl
mov dword [0x4a7940], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov al, byte [0x4a7938]
mov ecx, dword [0x4a7942]
mov dword [0x4a7934], ebx
mov byte [0x4a7937], al
mov al, byte [0x4a7939]
mov byte [0x4a7936], al
mov al, byte [0x4a793a]
mov byte [0x4a7935], al
mov al, byte [0x4a793b]
mov byte [0x4a7934], al
mov al, byte [0x4a793c]
or dword [0x4a7934], ebx
mov dword [0x4a7930], ebx
mov byte [0x4a7933], al
mov al, byte [0x4a793d]
mov byte [0x4a7932], al
mov eax, dword [0x4a7940]
push 0x10
add ecx, eax
and ecx, 0xffff
or dword [0x4a7930], ecx
push ebx
mov esi, 0x4a7918
push esi
call fcn.0045c920
push 6
push 0x4a7938
push esi
call fcn.0045c2b0
push 4
push edi
push 0x4a7924
call fcn.0045c2b0
mov ecx, dword [ebp + 0x84]
add esp, 0x24
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045c29b
add ebp, 0x88
leave
ret

Function at 0x43621b
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47d267
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x49b390]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x43631c
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x436319
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebx
mov eax, dword [esi + 0xc]
cmp dword [eax], ebx
je 0x436310
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea edi, [esp + 0x18]
call fcn.004141c2
mov eax, dword [esi + 0xc]
inc ebx
lea eax, [eax + ebx*4]
cmp dword [eax], 0
jne 0x436289
cmp dword [esp + 0x18], 0
je 0x436310
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x18]
sar eax, 2
je 0x436310
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
xor edx, edx
mov ecx, 0x3e8
div ecx
test edi, edi
jne 0x4362de
xor ecx, ecx
jmp 0x4362e5
mov ecx, esi
sub ecx, edi
sar ecx, 2
cdq
idiv ecx
test edi, edi
mov ebx, edx
je 0x4362f7
sub esi, edi
sar esi, 2
cmp ebx, esi
jb 0x436300
call fcn.0045d307
mov edi, dword [esp + 0x18]
mov edi, dword [edi + ebx*4]
lea esi, [esp + 0x14]
call fcn.004506e6
mov eax, edi
jmp 0x43631c
lea esi, [esp + 0x14]
call fcn.004506e6
or eax, 0xffffffff
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43635e
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov eax, esi
call fcn.0043672f
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x43637b
and dword [esi], 0
push dword [esi]
call fcn.0043632f
pop ecx
ret

Function at 0x436384
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
mov word [ebp - 0x18], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4364e0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4364e2
mov eax, dword [ebp + 0x10]
cdq
mov ecx, 0x3e8
idiv ecx
xor ecx, ecx
inc ecx
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x134], ecx
lea ecx, [ebp - 0x28]
push ecx
push 0
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x23c]
push ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x28], eax
mov eax, dword [esi]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x130], eax
inc eax
push eax
mov dword [ebp - 0x24], edx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4364f0
xor eax, eax
cmp dword [ebp - 0x134], eax
jbe 0x436470
mov ecx, dword [esi]
cmp dword [ebp + eax*4 - 0x130], ecx
je 0x43645f
inc eax
cmp eax, dword [ebp - 0x134]
jb 0x43643c
jmp 0x436470
mov ecx, dword [ebp + eax*4 - 0x12c]
mov dword [ebp + eax*4 - 0x130], ecx
inc eax
mov ecx, dword [ebp - 0x134]
dec ecx
cmp eax, ecx
jb 0x436450
dec dword [ebp - 0x134]
xor eax, eax
cmp dword [ebp - 0x23c], eax
jbe 0x4364b0
mov ecx, dword [esi]
cmp dword [ebp + eax*4 - 0x238], ecx
je 0x43649f
inc eax
cmp eax, dword [ebp - 0x23c]
jb 0x43647c
jmp 0x4364b0
mov ecx, dword [ebp + eax*4 - 0x234]
mov dword [ebp + eax*4 - 0x238], ecx
inc eax
mov ecx, dword [ebp - 0x23c]
dec ecx
cmp eax, ecx
jb 0x436490
dec dword [ebp - 0x23c]
or dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x1007
push 0xffff
push dword [esi]
mov dword [ebp - 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
mov eax, dword [ebp - 0x1c]
jne 0x4364e2
test eax, eax
jne 0x4364e2
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0045c29b
leave
ret 0xc
xor ecx, ecx
test eax, eax
setne cl
lea ecx, [ecx + ecx - 3]
mov eax, ecx
jmp 0x4364e2
Function at 0x4364ff
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x210
push esi
mov esi, eax
mov ecx, dword [esi]
test ecx, ecx
jne 0x43651b
or eax, 0xffffffff
jmp 0x436620
mov eax, dword [ebp + 0x7c]
push ebx
cdq
mov ebx, 0x3e8
idiv ebx
mov dword [ebp - 0x1a0], ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp + 0x64], eax
imul edx, edx, 0x3e8
xor eax, eax
inc eax
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0xa0], eax
lea eax, [ebp + 0x64]
push eax
push 0
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x1a4]
push eax
inc ecx
push ecx
mov dword [ebp + 0x68], edx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
pop ebx
jle 0x4365d8
lea eax, [ebp - 0xa0]
push eax
push dword [esi]
call fcn.0045c224
test eax, eax
je 0x4365d8
xor eax, eax
cmp dword [ebp - 0xa0], eax
jbe 0x4365c1
mov ecx, dword [esi]
cmp dword [ebp + eax*4 - 0x9c], ecx
je 0x4365b0
inc eax
cmp eax, dword [ebp - 0xa0]
jb 0x43658d
jmp 0x4365c1
mov ecx, dword [ebp + eax*4 - 0x98]
mov dword [ebp + eax*4 - 0x9c], ecx
inc eax
mov ecx, dword [ebp - 0xa0]
dec ecx
cmp eax, ecx
jb 0x4365a1
dec dword [ebp - 0xa0]
push 0
push dword [ebp + 0x78]
push dword [ebp + 0x74]
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [ebp + 0x78]
je 0x436620
jmp 0x436618
xor eax, eax
cmp dword [ebp - 0x1a4], eax
jbe 0x436618
mov esi, dword [esi]
cmp dword [ebp + eax*4 - 0x1a0], esi
je 0x436607
inc eax
cmp eax, dword [ebp - 0x1a4]
jb 0x4365e4
jmp 0x436618
mov ecx, dword [ebp + eax*4 - 0x19c]
mov dword [ebp + eax*4 - 0x1a0], ecx
inc eax
mov ecx, dword [ebp - 0x1a4]
dec ecx
cmp eax, ecx
jb 0x4365f8
dec dword [ebp - 0x1a4]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
pop esi
add ebp, 0x6c
leave
ret 0xc
Function at 0x436628
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
mov eax, dword [esi]
sub esp, 0x10c
test eax, eax
jne 0x436641
or eax, 0xffffffff
jmp 0x436728
push ebx
push edi
mov edi, dword [sym.imp.WS2_32.dll_recv]
push 0
push dword [ebp + 0x78]
push dword [ebp + 0x74]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x436724
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x43671f
mov eax, dword [ebp + 0x7c]
cdq
mov ecx, 0x3e8
idiv ecx
lea ecx, [ebp + 0x64]
push ecx
push 0
push 0
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 1
imul edx, edx, 0x3e8
mov dword [ebp + 0x64], eax
mov eax, dword [esi]
mov dword [ebp - 0x9c], eax
inc eax
push eax
mov dword [ebp + 0x68], edx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jl 0x43671f
jne 0x4366bb
push 0xfffffffffffffffd
pop eax
jmp 0x436726
lea eax, [ebp - 0xa0]
push eax
push dword [esi]
call fcn.0045c224
test eax, eax
je 0x436724
xor eax, eax
cmp dword [ebp - 0xa0], eax
jbe 0x43670d
mov ecx, dword [esi]
cmp dword [ebp + eax*4 - 0x9c], ecx
je 0x4366fc
inc eax
cmp eax, dword [ebp - 0xa0]
jb 0x4366d9
jmp 0x43670d
mov ecx, dword [ebp + eax*4 - 0x98]
mov dword [ebp + eax*4 - 0x9c], ecx
inc eax
mov ecx, dword [ebp - 0xa0]
dec ecx
cmp eax, ecx
jb 0x4366ed
dec dword [ebp - 0xa0]
push 0
push dword [ebp + 0x78]
push dword [ebp + 0x74]
push dword [esi]
call edi
mov ebx, eax
test ebx, ebx
jg 0x436724
or eax, 0xffffffff
jmp 0x436726
mov eax, ebx
pop edi
pop ebx
add ebp, 0x6c
leave
ret 0xc

Function at 0x4368a5
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4368c4
and dword [esi], 0
xor al, al
leave
ret
push edi
xor al, al
call fcn.0043451b
xor edi, edi
cmp eax, edi
mov dword [esi + 4], eax
je 0x4368e5
push 1
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x4368e9
xor al, al
jmp 0x43690c
push edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 4
lea eax, [ebp - 8]
push eax
push 0x9800000c
push dword [esi]
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov al, 1
pop edi
leave
ret

Function at 0x436ac0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0xffffffff
je 0x436aeb
xor eax, eax
cmp dword [ebp + 8], eax
je 0x436aeb
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 8]
leave
ret
xor eax, eax
xor edx, edx
leave
ret