joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a1e8
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 0x49a225
cmp dword [ebp + 0x14], edi
je 0x49a225
cmp ecx, edi
jne 0x49a22c
call fcn.0049fe36
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004965c5
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x49a240
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x49a261
cmp ebx, 0xffffffff
je 0x49a250
push ebx
push edi
push ecx
call fcn.004954a0
add esp, 0xc
cmp esi, edi
je 0x49a20d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x49a20d
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x49a27d
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x49a284
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x49a375
test word [esi + 0xc], 0x10c
je 0x49a2d8
mov eax, dword [esi + 4]
test eax, eax
je 0x49a2d8
jl 0x49a3d6
cmp ebx, eax
mov edi, ebx
jb 0x49a2a9
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x49a37d
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004952e9
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 0x49a36d
cmp ebx, dword [ebp - 0xc]
jb 0x49a345
cmp dword [ebp - 0xc], 0
je 0x49a302
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x49a2f7
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x49a2fe
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x49a30d
mov eax, SysReAllocString
cmp ebx, eax
ja 0x49a30d
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x49a3a9
push eax
push dword [ebp - 8]
push esi
call fcn.0049b652
pop ecx
push eax
call fcn.004ab9fc
add esp, 0xc
test eax, eax
je 0x49a3e8
cmp eax, 0xffffffff
je 0x49a3d6
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x49a36d
push esi
call fcn.004ab31b
cmp eax, 0xffffffff
pop ecx
je 0x49a3da
cmp dword [ebp - 4], 0
je 0x49a3a9
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 0x49a28c
mov eax, dword [ebp + 0x14]
jmp 0x49a227
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x49a394
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004954a0
add esp, 0xc
call fcn.0049fe36
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x49a21d
cmp dword [ebp + 0xc], 0xffffffff
je 0x49a3bf
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004954a0
add esp, 0xc
call fcn.0049fe36
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x49a21d
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x49a227
or dword [esi + 0xc], 0x10
jmp 0x49a3da
Function at 0x49e19e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5071dc]
jne 0x49e1a8
repz ret
jmp fcn.004af6ec

Function at 0x4a93d0
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 + 0x507f20]
je 0x4a93eb
inc edi
cmp edi, 0x17
jb 0x4a93dc
cmp edi, 0x17
jae 0x4a956b
push ebp
push 3
call fcn.004b4088
cmp eax, 1
pop ecx
je 0x4a9537
push 3
call fcn.004b4088
test eax, eax
pop ecx
jne 0x4a941f
cmp dword [0x5071d0], 1
je 0x4a9537
cmp ebx, 0xfc
je 0x4a956a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x50efd0
push ebp
call fcn.0049c5b0
add esp, 0xc
test eax, eax
je 0x4a9455
push esi
push esi
push esi
push esi
push esi
call fcn.004964c9
add esp, 0x14
push 0x104
mov esi, 0x50efe9
push esi
push 0
mov byte [0x50f0ed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4a9499
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0049c5b0
add esp, 0xc
test eax, eax
je 0x4a9499
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004964c9
add esp, 0x14
push esi
call fcn.00497140
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4a94de
push esi
call fcn.00497140
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x50f2e4
push 0x4dc074
sub ecx, eax
push ecx
push eax
call fcn.0049ca78
add esp, 0x14
test eax, eax
je 0x4a94de
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004964c9
add esp, 0x14
jmp 0x4a94e0
xor esi, esi
push 0x4dc070
push ebx
push ebp
call fcn.004b0361
add esp, 0xc
test eax, eax
je 0x4a9500
push esi
push esi
push esi
push esi
push esi
call fcn.004964c9
add esp, 0x14
push dword [edi*8 + 0x507f24]
push ebx
push ebp
call fcn.004b0361
add esp, 0xc
test eax, eax
je 0x4a9522
push esi
push esi
push esi
push esi
push esi
call fcn.004964c9
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004b3ecb
add esp, 0xc
jmp 0x4a956a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4a956a
cmp ebp, 0xffffffff
je 0x4a956a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x507f24]
push dword [esi]
call fcn.00497140
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 0x4b3ecb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004a11a0
xor ebx, ebx
cmp dword [0x50f894], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4b3fa1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4b4081
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4b4081
push eax
call fcn.004a1132
mov dword [esp], 0x4dd258
push edi
mov dword [0x50f894], eax
call esi
push eax
call fcn.004a1132
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x50f898], eax
call esi
push eax
call fcn.004a1132
mov dword [0x50f89c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0049f276
test eax, eax
pop ecx
pop ecx
je 0x4b3f6f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004964c9
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4b3fa1
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004a1132
cmp eax, ebx
pop ecx
mov dword [0x50f8a4], eax
je 0x4b3fa1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a1132
pop ecx
mov dword [0x50f8a0], eax
mov eax, dword [0x50f8a0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4b4026
cmp dword [0x50f8a4], ecx
je 0x4b4026
push eax
call fcn.004a11a9
push dword [0x50f8a4]
mov esi, eax
call fcn.004a11a9
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4b4026
cmp edi, ebx
je 0x4b4026
call esi
cmp eax, ebx
je 0x4b3ff3
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b3ff3
test byte [ebp - 0x18], 1
jne 0x4b4026
lea eax, [ebp - 0x10]
push eax
call fcn.0049f2ad
test eax, eax
pop ecx
je 0x4b400e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004964c9
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4b401d
or dword [ebp + 0x10], 0x200000
jmp 0x4b4061
or dword [ebp + 0x10], 0x40000
jmp 0x4b4061
mov eax, dword [0x50f898]
cmp eax, dword [ebp - 8]
je 0x4b4061
push eax
call fcn.004a11a9
cmp eax, ebx
pop ecx
je 0x4b4061
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4b4061
mov eax, dword [0x50f89c]
cmp eax, dword [ebp - 8]
je 0x4b4061
push eax
call fcn.004a11a9
cmp eax, ebx
pop ecx
je 0x4b4061
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x50f894]
call fcn.004a11a9
cmp eax, ebx
pop ecx
je 0x4b4081
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b4083
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4b7b12
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5071dc]
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 0x4b7b53
cmp byte [ebp - 0x194], 2
jne 0x4b7b4d
cmp byte [ebp - 0x193], 2
je 0x4b7b56
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049e19e
leave
ret
Function at 0x4bf804
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 0x4bf833
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 0x4bf954
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x4bf974
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 0x4bf9ad
cmp eax, 2
jg 0x4bf9ad
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
add eax, 0x4de020
push 2
push eax
call fcn.0049b7de
push dword [esi + 0xf0]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0049b7de
add esp, 0x20
xor eax, eax
ret

Function at 0x4bfb73
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 0x4bfbe5
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4bfbbf
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x4bfbe4
push ebx
push esi
call fcn.004c8d24
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.004bfadf
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 0x4c0294
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x5071dc]
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 0x4c03b1
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 0x4c0311
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004c8d24
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004bfadf
add esp, 0x18
jmp 0x4c03b8
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 0x4c0344
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004c8d24
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4c0303
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.004c025b
test eax, eax
jne 0x4c0379
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004c8d24
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x4c0304
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.004c025b
test eax, eax
jne 0x4c03ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004c8d24
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x4c0374
mov esi, dword [ebp - 0x78]
push esi
call fcn.004c020c
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049e19e
add ebp, 0x90
leave
ret

Function at 0x4c03d0
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 0x4c0415
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004c8d24
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004bfa6c
add esp, 0x14
jmp 0x4c0422
push str.TCP_NODELAY_set_n
push esi
call fcn.004bfa6c
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x4c0879
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 0x4c08cc
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x4c08cc
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x4c08a6
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
jne 0x4c08cc
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4c08cc
mov eax, esi
jmp 0x4c08cf
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x4c19a1
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 0x4c1b13
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x4c1af8
push ebx
push edi
jmp 0x4c19e9
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x4c1a8c
cmp dword [esi + 0x18], 0
je 0x4c1a8c
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x4c1a8c
push 0x10
pop edi
cmp eax, edi
jb 0x4c1a8c
push 0x20
call dword [0x508858]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x4c1a9c
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 [0x508858]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x4c1aa5
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 0x4c1a73
push eax
call dword [0x508864]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x4c1ab5
cmp dword [ebp - 4], 0
jne 0x4c1a7c
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4c1a86
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 0x4c19e6
jmp 0x4c1ace
mov dword [ebp - 8], 8
jmp 0x4c1ace
push ebx
mov dword [ebp - 8], 8
call dword [0x50885c]
jmp 0x4c1acd
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x50885c]
push ebx
call dword [0x50885c]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x4c1ae0
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x4c1af3
push dword [ebp - 4]
call fcn.004c1965
pop ecx
mov dword [ebp - 4], esi
jmp 0x4c1b07
cmp dword [ebp - 4], esi
jne 0x4c1b07
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 0x4c1e65
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 [0x508868]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3ac], esi
je 0x4c1f17
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.004c1d21
test eax, eax
pop ecx
pop ecx
je 0x4c1f17
lea ebx, [edi + 0x398]
push dword [ebx]
call fcn.004b8200
push dword [ebp + 8]
call dword [0x508864]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x4c1f17
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x4c1f17
lea eax, [esi + 0x10]
push eax
push 0x4c1d95
call fcn.004c954c
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x4c1f31
call fcn.0049fe36
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x398
push edi
call fcn.004c1e13
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4c1f34
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c5a8b
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 0x4c5abf
cmp ebx, esi
jne 0x4c5abf
mov eax, dword [ebp + 0x7c]
call fcn.004c5a6c
jmp 0x4c5c5c
cmp dword [ebp + 0x7c], edx
jle 0x4c5ad4
mov edi, dword [ebp + 0x7c]
call fcn.004c7051
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 0x4c5b04
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 0x4c5b5b
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x4c5b37
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x4c5b37
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x4c5b25
cmp eax, dword [ebp - 0xa8]
jne 0x4c5b55
cmp dword [ebp - 0xa8], 0x40
jae 0x4c5b55
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x4c5b5b
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x4c5b64
xor ebx, ebx
jmp 0x4c5b67
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x4c5b86
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x4c5b8b
jne 0x4c5b8e
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 0x4c5be7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4c5bc1
cmp eax, 0x2714
jne 0x4c5beb
cmp dword [ebp + 0x7c], 0
jle 0x4c5b6a
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.004c7051
push edx
push eax
call fcn.004c7067
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x4c5b6a
jmp 0x4c5beb
test eax, eax
jge 0x4c5bf0
or eax, 0xffffffff
jmp 0x4c5c5c
jne 0x4c5bf6
xor eax, eax
jmp 0x4c5c5c
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x4c5c28
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c5c12
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c5c28
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x4c5c5a
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c5c44
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c5c5a
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4c7ba9
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4c7bb6
jmp dword [eax*4 + 0x4c7c11]
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 0x4c98fc
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 0x4c9920
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x4c9951
cmp dword [esi + 8], 0
jne 0x4c9941
push 0x4eb334
push dword [eax + 8]
call fcn.0049ad83
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4c9941
or eax, 0xffffffff
jmp 0x4c9977
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0049a484
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4c995f
cmp edi, dword [ebp + 0xc]
jbe 0x4c9975
test ebx, ebx
jne 0x4c996f
push dword [esi + 8]
call fcn.0049a511
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
Function at 0x6f083800
Capabilities:
Access peb ldr_data

Disassembly:
sub esp, 0x34
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov ecx, dword [eax + 0x18]
cmp dword [ecx + 0x50], eax
je 0x6f08384c
call fcn.6f0b4960
lea eax, [0x6f12c7c7]
mov dword [esp], eax
mov dword [esp + 4], 0x1e
call fcn.6f0b5260
call fcn.6f0b49d0
mov dword [esp], 2
call fcn.6f0af9b0
mov eax, dword [esp + 0x2c]
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
nop
inc dword [ecx + 0x148]
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x18]
nop
mov ebx, ecx
mov dword [edx + 0xc0], ecx
mov ecx, dword [ebx + 0x18]
mov dword [ebx + 0x98], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x30], ecx
test byte [ecx], al
lea esi, [ecx + 0x190]
lea edi, [esp + 0x10]
call fcn.6f0dbd74
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 0x3c]
mov dword [esp + 0xc], edx
call fcn.6f0d8940
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x8c], 0
mov ecx, dword [eax + 0x18]
test byte [ecx], al
add ecx, 0x1cc
mov dword [esp], ecx
mov dword [esp + 4], 0
call fcn.6f0826f0
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
call fcn.6f083960
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x8c], 1
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 0x30]
cmp ecx, edx
jne 0x6f083946
mov dword [esp], ecx
call fcn.6f0b11d0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.6f0bcdb0
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x18]
test byte [eax], al
lea edi, [eax + 0x190]
lea esi, [esp + 0x10]
call fcn.6f0dbd74
add esp, 0x34
ret
lea eax, [0x6f12db73]
mov dword [esp], eax
mov dword [esp + 4], 0x26
call fcn.6f0b31b0
nop
int3