joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010800
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x208
call fcn.100012ea
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ebx
jne 0x10010827
push 8
pop eax
jmp 0x100108f4
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
push ebx
push dword [ebp + 8]
mov edi, 0x104
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea esi, [edi - 1]
jmp 0x1001088a
cmp eax, ebx
jne 0x1001086d
push 0x10040710
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push eax
push 0x10040710
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x10010890
inc dword [ebp - 4]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], edi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
jne 0x1001084a
jmp 0x1001089b
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10010511
push edi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
push ebx
jmp 0x100108dd
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100108ca
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.10010800
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 4]
push edi
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, esi
jne 0x100108a5
push dword [ebp - 8]
call fcn.100012ff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10010a31
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x10010ab0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jne 0x10010a72
mov esi, 0xe8
jmp 0x10010ab8
lea eax, [esi + 1]
push eax
call fcn.100012ea
mov edi, eax
cmp edi, ebx
je 0x10010ab0
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10010ab0
cmp esi, dword [ebp - 4]
je 0x10010a9f
push 0x1e
pop esi
jmp 0x10010ab8
mov eax, dword [ebp + 0xc]
mov byte [esi + edi], bl
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor esi, esi
jmp 0x10010ab8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp + 8], 0xffffffff
je 0x10010ac7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x10010ad5
cmp esi, ebx
je 0x10010ad5
push edi
call fcn.100012ff
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10010b0f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
and al, 3
push ebx
neg al
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push 0
mov ebx, 0x80
push ebx
sbb eax, eax
and eax, 3
inc eax
push eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
push 0
shr eax, 8
push eax
mov edi, 0xc0000000
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], 0x1388
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x10010bb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp - 8], eax
jne 0x10010bb3
test byte [ebp + 0x14], 4
je 0x10010bb3
cmp dword [ebp - 0xc], 0
jle 0x10010bb3
push 0xc8
push dword [0x1003e270]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10010bac
sub dword [ebp - 0xc], 0xc8
xor eax, eax
push eax
push ebx
push dword [ebp - 0x10]
push eax
push eax
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x10010b5a
jmp 0x10010bb3
mov dword [ebp - 8], 0x5b4
cmp dword [ebp - 4], 0xffffffff
je 0x10010c08
test byte [ebp + 0x14], 2
je 0x10010bce
push 2
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10010bf6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
and dword [ebp - 8], 0
jmp 0x10010bff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10011151
Capabilities:
Delete file

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor edi, edi
call fcn.100109df
mov esi, eax
test esi, esi
je 0x1001117d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10011177
push esi
call fcn.10012a89
mov edi, eax
push esi
call fcn.100012ff
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x10011184
Capabilities:
Create directory

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor edi, edi
call fcn.100109df
mov esi, eax
cmp esi, edi
je 0x100111b3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100111ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.100012ff
jmp 0x100111b6
push 8
pop edi
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x100111bd
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
push edi
xor esi, esi
push esi
push esi
call ebx
mov edi, eax
test edi, edi
je 0x1001121f
lea eax, [edi + 0x1d]
push eax
call fcn.100012ea
mov esi, eax
test esi, esi
je 0x1001121f
push esi
push edi
call ebx
test eax, eax
je 0x10011217
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [esp + 0x14]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x10011217
push 0x1003f3dc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1001121f
push esi
call fcn.100012ff
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
cmp byte [0x1003e260], 6
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], 4
ja 0x100113d2
test esi, esi
je 0x100113d2
mov eax, dword [ebx + 0x18]
test dword [eax + 4], 0x80000000
jne 0x1001138b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp + 8], eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 8]
push esi
call edi
test eax, eax
mov dword [ebp - 8], eax
je 0x100113d1
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x20], esi
test dword [eax + 4], 0x80000000
jne 0x100113be
mov eax, dword [ebp + 8]
mov byte [eax + esi - 2], 0x7e
jmp 0x100113c4
or dword [esi], 0x40000000
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push esi
call edi
pop edi
mov eax, dword [ebp - 8]
pop ebx
leave
ret 4
Function at 0x100114e2
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x14
push 0x1003a818
call fcn.100373b0
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
push dword [ebp + 0xc]
call fcn.1001128a
test eax, eax
je 0x10011508
xor eax, eax
jmp 0x10011649
lea eax, [ebp - 0x20]
push eax
call fcn.100112b6
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x10011646
mov eax, dword [ebx + 0xc]
mov edi, dword [ebp - 0x20]
test eax, eax
jne 0x10011529
mov eax, dword [ebx + 8]
mov dword [edi + 0x14], eax
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
push dword [ebx + 4]
push dword [ebx]
push dword [ebp + 0xc]
call fcn.10013797
mov esi, eax
test esi, esi
jne 0x10011562
lea eax, [ebp + 8]
push eax
push dword [ebx + 4]
push dword [ebx]
mov eax, dword [ebp + 0xc]
call fcn.1001383d
mov esi, eax
test esi, esi
je 0x1001160f
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10011604
mov dword [edi + 0x18], ebx
cmp dword [ebx + 0x10], 0
jne 0x1001158d
mov eax, ebx
mov ecx, dword [esi]
mov dword [eax + 0x10], ecx
mov eax, dword [esi]
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
mov eax, dword [esi]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [ebp + 0x10]
test bx, 0x200
je 0x100115c2
push edi
mov esi, dword [ebp + 8]
call fcn.10011350
or ebx, 0x101
or dword [edi + 0x1c], ebx
mov esi, 0x1003e480
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1003e478]
mov dword [edi], eax
mov dword [edi + 4], 0x1003e478
mov dword [eax + 4], edi
mov dword [0x1003e478], edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10011616
mov dword [eax], edi
jmp 0x10011616
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x10011616
mov dword [ebp - 0x1c], 2
or dword [ebp - 4], 0xffffffff
jmp 0x1001163a
cmp dword [ebp - 0x1c], 0
je 0x10011646
push edi
call fcn.100012ff
mov eax, dword [ebp - 0x1c]
call fcn.100373eb
ret 0x10
Function at 0x1001176b
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x18
push 0x1003a808
call fcn.100373b0
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x24]
push ecx
push eax
mov esi, dword [ebp + 8]
push dword [esi + 4]
mov edi, dword [ebp + 0xc]
call fcn.100138d4
mov ebx, eax
test ebx, ebx
je 0x100118c3
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100118bb
mov edi, dword [ebp + 0x14]
mov dword [edi + 0x18], esi
mov eax, dword [ebx]
add eax, dword [ebp + 0xc]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
mov eax, dword [ebx]
mov dword [edi + 0x10], eax
push dword [ebp + 0x10]
push esi
mov esi, edi
mov eax, dword [ebp + 0xc]
call fcn.100116a8
mov dword [ebp - 0x1c], eax
cmp eax, 1
jne 0x100118e3
push dword [edi + 8]
push dword [ebp + 0xc]
call fcn.10011651
mov esi, eax
test esi, esi
je 0x1001183f
lea eax, [ebp + 0x14]
push eax
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1001183f
mov eax, dword [edi + 0x14]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
mov byte [esi], 0xe9
mov dword [edi + 0x14], esi
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], esi
cmp dword [ebp + 0x14], 0x40
je 0x1001182f
mov dword [ebp + 0x14], 0x20
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x14]
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi + 0x14]
sub eax, dword [ebp + 0xc]
mov dword [ebx], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
or dword [edi + 0x1c], 0x102
test word [edi + 0x1c], 0x200
je 0x1001186f
push edi
mov esi, dword [ebp - 0x24]
call fcn.10011350
mov esi, 0x1003e480
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1003e478]
mov dword [edi], eax
mov dword [edi + 4], 0x1003e478
mov dword [eax + 4], edi
mov dword [0x1003e478], edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x10]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
and dword [ebp - 0x1c], 0
push dword [ebp + 0xc]
call fcn.10012011
test eax, eax
je 0x100118e3
and dword [eax + 0x44], 0
jmp 0x100118e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100118e0
mov dword [ebp - 0x1c], 2
jmp 0x100118e3
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
call fcn.100373eb
ret 0x10
Function at 0x10011941
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call fcn.100112b6
mov ebx, eax
test ebx, ebx
jne 0x100119f8
and dword [ebp - 4], eax
mov eax, dword [edi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov esi, dword [ebp - 8]
mov dword [esi + 0x14], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [edi + 4]
call ebx
test eax, eax
je 0x100119e5
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [esi + 8], eax
mov eax, dword [edi + 4]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push dword [edi + 4]
call ebx
or dword [esi + 0x1c], 0x101
mov ebx, 0x1003e480
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1003e478]
mov dword [esi], eax
mov dword [esi + 4], 0x1003e478
mov dword [eax + 4], esi
push ebx
mov dword [0x1003e478], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
xor ebx, ebx
jmp 0x100119f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x100119f7
push esi
call fcn.100012ff
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x100119fd
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push 0x18
push 0x1003a7e8
call fcn.100373b0
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
movzx eax, byte [esi + 0x1c]
mov dword [ebp - 0x24], eax
dec eax
je 0x10011ac0
dec eax
je 0x10011a8a
sub eax, 6
jne 0x10011b17
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test word [esi + 0x1c], 0x200
je 0x10011a7e
cmp dword [esi + 0x20], 0
je 0x10011a7e
mov eax, dword [esi + 0x18]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push 0x40
push ebx
push dword [esi + 0x20]
call edi
test eax, eax
je 0x10011a7e
mov eax, dword [esi + 0x18]
push dword [eax + 4]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push ebx
push dword [esi + 0x20]
call edi
and dword [esi + 0x1c], 0xfffffeff
jmp 0x10011b17
mov ebx, dword [esi + 0x14]
cmp byte [ebx], 0xe9
jne 0x10011ac0
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 5
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call edi
test eax, eax
je 0x10011ac6
mov eax, dword [esi + 8]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push 5
push ebx
call edi
jmp 0x10011ac6
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 4
push dword [esi + 0xc]
call edi
test eax, eax
je 0x10011af2
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push 4
push dword [esi + 0xc]
call edi
jmp 0x10011a36
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x10011a36
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
call fcn.100373eb
ret

Function at 0x10011d76
Capabilities:
Check os version

Disassembly:
push edi
push 0xc
xor edi, edi
call fcn.100012ea
cmp eax, edi
mov dword [0x1003e250], eax
je 0x10011e12
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x1003e480
call esi
mov eax, 0x1003e478
push 0x1003e460
mov dword [0x1003e47c], eax
mov dword [0x1003e478], eax
call esi
mov eax, 0x1003e458
mov dword [0x1003e45c], eax
mov dword [0x1003e458], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jae 0x10011ddc
cmp dword [0x1003e2e4], edi
jne 0x10011ddc
call fcn.10014611
mov dword [0x1003e2e4], eax
xor esi, esi
push dword [esi + 0x1003d6ac]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [0x1003e250]
mov dword [esi + ecx], eax
add esi, 4
cmp esi, 0xc
jb 0x10011dde
mov dword [0x1003e254], 3
mov dword [0x1003e24c], 1
pop esi
jmp 0x10011e15
push 8
pop edi
mov eax, edi
pop edi
ret
Function at 0x10011f60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, eax
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 8], esi
call fcn.1001296a
test eax, eax
jne 0x10012008
push esi
push esi
push dword [ebp + 8]
call fcn.100138d4
cmp eax, esi
je 0x10012000
sub eax, edi
push ebx
push eax
mov eax, edi
call fcn.10013aaf
mov ebx, eax
cmp ebx, esi
je 0x10011fff
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x10011fff
push esi
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebx
jne 0x10011ff6
push esi
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10011ff6
cmp dword [ebp - 0xc], 4
jne 0x10011ff6
mov eax, dword [ebp - 0x10]
add eax, edi
mov dword [ebp - 8], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push dword [ebp - 4]
call fcn.100012ff
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4

Function at 0x100128d2
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1003e258]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov esi, 0x1000
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 8
mov ebx, esi
call fcn.100012ea
mov edi, eax
test edi, edi
je 0x10012960
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp - 0xc]
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
mov dword [ebp - 0x10], eax
je 0x10012931
mov eax, dword [ebp - 4]
cmp ebx, eax
ja 0x10012934
push edi
call fcn.100012ff
add ebx, esi
push ebx
call fcn.100012ea
mov edi, eax
test edi, edi
jne 0x10012901
mov eax, dword [ebp - 4]
test edi, edi
je 0x10012960
cmp dword [ebp - 0x10], 0
je 0x10012951
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
mov ecx, dword [ebp + 0xc]
shr eax, 2
and dword [ebp - 8], 0
mov dword [ecx], eax
jmp 0x10012960
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - 8], eax
call fcn.100012ff
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x100129f1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 8
pop esi
push dword [ebp + 8]
xor edi, edi
call fcn.10013599
mov ebx, eax
test ebx, ebx
je 0x10012a5e
cmp dword [ebp + 0x14], edi
je 0x10012a1d
push dword [ebp + 0x14]
call fcn.10013599
mov edi, eax
test edi, edi
je 0x10012a58
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10010c12
mov esi, eax
test esi, esi
jne 0x10012a4e
push dword [ebp + 0x18]
push eax
push edi
push ebx
push 0x1003f640
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x10012a4c
xor eax, eax
mov esi, eax
test edi, edi
je 0x10012a58
push edi
call fcn.100012ff
push ebx
call fcn.100012ff
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x10012bbd
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], 0x10000
test esi, esi
je 0x10012bd6
push esi
call fcn.100012ff
push dword [ebp - 4]
call fcn.100012ea
mov esi, eax
test esi, esi
je 0x10012c00
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
cmp edi, 0xc0000004
je 0x10012bcc
jmp 0x10012c05
mov edi, 0xc000009a
test edi, edi
jl 0x10012c28
push 0x1003e2fc
push esi
call fcn.10006d82
mov ecx, dword [esi]
test ecx, ecx
je 0x10012c1e
add esi, ecx
jmp 0x10012c20
xor esi, esi
test esi, esi
je 0x10012c28
test eax, eax
jne 0x10012c09
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
pop esi
leave
ret

Function at 0x10013141
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
and dword [esp + 4], 0
push ebx
push edi
lea eax, [esp + 0x10]
push eax
push 0x201
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1001320a
push 0x10
push eax
push esi
call sub.ntdll.dll_memset
add esp, 0xc
push dword [ebp + 8]
mov word [esi], 2
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.100012ea
mov ebx, eax
test ebx, ebx
je 0x10013204
push dword [ebp + 8]
push ebx
call sub.ntdll.dll_strcpy
pop ecx
pop ecx
push 0x3a
push ebx
call dword [sym.imp.SHLWAPI.dll_StrChrA]
mov edi, eax
test edi, edi
jne 0x100131b6
cmp dword [ebp + 0xc], eax
je 0x100131d0
mov edi, ebx
jmp 0x100131ba
mov byte [edi], 0
inc edi
test edi, edi
je 0x100131d0
push edi
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
cmp edi, ebx
je 0x100131eb
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100131fe
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 4], eax
jmp 0x100131f6
and dword [esi + 4], 0
cmp word [esi + 2], 0
je 0x100131fe
mov dword [esp + 0xc], 1
push ebx
call fcn.100012ff
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp + 0xc]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100135eb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor edi, edi
push SysReAllocString
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x10013689
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], edi
mov dword [ebp + 8], eax
je 0x1001367f
push ebx
push dword [ebp - 4]
call fcn.100012ea
mov ebx, eax
cmp ebx, edi
je 0x10013677
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x1001366f
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x1001367e
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x1001367e
push ebx
call fcn.100012ff
jmp 0x1001367e
mov dword [ebp + 8], 8
pop ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [ebp + 8]
pop edi
leave
ret 0x10

Function at 0x10013691
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x100136c7
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc