joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b610
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070260
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100f7080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov eax, dword [ebp + 0xc]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx ebx, cl
mov dword [ebp - 0x24], edx
test cl, cl
jne 0x1000b656
xor cl, cl
jmp 0x1000b671
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
push ecx
push 0x40
push ebx
push eax
mov dword [ebp - 0x24], eax
call edi
mov edx, dword [ebp - 0x24]
test eax, eax
mov eax, dword [ebp + 0xc]
setne cl
mov byte [ebp - 0x18], cl
mov ch, byte [esi]
mov byte [ebp - 0xd], ch
mov dword [ebp - 4], 0
test cl, cl
je 0x1000b69b
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
push edx
call edi
mov eax, dword [ebp + 0xc]
mov ch, byte [ebp - 0xd]
movzx ecx, ch
mov dword [ebp - 4], 0xffffffff
sub ecx, 0xe8
je 0x1000b746
sub ecx, 1
je 0x1000b746
sub ecx, 0x16
jne 0x1000b72b
push dword [ebp + 0x10]
inc eax
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.1000be40
add esp, 8
cmp al, 0x15
je 0x1000b6d8
cmp al, 0x25
jne 0x1000b72b
mov esi, dword [ebp + 0xc]
xor ecx, ecx
shl ebx, 2
add esi, 2
mov dword [ebp - 0x34], ecx
test ebx, ebx
jne 0x1000b6ee
xor al, al
jmp 0x1000b706
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
push eax
push 0x40
push ebx
push esi
mov dword [ebp - 0x34], esi
call edi
mov ecx, dword [ebp - 0x34]
test eax, eax
setne al
mov byte [ebp - 0x28], al
mov esi, dword [esi]
mov dword [ebp - 4], 3
test al, al
je 0x1000b727
mov eax, dword [ebp - 0x2c]
lea edx, [ebp + 0x10]
push edx
push eax
push dword [ebp - 0x30]
mov dword [ebp + 0x10], eax
push ecx
call edi
mov ecx, dword [esi]
jmp 0x1000b797
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
shl ebx, 2
lea esi, [eax + 1]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
test ebx, ebx
jne 0x1000b759
xor al, al
jmp 0x1000b771
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
push eax
push 0x40
push ebx
push esi
mov dword [ebp - 0x24], esi
call edi
mov ecx, dword [ebp - 0x24]
test eax, eax
setne al
mov byte [ebp - 0x18], al
mov ebx, dword [esi]
mov dword [ebp - 4], 2
test al, al
je 0x1000b792
mov eax, dword [ebp - 0x1c]
lea edx, [ebp + 0x10]
push edx
push eax
push dword [ebp - 0x20]
mov dword [ebp + 0x10], eax
push ecx
call edi
lea ecx, [esi + 4]
add ecx, ebx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000b880
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070280
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x100f7080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
cmp byte [ebp + 0x10], al
mov dword [ebp - 0x1c], 0
cmovne eax, dword [ebp + 0xc]
test eax, eax
jne 0x1000b8c2
mov byte [ebp - 0x10], al
jmp 0x1000b8dc
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0x10]
push dword [ebp + 0xc]
push 0x90
push esi
call fcn.10052870
add esp, 0xc
mov dword [ebp - 4], 0
cmp byte [ebp - 0x10], 0
je 0x1000b911
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000bb40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100702a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x100f7080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
call fcn.10009740
add esp, 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call fcn.1000bc50
xor edx, edx
mov dword [ebp - 0x24], edx
mov esi, dword [eax]
movzx eax, byte [ebp + 0xc]
test eax, eax
jne 0x1000bb94
xor al, al
jmp 0x1000bbb0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x24]
test eax, eax
setne al
mov byte [ebp - 0x18], al
mov bl, byte [esi]
mov dword [ebp - 4], 0
test al, al
je 0x1000bbd5
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp - 0x20]
mov dword [ebp + 0xc], ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000bd00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070280
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x100f7080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
add eax, eax
jne 0x1000bd40
mov byte [ebp - 0x10], 0
xor cl, cl
jmp 0x1000bd5c
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne cl
mov byte [ebp - 0x10], cl
mov ax, word [ebp + 0xc]
mov word [esi], ax
mov dword [ebp - 4], 0
test cl, cl
je 0x1000bd85
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000bda0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070280
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x100f7080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0x10]
mov esi, dword [ebp + 8]
shl eax, 2
mov dword [ebp - 0x1c], 0
test eax, eax
jne 0x1000bde2
mov byte [ebp - 0x10], al
xor cl, cl
jmp 0x1000bdfe
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne cl
mov byte [ebp - 0x10], cl
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov dword [ebp - 4], 0
test cl, cl
je 0x1000be25
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000be40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100702f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x100f7080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0xc]
xor edx, edx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
test eax, eax
jne 0x1000be7b
xor al, al
jmp 0x1000be97
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x1c]
test eax, eax
setne al
mov byte [ebp - 0x10], al
mov bl, byte [esi]
mov dword [ebp - 4], 0
test al, al
je 0x1000bebc
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp - 0x18]
mov dword [ebp + 0xc], ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000bee0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070280
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x100f7080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
test eax, eax
jne 0x1000bf1f
mov byte [ebp - 0x10], al
xor cl, cl
jmp 0x1000bf3b
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne cl
mov byte [ebp - 0x10], cl
mov al, byte [ebp + 0xc]
mov byte [esi], al
mov dword [ebp - 4], 0
test cl, cl
je 0x1000bf62
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000bf80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070280
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x100f7080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0xc]
xor edx, edx
mov esi, dword [ebp + 8]
shl eax, 2
mov dword [ebp - 0x1c], edx
test eax, eax
jne 0x1000bfbd
xor al, al
jmp 0x1000bfd9
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x1c]
test eax, eax
setne al
mov byte [ebp - 0x10], al
mov esi, dword [esi]
mov dword [ebp - 4], 0
test al, al
je 0x1000bffe
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp - 0x18]
mov dword [ebp + 0xc], ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000ce40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ecx + 4]
push esi
push edi
mov edi, dword [ebx + 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ecx]
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x10], ecx
cmp eax, ecx
je 0x1000ce9c
nop dword [eax]
mov edx, dword [eax]
mov ecx, edi
mov esi, edx
sub ecx, edx
sub esi, edi
cmp edi, edx
cmovbe ecx, esi
cmp ecx, dword [ebp - 0xc]
ja 0x1000cebd
add eax, 4
cmp eax, dword [ebp - 0x10]
jne 0x1000ce80
mov eax, dword [ebp - 0x14]
push 0x40
push 0x3000
mov eax, dword [eax + 8]
push dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x1000e840
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x100f7080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x2dc], edx
mov dword [ebp - 0x2ec], ecx
mov byte [ebp - 0x2d1], 1
push edi
nop dword [eax]
xor ebx, ebx
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0
push eax
push 0
push 0
push 0x81a
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ntdll.dll_NtGetNextThread]
mov edi, eax
test esi, esi
je 0x1000e8b5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x1000e977
mov esi, dword [ebp - 0x2d8]
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadId]
mov edi, eax
test edi, edi
je 0x1000e880
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x1000e880
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1000e880
test eax, eax
je 0x1000e8fc
cmp byte [ebp - 0x2d1], 0
jne 0x1000e8fc
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1000e880
push 0x2c8
lea eax, [ebp - 0x2cc]
push 0
push eax
call fcn.10052870
add esp, 0xc
mov dword [ebp - 0x2d0], 0x10007
lea eax, [ebp - 0x2d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1000e880
mov eax, dword [ebp - 0x2dc]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1000e971
lea edx, [ebp - 0x2e0]
mov dword [ebp - 0x2e4], esi
push edx
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2e8], edi
lea edx, [ebp - 0x2e4]
mov dword [ebp - 0x2e0], eax
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x2e8]
push edx
call dword [eax + 8]
inc ebx
jmp 0x1000e880
mov byte [ebp - 0x2d1], 0
test ebx, ebx
jne 0x1000e870
mov ecx, dword [ebp - 0x2ec]
mov ecx, dword [ecx + 0x24]
test ecx, ecx
je 0x1000e998
mov eax, dword [ecx]
call dword [eax + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor esi, esi
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0
push eax
push 0
push 0
push 0x81a
push esi
call ebx
push eax
call dword [sym.imp.ntdll.dll_NtGetNextThread]
mov edi, eax
test esi, esi
je 0x1000e9d1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x1000e9fb
mov esi, dword [ebp - 0x2d8]
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadId]
mov edi, eax
test edi, edi
je 0x1000e9a0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x1000e9a0
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1000e9a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004f727
mov esp, ebp
pop ebp
ret
Function at 0x1000ea10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070640
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100f7080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000ea6b
mov byte [esi + 0xc], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x28]
mov dword [esi], 0
mov ecx, edi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
cmp esi, edx
je 0x1000ea9b
mov dword [esi], edi
xor edi, edi
mov dword [esi + 4], ebx
xor ebx, ebx
mov dword [esi + 8], eax
xor eax, eax
xor ecx, ecx
mov byte [esi + 0xc], 1
mov dword [ebp - 4], 0
test ecx, ecx
je 0x1000eab7
lea ecx, [ebp - 0x1c]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100453a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
mov eax, dword [0x100f7080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x198], ecx
mov eax, dword [ebp - 0x198]
mov byte [eax], 0
lea ecx, [ebp - 0x194]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
je 0x10045411
push str.WSAStartup_failed
push 0x100f7004
mov edx, dword [ebp - 0x19c]
push edx
lea ecx, [ebp - 0x1bc]
call fcn.10045920
push 0x100f6294
lea eax, [ebp - 0x1bc]
push eax
call fcn.1005078a
nop
movzx ecx, word [ebp - 0x194]
and ecx, 0xff
movzx edx, cl
cmp edx, 2
jne 0x1004543d
movzx eax, word [ebp - 0x194]
shr eax, 8
and eax, 0xff
movzx ecx, al
cmp ecx, 2
je 0x10045466
call dword [sym.imp.WS2_32.dll_WSACleanup]
nop
push str.Invalid_WinSock_version
lea ecx, [ebp - 0x1a8]
call fcn.100458b0
push 0x100f54a4
lea edx, [ebp - 0x1a8]
push edx
call fcn.1005078a
nop
mov eax, dword [ebp - 0x198]
mov byte [eax], 1
mov eax, dword [ebp - 0x198]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004f727
mov esp, ebp
pop ebp
ret

Function at 0x10045650
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], ecx
push 6
push 1
movzx eax, byte [ebp + 8]
push eax
call fcn.10047ec0
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0xffffffff
jne 0x100456a6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.Failed_to_create_socket
push 0x100f7004
push eax
lea ecx, [ebp - 0x1c]
call fcn.10045920
push 0x100f6294
lea eax, [ebp - 0x1c]
push eax
call fcn.1005078a
nop
mov dword [ebp - 8], 1
lea ecx, [ebp - 8]
push ecx
push 0x8004667e
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x100456f8
mov ecx, dword [ebp - 4]
call fcn.10047010
nop
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.Failed_to_get_socket_flags
push 0x100f7004
push eax
lea ecx, [ebp - 0x30]
call fcn.10045920
push 0x100f6294
lea ecx, [ebp - 0x30]
push ecx
call fcn.1005078a
nop
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x10047060
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x100470ac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x100470ac
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 8], eax
jmp 0x10047080
cmp dword [ebp - 8], 0xffffffff
jne 0x10047186
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1004715e
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 1
mov ecx, dword [ebp - 4]
call fcn.100484b0
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x1007
push 0xffff
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
jne 0x1004712b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.Failed_to_get_socket_option
push 0x100f7004
push eax
lea ecx, [ebp - 0x28]
call fcn.10045920
push 0x100f6294
lea edx, [ebp - 0x28]
push edx
call fcn.1005078a
nop
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1004715c
push str.Failed_to_connect
push 0x100f7004
mov ecx, dword [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.10045920
push 0x100f6294
lea edx, [ebp - 0x3c]
push edx
call fcn.1005078a
nop
jmp 0x10047186
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.Failed_to_connect
push 0x100f7004
push eax
lea ecx, [ebp - 0x50]
call fcn.10045920
push 0x100f6294
lea eax, [ebp - 0x50]
push eax
call fcn.1005078a
nop
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10049bf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10049c5a
cmp dword [ebp - 4], 1
je 0x10049c0d
jmp 0x10049caa
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
nop
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.10043510
add esp, 8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, 0x1010a4e4
call fcn.10040a20
lea ecx, [ebp - 0xc]
call fcn.10045b20
nop
push 0
push 0
push 0
push 0x1003f0f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
jmp 0x10049caa
mov byte [0x100f700c], 0
push 0
mov ecx, 0x1010a4e4
call fcn.10048470
nop
cmp dword [0x1010a4e8], 0
je 0x10049c86
mov edx, dword [0x1010a4e8]
push edx
call fcn.1005484f
add esp, 4
cmp dword [0x1010a4ec], 0
je 0x10049c9d
mov eax, dword [0x1010a4ec]
push eax
call fcn.1005484f
add esp, 4
push str._nMyhome_test456
call fcn.100058f0
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1004e629
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x1004e64a
jl 0x1004e641
test edi, edi
jne 0x1004e64a
xor eax, eax
xor edx, edx
jmp 0x1004e70b
cmp dword [ebx + 0x38], 0
je 0x1004e65f
push eax
push edi
push dword [ebp + 8]
call fcn.1004e711
jmp 0x1004e70b
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1004e6a6
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x1004e6a6
cmp eax, edi
jb 0x1004e680
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.10050bb0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x1004e6ac
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x1004e700
mov ecx, ebx
call fcn.1004dec2
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x1004e6eb
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1005aedd
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x1004e700
jmp 0x1004e6be
test edx, edx
je 0x1004e700
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1005aedd
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc