joyce8/EMBER2024-capa huggingface dataset:
Function at 0x112a1a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11d3490
push 0x11487b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov ecx, dword gs:[0x60]
mov dword [ebp - 0x24], ecx
mov ecx, dword gs:[0x64]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jne 0x112a28e
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x30], ecx
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x30]
jne 0x112a28e
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x2c]
jne 0x112a28e
mov ecx, dword [ebp - 0x30]
add ecx, 0x20
mov edx, dword [ebp - 0x2c]
adc edx, 0
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
cmp edx, dword [ebp - 0x34]
je 0x112a28e
mov eax, dword [ebp - 0x38]
cmp dword [eax + 4], 0
jne 0x112a28e
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x40], 0
je 0x112a28c
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x44], 0
jne 0x112a28c
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x40]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0112f510
add esp, 8
movzx edx, al
test edx, edx
je 0x112a28c
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x24], 0
jne 0x112a28a
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x1c], edx
jmp 0x112a28e
jmp 0x112a231
mov dword [ebp - 4], 0xffffffff
jmp 0x112a2a7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x112a3a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x112a434
push 2
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.01129440
add esp, 0x10
test eax, eax
je 0x112a434
movzx eax, word [ebp - 4]
cmp eax, 0x5a4d
jne 0x112a434
push 4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x3c
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.01129440
add esp, 0x10
test eax, eax
je 0x112a434
push 0xf8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.01129440
add esp, 0x10
test eax, eax
je 0x112a434
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0x4550
jne 0x112a434
mov edx, dword [ebp + 0x10]
movzx eax, word [edx + 0x16]
and eax, 0x2000
jne 0x112a434
mov dword [ebp - 0x10], 1
jmp 0x112a43b
mov dword [ebp - 0x10], 0
mov cl, byte [ebp - 0x10]
mov byte [ebp - 9], cl
movzx edx, byte [ebp - 9]
test edx, edx
je 0x112a454
mov eax, dword [ebp + 0x10]
add eax, 0x78
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x112a460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11d34a0
push 0x11487b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0112a640
add esp, 0x10
mov byte [ebp - 0x19], al
movzx edx, byte [ebp - 0x19]
test edx, edx
jne 0x112a620
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0x8000
mov eax, dword [ebp - 0x20]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x112a4ef
mov dword [ebp - 0x24], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call fcn.01148945
add esp, 8
mov eax, dword [ebp - 0x24]
jmp 0x112a624
push 1
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0112a640
add esp, 0x10
mov byte [ebp - 0x19], al
movzx edx, byte [ebp - 0x19]
test edx, edx
jne 0x112a607
push 0x8000
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [0x11e5d78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x112a54b
mov dword [ebp - 0x28], 0
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.01148945
add esp, 8
mov eax, dword [ebp - 0x28]
jmp 0x112a624
push 1
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0112a640
add esp, 0x10
mov byte [ebp - 0x19], al
movzx eax, byte [ebp - 0x19]
test eax, eax
jne 0x112a607
mov ecx, dword [ebp - 0x20]
push ecx
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x112a5a0
mov dword [ebp - 0x2c], 0
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.01148945
add esp, 8
mov eax, dword [ebp - 0x2c]
jmp 0x112a624
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0112a640
add esp, 0x10
mov byte [ebp - 0x19], al
movzx eax, byte [ebp - 0x19]
test eax, eax
jne 0x112a607
push 0x8000
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x112a5ee
mov dword [ebp - 0x30], 0
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.01148945
add esp, 8
mov eax, dword [ebp - 0x30]
jmp 0x112a624
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0112a640
add esp, 0x10
mov byte [ebp - 0x19], al
mov dword [ebp - 4], 0xffffffff
call fcn.0112a615
jmp 0x112a620
movzx eax, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x112a640
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov byte [ebp - 0x211], 0
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x112a66a
cmp dword [ebp + 0x10], 0
je 0x112a66a
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0112a6f0
add esp, 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.0112a750
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
call fcn.011484db
add esp, 4
cmp eax, 6
jbe 0x112a6e1
movzx eax, word [ebp - 0x20e]
cmp eax, 0x3a
je 0x112a6b9
movzx ecx, word [ebp - 0x210]
cmp ecx, 0x5c
jne 0x112a6e1
movzx edx, word [ebp - 0x20e]
cmp edx, 0x5c
jne 0x112a6e1
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x112a6e1
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.01133e90
mov byte [ebp - 0x211], 1
mov al, byte [ebp - 0x211]
mov esp, ebp
pop ebp
ret
Function at 0x112a890
Capabilities:
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov byte [ebp - 5], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x112aa4e
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x112aa31
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
cmp dword [ebp - 0x14], 0
je 0x112aa14
mov ecx, dword [ebp - 0x14]
shl ecx, 1
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x14]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x112a9f7
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x112a943
mov dword [ebp - 0x30], 1
mov edx, dword [ebp - 0x18]
cmp dword [edx], 1
jne 0x112a977
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 1
jne 0x112a977
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 8], 1
jne 0x112a977
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0112a830
add esp, 8
movzx edx, al
test edx, edx
jne 0x112a9ac
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 1
push 1
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x112a9a3
cmp dword [ebp - 0x30], 1
je 0x112a9ac
mov dword [ebp - 0x38], 0
jmp 0x112a9b3
mov dword [ebp - 0x38], 1
mov al, byte [ebp - 0x38]
mov byte [ebp - 5], al
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x112a9f7
movzx edx, byte [ebp - 5]
test edx, edx
je 0x112a9ea
cmp dword [ebp - 0x30], 4
je 0x112a9e1
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x112a9ea
mov dword [ebp - 0x3c], 1
jmp 0x112a9f1
mov dword [ebp - 0x3c], 0
mov cl, byte [ebp - 0x3c]
mov byte [ebp - 5], cl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x112abf0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 5], 0
call fcn.0112efa0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x112ac80
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x112ac63
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, byte [ebp - 5]
mov esp, ebp
pop ebp
ret 4

Function at 0x112ac90
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x112ad0f
mov dword [ebp - 0x21c], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x112ad05
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0112ac90
add esp, 8
mov edx, dword [ebp - 0x21c]
add edx, 1
mov dword [ebp - 0x21c], edx
jmp 0x112acc0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esp, ebp
pop ebp
ret
Function at 0x112b1e0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xd0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.01146830
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x67452301
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0x10325476
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0xc3d2e1f0
pop ebp
ret

Function at 0x112e450
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov byte [ebp - 5], 0
call fcn.0112efa0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x112e486
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x112e526
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x112e509
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x112e4c4
cmp dword [ebp - 0x28], 4
je 0x112e4df
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x112e4df
mov dword [ebp - 0x30], 0
jmp 0x112e4e6
mov dword [ebp - 0x30], 1
mov dl, byte [ebp - 0x30]
mov byte [ebp - 5], dl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, byte [ebp - 5]
mov esp, ebp
pop ebp
ret 4
Function at 0x112f1c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11d34c0
push 0x11487b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jbe 0x112f298
cmp dword [ebp + 0xc], 0
jne 0x112f20d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x20], 0
push 0xc
call fcn.011336d0
mov dword [ebp - 0x20], eax
push 0x1c
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
jne 0x112f27c
cmp dword [ebp - 0x2c], 0x10000
jne 0x112f25e
push 0x40
push 0x2000
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x1c], eax
jmp 0x112f27c
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x38]
jne 0x112f274
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
mov dword [ebp - 0x20], ecx
jmp 0x112f27a
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x20], edx
jmp 0x112f21e
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x112f2c4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x112f3a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret 8
Function at 0x112fd20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 6
jae 0x112fd66
call fcn.0112fc40
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], 0
setne al
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x112fd61
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x112fe68
push str.CheckTokenMembership
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x10], 0
mov byte [ebp - 0xf], 5
cmp dword [ebp - 0xc], 0
je 0x112fe68
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x112fe68
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 0
call dword [ebp - 0xc]
test eax, eax
je 0x112fded
cmp dword [ebp - 0x1c], 0
je 0x112fded
mov dword [ebp - 0x2c], 1
jmp 0x112fdf4
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 4], 0
je 0x112fe68
lea edx, [ebp - 0x20]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x112fe68
mov dword [ebp - 0x24], 4
lea eax, [ebp - 0x24]
push eax
push 4
lea ecx, [ebp - 0x28]
push ecx
push 0x14
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x112fe51
cmp dword [ebp - 0x28], 0
je 0x112fe51
mov dword [ebp - 0x30], 1
jmp 0x112fe58
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x11306c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
mov dword [ebp - 0x10], 0
push 0xc
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.01146830
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x11306fb
lea ecx, [ebp - 0xc]
push ecx
call fcn.01130210
add esp, 4
test eax, eax
je 0x11306fb
lea edx, [ebp - 0xc]
mov dword [ebp + 0xc], edx
call fcn.01130370
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x113085b
movzx ecx, byte [ebp + 0x24]
test ecx, ecx
jne 0x113085b
push 0
push 0x11bdf88
call fcn.01133460
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x113085b
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0xc], 0
je 0x113076a
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
cmp dword [ebp + 0x10], 0
je 0x1130797
mov ecx, dword [ebp + 0x1c]
and ecx, 0x10000
je 0x1130791
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edx
jmp 0x1130797
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
push ecx
push 0x25
call fcn.0112f1c0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x11307e5
mov ecx, 9
mov esi, 0x11be0dc
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x47], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x37], eax
push 1
push 0x11be0a0
call fcn.011333f0
mov dword [ebp - 0x32], eax
push 1
push 0x11be030
call fcn.011333f0
mov dword [ebp - 0x2d], eax
cmp dword [ebp - 0x24], 0
je 0x113085b
lea ecx, [ebp - 0x50]
push ecx
push 0x25
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1130855
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp + 0x1c]
and edx, 4
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jl 0x1130846
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x58]
mov dword [edx], eax
jmp 0x1130853
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.0112f2e0
jmp 0x113085b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 8], 0
je 0x1130874
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1132110
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.01130fc0
test eax, eax
je 0x1132126
xor eax, eax
jmp 0x11321c5
mov dword [ebp - 0xc], 0
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
push 0x8000
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0xffffffff
je 0x11321c2
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x11321b8
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x1132750
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x113281a
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1132810
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1132806
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x11327fc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0x4550
jne 0x11327fc
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x20b
jne 0x11327fc
mov dword [ebp - 8], 1
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4