joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000be25
Capabilities:
Modify service
Query service configuration
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
xor esi, esi
push edi
push esi
lea eax, [ebp - 0x3c]
push 0x28
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1000bf4d
mov edi, 0x400
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x1000bf1c
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x1000bf1c
lea ecx, [ebp - 0x38]
push 0xf01ff
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
cmp ebx, esi
je 0x1000bf1f
lea eax, [ebp - 0xc]
push eax
push edi
mov edi, dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x1000bf1f
cmp dword [edi + 4], 2
mov edi, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
je 0x1000bece
cmp dword [ebp - 0x3c], 1
jne 0x1000bece
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push ebx
call edi
test eax, eax
jne 0x1000bf13
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 3
je 0x1000bef1
cmp dword [ebp - 0x3c], 2
jne 0x1000bef1
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push ebx
call edi
test eax, eax
jne 0x1000bf13
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 4
je 0x1000bf1f
cmp dword [ebp - 0x3c], esi
jne 0x1000bf1f
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push ebx
call edi
test eax, eax
je 0x1000bf1f
mov dword [ebp - 0x14], 0xc6
jmp 0x1000bf2f
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], 0xc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 0x14]
push 8
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000c183
Capabilities:
Create service
Modify service
Persist via windows service
Receive data
Receive data on socket
Send data
Send data on socket
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
push ebx
push esi
xor esi, esi
push edi
push esi
lea eax, [ebp - 0x358]
push 0x350
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1000c24c
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, esi
je 0x1000c226
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x1e0]
push esi
push eax
push 1
push 2
lea eax, [ebp - 0x320]
push dword [ebp - 0x354]
push 0xf01ff
push eax
lea eax, [ebp - 0x340]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
cmp edi, esi
je 0x1000c21b
lea eax, [ebp - 0x2e0]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 8], 0xc6
jmp 0x1000c230
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1000c229
mov edi, dword [ebp + 8]
mov dword [ebp - 8], 0xc7
push esi
lea eax, [ebp - 8]
push 8
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000c3ba
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push ebx
push eax
xor ebx, ebx
push 0xf003f
push ebx
push 0x10094a18
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000c3ec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000c466
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x13]
mov byte [ebp - 0x14], bl
mov esi, 0x10094a0c
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
mov dword [ebp - 8], 8
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000c436
cmp byte [ebp - 0x14], 1
jne 0x1000c436
cmp byte [ebp - 0x13], bl
jne 0x1000c436
cmp byte [ebp - 0x12], bl
jne 0x1000c436
cmp byte [ebp - 0x11], bl
je 0x1000c45b
push 4
mov byte [ebp - 0x14], 1
pop eax
mov byte [ebp - 0x13], bl
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 0x12], bl
push eax
push 3
push ebx
push esi
push dword [ebp - 4]
mov byte [ebp - 0x11], bl
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000c469
Capabilities:
Get common file path
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push esi
lea eax, [ebp - 0x18]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
and byte [ebp - 0x11c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x11b]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x11c]
push 0x10094a48
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x11c]
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000c511
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret

Function at 0x1000c564
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x403]
mov byte [ebp - 0x404], bl
push 0xf003f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1000c5b3
lea eax, [ebp - 0x404]
push 0x10094ac0
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
pop ecx
pop ecx
jmp 0x1000c629
push esi
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
je 0x1000c602
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
push edi
je 0x1000c5f9
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0x10094aa0
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
jmp 0x1000c616
call esi
push 0x10094a74
jmp 0x1000c607
push 0x10094a4c
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
pop ecx
pop ecx
lea eax, [ebp - 0x404]
push eax
call fcn.10003592
pop ecx
push dword [ebp - 4]
call esi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x1000c62d
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
and byte [ebp - 0x424], 0
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x423]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xf003f
push 0
push 0
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000c682
lea eax, [ebp - 0x424]
push 0x10094ac0
push eax
call esi
pop ecx
or edi, 0xffffffff
pop ecx
jmp 0x1000c685
mov edi, dword [ebp + 8]
push 0xf01ff
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
mov dword [ebp - 8], eax
je 0x1000c704
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x20], 4
je 0x1000c6d2
cmp dword [ebp - 0x20], 7
je 0x1000c6d2
cmp dword [ebp - 0x20], 1
jne 0x1000c717
push dword [ebp + 8]
lea eax, [ebp - 0x424]
push 0x10094b48
push eax
call esi
add esp, 0xc
xor edi, edi
jmp 0x1000c717
lea eax, [ebp - 0x24]
push eax
push 1
pop edi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1000c6fd
push dword [ebp + 8]
lea eax, [ebp - 0x424]
push 0x10094b28
push eax
call esi
add esp, 0xc
jmp 0x1000c717
push 0x10094afc
jmp 0x1000c709
push 0x10094ad4
lea eax, [ebp - 0x424]
push eax
call esi
pop ecx
or edi, 0xffffffff
pop ecx
lea eax, [ebp - 0x424]
push eax
call fcn.10003592
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ecx
push dword [ebp - 8]
call esi
push dword [ebp - 4]
call esi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1000c73a
Capabilities:
Modify service
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x40f]
mov byte [ebp - 0x410], bl
rep stosd dword es:[edi], eax
push dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x410]
push 0x10094c78
push eax
call esi
add esp, 0xc
mov edi, 0x400
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1000c796
push 0x10094c60
jmp 0x1000c7af
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x1000c7bf
push 0x10094ac0
lea eax, [ebp - 0x410]
push eax
call esi
pop ecx
pop ecx
jmp 0x1000c8e5
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1000c8b6
lea ecx, [ebp - 0x10]
push ecx
push edi
mov edi, dword [ebp - 4]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x1000c7fd
lea eax, [ebp - 0x410]
push 0x10094c38
push eax
call esi
pop ecx
pop ecx
cmp dword [edi + 4], 2
mov edi, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
je 0x1000c840
cmp dword [ebp + 0xc], 2
jne 0x1000c840
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push dword [ebp - 8]
call edi
push dword [ebp + 8]
test eax, eax
jne 0x1000c82f
push 0x10094c14
jmp 0x1000c834
push 0x10094bec
lea eax, [ebp - 0x410]
push eax
call esi
add esp, 0xc
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 3
je 0x1000c880
cmp dword [ebp + 0xc], 3
jne 0x1000c880
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push dword [ebp - 8]
call edi
push dword [ebp + 8]
test eax, eax
jne 0x1000c86f
push 0x10094c14
jmp 0x1000c874
push 0x10094bc4
lea eax, [ebp - 0x410]
push eax
call esi
add esp, 0xc
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 4
je 0x1000c8ca
cmp dword [ebp + 0xc], 4
jne 0x1000c8ca
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push dword [ebp - 8]
call edi
push dword [ebp + 8]
test eax, eax
jne 0x1000c8af
push 0x10094c14
jmp 0x1000c8be
push 0x10094ba0
jmp 0x1000c8be
push dword [ebp + 8]
push 0x10094b70
lea eax, [ebp - 0x410]
push eax
call esi
add esp, 0xc
cmp dword [ebp + 0x10], ebx
je 0x1000c8dc
lea eax, [ebp - 0x410]
push eax
call fcn.10003592
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000c8ea
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
and byte [ebp - 0x408], 0
push ebx
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x407]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push 0x10094c78
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x408]
push eax
call esi
add esp, 0xc
mov edi, 0x400
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1000c944
push 0x10094c60
jmp 0x1000c95f
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [ebp - 4], eax
jne 0x1000c96c
push 0x10094ac0
lea eax, [ebp - 0x408]
push eax
call esi
pop ecx
pop ecx
jmp 0x1000c9da
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x1000c9b0
lea ecx, [ebp - 8]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x1000c9a0
lea eax, [ebp - 0x408]
push 0x10094c38
push eax
call esi
pop ecx
pop ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0xc]
push eax
push 0x10094cd8
mov dword [ecx], eax
jmp 0x1000c9b8
push dword [ebp + 8]
push 0x10094ca0
lea eax, [ebp - 0x408]
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
call fcn.10003592
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000ca56
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
push ebx
push edi
push 0x1f40
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x40
xor ebx, ebx
pop edx
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x513]
mov byte [ebp - 0x514], bl
mov byte [ebp - 0x30c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x30b]
mov byte [ebp - 0x208], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x207]
mov byte [ebp - 0x410], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40f]
mov byte [ebp - 0x104], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x104
lea eax, [ebp - 0x30c]
push edi
push eax
push dword [section.xdoors_d]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1000cc02
lea eax, [ebp - 0x30c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x1000cb13
inc eax
jmp 0x1000cb19
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x208]
push 0x10093664
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x104]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x104]
push 0x10094a48
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x104]
push 0x10094cfc
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x18
lea eax, [ebp - 0x514]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.10003c0d
lea eax, [ebp - 0x514]
push 0x10094468
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 0x14
test eax, eax
jne 0x1000cc02
lea eax, [ebp - 0x208]
push eax
call fcn.100053f9
push eax
lea eax, [ebp - 0x410]
push 0x10093664
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x1000cbf5
lea eax, [ebp - 0x208]
push 0x10094cf4
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
jne 0x1000cc02
lea eax, [ebp - 0x410]
push eax
call fcn.1000c62d
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x1000cf30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
mov ebx, dword [sym.imp.MSVCRT.dll_strncpy]
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x100
push esi
lea eax, [ebp - 0x100]
push dword [edi]
push eax
call ebx
push esi
lea eax, [ebp - 0x100]
push dword [edi]
push eax
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0x18
lea eax, [ebp - 0x100]
push 0x1000c9df
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
test eax, eax
mov dword [0x1008e5a4], eax
je 0x1000d027
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 1
push 0
push 2
call fcn.1000c51c
push 0
push 0
push 4
call fcn.1000c51c
add esp, 0x18
cmp dword [ebp + 8], 1
jle 0x1000cfce
push esi
lea eax, [ebp - 0x100]
push dword [edi + 4]
push eax
call ebx
push esi
lea eax, [ebp - 0x100]
push dword [edi + 4]
push eax
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0x18
xor esi, esi
cmp dword [0x10093298], esi
jne 0x1000d000
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.1000569d
pop ecx
cmp eax, 1
pop ecx
jne 0x1000cff5
cmp dword [ebp + 0xc], 2
jbe 0x1000cffa
call fcn.1000ca56
inc dword [0x10093298]
push esi
push esi
push esi
push 0x1000cc06
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1008e1a0]
cmp eax, 3
je 0x1000d027
cmp eax, 1
jne 0x1000d010
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1000d02e
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
dec eax
jne 0x1000d107
mov eax, dword [esp + 4]
push ebx
mov dword [section.xdoors_d], eax
mov eax, dword [str._This_is_RUR_]
push esi
add eax, 0xd
push edi
push eax
call sub.MSVCRT.dll_strlen
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.MSVCRT.dll__strnicmp]
xor edi, edi
pop ecx
test eax, eax
je 0x1000d089
mov eax, dword [str._This_is_RUR_]
push 7
add eax, 0xd
push 0x10093958
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x1000d089
push edi
push edi
push edi
push 0x10001074
jmp 0x1000d0bd
mov eax, dword [str._This_is_RUR_]
add eax, 0xd
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x1000d0c6
mov eax, dword [str._This_is_RUR_]
push 6
add eax, 0xd
push 0x1009394c
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x1000d0c6
push edi
push edi
push edi
push 0x10001365
push edi
push edi
call ebx
mov dword [0x10093004], eax
mov eax, dword [str._This_is_RIP_]
mov esi, dword [sym.imp.MSVCRT.dll_strncpy]
add eax, 0xd
push 0x10
push eax
push 0x1008e5d8
call esi
mov eax, dword [str._This_is_RPO_80]
push 5
add eax, 0xd
push eax
push 0x1008e5e8
call esi
add esp, 0x18
push edi
push edi
push edi
push 0x10001656
push edi
push edi
call ebx
pop edi
pop esi
mov dword [0x10093008], eax
pop ebx
push 1
pop eax
ret 0xc
Function at 0x1000d10d
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
push ebx
push esi
push edi
xor esi, esi
push dword [ebp + 8]
push esi
push 0x42a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, 0x100
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x100]
push esi
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x18
lea ebx, [eax + eax + 2]
lea eax, [ebp - 0x300]
push edi
push eax
lea eax, [ebp - 0x100]
push 0xffffffffffffffff
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 4
push 0x1000
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
push esi
lea eax, [ebp - 0x300]
push ebx
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0x10094d60
push 0x10094d54
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push esi
push edi
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
neg eax
leave
ret

Function at 0x1000d1d3
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
mov ecx, 0x88
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x220]
mov dword [ebp - 0x224], 0x224
rep stosd dword es:[edi], eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
test edi, edi
je 0x1000d217
lea eax, [ebp - 0x224]
push eax
push edi
call sub.KERNEL32.dll_Module32First
test eax, eax
jne 0x1000d21b
xor eax, eax
jmp 0x1000d263
push esi
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x1000d266
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x1000d266
lea eax, [ebp - 0x224]
push eax
push edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x1000d222
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
leave
ret
push 1
pop esi
jmp 0x1000d259
Function at 0x1000d26b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
xor esi, esi
push edi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000d297
push 0x10093a7c
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
xor eax, eax
jmp 0x1000d2f5
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000d2ec
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x1000d2dd
push dword [ebp + 0xc]
mov esi, dword [ebp - 0x120]
push esi
call fcn.1000d1d3
pop ecx
test eax, eax
pop ecx
jne 0x1000d2ec
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
jmp 0x1000d2ae
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x1000d2f9
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000d325
push 0x10093a7c
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
jmp 0x1000d3a5
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x1000d349
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000d3a5
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x1000d374
push dword [ebp + 0xc]
mov esi, dword [ebp - 0x120]
push esi
call fcn.1000d1d3
pop ecx
test eax, eax
pop ecx
jne 0x1000d387
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1000d3a9
jmp 0x1000d349
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0
je 0x1000d3a5
push esi
push dword [ebp + 0xc]
push 0x10094d9c
call fcn.10003592
add esp, 0xc
xor eax, eax
jmp 0x1000d3cc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0
je 0x1000d3c9
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x10094d70
call fcn.10003592
add esp, 0xc
push 1
pop eax
pop edi
pop esi
leave
ret