joyce8/EMBER2024-capa huggingface dataset:
Function at 0x111a9e0
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [0x7ffe0324]
mov edx, dword [0x7ffe0320]
mov eax, dword [0x7ffe0328]
sub esp, 0x54
cmp ecx, eax
je 0x111aa17
lea ecx, [ecx]
pause
mov ecx, dword [0x7ffe0324]
mov edx, dword [0x7ffe0320]
mov eax, dword [0x7ffe0328]
cmp ecx, eax
jne 0x111aa00
mov eax, dword [0x7ffe0004]
mul edx
push ebx
shrd eax, edx, 0x18
push esi
push edi
shr edx, 0x18
mov esi, eax
mov eax, dword [0x7ffe0004]
mov edi, edx
mul ecx
push 0
push 0x100
push edx
push eax
call fcn.011ab190
mov ecx, dword [0x123b308]
mov ebx, dword [ebp + 8]
add esi, eax
adc edi, edx
shrd esi, edi, 0xa
add esi, dword [ecx + 0x28]
mov eax, 0x88888889
mul esi
shr edx, 5
push 0
mov dword [ebx + 0x1f4], edx
push 0x54
lea edx, [ebp - 0x54]
push edx
push 0x50
shr edi, 0xa
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jge 0x111aa8c
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x50]
lea edi, [ebx + 0x1a4]
mov ecx, 8
lea esi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x1c4]
mov ecx, 8
lea esi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x54]
pop edi
add ecx, eax
pop esi
mov dword [ebx + 0x1e4], ecx
mov dword [ebx + 0x1e8], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x111ae70
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov eax, dword [0x123b308]
push 8
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
push 0xb
push 0
mov dword [ebp - 4], edx
mov eax, dword [eax + 0x430]
push 0x104fabc
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x111aeb0
test eax, eax
jne 0x111aeb0
mov esp, ebp
pop ebp
ret 4
Function at 0x111b620
Capabilities:
Check if file exists
Create directory
Get file attributes
Query environment variable
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x11d05b0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x104fadc
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x111b666
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010aa5e1
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x104
jbe 0x111b682
mov eax, 0x7a
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010aa5e1
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push ecx
push 0x208
lea edx, [ebp - 0x20c]
push edx
call fcn.0111b330
test eax, eax
jl 0x111b66d
push esi
push edi
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
jne 0x111b6f2
call edi
cmp eax, 0xb7
jne 0x111b75d
lea ecx, [ebp - 0x20c]
push ecx
call esi
cmp eax, 0xffffffff
je 0x111b717
test al, 0x10
jne 0x111b6f2
pop edi
mov eax, 0x52
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010aa5e1
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x20c]
push edx
call esi
cmp eax, 0xffffffff
je 0x111b717
or eax, 0x2000
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x111b72b
call edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010aa5e1
mov esp, ebp
pop ebp
ret 4
push 1
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0111ab40
test eax, eax
jne 0x111b75d
mov eax, dword [0x123b308]
lea edx, [ebp - 0x20c]
push edx
push 0x20a
add eax, 0x21c
push eax
call fcn.0111b2a0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010aa5e1
mov esp, ebp
pop ebp
ret 4
Function at 0x111c090
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x123b308]
push esi
push edi
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 8]
push ecx
xor edi, edi
push edi
mov dword [ebp - 4], 8
mov eax, dword [eax + 0x430]
push 0x104fabc
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x111c0d1
cmp dword [ebp - 8], 0xb
je 0x111c0d7
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x10]
cdq
xor ecx, ecx
add eax, dword [ebp - 0x14]
adc edx, ecx
mov dword [ebp - 8], edx
jne 0x111c0ee
cmp eax, 0x2d0
jb 0x111c0f4
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push edi
push edi
push esi
call fcn.0111bb90
cmp eax, edi
jne 0x111c111
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], edx
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x111c680
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x10]
push edi
cmp ebx, 8
jb 0x111c6a6
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
shl eax, 8
cmp ebx, eax
ja 0x111c6a6
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x111c6b3
pop edi
mov eax, 0x57
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test byte [edi + 0x24], 8
push esi
je 0x111c733
cmp byte [ebp + 0x14], 0
je 0x111c733
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 0x18]
push edx
push ecx
push eax
call fcn.0111cb80
mov esi, dword [edi + 8]
cmp esi, 0xffffffff
je 0x111c733
cmp dword [0x123b398], 0
je 0x111c733
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0
push 0x200
push eax
push ecx
call fcn.011ab190
push 0
push 0
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x111c712
call esi
mov eax, dword [0x123b398]
mov ecx, dword [edi + 8]
push 0
lea edx, [ebp - 0x10]
push edx
push 0x200
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x111c733
call esi
mov ecx, dword [edi + 4]
lea eax, [ecx + ebx - 1]
xor edx, edx
div ecx
mov edx, dword [0x123b394]
imul ecx, eax
lea ebx, [ecx + 0x4c]
push ebx
push 0
push edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x111c76c
pop esi
lea eax, [edi + 8]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push ebx
push 0
push edi
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
lea esi, [edi + 0x1c]
push ecx
lea edx, [esi + 0x30]
push edx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [esi + 0x20], eax
mov eax, 1
add esp, 0x18
mov ecx, 0x10
mov word [esi + 4], cx
mov dword [esi + 0x10], edx
cmp byte [ebp + 0x14], al
jne 0x111c7b4
or dword [esi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x1c], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
push ebx
push edi
cmp eax, 0xffffffff
je 0x111c7c9
push eax
call fcn.0111c460
jmp 0x111c7d1
mov ecx, dword [ecx]
push ecx
call fcn.0111c510
mov ebx, eax
test ebx, ebx
jne 0x111c7f2
push esi
call fcn.0111c590
mov ebx, eax
test ebx, ebx
jne 0x111c7f2
mov edx, dword [esi + 0x18]
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], edx
mov ecx, dword [esi + 0x1c]
mov dword [eax + 0x14], ecx
mov edx, dword [0x123b394]
push edi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x111e690
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push 0xd
push 1
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0xc]
push ecx
push edx
mov byte [ebp - 1], 1
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jge 0x111e6c3
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x111ebc0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x34
push 0
push ebx
call sub.msvcrt.dll_memset
mov edi, dword [ebp + 0xc]
mov ecx, edi
add esp, 0xc
lea eax, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x111ebe0
mov esi, dword [ebp + 0x10]
sub ecx, eax
sar ecx, 1
mov byte [ebx], 3
mov al, byte [esi + 2]
lea edx, [ecx + ecx]
cmp edx, 8
mov byte [ebx + 1], al
mov eax, edi
mov ecx, 0x4cb2f
jl 0x111ec79
mov esi, edx
shr esi, 3
mov dword [ebp + 8], esi
neg esi
lea edx, [edx + esi*8]
jmp 0x111ec20
movzx esi, byte [eax + 1]
imul ecx, ecx, 0x2fe8ed1f
movzx edi, byte [eax + 2]
imul esi, esi, 0x25
add esi, edi
movzx edi, byte [eax + 3]
imul esi, esi, 0x25
add esi, edi
movzx edi, byte [eax + 4]
imul esi, esi, 0x25
add esi, edi
movzx edi, byte [eax + 5]
imul esi, esi, 0x25
add esi, edi
movzx edi, byte [eax + 6]
imul esi, esi, 0x25
add esi, edi
movzx edi, byte [eax]
imul esi, esi, 0x25
imul edi, edi, 0x1a617d0d
add esi, edi
sub esi, ecx
movzx ecx, byte [eax + 7]
add ecx, esi
add eax, 8
sub dword [ebp + 8], 1
jne 0x111ec20
mov esi, dword [ebp + 0x10]
dec edx
cmp edx, 6
ja case.default.0x111ec7f
jmp dword [edx*4 + 0x111ed74]
movzx edx, byte [eax]
imul ecx, ecx, 0x25
add ecx, edx
inc eax
movzx edx, byte [eax]
imul ecx, ecx, 0x25
add ecx, edx
inc eax
movzx edx, byte [eax]
imul ecx, ecx, 0x25
add ecx, edx
inc eax
movzx edx, byte [eax]
imul ecx, ecx, 0x25
add ecx, edx
inc eax
movzx edx, byte [eax]
imul ecx, ecx, 0x25
add ecx, edx
inc eax
movzx edx, byte [eax]
imul ecx, ecx, 0x25
add ecx, edx
inc eax
movzx eax, byte [eax]
imul ecx, ecx, 0x25
add ecx, eax
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebx + 0xc], ecx
mov edx, dword [esi + 0x14]
mov dword [ebx + 0x10], edx
add esi, 0x18
lea edi, [ebx + 0x14]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
mov ecx, 0x4cb2f
mov edx, 6
lea esp, [esp]
movzx esi, byte [eax + 1]
imul ecx, ecx, 0x2fe8ed1f
movzx edi, byte [eax + 2]
imul esi, esi, 0x25
add esi, edi
movzx edi, byte [eax + 3]
imul esi, esi, 0x25
add esi, edi
movzx edi, byte [eax + 4]
imul esi, esi, 0x25
add esi, edi
movzx edi, byte [eax + 5]
imul esi, esi, 0x25
add esi, edi
movzx edi, byte [eax + 6]
imul esi, esi, 0x25
add esi, edi
movzx edi, byte [eax]
imul esi, esi, 0x25
imul edi, edi, 0x1a617d0d
add esi, edi
sub esi, ecx
movzx ecx, byte [eax + 7]
add ecx, esi
add eax, 8
sub edx, 1
jne 0x111ecf0
movzx edx, byte [eax]
imul ecx, ecx, 0x25
add ecx, edx
movzx edx, byte [eax + 1]
imul ecx, ecx, 0x25
inc eax
add ecx, edx
movzx edx, byte [eax + 1]
imul ecx, ecx, 0x25
inc eax
add ecx, edx
imul ecx, ecx, 0x25
inc eax
movzx eax, byte [eax]
pop edi
add ecx, eax
pop esi
mov dword [ebx + 8], ecx
pop ebx
pop ebp
ret 0xc
Function at 0x111f6f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x11d05b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
mov dword [ebp - 0x214], 0xffffffff
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x210], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
cmp eax, ebx
jne 0x111f746
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x111f843
lea ecx, [ebp - 0x214]
push ecx
push 0x80
push eax
lea edx, [ebp - 0x20c]
push edx
call fcn.0111d420
mov esi, eax
cmp esi, ebx
jne 0x111f843
mov ecx, dword [ebp - 0x214]
push 1
lea eax, [ebp - 0x218]
push eax
push ecx
call fcn.0111cfe0
mov esi, eax
cmp esi, ebx
jne 0x111f843
push 0x1057290
lea edx, [ebp - 0x244]
push edx
call fcn.0111f4b0
lea ecx, [ebp - 0x23c]
push ecx
push 0x20019
lea edx, [ebp - 0x210]
lea eax, [ebp - 0x244]
push edx
mov dword [ebp - 0x23c], 0x18
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], 0x40
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
call dword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, ebx
jge 0x111f7fa
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov esi, eax
cmp esi, 2
jne 0x111f843
mov dword [edi], ebx
jmp 0x111f841
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x224]
push ecx
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x220]
push edx
push 0
push eax
mov ebx, 4
push ecx
mov dword [ebp - 0x21c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x111f870
cmp esi, 2
jne 0x111f843
mov dword [edi], 0
xor esi, esi
mov eax, dword [ebp - 0x214]
cmp eax, 0xffffffff
je 0x111f855
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x111f89c
mov ecx, dword [0x123b308]
push eax
push 0
test ecx, ecx
je 0x111f88f
mov eax, dword [ecx]
jmp 0x111f895
cmp dword [ebp - 0x21c], ebx
jb 0x111f83b
cmp dword [ebp - 0x220], ebx
jne 0x111f83b
xor edx, edx
cmp dword [ebp - 0x224], edx
sete dl
mov dword [edi], edx
jmp 0x111f841
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x111f8ad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010aa5e1
mov esp, ebp
pop ebp
ret 4
Function at 0x1120250
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x11d05b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1057364
lea eax, [esi + 0x200]
push eax
push 0x1056c88
lea ecx, [ebp - 0x20c]
push 0x208
push ecx
mov dword [ebp - 0x210], 0
call fcn.0111a3e0
add esp, 0x14
test eax, eax
jge 0x11202b0
movzx eax, ax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010aa5e1
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x1057354
push 0x1014a60
add esi, 0x21c
push esi
push 0x105733c
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.0111a3e0
add esp, 0x18
test eax, eax
jl 0x112029c
push edi
lea ecx, [ebp - 0x210]
push ecx
push 0x130089
lea edx, [ebp - 0x20c]
push edx
call fcn.0111e810
mov edi, dword [ebp - 0x210]
mov esi, eax
test esi, esi
jne 0x1120328
push edi
call fcn.0111f8d0
mov esi, eax
test esi, esi
jne 0x1120328
push edi
call fcn.0111e690
mov esi, eax
test esi, esi
jne 0x1120328
test edi, edi
je 0x1120333
push edi
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.010aa5e1
mov esp, ebp
pop ebp
ret 8

Function at 0x1121aa0
Capabilities:
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x11d05b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0
lea edx, [ebp - 0x38]
push edx
push 0x20
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x34]
push ecx
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0x2d1400
push eax
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1121b13
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
xor al, al
jmp 0x1121b16
mov al, byte [ebp - 0x1c]
mov cx, word [ebp - 0x1a]
mov dx, word [ebp - 0x18]
mov word [edi], cx
movzx ecx, byte [ebp - 0x20]
mov word [ebx], dx
mov edx, dword [ebp - 0x14]
movzx eax, al
mov dword [esi], eax
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.010aa5e1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1122ed0
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x11d05b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, dword [ebp + 0xc]
push esi
xor ebx, ebx
push edi
mov ecx, dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, dword [ebp + 8]
lea edx, [ebp - 0x18]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
mov dword [ebp - 0x24], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
jne 0x1122f48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1122fe9
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x221
push 0x20
push 2
lea edx, [ebp - 0xc]
push edx
call esi
test eax, eax
jne 0x1122f6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1122fe9
push edi
call dword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
mov esi, eax
cmp esi, ebx
jne 0x1122fe9
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x20008
mov byte [ebp - 0xe], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x1122fa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1122fe9
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push ecx
push edx
push eax
mov byte [ebp - 0xd], 1
call esi
test eax, eax
jne 0x1122fcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1122fe9
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
push ecx
push edx
push eax
call esi
test eax, eax
jne 0x1122fe7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1122fe9
xor esi, esi
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp eax, ebx
je 0x1122ff9
push eax
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x1123003
push eax
call edi
cmp byte [ebp - 0xe], bl
je 0x112300e
call dword [sym.imp.RPCRT4.dll_RpcRevertToSelf]
cmp byte [ebp - 0xd], bl
je 0x112301d
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010aa5e1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1123441
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
pop eax
push eax
push 0
push esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 8
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp + 8]
push eax
push 0x10
lea eax, [ebp - 0x10]
push eax
push 0x6d
mov byte [esi], 1
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
pop edi
pop esi
leave
ret 4

Function at 0x112349a
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov edi, edi
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [0x11d05b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x474], eax
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x484]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x470]
mov dword [ebp - 0x47c], eax
mov eax, 0x468
push eax
mov dword [ebp - 0x478], eax
lea eax, [ebp - 0x470]
push 0
push eax
mov dword [ebp - 0x484], 1
mov dword [ebp - 0x480], 0xd
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x470]
and eax, 0xffffff03
or eax, 3
mov dword [ebp - 0x470], eax
mov eax, dword [ebx + 8]
add esp, 0xc
mov dword [ebp - 0x46c], eax
lea eax, [ebp - 0x488]
push eax
push 0x10
lea eax, [ebp - 0x484]
push eax
push 0x6d
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jl 0x1123561
mov edi, dword [ebp - 0x474]
mov ecx, 0x118
lea esi, [ebp - 0x468]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010aa5e1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x1129a19
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push 0x2000000
xor edi, edi
push edi
push 0x105a104
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1129a8f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x105a120
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1129a86
cmp dword [ebp - 0xc], 4
jne 0x1129a86
cmp dword [ebp - 0x10], edi
je 0x1129a86
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x122966c], edi
xor eax, eax
jmp 0x1129ace
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x122966c], edi
jge 0x1129ac9
lea eax, [ebp - 0x34]
push eax
mov dword [0x122966c], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x1129ac9
cmp word [ebp - 0x14], 5
jb 0x1129ac9
call fcn.01129900
test eax, eax
je 0x1129ac9
emms
mov dword [0x122966c], 1
mov eax, dword [0x122966c]
pop edi
leave
ret

Function at 0x1129ad6
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x11d05b0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1129b1f
inc eax
jmp 0x1129b5c
xor eax, eax
inc eax
cmp dword [ebp - 0x88], eax
jne 0x1129b50
cmp dword [ebp - 0x94], 4
ja 0x1129b4c
jne 0x1129b5c
cmp dword [ebp - 0x90], 0xa
jb 0x1129b5c
mov ecx, 0x55d
cmp word [ebp - 0x8c], cx
jb 0x1129b5c
xor eax, eax
jmp 0x1129b5c
xor eax, eax
cmp dword [ebp - 0x88], 2
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010aa5e1
leave
ret

Function at 0x1129b6d
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x11d05b0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1129bca
cmp dword [ebp - 0x88], 2
jne 0x1129bca
cmp dword [ebp - 0x94], 5
jb 0x1129bca
xor eax, eax
inc eax
jmp 0x1129bcc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010aa5e1
leave
ret