joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004b60
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
push ebx
push esi
push edi
mov esi, 0x4000
push esi
call fcn.1001709f
push esi
mov ebx, eax
push 0
push ebx
call fcn.1001ec90
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.100076c7
lea eax, [ebp - 0x10]
push eax
call fcn.100076e0
mov edi, eax
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.100078b6
lea eax, [ebp - 0x10]
push 0x200000
push eax
call fcn.1000139d
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.100013ed
push esi
push 0x1002f5a0
push ebx
call fcn.100184e8
add esp, 0x44
test eax, eax
jne 0x10004bea
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 2
push 0x1002f5a4
push esi
push ebx
call fcn.100177e5
add esp, 0x10
push ebx
lea eax, [ebp - 0x10]
push 0x1002f510
push eax
call fcn.100014f7
add esp, 0xc
lea eax, [ebp - 0x170]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10004c53
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x34
call fcn.10002270
add esp, 0xc
push 0x16
lea eax, [ebp - 0x10]
call fcn.10001559
push eax
lea eax, [ebp - 0x10]
call fcn.10001556
push eax
call fcn.100012c1
push ebx
call fcn.10016fc2
lea eax, [ebp - 0x10]
push eax
call fcn.10001536
add esp, 0x14
jmp 0x10004d42
push ebx
call fcn.10016fc2
pop ecx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test byte [ebp - 0x170], 0x10
je 0x10004cbc
lea eax, [ebp - 0x144]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
lea eax, [ebp - 0x10]
push str.D_t0_t_02d__02d__02d__02d:_02d:_02d_t_s_n
push eax
call fcn.100014f7
add esp, 0x24
jmp 0x10004d00
mov ecx, dword [ebp - 0x154]
lea edx, [ebp - 0x144]
push edx
movzx edx, word [ebp - 0x14]
push edx
movzx edx, word [ebp - 0x16]
mov eax, dword [ebp - 0x150]
push edx
movzx edx, word [ebp - 0x18]
push edx
movzx edx, word [ebp - 0x20]
push edx
movzx edx, word [ebp - 0x1a]
push edx
movzx edx, word [ebp - 0x1e]
push edx
push ecx
push eax
lea eax, [ebp - 0x10]
push str.F_t_I64d_t_02d__02d__02d__02d:_02d:_02d_t_s_n
push eax
call fcn.100014f7
add esp, 0x2c
lea eax, [ebp - 0x170]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10004c5a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x16
lea eax, [ebp - 0x10]
call fcn.10001559
push eax
lea eax, [ebp - 0x10]
call fcn.10001556
push eax
call fcn.100012c1
lea eax, [ebp - 0x10]
push eax
call fcn.10001536
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004d47
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push edi
push 0
push 0
push dword [ebp + 8]
call esi
mov edi, eax
test edi, edi
jne 0x10004d65
xor eax, eax
jmp 0x10004d86
lea eax, [edi + 1]
cmp eax, dword [ebp + 0x10]
jae 0x10004d61
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call fcn.1001ec90
add esp, 0xc
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebp
ret

Function at 0x10004de9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [0x1003e004], edi
je 0x10004e06
xor eax, eax
jmp 0x10004f22
push dword [0x10036194]
xor esi, esi
inc esi
mov dword [0x1003e004], esi
call sub.WS2_32.dll_ntohl
lea edx, [eax + 8]
mov dword [ebp - 8], edx
cmp edx, 0x4000
jbe 0x10004e32
push 0x51
call fcn.100022a5
pop ecx
jmp 0x10004dff
push 8
pop ecx
cmp edx, ecx
jbe 0x10004e4f
mov ebx, ecx
and ebx, 3
mov bl, byte [ebx + 0x10036190]
xor byte [ecx + 0x10036190], bl
inc ecx
cmp ecx, edx
jb 0x10004e39
push esi
push eax
push 0x10036198
lea esi, [ebp - 0x68]
call fcn.10001aba
add esp, 0xc
test eax, eax
jne 0x10004e72
push 0x51
call fcn.100022a5
pop ecx
jmp 0x10004f00
lea ebx, [ebp - 0x68]
call fcn.10001e9f
test eax, eax
jne 0x10004e89
push dword [ebp - 0x1c]
call fcn.10004dd4
pop ecx
jmp 0x10004e65
push dword [ebp - 0x30]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x68]
push edi
push dword [ebp - 0x34]
mov dword [ebp - 4], esi
mov dword [0x1003e014], eax
call fcn.1001ec90
mov ebx, dword [ebp - 0x60]
add esp, 0xc
push esi
push edi
push 0x20
lea esi, [ebp - 0xc]
pop edi
call fcn.1000bd8d
pop ecx
pop ecx
test eax, eax
jne 0x10004edb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x52
call fcn.10002242
push dword [ebp - 4]
call fcn.10004dd4
add esp, 0xc
and dword [ebp - 4], 0
jmp 0x10004f00
mov eax, dword [ebp - 0x14]
push fcn.10004dd4
push 0
mov dword [0x1003e008], eax
mov eax, dword [ebp - 0x18]
push 3
push eax
push dword [ebp - 4]
mov dword [0x1003e00c], eax
call fcn.1000d3e1
add esp, 0x14
push 8
pop eax
cmp dword [ebp - 8], eax
jbe 0x10004f1f
mov ecx, eax
and ecx, 3
mov cl, byte [ecx + 0x10036190]
xor byte [eax + 0x10036190], cl
inc eax
cmp eax, dword [ebp - 8]
jb 0x10004f08
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005525
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
push edi
push dword [ebp + 0x2c]
call fcn.1000c878
pop ecx
push 0x44
pop esi
push esi
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.1001ec90
and dword [ebp - 0x10], 0
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 0x100000
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
and dword [ebp - 0x38], 0
xor eax, eax
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0x2c]
mov dword [ebp - 0x44], 0x101
push dword [ebp + 0x28]
call fcn.1000b7ec
add esp, 0x10
test eax, eax
jne 0x100055c6
push dword [ebp + 0x2c]
call fcn.1000c89a
pop ecx
jmp 0x10005632
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x20]
mov eax, dword [ebp - 0x1c]
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x24]
push dword [ebp + 0x10]
lea edx, [ebp - 0x24]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000597b
add esp, 0x14
cmp dword [ebp + 0xc], 0
jbe 0x10005601
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.10006775
pop ecx
pop ecx
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x34], eax
je 0x1000560c
or eax, 0xffffffff
push dword [ebp + 0x24]
lea esi, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10006363
push dword [ebp + 0x2c]
call fcn.1000c89a
add esp, 0x24
pop edi
pop esi
leave
ret
Function at 0x10005b7f
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
xor eax, eax
push 6
pop ecx
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
push str.NtQueueApcThread
xor esi, esi
push str.ntdll
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], 0x1c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0xc], eax
cmp eax, esi
je 0x10005ca6
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 8]
push dword [ebx]
call fcn.10005af8
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x10005ca6
push esi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp + 8], eax
cmp eax, esi
je 0x10005ca6
lea ecx, [ebp - 0x34]
push ecx
push eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10005ca6
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebx + 8]
jne 0x10005c47
push dword [ebp - 0x2c]
call fcn.1000c1a8
pop ecx
mov dword [ebp - 8], eax
cmp eax, esi
je 0x10005c47
push esi
push esi
push edi
lea ecx, [edi + 0x10]
push ecx
push eax
call dword [ebp + 0xc]
mov edx, dword [ebp - 8]
call fcn.1000c25b
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10005c1c
mov edx, dword [ebp + 8]
call fcn.1000c25b
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebx]
lea esi, [ebp - 4]
call fcn.1000c5b7
add esp, 0x10
test eax, eax
je 0x10005ca6
cmp dword [ebp - 4], 0x10
jne 0x10005ca6
cmp dword [ebp - 0xc], 0
jne 0x10005cac
push 0x10
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebx]
mov dword [ebp - 0xc], 1
call fcn.1000c648
add esp, 0x10
xor eax, eax
pop edi
pop esi
leave
ret
xor eax, eax
inc eax
jmp 0x10005ca8
Function at 0x100060dd
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push esi
push 0x90
xor esi, esi
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.1001ec90
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10006120
xor eax, eax
jmp 0x100061dc
cmp dword [ebp - 0x94], 5
jne 0x1000613c
cmp dword [ebp - 0x90], 2
jne 0x1000613c
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10006119
push ebx
push edi
push 0x4c
push esi
push 0x40
pop ebx
call fcn.1000bcce
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 4], edi
cmp edi, esi
je 0x100061b7
push 0x149
push esi
call fcn.1000bcce
mov ebx, eax
pop ecx
pop ecx
cmp ebx, esi
je 0x100061b7
mov eax, dword [ebp + 8]
push 0x13
pop ecx
push 0x4a
mov esi, 0x10036010
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x10036060
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 4]
lea esi, [ebx + 0x129]
and dword [esi + 0x18], 0
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
push esi
push ebx
mov dword [esi + 0x10], eax
call edi
test eax, eax
jne 0x100061a8
push 5
jmp 0x100061b1
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x100061bb
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100061da
push esi
call fcn.1000bfac
mov esi, 0x4000
push esi
call fcn.1000be40
push esi
mov edi, ebx
call fcn.1000be40
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000661f
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10006679
or eax, 0xffffffff
jmp 0x10006681
cmp dword [ebp - 4], 0x80000
jae 0x1000667e
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, 0x80000
sub eax, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
add dword [ebp + 0xc], eax
jmp 0x10006635
cmp dword [ebp - 8], esi
ja 0x1000664b
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x10006976
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx], 0
mov eax, 0x62964ee9
je 0x10006997
push esi
movzx edx, word [ecx]
mov esi, eax
movzx edx, dx
ror esi, 8
add esi, edx
inc ecx
xor eax, esi
cmp byte [ecx], 0
jne 0x10006981
pop esi
ret
Function at 0x10006e59
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
add edi, 0x3a98
call esi
cmp eax, edi
jae 0x10006ec9
xor eax, eax
push eax
push 0x100000
push 3
push eax
push eax
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10006ef5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x10006eb6
push 0x2710
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
jmp 0x10006ec1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, edi
jb 0x10006e78
jmp 0x10006ecc
mov ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
jne 0x10006ef5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x79
jne 0x10006ee7
push 4
call fcn.100022a5
jmp 0x10006ef2
call esi
push eax
push 0x14
call fcn.10002242
pop ecx
pop ecx
jmp 0x10006f56
push 0
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov dword [ebp - 8], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x10006f21
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x14
call fcn.10002242
pop ecx
pop ecx
jmp 0x10006f48
mov ecx, ebx
lea eax, [ebp - 0x2c]
call fcn.100070ca
sub esp, 0x20
push 8
pop ecx
mov esi, eax
mov edi, esp
push 0x1bd
rep movsd dword es:[edi], dword [esi]
call fcn.10006a97
add esp, 0x24
test eax, eax
jne 0x10006f56
push ebx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edx, ebx
call fcn.1000c25b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10006f6b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
xor esi, esi
test edi, edi
jle 0x10006fa5
push 0
lea eax, [ebp - 4]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10006fae
cmp dword [ebp - 4], 0
je 0x10006fae
add esi, dword [ebp - 4]
cmp esi, edi
jl 0x10006f7a
cmp esi, edi
jne 0x10006fae
mov eax, esi
pop esi
leave
ret
or eax, 0xffffffff
jmp 0x10006fab

Function at 0x10006fb3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
and dword [ebp - 4], esi
xor eax, eax
inc eax
cmp dword [ebp + 0x10], esi
jle 0x10006ffc
mov eax, dword [ebp + 0x10]
sub eax, esi
cmp eax, 0x2000
jle 0x10006fd6
mov eax, 0x2000
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10006ffa
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jl 0x10006fc5
jmp 0x10006ffc
xor eax, eax
pop esi
leave
ret
Function at 0x100070f7
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
add esi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
lea eax, [ebp - 8]
push eax
push 0x8004667e
push dword [ebp + 8]
mov dword [ebp - 8], 1
call ebx
cmp eax, 0xffffffff
jne 0x10007160
xor eax, eax
jmp 0x1000718f
push 2
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x10007171
jg 0x10007168
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10007171
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
cmp eax, esi
jb 0x10007134
jmp 0x10007175
mov dword [ebp + 0xc], 1
jmp 0x10007175
and dword [ebp + 0xc], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x8004667e
push dword [ebp + 8]
call ebx
inc eax
neg eax
sbb eax, eax
and eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
test edi, edi
jle 0x100071ed
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x100071f6
test eax, eax
je 0x100071ed
add esi, eax
cmp esi, edi
jl 0x100071c8
cmp esi, edi
jne 0x100071f6
mov eax, edi
pop esi
pop ebp
ret
or eax, 0xffffffff
jmp 0x100071f3

Function at 0x100072bf
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, fcn.100070c9
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 4], edi
mov dword [esi + 8], 0x100071fb
mov dword [esi + 0xc], 0x10007250
mov dword [esi + 0x10], 0x1000728d
mov dword [esi + 0x18], 0x100072aa
mov eax, esi
leave
ret
Function at 0x100073b7
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x494
call fcn.10007655
mov esi, 0x94
push esi
push eax
mov dword [ebp - 4], eax
call fcn.10007812
lea edi, [esi + 0x6c]
push edi
push dword [ebp - 4]
mov ebx, eax
call fcn.10007812
push edi
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call fcn.10007812
push edi
push dword [ebp - 4]
mov dword [ebp - 0x18], eax
call fcn.10007812
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
call fcn.10007812
add esp, 0x2c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
call fcn.100023c2
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1000745f
push 0x5c
push dword [ebp - 0x10]
call fcn.10018710
pop ecx
pop ecx
test eax, eax
je 0x1000745f
inc eax
mov dword [ebp - 0x10], eax
jne 0x10007466
mov dword [ebp - 0x10], 0x1002f69e
push ebx
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebx + 4]
mov esi, dword [ebp + 8]
mov dword [0x10041e2c], eax
movzx eax, al
push eax
call fcn.100020e2
movzx eax, byte [ebx + 8]
push eax
call fcn.100020e2
movzx eax, word [ebx + 0xc]
push eax
call fcn.100020c2
push 0
call fcn.100020a5
push dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call fcn.100020a5
push dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.100020a5
push dword [ebp - 0x1c]
call fcn.100020a5
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push str._s_t_s_t_s
push edi
push dword [ebp - 0xc]
call fcn.100173fb
mov eax, dword [ebp - 0xc]
add esp, 0x34
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100074dc
sub eax, ecx
cmp eax, 0x3a
jle 0x100074ed
push 0x3a
pop eax
push dword [ebp - 0xc]
mov ecx, eax
call fcn.100020f4
mov esi, dword [ebp - 4]
pop ecx
call fcn.100076a0
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
push edi
mov edi, eax
jle 0x1000796a
mov eax, dword [ebp + 0xc]
push 0
sub eax, esi
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
add edi, eax
add esi, eax
cmp eax, 0xffffffff
je 0x10007970
cmp esi, dword [ebp + 0xc]
jl 0x1000794a
mov eax, esi
pop edi
pop esi
pop ebp
ret
push 2
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [ebp + 8]
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
jmp 0x1000796c
Function at 0x10007a1f
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
inc esi
push edi
mov dword [ebp - 8], esi
call fcn.10002314
push 0
push esi
push 2
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x10007a49
mov eax, edi
jmp 0x10007a9f
push 2
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x18], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0x16], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, edi
jne 0x10007a7e
push esi
call sub.WS2_32.dll_closesocket
jmp 0x10007a45
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, edi
je 0x10007a76
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, edi
je 0x10007a76
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x10007b01
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
push edi
mov esi, ecx
mov edi, eax
mov eax, dword [esi]
push eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 4], eax
call sub.WS2_32.dll_ntohl
mov dword [ebp - 8], eax
movzx eax, word [esi + 4]
push eax
sub edi, 6
call sub.WS2_32.dll_ntohs
mov eax, 0x3ff
xor ebx, ebx
call fcn.10002314
push ebx
push 2
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x10007b68
push eax
call sub.WS2_32.dll_closesocket
push 4
lea eax, [ebp - 4]
push 4
push eax
call fcn.100012c1
add esp, 0xc
jmp 0x10007bab
push 2
pop eax
mov word [ebp - 0x1c], ax
xor eax, eax
mov word [ebp - 0x1a], ax
push 0x10
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x10007b8c
push esi
jmp 0x10007b51
lea eax, [ebp - 0xc]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push esi
cmp eax, 0xffffffff
je 0x10007b51
mov ebx, dword [ebp - 8]
call fcn.10007a04
pop ecx
pop edi
pop esi
pop ebx
leave
ret