joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014f70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a738
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10098688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
call fcn.10004f40
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.SHELL32.dll_SHGetKnownFolderPath
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x10014fe8
cmp dword [ebp - 0x10], 0
je 0x10014fe8
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x14]
call fcn.10010c20
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10004930
mov edx, dword [ebp - 0x18]
or edx, 1
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10004ee0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10015b70
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x144]
sub esp, 0x144
push 0xffffffffffffffff
push 0x1007a86b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10098688]
xor eax, ebp
mov dword [ebp + 0x140], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp + 0x128]
call fcn.100051e0
mov dword [ebp - 4], 0
mov byte [ebp + 0x14c], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x10015bef
mov byte [ebp - 0xe], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x128]
call fcn.10005960
mov al, byte [ebp - 0xe]
jmp 0x10015cb3
mov dword [ebp], pe_nt_image_headers32
lea eax, [ebp]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10015c2f
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0xf], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x128]
call fcn.10005960
mov al, byte [ebp - 0xf]
jmp 0x10015cb3
mov dword [ebp - 0x18], 0
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp + 0x128]
call fcn.10003ae0
mov ecx, 0x1009a340
call fcn.1001cd50
add eax, 1
push eax
mov ecx, 0x1009a340
call fcn.1001c690
lea ecx, [ebp + 0x128]
push ecx
mov ecx, 0x1009a340
call fcn.1001bfb0
lea edx, [ebp + 0x128]
push edx
mov ecx, 0x1009a34c
call fcn.10003b20
lea eax, [ebp]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10015c2f
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x128]
call fcn.10005960
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp + 0x140]
xor ecx, ebp
call fcn.1005c9a6
add ebp, 0x144
mov esp, ebp
pop ebp
ret
Function at 0x100173e0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10098688]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 3
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov ecx, 8
imul ecx, ecx, 0
mov edx, dword [ebp - 0x24]
mov dword [edx + ecx], 1
mov eax, 8
imul eax, eax, 0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + eax + 4], 0x64
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0x24]
mov dword [eax + edx], 1
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp - 0x24]
mov dword [edx + ecx + 4], 0x64
mov eax, 8
shl eax, 1
mov ecx, dword [ebp - 0x24]
mov dword [ecx + eax], 1
mov edx, 8
shl edx, 1
mov eax, dword [ebp - 0x24]
mov dword [eax + edx + 4], 0x64
lea ecx, [ebp - 0x34]
push ecx
push 2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c9a6
mov esp, ebp
pop ebp
ret
Function at 0x10020700
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov dword [0x10099b20], eax
mov ecx, dword [ebp + 0x10]
mov dword [0x10099b24], ecx
mov edx, dword [ebp + 0xc]
mov dword [0x10099b28], edx
call fcn.10011980
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xc
je 0x10020733
jmp 0x100208f1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.1005ba80
add esp, 4
mov dword [ebp - 4], 0
jmp 0x1002075a
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0xf4240
jae 0x100207d0
call fcn.1005ba5d
cvtsi2ss xmm0, eax
movss dword [0x1009a330], xmm0
call fcn.1005ba5d
cvtsi2ss xmm0, eax
movss dword [0x1009a334], xmm0
call fcn.1005ba5d
cvtsi2ss xmm0, eax
movss dword [0x1009a338], xmm0
movss xmm0, dword [0x1009a334]
mulss xmm0, dword [0x1009a330]
mulss xmm0, dword [0x1009a338]
mulss xmm0, dword [0x1009a330]
mulss xmm0, dword [0x1009a338]
subss xmm0, dword [0x1009a334]
movss dword [0x1009a338], xmm0
jmp 0x10020751
mov dword [ebp - 8], 0
jmp 0x100207e2
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0xf4240
jae 0x100208bf
call fcn.1005ba5d
cvtsi2ss xmm0, eax
movss dword [0x1009a330], xmm0
movss xmm0, dword [0x1009a330]
ucomiss xmm0, dword [0x1007d9f0]
lahf
test ah, 0x44
jnp 0x10020830
call fcn.1005ba5d
cvtsi2ss xmm0, eax
divss xmm0, dword [0x1009a330]
movss dword [0x1009a334], xmm0
jmp 0x10020841
call fcn.1005ba5d
cvtsi2ss xmm0, eax
movss dword [0x1009a334], xmm0
movss xmm0, dword [0x1009a334]
ucomiss xmm0, dword [0x1007d9f0]
lahf
test ah, 0x44
jnp 0x10020871
call fcn.1005ba5d
cvtsi2ss xmm0, eax
divss xmm0, dword [0x1009a334]
movss dword [0x1009a338], xmm0
jmp 0x10020882
call fcn.1005ba5d
cvtsi2ss xmm0, eax
movss dword [0x1009a338], xmm0
movss xmm0, dword [0x1009a334]
mulss xmm0, dword [0x1009a330]
mulss xmm0, dword [0x1009a338]
mulss xmm0, dword [0x1009a330]
mulss xmm0, dword [0x1009a338]
subss xmm0, dword [0x1009a334]
movss dword [0x1009a338], xmm0
jmp 0x100207d9
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
movss xmm0, dword [0x1009a338]
addss xmm0, dword [0x1007da08]
movss dword [0x1009a338], xmm0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
ja 0x100208f1
jmp 0x100208e7
mov esp, ebp
pop ebp
ret
Function at 0x10023a40
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
mov edx, 4
imul edx, edx, 0
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x4c], 0x67452301
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x4c], 0xefcdab89
mov eax, 4
shl eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x4c], 0x98badcfe
mov edx, 4
imul edx, edx, 3
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x4c], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x10027860
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
mov edx, 4
imul edx, edx, 0
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x4c], 0x6a09e667
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x4c], 0xbb67ae85
mov eax, 4
shl eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x4c], 0x3c6ef372
mov edx, 4
imul edx, edx, 3
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x4c], 0xa54ff53a
mov ecx, 4
shl ecx, 2
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x4c], 0x510e527f
mov eax, 4
imul eax, eax, 5
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x4c], 0x9b05688c
mov edx, 4
imul edx, edx, 6
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x4c], 0x1f83d9ab
mov ecx, 4
imul ecx, ecx, 7
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x4c], 0x5be0cd19
mov esp, ebp
pop ebp
ret

Function at 0x10027c8a
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x10098688]
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 0x10027cd1
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x10027ccb
shr eax, 8
cmp al, 2
jne 0x10027ccb
call fcn.1002b8d2
jmp 0x10027cd4
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c9a6
leave
ret
Function at 0x1002c0eb
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1002c107
cmp dword [esi + 0x6c], 0
je 0x1002c107
push 2
push 3
push esi
call fcn.1003eb77
add esp, 0xc
push dword [esp + 0xc]
call fcn.100389cc
pop ecx
test esi, esi
je 0x1002c125
cmp dword [esi + 0x6c], 0
je 0x1002c125
push 3
push esi
call fcn.1003ebae
pop ecx
pop ecx
pop esi
ret
Function at 0x1003497c
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push eax
mov esi, dword [edi + eax*4 + 0x1a8]
push edi
call fcn.10034c28
pop ecx
pop ecx
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov esi, eax
and dword [ebx], 0
cmp esi, 0xffffffff
jne 0x100349f7
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x100349d1
xor esi, esi
mov dword [ebx], 0x51
jmp 0x100349f6
push ebp
push edi
call fcn.100409d4
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.10034609
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x47e4], ebp
mov dword [ebx], 0x37
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
mov eax, dword [ebx + 0x470]
mov ebp, dword [ebx + ecx*4 + 0x1a8]
push esi
lea esi, [ecx + 0x1d]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x10034ccb
cmp dword [ebx + ecx*4 + 0x1c0], 0x1003489d
jne 0x10034ccb
xor eax, eax
cmp dword [esi], eax
je 0x10034c6c
test edi, edi
je 0x10034ccb
push eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.10034046
add esp, 0x14
cmp eax, 0xffffffff
je 0x10034ccb
test al, 1
je 0x10034ccb
xor ecx, ecx
cmp dword [esi], ecx
jne 0x10034cb5
mov eax, dword [ebx]
mov eax, dword [eax + 0x388]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x10098340]
mov edi, dword [esi + 4]
pop ecx
xor ecx, ecx
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
test eax, eax
jne 0x10034cb5
mov dword [esi + 4], ecx
jmp 0x10034ccb
mov eax, dword [esi]
add eax, dword [esi + 8]
push ecx
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10034ccb
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10034cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x1e0]
xor edi, edi
test eax, eax
je 0x10034cfd
push dword [esi + 0x16c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
mov edi, eax
jmp 0x10034d33
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x10034d33
push dword [esi + 0x168]
imul eax, eax, 3
push 1
add eax, 0x10082770
push 2
push eax
call fcn.1006114a
push dword [esi + 0x168]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1006114a
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x10034ddc
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1f0], 0
je 0x10034dfa
push eax
call fcn.1002ca07
pop ecx
test eax, eax
jne 0x10034e16
xor eax, eax
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x10034df6
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x10034df2
xor eax, eax
inc eax
pop ebp
ret
Function at 0x100353e6
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1009a3dc]
and dword [ebp - 4], 0
push esi
push 2
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0xc], 4
pop esi
test eax, eax
jne 0x1003542d
push 3
push esi
push eax
push 6
call fcn.1003feb5
add esp, 0x10
test eax, eax
je 0x10035425
mov dword [0x1009a3dc], esi
jmp 0x1003546d
xor eax, eax
inc eax
mov dword [0x1009a3dc], eax
cmp eax, esi
je 0x1003546d
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
mov esi, 0x1001
push esi
mov ebx, 0xffff
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1003545b
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x1003546c
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
leave
ret

Function at 0x10035541
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov esi, dword [edi]
xor ecx, ecx
lea eax, [ebp + 8]
push eax
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 0x10035585
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.100409d4
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.100346c5
add esp, 0x14
jmp 0x10035592
push str.TCP_NODELAY_set_n
push esi
call fcn.100346c5
pop ecx
pop ecx
pop edi
pop esi
pop ebp
ret
Function at 0x1003569a
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x10098688]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
push ebp
cmp dword [ebx + 0x94], 2
mov ebp, dword [ebx]
je 0x1003580a
push esi
xor esi, esi
push edi
cmp dword [ebx + 0x3c8], esi
jne 0x10035801
cmp dword [ebx + 0x438], esi
jne 0x10035801
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x128]
mov edi, 0x80
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x10035724
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.100409d4
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
jmp 0x100357f6
push edi
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x1c], edi
call fcn.1005ec70
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x128]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1003576d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.100409d4
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x100357f6
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.10035bf9
add esp, 0xc
test eax, eax
jne 0x100357af
call fcn.100608c9
mov esi, eax
call fcn.100608c9
push dword [esi]
mov edi, eax
push ebx
call fcn.100409d4
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x100357f6
push 0xb
pop ecx
lea edi, [ebx + 0x60]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
lea eax, [esp + 0x1c]
push eax
movsw word es:[edi], word [esi]
call fcn.10035bf9
add esp, 0xc
test eax, eax
jne 0x10035801
call fcn.100608c9
mov esi, eax
call fcn.100608c9
push dword [esi]
mov edi, eax
push ebx
call fcn.100409d4
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.10034609
add esp, 0x18
jmp 0x10035808
push ebx
call fcn.10035376
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.1005c9a6
add esp, 0x108
ret
Function at 0x10035ee2
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10098688]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
xor ebx, ebx
cmp dword [esi + 0x574], ebx
push 4
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 0x10035f34
push dword [ebp + 0xc]
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.100346c5
add esp, 0xc
jmp 0x10035fa3
push dword [esi + 0x578]
mov dword [ebp - 0x10], 1
call fcn.1003de16
imul eax, eax, 0x3e8
push dword [esi + 0x57c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.1003de16
imul eax, eax, 0x3e8
pop ecx
pop ecx
push ebx
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
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 0x10035fa3
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.100346c5
add esp, 0x10
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1005c9a6
leave
ret
Function at 0x1003fda9
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push esi
push str.kernel32
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
je 0x1003feb1
push ebp
push edi
push 0x10084808
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [esp + 0x18]
push 0x10084818
push edi
mov ebp, eax
call fcn.100611d0
pop ecx
pop ecx
test eax, eax
je 0x1003fdf9
test ebp, ebp
je 0x1003fdf0
push 8
jmp 0x1003fe12
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x1003fe16
test ebp, ebp
je 0x1003fe1d
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1003fe1d
push 0x800
push esi
push edi
call ebp
mov esi, eax
jmp 0x1003fead
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x1003fead
mov ecx, edi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003fe34
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [0x10098340]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x1003fea5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1003fea5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003fe64
sub ecx, edx
push 0x5c
pop eax
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003fe79
sub ecx, edx
add ecx, ebx
sub ecx, edi
mov al, byte [edi]
mov byte [ecx + edi], al
inc edi
test al, al
jne 0x1003fe86
test ebp, ebp
je 0x1003fe9c
push 8
push esi
push ebx
call ebp
jmp 0x1003fea3
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push ebx
call dword [0x10098344]
pop ecx
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x10040027
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebp
push edi
xor edi, edi
and dword [eax], edi
and dword [esp + 0x10], edi
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x28]
mov dword [esp + 0x10], edi
push dword [esp + 0x28]
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test ebp, ebp
jne 0x1004019b
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x18], esi
test esi, esi
je 0x10040186
push ebx
cmp dword [esi + 4], 2
jne 0x10040123
cmp dword [esi + 0x18], 0
je 0x10040123
cmp dword [esi + 0x10], 0
jbe 0x10040123
cmp dword [esi + 0x10], 0x10
jb 0x10040123
push 0x20
call dword [0x10098340]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10040157
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 eax, dword [esi + 0xc]
and dword [ebx + 0x18], 0
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push 0x10
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 0x10
call dword [0x10098340]
pop ecx
mov dword [ebx + 0x18], eax
test eax, eax
je 0x1004014b
mov esi, dword [esi + 0x18]
mov edi, eax
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 esi, dword [esp + 0x1c]
cmp dword [esi + 0x14], 0
je 0x10040107
push dword [esi + 0x14]
call dword [0x1009834c]
pop ecx
mov dword [ebx + 0x14], eax
test eax, eax
je 0x10040134
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
test edi, edi
cmove edi, ebx
mov dword [esp + 0x10], edi
test eax, eax
je 0x1004011f
mov dword [eax + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov esi, dword [esi + 0x1c]
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x1004006f
jmp 0x1004015a
push 8
pop ebp
push dword [ebx + 0x18]
call dword [0x10098344]
push ebx
call dword [0x10098344]
pop ecx
pop ecx
jmp 0x1004015a
push 8
pop ebp
push ebx
call dword [0x10098344]
jmp 0x10040148
push 8
pop ebp
cmp dword [esp + 0x14], 0
pop ebx
je 0x1004016c
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x1004017e
push dword [esp + 0xc]
call fcn.1003fff5
pop ecx
xor edi, edi
jmp 0x10040192
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x10040192
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x2c]
pop esi
mov dword [eax], edi
mov eax, ebp
pop edi
pop ebp
add esp, 0x10
ret

Function at 0x100411ef
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
push eax
push eax
call fcn.1005ef54
add esp, 0x18
test eax, eax
je 0x1004120e
cmp eax, 0xffffffff
jne 0x10041210
xor eax, eax
ret
Function at 0x100413a3
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0xf0000040
push 1
xor edi, edi
push edi
push edi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x100413c9
push 2
pop eax
jmp 0x100413f1
push esi
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x100413e2
push 2
pop esi
jmp 0x100413e4
mov esi, edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop edi
leave
ret
Function at 0x10043ebc
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x10098688]
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 0x10043ef7
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.10034609
add esp, 0xc
jmp 0x10043f1f
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x10043f12
shr eax, 8
test al, al
jne 0x10043f12
xor eax, eax
jmp 0x10043f22
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.10034609
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1005c9a6
leave
ret

Function at 0x10044640
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
mov edi, dword [esi]
push 0
mov byte [ebp + 0xa], al
push 3
lea eax, [ebp + 8]
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 0x10044688
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.10034609
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.10044024
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret