joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001af4
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023bb3
mov eax, dword fs:[0]
push eax
mov eax, 0x1008
call fcn.10010da0
push esi
push edi
mov eax, dword [0x1002eab0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.10002cee
push eax
lea ecx, [ebp - 0x14]
call fcn.10001be0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x10001b6c
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.1000184a
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret
mov esi, dword [ebp - 0x10]
shr esi, 2
xor edi, edi
test esi, esi
jbe 0x10001b8a
push dword [ebp + edi*4 - 0x1014]
call fcn.10001864
inc edi
pop ecx
cmp edi, esi
jb 0x10001b78
and dword [0x10034ff4], 0
xor esi, esi
jmp 0x10001b50

Function at 0x10002008
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.send
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10034fd0], eax
add eax, 5
mov dword [0x10034fc8], eax
lea eax, [esp]
push eax
push 0x40
push 0x64
push dword [0x10034fd0]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000205f
mov eax, dword [0x10034fd0]
mov ecx, 0x10002061
sub ecx, eax
sub ecx, 5
mov dword [eax + 1], ecx
mov eax, dword [0x10034fd0]
mov byte [eax], 0xe9
pop ecx
ret

Function at 0x100024d4
Capabilities:
Check os version
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
mov eax, dword [0x1002eab0]
xor eax, ebp
mov dword [ebp + 0x74], eax
call fcn.10002cee
push eax
lea ecx, [ebp - 0x24]
call fcn.10001be0
push 0x94
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.10010110
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x1c], 5
ja 0x10002529
jne 0x10002543
cmp dword [ebp - 0x18], 1
jb 0x10002543
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.1000184a
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.1000ce7f
add ebp, 0x78
leave
ret
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1000254c
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
xor ebx, ebx
cmp byte [0x1003507c], bl
jne 0x1000260f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x10035000
push ebx
push ebx
push 0x100024b5
push ebx
push ebx
call esi
mov dword [0x10034ffc], eax
mov byte [0x10034fec], 1
mov byte [0x10034fed], bl
mov byte [0x10034fee], 1
mov byte [0x10034fef], bl
mov byte [0x10034ff0], bl
mov byte [0x10034ff1], bl
mov dword [0x10034ff4], ebx
call fcn.100024d4
call fcn.10002008
push 0x1003500c
push ebx
push ebx
push 0x100023c2
push ebx
push ebx
call esi
push 0x10034fe4
push ebx
push ebx
push 0x100022ee
push ebx
push ebx
mov dword [0x10035008], eax
call esi
mov dword [0x10034fe8], eax
lea eax, [esp + 8]
push eax
push ebx
push ebx
push 0x10002211
push ebx
push ebx
call esi
push 0x10034ff8
push ebx
push ebx
push 0x100024a3
push ebx
push ebx
mov dword [0x10034fe0], eax
call esi
mov dword [0x10035004], eax
call fcn.10002c31
mov byte [0x1003507c], 1
pop esi
xor eax, eax
inc eax
pop ebx
pop ecx
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
push esi
push edi
mov dword [ebp - 8], eax
mov esi, dword [ebx + 0x18]
mov eax, dword [ebx + 4]
xor edi, edi
cmp dword [ebp - 8], edi
je 0x1000272f
cmp dword [ebp - 8], eax
je 0x10002734
call fcn.1000d9c4
cmp dword [ebp - 4], esi
je 0x10002805
lea esi, [ebp - 8]
call fcn.10002ad9
push dword [eax + 8]
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, 0xffffffff
je 0x10002761
push eax
call fcn.100028d0
jmp 0x10002771
push 0xffffffffffffffff
mov dword [0x100350e4], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
test al, al
jne 0x10002782
lea edi, [ebp - 0x10]
lea esi, [ebp - 8]
call fcn.10002b04
jmp 0x1000271d
push 0x64
push edi
mov ebx, 0x10035010
push ebx
call fcn.10010110
mov esi, str.MemoryProcess
mov edi, 0x10035010
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
xor edi, edi
jmp 0x100027b0
push 0x64
call esi
cmp dword [0x10033f9c], edi
jbe 0x100027ac
push edi
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0x64
push ebx
push dword [0x10033f9c]
call edi
push 0x7d0
call esi
push 0
push 0x64
push ebx
push dword [0x10033fa4]
call edi
push 0x7d0
call esi
push dword [0x10033f9c]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
push str.Pinkof_AntiHack
push str.Hack_Detected
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000280a
Capabilities:
Enumerate processes

Disassembly:
push 0x174
mov eax, 0x10023b83
call fcn.1000e433
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10002881
lea eax, [ebp - 0x13c]
push eax
push ebx
mov dword [ebp - 0x13c], 0x128
call sub.KERNEL32.dll_Process32First
jmp 0x1000287d
mov esi, dword [edi + 0x18]
lea eax, [ebp - 0x13c]
push eax
push dword [esi + 4]
push esi
call fcn.10002b7c
mov ecx, dword [edi + 0x1c]
mov edx, 0xdd67c8
sub edx, ecx
cmp edx, 1
jb 0x1000288e
inc ecx
mov dword [edi + 0x1c], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea eax, [ebp - 0x13c]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10002842
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1000e4b6
ret
push str.list_T__too_long
lea ecx, [ebp - 0x180]
call fcn.100013bf
and dword [ebp - 4], 0
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0x164]
call fcn.10002617
push 0x1002c130
lea eax, [ebp - 0x164]
push eax
mov dword [ebp - method.std::length_error.virtual_0], vtable.std::length_error.0
call fcn.1000e4d4
int3

Function at 0x10002bcd
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, 0xbb8
push ebp
mov dword [0x10035074], eax
call ebx
call esi
sub eax, dword [0x10035074]
cmp eax, 0x1388
jbe 0x10002c24
mov esi, dword [sym.imp.WS2_32.dll_send]
push edi
push 0
push 0xf
mov edi, str.SPEED_HACK
push edi
push dword [0x10033f9c]
call esi
push ebp
call ebx
push 0
push 0xf
push edi
push dword [0x10033fa4]
call esi
pop edi
and dword [0x10035074], 0
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x10002c31
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.10010110
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push str.Splash_Splash.exe
mov dword [ebp - 0x54], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
je 0x10002c7c
mov al, 1
leave
ret
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1000ce7f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002eab0]
jne 0x1000ce89
repz ret
jmp fcn.10010dcb
Function at 0x1001d1e0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10013ccc
and dword [ebp - 4], 0
cmp dword [0x10033d70], 0
mov ebx, eax
jne 0x1001d291
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001d342
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10028bac
push edi
call esi
test eax, eax
je 0x1001d342
push eax
call fcn.10013c5a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10033d70], eax
call esi
push eax
call fcn.10013c5a
mov dword [esp], 0x10028b88
push edi
mov dword [0x10033d74], eax
call esi
push eax
call fcn.10013c5a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10033d78], eax
call esi
push eax
call fcn.10013c5a
pop ecx
mov dword [0x10033d80], eax
test eax, eax
je 0x1001d291
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10013c5a
pop ecx
mov dword [0x10033d7c], eax
mov eax, dword [0x10033d7c]
cmp eax, ebx
je 0x1001d2e9
cmp dword [0x10033d80], ebx
je 0x1001d2e9
push eax
call fcn.10013cd5
push dword [0x10033d80]
mov esi, eax
call fcn.10013cd5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001d2e9
test edi, edi
je 0x1001d2e9
call esi
test eax, eax
je 0x1001d2e0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001d2e0
test byte [ebp - 0xc], 1
jne 0x1001d2e9
or dword [ebp + 0x10], 0x200000
jmp 0x1001d322
mov eax, dword [0x10033d74]
cmp eax, ebx
je 0x1001d322
push eax
call fcn.10013cd5
pop ecx
test eax, eax
je 0x1001d322
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001d322
mov eax, dword [0x10033d78]
cmp eax, ebx
je 0x1001d322
push eax
call fcn.10013cd5
pop ecx
test eax, eax
je 0x1001d322
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10033d70]
call fcn.10013cd5
pop ecx
test eax, eax
je 0x1001d342
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001d344
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408e3c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x408f2b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00406b50
mov edx, dword [ebp - 8]
mov ecx, 0x408f44
xor eax, eax
call fcn.00408d30
push 0
mov eax, dword [ebp - 4]
call fcn.004034b8
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x408ef9
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x408e5c
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.004089c8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404c50
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00407044
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x60
call fcn.00408998
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x40461c
call fcn.0040584c
call fcn.00402eb4
jmp 0x408e5c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f32
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004031b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004031b8
ret

Function at 0x408f74
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
cmp dword [0x40a07c], 2
jne 0x408fe1
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x408f99
call fcn.00408f54
jmp 0x408ff3
lea eax, [esp + 8]
push eax
push 0x408ff8
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x408fe1
call fcn.00408f54
jmp 0x408ff3
push 0
push 2
call sub.user32.dll_ExitWindowsEx
test eax, eax
jne 0x408ff3
call fcn.00408f54
add esp, 0x14
ret

Function at 0x40900c
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, eax
mov esi, edx
dec esi
test esi, esi
jl 0x409069
inc esi
xor ebx, ebx
cmp ebx, 1
jne 0x409032
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_Sleep
jmp 0x409040
cmp ebx, 1
jle 0x409040
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov eax, edi
call fcn.004034b8
push eax
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0x409069
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x409069
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x409069
inc ebx
dec esi
jne 0x409022
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x409428
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
lea ebx, [ebp - 0x78]
xor eax, eax
push ebp
push 0x409518
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409530
push esi
push 0x40953c
push edi
lea eax, [ebp - 8]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004034b8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4094ac
mov al, 0x62
call fcn.00409074
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x4094c3
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x4094b7
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x4094c3
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40951f
lea eax, [ebp - 8]
call fcn.00403198
ret

Function at 0x4095d0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409684
jmp 0x409679
cmp dword [esi + 0x10], 0x1000
jne 0x409665
test byte [esi + 0x15], 1
jne 0x409665
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409624
cmp eax, 2
je 0x409624
cmp eax, 0x10
je 0x409624
cmp eax, 0x20
jne 0x409639
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409639
mov bl, 1
xor ebp, ebp
jmp 0x40964a
mov eax, dword [esi]
add eax, ebp
call fcn.004095c8
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40963d
test bl, bl
je 0x409665
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409684
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4095fc
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10004098
Capabilities:
Inspect section memory permissions

Disassembly:
jmp 0x100969a4
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
ret
je 0x10096c15
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x100969cb
cmp dword [eax + 0xc], ebx
je 0x10096a6e
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.10096426
movsd dword es:[edi], dword ds:[esi]
cmp ebx, dword [eax + 0x750c5d39]
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
call fcn.10096426
invalid
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004912
Capabilities:
Query environment variable

Disassembly:
jmp 0x1008643e
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10086452
xor edi, edi
jmp 0x10086489
push ebx
push esi
call fcn.10086347
sub eax, esi
sar eax, 1
lea ebx, [eax + eax]
push ebx
call fcn.1000419c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10086479
push ebx
push esi
push edi
call fcn.10002135
add esp, 0xc
push 0
call fcn.10002815
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x100264a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x100bdbe8]
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 0x100264fb
mov ecx, dword [ebp - 0x194]
mov eax, ecx
shr eax, 8
movzx edx, al
movzx eax, cl
lea eax, [eax + eax*4]
lea eax, [edx + eax*2]
cmp eax, 0x16
jge 0x100264fb
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003f44
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.10003f44
mov esp, ebp
pop ebp
ret
Function at 0x1001360
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001384
or eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
xor eax, eax
push 0x10
mov dword [ebp - 0xe], eax
lea edx, [ebp - 0x10]
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov word [ebp - 2], ax
mov ax, word [ebp + 0xc]
push edx
push esi
mov word [ebp - 0x10], 2
mov word [ebp - 0xe], ax
mov dword [ebp - 0xc], ecx
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x10013d7
push edi
call sub.WSOCK32.dll_WSAGetLastError
push esi
mov edi, eax
call sub.WSOCK32.dll_closesocket
push edi
call sub.WSOCK32.dll_WSASetLastError
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10013f0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1001403
or eax, 0xffffffff
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 0xc]
test bx, bx
jne 0x1001414
or eax, 0xffffffff
pop ebx
pop ebp
ret 8
push esi
push edi
push eax
call fcn.010012e0
mov esi, eax
push esi
call sub.WSOCK32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x100144f
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x1001448
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
or eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edi, dword [ecx]
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
push ebx
push edi
call fcn.01001360
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10015e0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
test ebx, ebx
mov esi, ecx
mov byte [ebp - 1], 1
mov dword [ebp + 0xc], eax
jbe 0x100166a
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x1001632
mov ecx, dword [ebp + 0xc]
xor eax, eax
push esi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp + 8]
mov eax, ebx
sub eax, edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100163f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1001666
mov ecx, dword [ebp + 8]
push 1
lea eax, [ebp + 0x10]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1001666
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100166a
add dword [ebp + 0xc], eax
add edi, eax
cmp edi, ebx
jb 0x1001600
jmp 0x100166a
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
xor edx, edx
cmp edi, ebx
setne dl
test al, dl
je 0x1001680
push 0x26
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001690
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
test ebx, ebx
mov esi, ecx
mov dword [ebp + 0xc], eax
jbe 0x1001714
lea ebx, [ebx]
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x10016e2
mov ecx, dword [ebp + 0xc]
xor eax, eax
push esi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 8]
mov eax, ebx
sub eax, edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10016ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1001714
mov ecx, dword [ebp + 8]
push 1
lea eax, [ebp + 0x10]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1001714
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1001714
add dword [ebp + 0xc], eax
add edi, eax
cmp edi, ebx
jb 0x10016b0
xor eax, eax
cmp edi, ebx
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0xc