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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x10047140]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.100105b0
lea eax, [ebp - 0x20c]
push eax
push esi
call sym.SKUtil.dll_SK_GetReverseID
add esp, 0x14
xor esi, esi
push 0x50
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerUserDataS_1_5_18Components
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x210], 0xf
mov dword [ebp - 0x214], esi
mov byte [ebp - 0x224], 0
call fcn.100046e0
push 0x103
lea eax, [ebp - 0x107]
push esi
push eax
mov byte [ebp - 0x108], 0
call fcn.100105b0
add esp, 0xc
cmp dword [ebp - 0x210], 0x10
lea ecx, [ebp - 0x258]
push ecx
push 0x20019
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100065fb
or esi, 0xffffffff
jmp 0x10006711
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push edi
push 0x400
lea eax, [ebp - 0x108]
push eax
push 0
push dword [ebp - 0x258]
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10006705
jmp 0x10006630
lea eax, [ebp - 0x108]
push eax
push 0x100371cc
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 0x25c], 0
call fcn.100011e0
add esp, 0xc
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.10001140
add esp, 0xc
cmp dword [ebp - 0x240], 0x10
jb 0x10006683
push dword [ebp - 0x254]
call fcn.1000db4b
add esp, 4
cmp dword [ebp - 0x228], 0x10
lea ecx, [ebp - 0x25c]
push ecx
push 0xf003f
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100066d0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x25c]
call edi
inc esi
cmp dword [ebp - 0x228], 0x10
jb 0x100066e8
push dword [ebp - 0x23c]
call fcn.1000db4b
add esp, 4
push 0x400
lea eax, [ebp - 0x108]
push eax
push esi
push dword [ebp - 0x258]
call ebx
test eax, eax
je 0x10006630
push dword [ebp - 0x258]
call edi
pop edi
xor esi, esi
pop ebx
cmp dword [ebp - 0x210], 0x10
jb 0x10006728
push dword [ebp - 0x224]
call fcn.1000db4b
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1000db11
mov esp, ebp
pop ebp
ret
Function at 0x10006920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x801c
call fcn.1000db20
mov eax, dword [0x10047140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10006a3c
push 0x7ffe
lea eax, [ebp - 0x8003]
push 0
push eax
mov byte [ebp - 0x8004], 0
call fcn.100105b0
add esp, 0xc
lea eax, [ebp - 0x8014]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push eax
movzx eax, word [ebp - 0x8008]
push eax
movzx eax, word [ebp - 0x800a]
push eax
movzx eax, word [ebp - 0x800c]
push eax
lea eax, [ebp - 0x8004]
push str._.2d:_.2d:_.2d___06d___s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
mov dword [ebp - 0x801c], 0
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea esi, [ebp - 0x8004]
mov ecx, eax
mov dword [ebp - 0x8018], ecx
lea edx, [esi + 1]
lea ebx, [ebx]
mov al, byte [esi]
inc esi
test al, al
jne 0x100069f0
push edi
sub esi, edx
push 0
lea edi, [esi + ecx]
push edi
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea eax, [ebp - 0x801c]
push eax
push esi
lea eax, [ebp - 0x8004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push edi
push 0
push dword [ebp - 0x8018]
push ebx
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.1000db11
mov esp, ebp
pop ebp
ret
Function at 0x10007160
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x10047140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x124
lea eax, [ebp - 0x128]
push 0
push eax
mov dword [ebp - 0x12c], 0
call fcn.100105b0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x100071ba
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x12c]
push eax
push esi
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
xor edi, edi
test eax, eax
je 0x10007204
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.1000e7e6
add esp, 8
test eax, eax
je 0x100071ff
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100071d8
jmp 0x10007204
mov edi, 1
test esi, esi
je 0x1000720f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000db11
mov esp, ebp
pop ebp
ret

Function at 0x10007230
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x10047140]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x124
lea eax, [ebp - 0x128]
push 0
push eax
mov dword [ebp - 0x12c], 0
call fcn.100105b0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x10007285
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea eax, [ebp - 0x12c]
push eax
push esi
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
xor ebx, ebx
test eax, eax
je 0x100072cf
mov edi, dword [ebp + 8]
jmp 0x100072b0
mov eax, dword [ebp - 0x124]
cmp eax, edi
je 0x100072cd
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100072b0
jmp 0x100072cf
mov ebx, eax
test esi, esi
je 0x100072da
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
pop ebx
xor ecx, ebp
pop esi
call fcn.1000db11
mov esp, ebp
pop ebp
ret
Function at 0x100072f0
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54c
mov eax, dword [0x10047140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x128
mov dword [ebp - 0x548], eax
xor esi, esi
lea eax, [ebp - 0x544]
push esi
push eax
call fcn.100105b0
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10007557
push 0x103
lea eax, [ebp - 0x40b]
push esi
push eax
mov dword [ebp - 0x544], 0x128
mov byte [ebp - 0x40c], 0
call fcn.100105b0
push 0xff
lea eax, [ebp - 0x203]
push esi
push eax
mov byte [ebp - 0x204], 0
call fcn.100105b0
push 0xff
lea eax, [ebp - 0x103]
push esi
push eax
mov byte [ebp - 0x104], 0
call fcn.100105b0
push 0x103
lea eax, [ebp - 0x307]
push esi
push eax
mov byte [ebp - 0x308], 0
call fcn.100105b0
add esp, 0x30
lea eax, [ebp - 0x544]
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10007557
push edi
nop
push dword [ebp - 0x53c]
push 0
push 0x100410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x10007477
mov dword [ebp - 0x54c], eax
lea eax, [ebp - 0x54c]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10007541
lea eax, [ebp - 0x418]
push eax
xorps xmm0, xmm0
push str.SeDebugPrivilege
movq qword [ebp - 0x41c], xmm0
push edi
movq qword [ebp - 0x414], xmm0
mov dword [ebp - 0x41c], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push edi
push edi
push 0x10
lea eax, [ebp - 0x41c]
push eax
push edi
push dword [ebp - 0x54c]
mov dword [ebp - 0x410], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x53c]
push 1
push 0x100410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x10007541
push 0x104
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.100105b0
push 0x100
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.100105b0
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.100105b0
push 0x104
lea eax, [ebp - 0x308]
push 0
push eax
call fcn.100105b0
add esp, 0x30
lea eax, [ebp - 0x40c]
push 0x104
push eax
push 0
push edi
call sub.KERNEL32.dll_K32GetModuleFileNameExA
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
push 0
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.1000f47d
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x308]
push 0x10036d18
push eax
call fcn.1000efbd
push dword [ebp - 0x548]
lea eax, [ebp - 0x308]
push eax
call fcn.1000e7e6
add esp, 0x2c
test eax, eax
mov eax, 1
push edi
cmove esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x10007556
lea eax, [ebp - 0x544]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100073c0
pop edi
test ebx, ebx
je 0x10007562
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000db11
mov esp, ebp
pop ebp
ret
Function at 0x10007580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push dword [ebp + 0x14]
mov dword [ebp - 4], reloc.OLEAUT32.dll_SysReAllocString
call fcn.1000f90d
add esp, 4
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0xf013f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100075cd
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esp, ebp
pop ebp
ret

Function at 0x10007600
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
mov eax, dword [0x10047140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.100105b0
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.100105b0
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x20c]
add esp, 0x18
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
mov byte [edx + ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x10007657
lea ecx, [ebp - 0x20c]
dec ecx
lea ebx, [ebx]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x10007670
mov ax, word [0x10037d08]
mov word [ecx], ax
mov al, byte [0x10037d0a]
mov byte [ecx + 2], al
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x350], eax
cmp eax, 0xffffffff
je 0x1000779b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x100076c0
push 0x100374dc
lea eax, [ebp - 0x320]
push eax
call edi
test eax, eax
je 0x10007773
push 0x100374e0
lea eax, [ebp - 0x320]
push eax
call edi
test eax, eax
je 0x10007773
test byte [ebp - 0x34c], 0x10
je 0x10007772
lea edx, [ebp - 0x108]
mov eax, esi
sub edx, esi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x10007700
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10007713
mov ax, word [0x100371cc]
lea edx, [ebp - 0x320]
mov word [edi], ax
mov esi, edx
mov edi, edi
mov al, byte [edx]
inc edx
test al, al
jne 0x10007730
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10007740
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call sym.SKUtil.dll_SK_GetFileCount
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
add esp, 4
add ebx, eax
jmp 0x10007773
inc ebx
lea eax, [ebp - 0x34c]
push eax
push dword [ebp - 0x350]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100076c0
push dword [ebp - 0x350]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1000db11
mov esp, ebp
pop ebp
ret
Function at 0x10007850
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.1000db20
mov eax, dword [0x10047140]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
xor ecx, ecx
movzx eax, word [ecx + 0x10036b08]
mov word [ebp + ecx - 0x1004], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10007870
push edx
push 0x800
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
pop esi
test eax, eax
jne 0x100078ae
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret
xor edx, edx
xor ecx, ecx
movzx eax, word [ebp + ecx*2 - 0x1004]
cmp eax, 0x3d
jne 0x100078c0
inc edx
test ax, ax
jne 0x100078cf
cmp word [ebp + ecx*2 - 0x1002], ax
je 0x100078d8
inc ecx
cmp ecx, 0x800
jl 0x100078b2
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edx
call fcn.1000db11
mov esp, ebp
pop ebp
ret

Function at 0x100078f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov dword [0x100494d0], 0
xor ecx, ecx
nop
movzx eax, word [ecx + 0x10036b08]
mov word [ecx + 0x100484d0], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10007900
push dword [ebp + 8]
push 0x800
push 0x100484d0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
jne 0x10007932
pop ebp
ret
mov eax, dword [0x100494d0]
mov ecx, 0x100484d0
lea esp, [esp]
movzx edx, word [ecx]
cmp edx, 0x3d
jne 0x10007949
inc eax
test dx, dx
jne 0x10007954
cmp word [ecx + 2], dx
je 0x1000795f
add ecx, 2
cmp ecx, 0x100494d0
jl 0x10007940
mov dword [0x100494d0], eax
pop ebp
ret
Function at 0x10007970
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x11810
call fcn.1000db20
mov eax, dword [0x10047140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x11810], eax
mov dword [ebp - 0x1180c], edi
test eax, eax
je 0x100079df
test edi, edi
je 0x100079df
xor ecx, ecx
jmp 0x100079b0
movzx eax, word [ecx + 0x10036b08]
mov word [ebp + ecx - 0x1804], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x100079b0
push edx
push 0x800
lea eax, [ebp - 0x1804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
jne 0x100079f1
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret
mov edi, 1
xor edx, edx
mov dword [ebp - 0x11808], edi
xor ecx, ecx
movzx eax, word [ecx + 0x10036b08]
mov word [ebp + ecx - 0x804], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10007a00
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ecx + 0x10036b08]
mov word [ebp + ecx - 0x11804], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10007a20
push ebx
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
lea ecx, [ecx]
lea esi, [ecx + ecx]
movzx eax, word [ebp + esi - 0x1804]
test ebx, ebx
jne 0x10007a9c
test edi, edi
je 0x10007a8c
lea edi, [edx + edx]
mov word [ebp + edi - 0x804], ax
cmp eax, 0x3d
jne 0x10007a83
cmp edi, 0x800
jae 0x10007b25
xor edx, edx
mov word [ebp + edi - 0x804], dx
xor edi, edi
mov dword [ebp - 0x11808], edi
jmp 0x10007aa2
mov edi, dword [ebp - 0x11808]
inc edx
jmp 0x10007aa2
mov word [ebp + edx*2 - 0x11804], ax
test ax, ax
je 0x10007acd
inc edx
jmp 0x10007aa2
test ax, ax
jne 0x10007ab1
dec ebx
test ax, ax
jne 0x10007ab1
cmp word [ebp + esi - 0x1802], ax
je 0x10007aba
inc ecx
cmp ecx, 0x800
jl 0x10007a40
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x11810]
lea ecx, [ebp - 0x804]
mov eax, ecx
sub edx, eax
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10007ae0
mov edi, dword [ebp - 0x1180c]
lea ecx, [ebp - 0x11804]
mov eax, ecx
sub edi, eax
nop
movzx eax, word [ecx]
mov word [edi + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10007b00
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.1000db11
mov esp, ebp
pop ebp
ret
call fcn.1000deda
int3
Function at 0x10008160
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10047140]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.100105b0
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push dword [ebp - 0x90]
push dword [ebp - 0x94]
push str._SKUtil_::SK_GetOSVersion_OS_d._d
call fcn.100010e0
mov eax, dword [ebp - 0x94]
add esp, 0xc
cmp eax, 6
jbe 0x100081d7
mov eax, 0x10000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret
jne 0x1000822f
mov ecx, dword [ebp - 0x90]
cmp ecx, 3
ja 0x100081c4
jne 0x100081f9
mov eax, 0x400
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret
cmp ecx, 2
jne 0x10008211
mov eax, 0x200
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret
mov eax, 0x10
mov edx, 0x80
cmp ecx, 1
cmove eax, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x10008251
cmp dword [ebp - 0x90], 1
sbb eax, eax
and eax, 0xfffffffc
add eax, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 3
call fcn.1000db11
mov esp, ebp
pop ebp
ret

Function at 0x10008270
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x10047140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x124
lea eax, [ebp - 0x128]
push 0
push eax
mov dword [ebp - 0x12c], 0
call fcn.100105b0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x100082ca
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x12c]
push eax
push esi
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
xor edi, edi
test eax, eax
je 0x10008315
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.1000e7e6
add esp, 8
test eax, eax
je 0x1000830f
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100082e8
jmp 0x10008315
mov edi, dword [ebp - 0x124]
test esi, esi
je 0x10008320
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000db11
mov esp, ebp
pop ebp
ret
Function at 0x10008340
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x10047140]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1b4], esi
mov dword [ebp - 0x1b0], edi
test edi, edi
je 0x10008440
push ebx
push 0x124
lea eax, [ebp - 0x1a8]
push 0
push eax
mov dword [ebp - 0x1ac], 0
call fcn.100105b0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000843f
lea eax, [ebp - 0x1ac]
push eax
push ebx
mov dword [ebp - 0x1ac], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10008434
nop
lea eax, [ebp - 0x188]
push esi
push eax
call fcn.1000e7e6
add esp, 8
test eax, eax
jne 0x10008423
push dword [ebp - 0x1a4]
lea eax, [ebp - 0x84]
push 0x1003700c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x84]
add esp, 0xc
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100083f7
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10008401
mov ecx, eax
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 [ebp - 0x1b4]
mov edi, dword [ebp - 0x1b0]
lea eax, [ebp - 0x1ac]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100083c0
test ebx, ebx
je 0x1000843f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.1000db11
mov esp, ebp
pop ebp
ret

Function at 0x10008460
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push dword [ebp + 8]
push str._SKUtil__SK_GetProcessReturnValue_cmdline_s_n
call fcn.10001080
add esp, 8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 0x58], 0x44
push 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 5
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x100084f3
push str._SKUtil__Cannot_launch_child_process_n
call fcn.10001080
add esp, 4
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x10008530
mov eax, dword [ebp - 4]
cmp eax, 0x103
je 0x10008529
push eax
push str._SKUtil__Exit_code___d_n
call fcn.10001080
add esp, 8
jmp 0x1000853d
push str._SKUtil__Process_is_still_active_n
jmp 0x10008535
push str._SKUtil__GetExitCodeProcess___failed_n
call fcn.10001080
add esp, 4
push dword [ebp - 4]
push str._SKUtil__SK_GetProcessReturnValue_exitCode_d_n
call fcn.10001080
mov eax, dword [ebp - 4]
add esp, 8
mov esp, ebp
pop ebp
ret