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

Disassembly:
mov eax, 0x6d70c7
call fcn.006b9c3c
sub esp, 0xbc
push esi
mov esi, ecx
call fcn.00579d41
push eax
mov ecx, esi
call fcn.00579c8a
cmp dword [esi + 0x14], 0
jne 0x579a2a
cmp dword [esi + 0x1c], 0
jne 0x5799b9
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0xc]
jb 0x579ac3
push 0x744aa4
lea ecx, [ebp - 0x24]
call fcn.00411aae
and dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
push str.cv::RBaseStream::readBlock
call fcn.00411aae
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
push str.Unexpected_end_of_input_stream
call fcn.00411aae
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24]
push 0x65
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x54]
push eax
push 0xfffffffffffffffe
lea ecx, [ebp - 0xc8]
call fcn.00526747
mov byte [ebp - 4], 3
mov dword [ebp - 0xc8], vtable.cv::RBS_THROW_EOS_Exception.0
mov byte [ebp - 4], 2
push 0x7886a0
lea eax, [ebp - 0xc8]
push eax
call fcn.0068e3de
push 0
push dword [esi + 0x1c]
push dword [esi + 0x14]
call fcn.0069f669
push dword [esi + 0x14]
push dword [esi + 0x18]
push 1
push dword [esi + 8]
call fcn.006a355a
mov ecx, dword [esi + 8]
add esp, 0x1c
add ecx, eax
mov dword [esi + 0xc], ecx
test eax, eax
je 0x579a5b
cmp dword [esi + 0x10], ecx
jb 0x579ac3
push 0x744aa4
lea ecx, [ebp - 0x54]
call fcn.00411aae
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x3c]
push str.cv::RBaseStream::readBlock
call fcn.00411aae
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
push str.Unexpected_end_of_input_stream
call fcn.00411aae
mov byte [ebp - 4], 6
lea eax, [ebp - 0x54]
push 0x6d
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0xfffffffffffffffe
lea ecx, [ebp - 0xc8]
call fcn.00526747
mov byte [ebp - 4], 7
mov dword [ebp - 0xc8], vtable.cv::RBS_THROW_EOS_Exception.0
mov byte [ebp - 4], 6
jmp 0x579a19
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x57a318
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x6d75db
call fcn.006b9c3c
sub esp, 0xbc
push ebx
push edi
mov edi, ecx
mov ebx, dword [edi + 0xc]
mov al, byte [edi + 0x1c]
sub ebx, dword [edi + 4]
test al, al
je 0x57a394
test ebx, ebx
je 0x57a384
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x57a36a
push esi
mov esi, dword [ecx + 4]
sub esi, dword [ecx]
lea eax, [esi + ebx]
push eax
call fcn.004a537b
mov eax, dword [edi + 0x20]
push ebx
push dword [edi + 4]
mov eax, dword [eax]
add eax, esi
push eax
call fcn.0068bfa0
add esp, 0xc
pop esi
jmp 0x57a37b
push dword [edi + 0x18]
push ebx
push 1
push dword [edi + 4]
call fcn.0069c339
add esp, 0x10
mov eax, dword [edi + 4]
add dword [edi + 0x14], ebx
mov dword [edi + 0xc], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x744aa4
lea ecx, [ebp - 0x24]
call fcn.00411aae
and dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
push str.cv::WBaseStream::writeBlock
call fcn.00411aae
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
push str.isOpened__
call fcn.00411aae
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24]
push 0x17b
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x54]
push eax
push 0xffffff29
lea ecx, [ebp - 0xc8]
call fcn.00526747
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.00526972
int3

Function at 0x57ac88
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
mov eax, ecx
inc esi
mov ecx, edx
push edi
shl esi, cl
xor edi, edi
cmp byte [ebp + 8], 0
mov ecx, 0xff
cmovne edi, ecx
test esi, esi
jle 0x57acd7
lea ecx, [esi - 1]
push ebx
mov dword [ebp + 8], ecx
xor ebx, ebx
lea ecx, [eax + 1]
mov eax, ebx
mov byte [ecx + 2], 0
cdq
add ebx, 0xff
idiv dword [ebp + 8]
xor eax, edi
mov byte [ecx + 1], al
mov byte [ecx], al
lea ecx, [ecx + 4]
mov byte [ecx - 5], al
sub esi, 1
jne 0x57acb4
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x57b080
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x57b08b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0057b0a0
Function at 0x599099
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x78ebd8]
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 0x5990e0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x5990da
shr eax, 8
cmp al, 2
jne 0x5990da
call fcn.005a2584
jmp 0x5990e3
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0068a492
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x1a8]
call fcn.0059c095
pop ecx
pop ecx
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov esi, eax
and dword [ebx], 0
cmp esi, 0xffffffff
jne 0x59bc87
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x59bc5f
xor esi, esi
mov dword [ebx], 0x51
jmp 0x59bc87
push eax
push edi
call fcn.005aaf73
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0059b8d5
mov eax, dword [edi]
add esp, 0x14
mov ecx, dword [ebp + 8]
mov dword [eax + 0x48c4], ecx
mov dword [ebx], 0x37
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
add edi, edi
mov eax, dword [esi + 0x2c0]
mov edx, dword [esi + ecx*4 + 0x1a8]
mov dword [ebp + 8], edx
mov ebx, dword [esi + edi*8 + 0x1d0]
sub ebx, dword [esi + edi*8 + 0x1d4]
test byte [eax + 0x40], 3
je 0x59c17d
cmp dword [esi + ecx*4 + 0x1bc], 0x59bb7c
jne 0x59c17d
xor eax, eax
cmp dword [esi + edi*8 + 0x1cc], eax
je 0x59c0f1
test ebx, ebx
je 0x59c17d
push eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.005a8955
add esp, 0x14
cmp eax, 0xffffffff
je 0x59c17d
test al, 1
je 0x59c17d
xor ecx, ecx
cmp dword [esi + edi*8 + 0x1cc], ecx
jne 0x59c158
mov eax, dword [esi]
mov eax, dword [eax + 0x4c0]
add eax, eax
push eax
mov dword [esi + edi*8 + 0x1d0], eax
call dword [0x78c070]
mov ebx, dword [esi + edi*8 + 0x1d0]
pop ecx
xor ecx, ecx
mov dword [esi + edi*8 + 0x1cc], eax
mov dword [esi + edi*8 + 0x1d4], ecx
mov dword [esi + edi*8 + 0x1d8], ecx
test eax, eax
jne 0x59c158
mov dword [esi + edi*8 + 0x1d0], ecx
jmp 0x59c17d
mov eax, dword [esi + edi*8 + 0x1cc]
add eax, dword [esi + edi*8 + 0x1d4]
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x59c17d
add dword [esi + edi*8 + 0x1d4], eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x59c182
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x1d0], edi
je 0x59c1c1
push 1
push esi
call fcn.0059d9e1
push dword [esi + 0x15c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [esi + 0x1d0]
push 0
push esi
mov edi, eax
call fcn.0059d9e1
add esp, 0x24
jmp 0x59c1f7
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x59c1f7
push dword [esi + 0x158]
imul eax, eax, 3
push 1
push 2
add eax, 0x6e6f10
push eax
call fcn.0069c339
push dword [esi + 0x158]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0069c339
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x5a1bb8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5a1bd6
cmp dword [esi + 0x6c], 0
je 0x5a1bd6
push 2
push 3
push esi
call fcn.005aa892
add esp, 0xc
push dword [ebp + 0xc]
call fcn.005abb1d
pop ecx
test esi, esi
je 0x5a1bf3
cmp dword [esi + 0x6c], 0
je 0x5a1bf3
push 3
push esi
call fcn.005aa8ca
pop ecx
pop ecx
pop esi
pop ebp
ret
Function at 0x5a8dc5
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1ec], 0
je 0x5a8de3
push eax
call fcn.005a2cdd
pop ecx
test eax, eax
jne 0x5a8dff
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x5a8ddf
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x5a8ddb
mov al, 1
pop ebp
ret

Function at 0x5a9487
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
mov eax, dword [0x79e8d8]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0xc], 4
push esi
push 2
pop esi
test eax, eax
jne 0x5a94ce
push 3
push esi
push eax
push 6
call fcn.005b55a9
add esp, 0x10
test al, al
je 0x5a94c6
mov dword [0x79e8d8], esi
jmp 0x5a950e
xor eax, eax
inc eax
mov dword [0x79e8d8], eax
cmp eax, esi
je 0x5a950e
push ebx
lea eax, [ebp - 0xc]
mov esi, 0x1001
push eax
lea eax, [ebp - 4]
mov ebx, 0xffff
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x5a94fc
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x5a950d
push 4
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5a95df
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
xor ecx, ecx
push eax
mov esi, dword [edi]
inc ecx
push ecx
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x5a9623
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.005aaf73
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0059b99f
add esp, 0x14
jmp 0x5a9630
push str.TCP_NODELAY_set_n
push esi
call fcn.0059b99f
pop ecx
pop ecx
pop edi
pop esi
pop ebp
ret
Function at 0x5a9737
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x78ebd8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [ebx + 0x94], 2
mov edi, dword [ebx]
mov dword [ebp - 0x10c], edi
je 0x5a98b0
cmp byte [ebx + 0x27a], 0
push esi
jne 0x5a98a8
cmp byte [ebx + 0x296], 0
jne 0x5a98a8
lea eax, [ebp - 0x108]
mov esi, 0x80
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x5a97bd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.005aaf73
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
jmp 0x5a9806
push esi
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], esi
push 0
push eax
call fcn.005077d5
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x5a980c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.005aaf73
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
jmp 0x5a989e
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.005a8f81
add esp, 0xc
test al, al
jne 0x5a984d
call fcn.0069c0cd
mov esi, eax
call fcn.0069c0cd
push dword [esi]
mov edi, eax
push ebx
call fcn.005aaf73
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x5a9898
push 0x2e
lea eax, [ebx + 0x60]
push esi
push eax
call fcn.0068bfa0
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.005a8f81
add esp, 0x18
test al, al
jne 0x5a98a8
call fcn.0069c0cd
mov esi, eax
call fcn.0069c0cd
push dword [esi]
mov edi, eax
push ebx
call fcn.005aaf73
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.0059b8d5
add esp, 0x18
jmp 0x5a98af
push ebx
call fcn.005a9411
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0068a492
mov esp, ebp
pop ebp
ret
Function at 0x5aa01d
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x78ebd8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 4
cmp byte [esi + 0x650], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x5aa06c
push dword [ebp + 0xc]
push 0x6e8338
push esi
call fcn.0059b99f
add esp, 0xc
jmp 0x5aa0dd
push dword [esi + 0x654]
mov dword [ebp - 0x10], 1
call fcn.005aa22f
push dword [esi + 0x658]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.005aa22f
pop ecx
pop ecx
imul eax, eax, 0x3e8
xor ecx, ecx
push ecx
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push ecx
push ecx
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x5aa0dd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp + 0xc]
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0059b99f
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0068a492
mov esp, ebp
pop ebp
ret

Function at 0x5aa213
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.005aa24d
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.006a805f
add esp, 0x10
pop ebp
ret
Function at 0x5b4e4a
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push esi
xor esi, esi
and dword [ebp - 0x10], esi
and dword [eax], esi
lea eax, [ebp - 0xc]
push edi
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, eax
test edi, edi
jne 0x5b4fb2
push ebx
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x5b4f9e
cmp dword [ebx + 4], 2
jne 0x5b4e92
push 0x10
jmp 0x5b4e9e
cmp dword [ebx + 4], 0x17
jne 0x5b4f46
push 0x1c
cmp dword [ebx + 0x18], 0
pop eax
mov dword [ebp - 8], eax
je 0x5b4f46
cmp dword [ebx + 0x10], 0
jbe 0x5b4f46
cmp dword [ebx + 0x10], eax
jb 0x5b4f46
push 0x20
call dword [0x78c070]
mov esi, eax
pop ecx
test esi, esi
je 0x5b4f76
mov ecx, dword [ebx]
mov dword [esi], ecx
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
xor ecx, ecx
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 8]
push eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x1c], ecx
call dword [0x78c070]
mov dword [esi + 0x18], eax
pop ecx
test eax, eax
je 0x5b4f6a
push dword [ebp - 8]
push dword [ebx + 0x18]
push eax
call fcn.0068bfa0
add esp, 0xc
cmp dword [ebx + 0x14], 0
je 0x5b4f2e
push dword [ebx + 0x14]
call dword [0x78c07c]
mov dword [esi + 0x14], eax
pop ecx
test eax, eax
je 0x5b4f53
mov eax, dword [ebp - 4]
test eax, eax
cmove eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5b4f43
mov dword [eax + 0x1c], esi
mov dword [ebp - 0x10], esi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x5b4e88
jmp 0x5b4f79
push 8
pop edi
push dword [esi + 0x18]
call dword [0x78c074]
push esi
call dword [0x78c074]
pop ecx
pop ecx
jmp 0x5b4f79
push 8
pop edi
push esi
call dword [0x78c074]
jmp 0x5b4f67
push 8
pop edi
cmp dword [ebp - 0xc], 0
je 0x5b4f88
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov esi, dword [ebp - 4]
test edi, edi
je 0x5b4f9a
push esi
call fcn.005b4e15
pop ecx
xor esi, esi
jmp 0x5b4faa
test esi, esi
jne 0x5b4faa
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
pop ebx
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5b520a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call fcn.00694f05
add esp, 0x18
test eax, eax
je 0x5b522a
cmp eax, 0xffffffff
jne 0x5b522c
xor eax, eax
pop ebp
ret
Function at 0x5b54ac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push str.kernel32
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
je 0x5b55a4
push ebx
push edi
push 0x6ebce8
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, dword [ebp + 8]
mov ebx, eax
push 0x6ebcf8
push edi
call fcn.006a42ec
pop ecx
pop ecx
test eax, eax
je 0x5b54fe
test ebx, ebx
je 0x5b54f5
push 8
jmp 0x5b5519
push edi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
jmp 0x5b551d
test ebx, ebx
je 0x5b5521
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x5b5521
push 0x800
push esi
push edi
call ebx
mov esi, eax
jmp 0x5b55a0
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov dword [ebp - 4], eax
test eax, eax
je 0x5b55a0
push edi
call fcn.006909d0
mov ecx, dword [ebp - 4]
inc ecx
add ecx, eax
push ecx
call dword [0x78c070]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5b5598
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x5b5598
push 0x73bb04
push edi
call fcn.006909d0
pop ecx
add eax, edi
push eax
call fcn.0069a230
pop ecx
pop ecx
push dword [ebp + 8]
push edi
call fcn.006909d0
pop ecx
add eax, edi
push eax
call fcn.0069a230
pop ecx
pop ecx
test ebx, ebx
je 0x5b558f
push 8
push esi
push edi
call ebx
jmp 0x5b5596
push edi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
push edi
call dword [0x78c074]
pop ecx
pop edi
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5b5ad0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push edi
push 4
pop edi
push esi
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x14], esi
call fcn.005077d5
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push dword [ebp + 0x18]
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x5b5b89
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x5b5b6c
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x5b5b6c
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call edi
test eax, eax
je 0x5b5b6c
cmp esi, dword [ebp - 0xc]
jb 0x5b5b6c
push ebx
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call edi
cmp dword [ebp - 4], ebx
je 0x5b5b7a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], ebx
je 0x5b5b89
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b892e
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x78ebd8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x5b8969
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0059b8d5
add esp, 0xc
jmp 0x5b8991
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x5b8984
shr eax, 8
test al, al
jne 0x5b8984
xor eax, eax
jmp 0x5b8994
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0059b8d5
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0068a492
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x1a8]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x5b9119
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0059b8d5
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.005b8a5c
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5b922c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov ebx, dword [eax + 0x150]
jne 0x5b9382
push edi
lea eax, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], eax
cmp eax, edi
jae 0x5b9263
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x5b926e
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x5b9279
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
mov word [ebp - 0xc], ax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [edi]
mov word [ebp - 0x14], ax
cmp ecx, edi
jae 0x5b92a9
mov al, byte [ebp - 0xc]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x5b92b6
mov al, byte [ebp - 0xb]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x5b92c3
mov al, byte [ebp - 0x14]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x5b92d0
mov al, byte [ebp - 0x13]
mov byte [ecx], al
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x5b92db
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x5b92e6
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
lea esi, [ebx + 0x1cb0]
mov dword [ebx + 0x1eb4], eax
sub eax, esi
sub eax, 2
mov dword [edi], esi
mov edi, dword [ebp - 4]
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push edi
call fcn.005b8b46
add esp, 0x10
push 0
push 3
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x5b933e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0059b8d5
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push esi
call fcn.005b9131
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [esi + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x5b9381
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0059b8d5
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret