joyce8/EMBER2024-capa huggingface dataset:
Function at 0x529634
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x529671
cmp dword [ebp + 0x14], edi
je 0x529671
cmp ecx, edi
jne 0x529678
call fcn.0052e791
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00523807
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x52968c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x5296ad
cmp ebx, 0xffffffff
je 0x52969c
push ebx
push edi
push ecx
call fcn.00524800
add esp, 0xc
cmp esi, edi
je 0x529659
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x529659
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x5296c9
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x5296d0
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x5297c1
test word [esi + 0xc], 0x10c
je 0x529724
mov eax, dword [esi + 4]
test eax, eax
je 0x529724
jl 0x529822
cmp ebx, eax
mov edi, ebx
jb 0x5296f5
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x5297c9
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.005238fc
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x5297b9
cmp ebx, dword [ebp - 0xc]
jb 0x529791
cmp dword [ebp - 0xc], 0
je 0x52974e
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x529743
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x52974a
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x529759
mov eax, SysReAllocString
cmp ebx, eax
ja 0x529759
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x5297f5
push eax
push dword [ebp - 8]
push esi
call fcn.0053625c
pop ecx
push eax
call fcn.005399fb
add esp, 0xc
test eax, eax
je 0x529834
cmp eax, 0xffffffff
je 0x529822
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x5297b9
push esi
call fcn.0053931a
cmp eax, 0xffffffff
pop ecx
je 0x529826
cmp dword [ebp - 4], 0
je 0x5297f5
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x5296d8
mov eax, dword [ebp + 0x14]
jmp 0x529673
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x5297e0
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00524800
add esp, 0xc
call fcn.0052e791
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x529669
cmp dword [ebp + 0xc], 0xffffffff
je 0x52980b
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00524800
add esp, 0xc
call fcn.0052e791
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x529669
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x529673
or dword [esi + 0xc], 0x10
jmp 0x529826
Function at 0x533596
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x676f38]
je 0x5335b1
inc edi
cmp edi, 0x17
jb 0x5335a2
cmp edi, 0x17
jae 0x533731
push ebp
push 3
call fcn.0053ef28
cmp eax, 1
pop ecx
je 0x5336fd
push 3
call fcn.0053ef28
test eax, eax
pop ecx
jne 0x5335e5
cmp dword [0x67656c], 1
je 0x5336fd
cmp ebx, 0xfc
je 0x533730
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x67d660
push ebp
call fcn.00529f4f
add esp, 0xc
test eax, eax
je 0x53361b
push esi
push esi
push esi
push esi
push esi
call fcn.0052370b
add esp, 0x14
push 0x104
mov esi, 0x67d679
push esi
push 0
mov byte [0x67d77d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x53365f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00529f4f
add esp, 0xc
test eax, eax
je 0x53365f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0052370b
add esp, 0x14
push esi
call fcn.005235f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5336a4
push esi
call fcn.005235f0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x67d974
push 0x5fd414
sub ecx, eax
push ecx
push eax
call fcn.0053d20e
add esp, 0x14
test eax, eax
je 0x5336a4
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0052370b
add esp, 0x14
jmp 0x5336a6
xor esi, esi
push 0x5fd410
push ebx
push ebp
call fcn.0053d19d
add esp, 0xc
test eax, eax
je 0x5336c6
push esi
push esi
push esi
push esi
push esi
call fcn.0052370b
add esp, 0x14
push dword [edi*8 + 0x676f3c]
push ebx
push ebp
call fcn.0053d19d
add esp, 0xc
test eax, eax
je 0x5336e8
push esi
push esi
push esi
push esi
push esi
call fcn.0052370b
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0053ed6b
add esp, 0xc
jmp 0x533730
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x533730
cmp ebp, 0xffffffff
je 0x533730
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x676f3c]
push dword [esi]
call fcn.005235f0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x53ed6b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0053098d
xor ebx, ebx
cmp dword [0x67dcb4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x53ee41
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x53ef21
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x53ef21
push eax
call fcn.0053091f
mov dword [esp], 0x5fe644
push edi
mov dword [0x67dcb4], eax
call esi
push eax
call fcn.0053091f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x67dcb8], eax
call esi
push eax
call fcn.0053091f
mov dword [0x67dcbc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0052e4e3
test eax, eax
pop ecx
pop ecx
je 0x53ee0f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0052370b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x53ee41
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0053091f
cmp eax, ebx
pop ecx
mov dword [0x67dcc4], eax
je 0x53ee41
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0053091f
pop ecx
mov dword [0x67dcc0], eax
mov eax, dword [0x67dcc0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x53eec6
cmp dword [0x67dcc4], ecx
je 0x53eec6
push eax
call fcn.00530996
push dword [0x67dcc4]
mov esi, eax
call fcn.00530996
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x53eec6
cmp edi, ebx
je 0x53eec6
call esi
cmp eax, ebx
je 0x53ee93
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x53ee93
test byte [ebp - 0x18], 1
jne 0x53eec6
lea eax, [ebp - 0x10]
push eax
call fcn.0052e51a
test eax, eax
pop ecx
je 0x53eeae
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0052370b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x53eebd
or dword [ebp + 0x10], 0x200000
jmp 0x53ef01
or dword [ebp + 0x10], 0x40000
jmp 0x53ef01
mov eax, dword [0x67dcb8]
cmp eax, dword [ebp - 8]
je 0x53ef01
push eax
call fcn.00530996
cmp eax, ebx
pop ecx
je 0x53ef01
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x53ef01
mov eax, dword [0x67dcbc]
cmp eax, dword [ebp - 8]
je 0x53ef01
push eax
call fcn.00530996
cmp eax, ebx
pop ecx
je 0x53ef01
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x67dcb4]
call fcn.00530996
cmp eax, ebx
pop ecx
je 0x53ef21
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x53ef23
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x549da4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x676580]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x549de5
cmp byte [ebp - 0x194], 2
jne 0x549ddf
cmp byte [ebp - 0x193], 2
je 0x549de8
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005236f2
leave
ret

Function at 0x551a97
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x551ac6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x551be7
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x551c07
push dword [esi + 0xf4]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x551c40
cmp eax, 2
jg 0x551c40
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
add eax, 0x5ff720
push 2
push eax
call fcn.0052a93f
push dword [esi + 0xf0]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0052a93f
add esp, 0x20
xor eax, eax
ret

Function at 0x551e06
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x12c]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x551e78
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x551e52
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x551e77
push ebx
push esi
call fcn.0055afb7
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.00551d72
mov eax, dword [esi]
mov dword [eax + 0x855c], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
Function at 0x552527
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x676580]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x198], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
jne 0x552644
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
mov edi, 0x80
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x5525a4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0055afb7
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00551d72
add esp, 0x18
jmp 0x55264b
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x9c]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x5525d7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0055afb7
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x552596
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.005524ee
test eax, eax
jne 0x55260c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.0055afb7
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x552597
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.005524ee
test eax, eax
jne 0x552641
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.0055afb7
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x552607
mov esi, dword [ebp - 0x78]
push esi
call fcn.0055249f
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005236f2
add ebp, 0x90
leave
ret

Function at 0x552663
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x5526a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0055afb7
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00551cff
add esp, 0x14
jmp 0x5526b5
push str.TCP_NODELAY_set_n
push esi
call fcn.00551cff
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x552b0c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x520]
cmp eax, 0xffffffff
push esi
je 0x552b5f
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x552b5f
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x552b39
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
jne 0x552b5f
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x552b5f
mov eax, esi
jmp 0x552b62
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x553c34
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
and dword [eax], 0
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov dword [ebp - 8], eax
jne 0x553da6
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x553d8b
push ebx
push edi
jmp 0x553c7c
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x553d1f
cmp dword [esi + 0x18], 0
je 0x553d1f
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x553d1f
push 0x10
pop edi
cmp eax, edi
jb 0x553d1f
push 0x20
call dword [0x677834]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x553d2f
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov ecx, dword [esi + 0xc]
push edi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], eax
call dword [0x677834]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x553d38
mov esi, dword [esi + 0x18]
mov edi, eax
mov eax, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x553d06
push eax
call dword [0x677840]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x553d48
cmp dword [ebp - 4], 0
jne 0x553d0f
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x553d19
mov dword [eax + 0x1c], ebx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x553c79
jmp 0x553d61
mov dword [ebp - 8], 8
jmp 0x553d61
push ebx
mov dword [ebp - 8], 8
call dword [0x677838]
jmp 0x553d60
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x677838]
push ebx
call dword [0x677838]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x553d73
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x553d86
push dword [ebp - 4]
call fcn.00553bf8
pop ecx
mov dword [ebp - 4], esi
jmp 0x553d9a
cmp dword [ebp - 4], esi
jne 0x553d9a
mov eax, 0x2af9
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x5540f8
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x677844]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3ac], esi
je 0x5541aa
mov dword [edi + 0x3a4], eax
mov dword [edi + 0x3a8], eax
mov dword [edi + 0x3a0], eax
mov dword [edi + 0x39c], ebx
or dword [esi + 4], 0xffffffff
push ebx
push dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 0x10]
call fcn.00553fb4
test eax, eax
pop ecx
pop ecx
je 0x5541aa
lea ebx, [edi + 0x398]
push dword [ebx]
call fcn.0054a492
push dword [ebp + 8]
call dword [0x677840]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x5541aa
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x5541aa
lea eax, [esi + 0x10]
push eax
push 0x554028
call fcn.0055b7df
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x5541c4
call fcn.0052e791
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x398
push edi
call fcn.005540a6
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x5541c7
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x557d1e
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x31c
push ebx
mov ebx, dword [ebp + 0x78]
push esi
mov esi, dword [ebp + 0x74]
xor edx, edx
push edi
xor edi, edi
cmp esi, 0xffffffff
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x68], edx
jne 0x557d52
cmp ebx, esi
jne 0x557d52
mov eax, dword [ebp + 0x7c]
call fcn.00557cff
jmp 0x557eef
cmp dword [ebp + 0x7c], edx
jle 0x557d67
mov edi, dword [ebp + 0x7c]
call fcn.005592e4
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x64], eax
xor edx, edx
xor eax, eax
or ecx, 0xffffffff
inc eax
cmp esi, ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x1ac], edx
je 0x557d97
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov ecx, esi
cmp ebx, 0xffffffff
mov dword [ebp - 0x2b0], edx
je 0x557dee
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x557dca
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x557dca
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x557db8
cmp eax, dword [ebp - 0xa8]
jne 0x557de8
cmp dword [ebp - 0xa8], 0x40
jae 0x557de8
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x557dee
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x557df7
xor ebx, ebx
jmp 0x557dfa
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x557e19
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x557e1e
jne 0x557e21
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x557e7a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x557e54
cmp eax, 0x2714
jne 0x557e7e
cmp dword [ebp + 0x7c], 0
jle 0x557dfd
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.005592e4
push edx
push eax
call fcn.005592fa
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x557dfd
jmp 0x557e7e
test eax, eax
jge 0x557e83
or eax, 0xffffffff
jmp 0x557eef
jne 0x557e89
xor eax, eax
jmp 0x557eef
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x557ebb
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x557ea5
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x557ebb
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x557eed
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x557ed7
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x557eed
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x559e41
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x559e4e
jmp dword [eax*4 + 0x559ea9]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, byte [esp + 4]
ret

Function at 0x55bb8f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 4], 2
push edi
sete bl
test ebx, ebx
je 0x55bbb3
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x55bbe4
cmp dword [esi + 8], 0
jne 0x55bbd4
push 0x60239c
push dword [eax + 8]
call fcn.00529d1f
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x55bbd4
or eax, 0xffffffff
jmp 0x55bc0a
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.005298d0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x55bbf2
cmp edi, dword [ebp + 0xc]
jbe 0x55bc08
test ebx, ebx
jne 0x55bc02
push dword [esi + 8]
call fcn.00525a3d
and dword [esi + 8], ebx
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret