joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1064b9f
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
cmp byte [0x125176e], 0
je 0x1064cb5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
mov ebp, dword [sym.imp.msvcrt.dll_free]
push esi
push edi
mov edi, 0x12529a0
mov dword [esp + 0x14], 0x80
mov esi, dword [edi]
jmp 0x1064c2e
cmp dword [esi + 0x24], 0
mov dword [esp + 0x10], esi
jne 0x1064c1b
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 0x20]
call ebx
push dword [esi + 0x1c]
call ebx
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1064c1b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1064c15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 0x18]
push 0x1010df4
call fcn.010642c8
add esp, 0xc
push dword [esi + 0x18]
call ebp
pop ecx
mov eax, dword [esp + 0x10]
push dword [eax + 8]
mov esi, dword [esi]
call ebp
push dword [esp + 0x14]
call ebp
pop ecx
pop ecx
cmp esi, edi
jne 0x1064bcf
mov dword [edi + 4], edi
mov dword [edi], edi
add edi, 8
dec dword [esp + 0x14]
jne 0x1064bcb
mov esi, 0x12525a0
mov ebx, 0x80
mov edi, dword [esi]
jmp 0x1064c56
mov eax, edi
mov edi, dword [edi]
push eax
call ebp
pop ecx
cmp edi, esi
jne 0x1064c4e
mov dword [esi + 4], esi
mov dword [esi], esi
add esi, 8
dec ebx
jne 0x1064c4a
mov esi, 0x1251da0
mov ebx, 0x100
mov edi, dword [esi]
jmp 0x1064c7b
mov eax, edi
mov edi, dword [edi]
push eax
call ebp
pop ecx
cmp edi, esi
jne 0x1064c73
mov dword [esi + 4], esi
mov dword [esi], esi
add esi, 8
dec ebx
jne 0x1064c6f
push dword [0x1252da4]
call ebp
push dword [0x1251784]
and dword [0x1252da4], 0
call ebp
and dword [0x1251784], 0
pop ecx
pop ecx
pop edi
pop esi
pop ebp
mov byte [0x125176e], 0
pop ebx
pop ecx
pop ecx
ret
Function at 0x1069e8b
Capabilities:
Terminate process

Disassembly:
mov al, byte [esp + 8]
push ebx
xor ebx, ebx
mov byte [0x1251a3c], al
mov al, byte [esp + 0x10]
cmp al, bl
mov dword [0x1251a20], ebx
mov dword [0x1251a34], ebx
mov dword [0x1251a38], ebx
mov dword [0x1251a40], ebx
mov dword [0x1251a30], ebx
mov dword [0x1251a24], ebx
mov byte [0x107d0e4], 1
mov byte [0x1251a3d], al
je 0x1069edb
push 0x1015574
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
mov al, byte [esp + 8]
push 0x460
mov byte [0x1251a3e], al
mov dword [0x1251a34], 0x14
call dword [sym.imp.msvcrt.dll_malloc]
cmp eax, ebx
pop ecx
mov dword [0x1251a20], eax
jne 0x1069f21
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x10152c0
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
pop ecx
pop ecx
push 1
call dword [sym.imp.msvcrt.dll_exit]
xor edx, edx
cmp dword [0x1251a34], ebx
jbe 0x1069f43
xor ecx, ecx
jmp 0x1069f34
mov eax, dword [0x1251a20]
mov dword [ecx + eax], ebx
inc edx
add ecx, 0x38
cmp edx, dword [0x1251a34]
jb 0x1069f2f
xor eax, eax
pop ebx
ret 0xc
Function at 0x1069f9b
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 4], 0xffffffff
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
push edi
je 0x106a0f3
cmp dword [ebp + 0x18], esi
je 0x106a0f3
mov ebx, dword [ebp + 8]
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x106a002
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x40
push 0x1015714
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0x10
mov esi, 0xc0000001
jmp 0x106a107
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x106a025
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x10156e4
jmp 0x106a044
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
jne 0x106a060
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x10156b8
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0x10
mov esi, 0xc0000001
jmp 0x106a0f8
mov ebx, 0x1f0
cmp dword [edi], ebx
je 0x106a0cd
push dword [ebp + 8]
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov esi, dword [sym.imp.msvcrt.dll_fprintf]
add eax, 0x40
push 0x101568c
push eax
call esi
movzx eax, word [edi + 0x1e]
push eax
movzx eax, word [edi + 0x1c]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x1015654
push eax
call esi
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0
push 0x25
add eax, 0x40
push 0x101562c
push eax
call esi
push dword [edi]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x40
push 0x10155fc
push eax
call esi
add esp, 0x3c
mov esi, 0xc0000004
jmp 0x106a0f8
push dword [ebp + 0xc]
push edi
call fcn.0105cfd0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x106a0ec
mov ecx, dword [edi + 0xc]
add ecx, edi
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
jmp 0x106a0f8
mov esi, 0xc000000d
cmp dword [ebp - 4], 0xffffffff
je 0x106a107
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14
Function at 0x106a110
Capabilities:
Read file on windows
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0105c960
mov eax, dword [0x1251b5c]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esi
call ebx
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x106a157
mov eax, 0xc0000001
jmp 0x106a259
push edi
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push esi
push esi
mov edi, eax
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov eax, dword [eax + 0x1e8]
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp dword [ebp - 0x14], esi
jne 0x106a1b6
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x1015788
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
pop ecx
pop ecx
push dword [ebp + 8]
call edi
mov eax, 0xc0000001
jmp 0x106a258
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0xc]
call ebx
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x106a1a7
push esi
push esi
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x106a1e8
mov esi, 0xc0000001
jmp 0x106a24c
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call ebx
cmp dword [ebp - 8], esi
je 0x106a24c
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 8]
mov eax, 0x1000
cmp ecx, eax
jae 0x106a214
mov eax, ecx
push esi
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x1018]
push eax
push dword [ebp + 8]
call ebx
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x1018]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jne 0x106a203
push dword [ebp + 8]
call edi
push dword [ebp + 0xc]
call edi
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0105b9a4
leave
ret 8
Function at 0x106a26a
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1564
call fcn.0105c960
mov eax, dword [0x1251b5c]
xor eax, dword [ebp + 4]
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 4], eax
je 0x106a2fb
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x106a2fb
push 0x1015780
push 0xb00dfaad
push 0x101576c
lea eax, [ebp - 0x564]
push 0x1015750
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x564]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x118]
push 0x1015740
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x24
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x106a305
mov eax, 0xc0000001
jmp 0x106a3bf
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x106a33d
mov eax, 0xc0000001
jmp 0x106a3be
push ebx
push edi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call ebx
mov edi, dword [ebp - 0xc]
push esi
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x1564]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x106a3a8
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x1564]
push eax
push dword [ebp + 8]
call ebx
add edi, dword [ebp - 0xc]
cmp dword [ebp - 0x10], 0x1000
je 0x106a373
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0105b9a4
leave
ret 8
Function at 0x106b38d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x1251b5c]
xor eax, dword [ebp + 4]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x17c]
push eax
xor ebx, ebx
push 0x104
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [ebp - 0x17c], bl
lea esi, [ebp - 0x17c]
je 0x106b43b
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp byte [ebp + 0xc], 0
mov al, byte [esi]
mov byte [ebp - 8], al
mov al, byte [esi + 1]
mov byte [ebp - 7], al
mov byte [ebp - 6], 0
je 0x106b3fa
lea eax, [ebp - 8]
push eax
push esi
call edi
push eax
push 0x1015df0
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
push esi
call edi
cmp eax, 3
jne 0x106b425
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0106ae68
test eax, eax
jne 0x106b464
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
add ebx, dword [eax]
inc dword [ebp - 0xc]
mov dword [ebp + ecx*4 - 0x78], eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x106b42a
sub eax, edx
lea esi, [esi + eax + 1]
cmp byte [esi], cl
jne 0x106b3cf
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jne 0x106b481
push 0x1015dd4
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
xor eax, eax
jmp 0x106b4a9
lea eax, [ebp - 8]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x1015da8
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
jmp 0x106b460
xor edx, edx
cmp dword [ebp - 0xc], edx
jle 0x106b4a6
mov esi, dword [ebp + edx*4 - 0x78]
mov ecx, dword [esi]
mov ebx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, dword [eax]
inc edx
cmp edx, dword [ebp - 0xc]
jl 0x106b488
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0105b9a4
leave
ret 8
Function at 0x106b6da
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x1251b5c]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp ebx, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0x1015ef4
mov dword [ebp - 0x1c], 0x1015ed4
mov dword [ebp - 0x18], 0x1015eb8
mov dword [ebp - 0x14], 0x1015e94
mov dword [ebp - 0x10], 0x1015e74
je 0x106b820
cmp dword [ebp + 8], esi
je 0x106b820
push edi
push 0x1015e68
push dword [ebp + 8]
xor eax, eax
mov ecx, 0x245
mov edi, ebx
push 0x1015e44
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x820]
push 0x1015e3c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp + 0xc]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x820]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x106b81f
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp + 8], esi
cmp dword [ebp + 8], esi
jne 0x106b7a5
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push 0x1015ef4
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x106b806
mov dword [ebx], esi
jmp 0x106b806
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp - 8], 0x100
je 0x106b7d3
dec eax
je 0x106b7cb
dec eax
je 0x106b7c3
dec eax
jne 0x106b816
lea esi, [ebx + 0x604]
jmp 0x106b7d6
lea esi, [ebx + 0x404]
jmp 0x106b7d6
lea esi, [ebx + 0x204]
jmp 0x106b7d6
lea esi, [ebx + 4]
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + eax*4 - 0x20]
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x106b806
cmp eax, 0xea
je 0x106b806
push 0x100d1b4
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
inc dword [ebp + 8]
cmp dword [ebp + 8], 5
jae 0x106b816
xor esi, esi
jmp 0x106b784
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0105b9a4
leave
ret 8
Function at 0x106bdeb
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push 5
push esi
push esi
mov dword [ebp - 8], esi
mov dword [eax], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x106bea8
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 4], esi
mov ebx, 0x1000
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
cmp dword [ebp - 4], esi
je 0x106be39
push dword [ebp - 4]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x106be9a
push esi
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push eax
push 1
push 0x30
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x106beb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
add ebx, dword [ebp - 0x18]
cmp eax, 0xea
mov dword [ebp - 0x10], esi
jne 0x106beb0
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jb 0x106be27
cmp dword [ebp - 4], esi
je 0x106be9a
push dword [ebp - 4]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 8], esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
mov eax, dword [ebp - 8]
pop esi
leave
ret 4
cmp eax, esi
jne 0x106be88
cmp dword [ebp - 8], esi
je 0x106be88
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x106be9d

Function at 0x106bec3
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, 0x10000
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x106bf0a
push 0
push ebx
push esi
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x106bf0e
push esi
push 0
add ebx, 0x2000
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x106bed1
xor eax, eax
jmp 0x106bf27
mov eax, dword [esp + 0x10]
mov dword [eax], esi
mov ecx, dword [esi]
xor eax, eax
xor edx, edx
inc eax
jmp 0x106bf23
add edx, ecx
mov ecx, dword [edx + esi]
inc eax
test ecx, ecx
jne 0x106bf1d
pop edi
pop esi
pop ebx
ret 4
Function at 0x106c0c5
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, 0x8000
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x106c124
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x106c112
push esi
push 0
add ebx, 0x2000
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x106c0d7
test eax, eax
jge 0x106c129
push eax
push 0x1015fa0
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
pop ecx
or eax, 0xffffffff
jmp 0x106c130
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [esi]
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x1251b5c]
xor eax, dword [ebp + 4]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.msvcrt.dll_sprintf]
xor ebx, ebx
mov dword [esi], ebx
mov dword [eax], ebx
push dword [esi]
lea eax, [ebp - 0x410]
push 0x1016000
push eax
call edi
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x106c536
mov eax, dword [ebp + 8]
inc dword [esi]
cmp dword [eax], 0
jne 0x106c50f
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1015ff8
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x106c55c
cmp dword [ebp - 0x10], 4
jne 0x106c55c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi]
lea eax, [ebp - 0x410]
push 0x1016000
push eax
call edi
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x410]
push eax
push 0x80000002
call ebx
test eax, eax
je 0x106c4db
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop ebx
call fcn.0105b9a4
leave
ret 4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x106c54b

Function at 0x106c569
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x106c59e
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x1016030
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
pop ecx
pop ecx
xor eax, eax
leave
ret
mov eax, dword [ebp - 0x38]
leave
ret
Function at 0x106e856
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x1251aa4], 0
jne 0x106e88b
push 0x10169e0
push 0x10169d8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1251a9c], eax
mov dword [0x1251aa0], 0x106e698
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0xc]
cmp word [esi + 0x18], 0x10b
jne 0x106e8a5
mov ebx, dword [esi + 0x34]
and dword [ebp - 0xc], 0
jmp 0x106e8ae
mov eax, dword [esi + 0x34]
mov ebx, dword [esi + 0x30]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 5
push 0
push dword [edi + 8]
call dword [sym.imp.imagehlp.dll_ImageDirectoryEntryToData]
test eax, eax
je 0x106e9b4
cmp dword [ebp - 4], 0
je 0x106e9b4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub ecx, ebx
sbb edx, dword [ebp - 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov ecx, dword [eax + 4]
sub dword [ebp - 4], ecx
add ecx, 0xfffffff8
shr ecx, 1
mov dword [ebp - 0xc], ecx
lea ecx, [eax + 8]
mov dword [ebp + 0x14], ecx
je 0x106e93f
mov ecx, edi
mov edi, dword [eax]
call fcn.0106e62b
test eax, eax
je 0x106e994
cmp word [esi + 0x18], 0x20b
jne 0x106e92e
push dword [ebx + 4]
push dword [ebx]
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push eax
call dword [0x1251aa0]
test eax, eax
je 0x106e994
mov edi, dword [ebp + 8]
jmp 0x106e941
push dword [ebx]
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push eax
call dword [0x1251a9c]
jmp 0x106e925
mov eax, ecx
cmp dword [ebp - 4], 0
jne 0x106e8e4
cmp word [esi + 0x18], 0x10b
mov eax, dword [ebp + 0xc]
je 0x106e958
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x34], eax
cmp dword [edi + 4], 0xffffffff
je 0x106e988
and dword [esi + 0x58], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push dword [edi + 8]
call dword [sym.imp.imagehlp.dll_CheckSumMappedFile]
mov eax, dword [ebp - 8]
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x106e99b
mov dword [esi + 8], eax
jmp 0x106e99e
or dword [esi], 0xffffffff
xor eax, eax
jmp 0x106e9b7
inc dword [esi + 8]
push 0
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
push 0
push dword [edi + 4]
call dword [sym.imp.imagehlp.dll_TouchFileTimes]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x106fc6d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10ac
call fcn.0105c960
mov eax, dword [0x1251b5c]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call fcn.0106f91a
xor eax, eax
mov ecx, 0x42a
lea edi, [ebp - 0x10ac]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10ac]
push eax
mov dword [ebp - 0x1a4], 0x1016cb0
call dword [sym.imp.ADVAPI32.dll_WmiOpenTraceWithCursor]
mov esi, dword [ebp - 0x10a8]
mov edi, dword [sym.imp.msvcrt.dll_printf]
imul esi, esi, 0x78
push dword [ebp + esi - 0x1094]
push dword [ebp + esi - 0x1098]
push dword [ebp + esi - 0x109c]
push dword [ebp - 0x10a8]
push 0x1016c8c
call edi
add esp, 0x14
lea eax, [ebp + esi - 0x108c]
push eax
call fcn.0106fbea
mov ebx, dword [sym.imp.ADVAPI32.dll_WmiGetNextEvent]
jmp 0x106fd37
mov esi, dword [ebp - 0x10a8]
imul esi, esi, 0x78
push dword [ebp + esi - 0x1094]
push dword [ebp + esi - 0x1098]
push dword [ebp + esi - 0x109c]
push dword [ebp - 0x10a8]
push 0x1016c8c
call edi
add esp, 0x14
lea eax, [ebp + esi - 0x108c]
push eax
call fcn.0106fbea
lea eax, [ebp - 0x10ac]
push eax
call ebx
test eax, eax
jne 0x106fcfc
push eax
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x1070936
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x1017b10
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x107098e
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x1017b4c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1070981
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1070990
xor eax, eax
pop esi
leave
ret 4