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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5770b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5c8910]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x14], ebx
jb 0x4bee90
mov ecx, dword [ecx]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4bef2a
cmp dword [edi + 0x14], 8
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
jb 0x4beec9
mov eax, dword [edi]
jmp 0x4beecb
mov eax, edi
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4bef2a
cmp dword [ebp - 0x14], 3
jne 0x4bef2a
mov esi, dword [ebp + 8]
mov ecx, esi
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xd]
push eax
mov eax, dword [ebp - 0x18]
inc eax
push eax
call fcn.004bb0b0
cmp dword [edi + 0x14], 8
jb 0x4bef07
mov edi, dword [edi]
lea eax, [ebp - 0x18]
push eax
push dword [esi]
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4bef2a
cmp dword [ebp - 0x14], 3
jne 0x4bef2a
lea esi, [eax + 1]
jmp 0x4bef2c
xor esi, esi
test ebx, ebx
je 0x4bef37
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bef50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
cmp dword [eax + 0x14], 8
mov dword [ebp + 8], esi
jb 0x4bef68
mov eax, dword [eax]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp + 8]
push ecx
push 0
push dword [ebp + 0x18]
push 0
push 0
push 0
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4befb8
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
jb 0x4bef97
mov ecx, dword [ecx]
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4befb8
lea edi, [eax + 1]
jmp 0x4befba
xor edi, edi
test esi, esi
je 0x4befc5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4befd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x28]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], edi
jb 0x4befee
mov eax, dword [eax]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 4]
push edx
push 0
push dword [ebp + 0x2c]
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4bf05e
cmp dword [ebp + 0x24], 8
lea edx, [ebp + 0x10]
mov edi, dword [ebp - 4]
cmovae edx, dword [ebp + 0x10]
cmp dword [esi + 0x14], 8
jb 0x4bf023
mov esi, dword [esi]
test edx, edx
je 0x4bf05e
mov ecx, edx
push ebx
lea ebx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bf030
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebx
test eax, eax
jne 0x4bf05e
lea esi, [eax + 1]
jmp 0x4bf060
xor esi, esi
test edi, edi
je 0x4bf06b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x24], 8
jb 0x4bf07c
push dword [ebp + 0x10]
call fcn.005363a4
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4bf090
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
xor edi, edi
mov esi, edx
cmp dword [ecx + 0x14], 8
mov dword [ebp - 4], edi
jb 0x4bf0a7
mov ecx, dword [ecx]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4bf0f6
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 4]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
cmp dword [esi + 0x14], 8
jb 0x4bf0df
mov esi, dword [esi]
push eax
push ecx
push 3
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4bf0f6
lea esi, [eax + 1]
jmp 0x4bf0f8
xor esi, esi
test edi, edi
je 0x4bf103
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4bff20
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5772b0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5c8910]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
mov eax, dword [0x5c8910]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x40]
mov dword [esp + 0x68], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], SysReAllocString
call fcn.004bf170
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x4bff97
mov esi, dword [esi]
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
cmp word [esi], ax
jne 0x4bffb7
xor ecx, ecx
jmp 0x4bffcf
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bffc0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x30]
call fcn.00408679
mov byte [esp + 0x68], 1
lea edx, [esp + 0x40]
cmp dword [esp + 0x54], 8
mov dword [esp + 0x24], 7
cmovae edx, dword [esp + 0x40]
xor eax, eax
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
cmp word [edx], ax
jne 0x4c000d
xor ecx, ecx
jmp 0x4c0021
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c0012
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.00408679
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
mov dword [esp + 8], 0
jae 0x4c0043
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push 0x20006
push 0
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c008b
cmp dword [esp + 0x3c], 8
lea eax, [esp + 0x28]
mov esi, dword [esp + 8]
cmovae eax, dword [esp + 0x28]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4c0112
test esi, esi
je 0x4c008b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
cmp dword [esp + 0x24], 8
jb 0x4c00a0
push dword [esp + 0x10]
call fcn.005363a4
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
cmp dword [esp + 0x3c], 8
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
jb 0x4c00ca
push dword [esp + 0x28]
call fcn.005363a4
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
cmp dword [esp + 0x54], 8
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
jb 0x4c00f4
push dword [esp + 0x40]
call fcn.005363a4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4c011d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x4c008d
Function at 0x4c1130
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5773e0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x5c8910]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x5c8910]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x18]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
push 0x38
push 0
push eax
call fcn.00538910
add esp, 0xc
mov dword [esp + 0x14], 0x3c
cmp dword [edi + 0x14], 8
jb 0x4c1194
mov edi, dword [edi]
sub esp, 0x18
mov dword [esp + 0x38], edi
mov ecx, esp
mov dword [esp + 0x48], 0
xor eax, eax
mov dword [esp + 0x30], 0x440
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push ebx
mov word [ecx], ax
call fcn.0040759d
lea ecx, [esp + 0x80]
call fcn.004b6b70
add esp, 0x18
mov dword [esp + 0x90], 0
lea ecx, [esp + 0x50]
push 1
xor eax, eax
mov dword [esp + 0x68], 7
push 0x5a0f3c
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
call fcn.00408679
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x70]
mov byte [esp + 0x98], 1
push eax
lea ecx, [esp + 0x5c]
call fcn.00409252
push 1
push 0x5a0f3c
lea ecx, [esp + 0x58]
call fcn.00409102
cmp dword [esp + 0x64], 8
lea eax, [esp + 0x50]
cmovae eax, dword [esp + 0x50]
cmp dword [esi + 0x14], 8
mov dword [esp + 0x24], eax
jb 0x4c124e
mov esi, dword [esi]
lea eax, [esp + 0x14]
mov dword [esp + 0x28], esi
push eax
xor bl, bl
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4c1288
mov eax, dword [ebp + 0xc]
mov bl, 1
test eax, eax
je 0x4c1288
mov esi, dword [esp + 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete bl
test esi, esi
je 0x4c1288
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x64], 8
movzx esi, bl
jb 0x4c129e
push dword [esp + 0x50]
call fcn.005363a4
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 7
cmp dword [esp + 0x7c], 8
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
jb 0x4c12c8
push dword [esp + 0x68]
call fcn.005363a4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
Function at 0x4c1810
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x577478
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5c8910]
xor eax, esp
mov dword [esp + 0x7c], eax
push esi
push edi
mov eax, dword [0x5c8910]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
sub esp, 0x18
mov esi, dword [ebp + 8]
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push edi
mov word [ecx], ax
call fcn.0040759d
call fcn.004c39b0
push 0x40
lea eax, [esp + 0x44]
mov dword [esp + 0x40], 0x44
push 0
push eax
call fcn.00538910
add esp, 0x24
mov dword [esp + 0x50], 1
xor eax, eax
mov dword [esp + 0x84], 7
lea ecx, [esp + 0x70]
mov word [esp + 0x54], ax
mov dword [esp + 0x80], eax
push 1
push 0x5a0f3c
mov word [esp + 0x78], ax
call fcn.00408679
push 0xffffffffffffffff
push 0
push esi
lea ecx, [esp + 0x7c]
mov dword [esp + 0xa4], 0
call fcn.00409252
push 2
push 0x5aae00
lea ecx, [esp + 0x78]
call fcn.00409102
push 0xffffffffffffffff
push 0
push edi
lea ecx, [esp + 0x7c]
call fcn.00409252
xor esi, esi
lea ecx, [esp + 0x14]
cmp dword [esp + 0x84], 8
lea eax, [esp + 0x70]
push ecx
cmovae eax, dword [esp + 0x74]
lea ecx, [esp + 0x28]
push ecx
push esi
push esi
push esi
push 1
push esi
push esi
push eax
xorps xmm0, xmm0
push esi
movdqu xmmword [esp + 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4c1973
sub esp, 0x18
mov eax, esp
push 0x5aae20
push edi
push eax
call fcn.0044551b
add esp, 0xc
call fcn.004c39b0
mov eax, dword [ebp + 0xc]
add esp, 0x18
test eax, eax
je 0x4c196e
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x4c1973
mov esi, 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4c1982
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x84], 8
jb 0x4c1998
push dword [esp + 0x70]
call fcn.005363a4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
Function at 0x4c21c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c21fb
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
push ebx
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.00538910
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4c2260
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
push dword [edi + 0x10]
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0040319a
push eax
call fcn.0053966c
add esp, 0xc
test eax, eax
je 0x4c227a
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x4c2234
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret

Function at 0x4c22a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c22da
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
push ebx
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.00538910
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4c2329
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp edi, dword [ebp - 0x228]
je 0x4c2343
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x4c2313
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
Function at 0x4c2370
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov ebx, edx
mov dword [ebp - 0x234], 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4c23da
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
xor ecx, ecx
mov word [esi], ax
cmp word [0], ax
je 0x4c23d5
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c23c6
sub ecx, edx
sar ecx, 1
push ecx
push 0
jmp 0x4c244a
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.00538910
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4c242a
lea esp, [esp]
cmp ebx, dword [ebp - 0x228]
je 0x4c2464
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4c2410
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov word [esi], ax
push 0x594314
mov ecx, esi
call fcn.00408679
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x4c2493
xor ecx, ecx
lea eax, [ebp - 0x20c]
push ecx
push eax
jmp 0x4c244a
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c24a0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
jmp 0x4c244a
Function at 0x4c2a30
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x40
mov eax, dword [0x5c8910]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [0x5d61d0]
test eax, eax
jne 0x4c2b15
lea eax, [esp]
mov dword [esp + 4], 0x10
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4c2a9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4c2b10
mov dword [0x5d61d0], 1
mov eax, 1
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
lea eax, [esp + 8]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4c2b07
mov eax, dword [esp + 8]
xorps xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x14], 1
push eax
push 0x10
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 2
push eax
push 0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4c2b07
mov dword [0x5d61d0], 1
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x5d61d0]
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret

Function at 0x4c2b30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.004c2a30
push dword [ebp + 8]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4c2b55
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 1
pop ebp
ret

Function at 0x4c2ea0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4c2f12
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [ebp - 0x10]
test eax, eax
push dword [ebp - 0x14]
mov edx, 1
cmove ecx, edx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
Function at 0x4c3300
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577708
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x5c]
push 0x5aa5a8
push esi
push eax
call fcn.0044551b
add esp, 0xc
push 0x24c
lea eax, [ebp - 0x2a8]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x2ac], 0
call fcn.00538910
add esp, 0xc
lea ecx, [ebp - 0x2ac]
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4c3394
mov esi, 1
jmp 0x4c34e9
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ebx, [ebx]
mov ecx, 0x59fbc4
lea eax, [ebp - 0x280]
jmp 0x4c33b0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c33d6
test dx, dx
je 0x4c33d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c33d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4c33b0
xor eax, eax
jmp 0x4c33db
sbb eax, eax
or eax, 1
test eax, eax
je 0x4c34bf
mov ecx, 0x59fbc8
lea eax, [ebp - 0x280]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c3416
test dx, dx
je 0x4c3412
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c3416
add eax, 4
add ecx, 4
test dx, dx
jne 0x4c33f0
xor eax, eax
jmp 0x4c341b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4c34bf
cmp word [ebp - 0x280], 0x2e
je 0x4c34bf
push 0x594350
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0044551b
add esp, 0xc
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00445586
add esp, 0xc
mov byte [ebp - 4], 3
cmp dword [ebp - 0x30], 8
jb 0x4c3470
push dword [ebp - 0x44]
call fcn.005363a4
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
test byte [ebp - 0x2ac], 0x10
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x34], 0
je 0x4c349b
push eax
call fcn.004c3300
add esp, 4
jmp 0x4c34aa
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x4c34bf
push dword [ebp - 0x2c]
call fcn.005363a4
add esp, 4
lea eax, [ebp - 0x2ac]
push eax
push edi
call ebx
test eax, eax
jne 0x4c33a0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 8
jb 0x4c34e0
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
cmp dword [ebp - 0x48], 8
jb 0x4c34fa
push dword [ebp - 0x5c]
call fcn.005363a4
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
Function at 0x4c39b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577770
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x40]
push str.qbinstall
push eax
call fcn.0044fdd8
push 0x5aaec4
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.00445586
mov esi, eax
add esp, 0x18
lea eax, [ebp + 8]
cmp eax, esi
je 0x4c3a3f
cmp dword [ebp + 0x1c], 8
jb 0x4c3a22
push dword [ebp + 8]
call fcn.005363a4
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.00440913
cmp dword [ebp - 0x14], 8
jb 0x4c3a50
push dword [ebp - 0x28]
call fcn.005363a4
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x4c3a78
push dword [ebp - 0x40]
call fcn.005363a4
add esp, 4
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp + 0x1c], 8
jb 0x4c3a9b
push dword [ebp + 8]
call fcn.005363a4
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret