joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b1000
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55bf41
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.004092a0
mov ecx, eax
test ecx, ecx
je 0x4b10fb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
push 0
push 0x57cef0
push 2
movzx ebx, di
push ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x18], eax
lea ecx, [eax - 1]
push ecx
push 0x78
lea ecx, [ebp - 0x10]
call fcn.004778a0
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 4], 1
jle 0x4b10a6
push dword [ecx - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00408c30
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x18]
push ecx
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp - 0x10]
push edi
push str._d__s
push esi
call fcn.00408670
add esp, 0x10
mov dword [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b10e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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
push 0x80004005
call fcn.00408f80
int3

Function at 0x4b1440
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x5cf024]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, ecx
push esi
push 2
mov dword [esp + 0xc], eax
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0x1c]
push eax
push esi
movups xmmword [esp + 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 8]
xor eax, eax
mov edx, 5
cmp byte [ecx + 0x2c], al
cmovne eax, edx
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 8]
push 0x3e9
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0xc]
push eax
push esi
movups xmmword [esp + 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x30], 0
jne 0x4b14d9
mov eax, dword [esp + 0x14]
mov dword [ecx + 0x30], eax
cmp byte [ecx + 0x2c], 0
je 0x4b14e4
mov edx, dword [ecx + 0x30]
jmp 0x4b14e8
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
sub eax, ecx
push 0x206
push eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
sub edx, eax
push edx
push ecx
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x2c]
pop esi
xor ecx, esp
call fcn.0051dacc
mov esp, ebp
pop ebp
ret
Function at 0x4b15d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55bfda
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.004092a0
test eax, eax
je 0x4b1702
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 1
lea edi, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.004092a0
test eax, eax
je 0x4b1702
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
lea edi, [esi + 8]
mov dword [ebp - 0x14], edi
call fcn.004092a0
test eax, eax
je 0x4b1702
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 5
lea ecx, [esi + 0xc]
mov dword [ebp - 0x14], ecx
lea eax, [ecx + 8]
mov dword [ecx + 4], 0
mov dword [ebp - 0x18], eax
mov dword [eax + 0xc], 0
mov byte [ebp - 4], 7
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov byte [ebp - 4], 0xa
mov dword [ecx + 0x20], 0x58c288
mov dword [ecx], 0x58c5a0
mov dword [ecx + 0x20], 0x58c5b0
mov byte [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov word [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov byte [ebp - 4], 0xb
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408f80
int3

Function at 0x4b1a30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c058
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], 0x57ffb8
mov dword [ebp - 0x24], 0x58f668
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 0
push eax
push 0x4cca70
push 0
push 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4b1ac3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x20]
mov ecx, eax
call fcn.004b1530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004cc8f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b65a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ce16
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 2
xor esi, esi
or ebx, 0xffffffff
cmp dword [edi + 0x28], esi
jle 0x4b6663
cmp esi, dword [edi + 0x28]
jge 0x4b66b5
mov eax, dword [edi + 0x24]
lea ebx, [esi*4]
push dword [eax + ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, dword [edi + 0x28]
jge 0x4b66b5
add ebx, dword [edi + 0x24]
push 0x5c
push dword [ebx]
call fcn.0051f59b
add esp, 8
test eax, eax
jne 0x4b661f
or eax, 0xffffffff
jmp 0x4b6623
sub eax, dword [ebx]
sar eax, 1
push eax
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0040d130
mov byte [ebp - 4], 3
mov edx, edi
mov ecx, eax
call fcn.00491c30
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b665d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, dword [edi + 0x28]
jl 0x4b65eb
mov byte [ebp - 4], 1
lea ecx, [edi + 0x24]
call fcn.0047e930
mov byte [ebp - 4], 0
lea ecx, [edi + 4]
call fcn.004b6d60
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [edi]
sub edx, 0x10
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4b66a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0xc000008c
call fcn.00411100
int3
Function at 0x4b8440
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x1c]
mov ebx, edx
push eax
lea eax, [esp + 0x1c]
mov ebp, ecx
push eax
push 0
push dword [ebx]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 0xea
jne 0x4b8500
mov edi, dword [esp + 0x10]
test edi, edi
js 0x4b850f
mov esi, dword [esp + 0x20]
mov ecx, 1
mov edx, dword [esi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x4b84a8
push edi
mov ecx, esi
call fcn.00408d10
mov edx, dword [esi]
cmp dword [edx - 4], 1
jle 0x4b84ba
push dword [edx - 0xc]
mov ecx, esi
call fcn.00408c30
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push dword [ebx]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [esi]
test eax, eax
jne 0x4b84dc
xor ecx, ecx
jmp 0x4b84ee
push dword [eax - 8]
push eax
call fcn.00525e01
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4b850f
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4b850f
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
setne al
pop ebx
add esp, 0xc
ret
push 0x80070057
call fcn.00408f80
int3
Function at 0x4b8db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d741
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
cmp byte [ebp + 0x10], 0
jne 0x4b8e49
mov dl, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.004b8cd0
mov dword [ebp - 0x18], 0x58c598
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
cmp byte [ebp + 0x14], 0
je 0x4b8e0e
test eax, eax
setne bl
jmp 0x4b8e13
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x58c598
test eax, eax
je 0x4b8e33
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp + 8]
push 0x5c
push dword [edi]
call fcn.0051f59b
mov esi, eax
add esp, 8
mov ebx, 3
test esi, esi
je 0x4b8f4b
sub esi, dword [edi]
sar esi, 1
js 0x4b8f4b
push esi
push 0
lea eax, [ebp + 0x10]
mov ecx, edi
push eax
call fcn.0040d3e0
mov dword [ebp - 4], 1
lea ecx, [ebp + 0x10]
mov dl, byte [ebp + 0xc]
call fcn.004b8cd0
mov edi, eax
mov dword [ebp - 0x18], 0x58c598
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x4b8f0c
lea edx, [esi + 1]
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
sub eax, edx
push eax
push edx
lea eax, [ebp + 0xc]
push eax
call fcn.0040d3e0
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, 1
mov ebx, eax
mov dword [ebp - 0x10], ecx
and ecx, 0xfffffffe
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp + 0xc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b8f0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4b8f0f
or esi, 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0x58c598
test edi, edi
je 0x4b8f2c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4b8f4b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0x14], 0
je 0x4b8f6a
test ebx, ebx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test ebx, ebx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4b9840
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x5cf024]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
test ecx, ecx
je 0x4b998a
movzx eax, word [ecx]
lea esi, [esp + 0x20]
test ax, ax
je 0x4b9884
mov edx, esi
sub ecx, edx
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x4b9875
xor eax, eax
mov edx, esi
mov word [esi], ax
xor cl, cl
sub esi, 2
xor al, al
xor bl, bl
cmp word [esp + 0x20], 0x5c
jne 0x4b98af
cmp word [esp + 0x22], 0x5c
jne 0x4b98af
cmp word [esi], 0x5c
mov bl, 1
setne cl
jmp 0x4b98be
cmp word [esi], 0x5c
mov edi, 1
movzx eax, al
cmove eax, edi
cmp word [esp + 0x24], 0x5c
lea edi, [esp + 0x24]
je 0x4b98d9
nop word [eax + eax]
add edi, 2
cmp word [edi], 0x5c
jne 0x4b98d0
test cl, cl
jne 0x4b98e3
test al, al
je 0x4b98f8
jmp 0x4b98f0
mov esi, edx
mov eax, 0x5c
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push eax
lea eax, [esp + 0x18]
movlpd qword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x4b995f
cmp word [esi], 0x5c
jne 0x4b992d
sub esi, 2
lea eax, [esp + 0x20]
cmp esi, eax
jbe 0x4b9946
cmp word [esi], 0x5c
je 0x4b9946
sub esi, 2
lea eax, [esp + 0x20]
cmp esi, eax
ja 0x4b9935
cmp esi, edi
jb 0x4b998a
test bl, bl
jne 0x4b9952
cmp esi, edi
jne 0x4b9955
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
jmp 0x4b9901
mov eax, dword [ebp + 0xc]
cmp eax, dword [esp + 0x14]
ja 0x4b998a
jb 0x4b9973
mov eax, dword [ebp + 8]
cmp eax, dword [esp + 0x10]
jae 0x4b998a
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0051dacc
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x424]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051dacc
mov esp, ebp
pop ebp
ret
Function at 0x4ba540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.0051ede0
push 0xffffffffffffffff
push 0x55db38
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5cf024]
xor eax, ebp
mov dword [ebp + 0x8000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
cmp dword [esi + 4], 0
mov eax, dword [ebp + 0x800c]
mov dword [ebp - 0x1c], eax
jne 0x4ba598
xor al, al
jmp 0x4ba626
mov ecx, eax
call fcn.0047e930
xor edi, edi
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 0x3fff
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test ebx, ebx
jne 0x4ba618
mov esi, dword [ebp - 0x10]
call fcn.004092a0
push eax
push esi
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d4f0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.0048e870
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ba615
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
inc edi
test ebx, ebx
je 0x4ba5a1
cmp ebx, 0x103
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8000]
xor ecx, ebp
call fcn.0051dacc
lea esp, [ebp + 0x8004]
pop ebp
ret 4
Function at 0x4ba960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55dbe8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x10], 0xc8
call fcn.0051e384
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0049ffb0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x4baa1d
nop dword [eax + eax]
add dword [ebp - 0x10], 2
push esi
call fcn.0051e384
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0049ffb0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x4ba9e0
test eax, eax
jne 0x4baa4c
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x4baa50
cmp eax, 2
je 0x4baa50
cmp eax, 7
je 0x4baa50
cmp eax, 4
jne 0x4baa4c
push dword [esi]
push 0x58c658
push dword [ebp + 8]
call fcn.00408670
add esp, 0xc
jmp 0x4baaa1
xor bl, bl
jmp 0x4baaa3
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x10], eax
mov word [esi + eax*2], cx
mov edi, dword [ebp - 0x10]
cmp word [esi + edi*2], cx
jne 0x4baa71
dec edi
mov dword [ebp - 0x10], edi
cmp word [esi + edi*2], cx
je 0x4baa67
inc edi
mov dword [ebp - 0x10], edi
call fcn.004092a0
push eax
push edi
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040d4f0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push eax
call fcn.00477830
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00408f10
mov bl, 1
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.0051e384
add esp, 4
mov dword [ebp - 0x14], 0
mov al, bl
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 0x4bac20
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55dc90
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [edx]
sub ecx, 0x10
call fcn.00408ad0
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
xor ebx, ebx
push 0x5c
push esi
call fcn.0051f59b
mov edi, eax
add esp, 8
test edi, edi
je 0x4bad90
sub edi, esi
sar edi, 1
js 0x4bad90
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d2c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
mov eax, dword [esi - 0xc]
sub eax, edi
push eax
push edi
call fcn.0048fbb0
mov dword [ebp - 0x20], 0x58c598
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x20]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4bad51
push dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4bad2f
inc ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x58c598
test eax, eax
je 0x4bad07
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bac61
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4bac61
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x58c598
test eax, eax
je 0x4bad4f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
jmp 0x4bad71
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x58c598
test eax, eax
je 0x4bad71
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bad90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4badaf
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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 0x4baf50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55dd08
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0x44
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
mov dword [ebp - 4], 0
cmp byte [ebp + 0x10], 0
je 0x4bafe1
call fcn.004c7ed0
mov eax, dword [0x5d53d0]
test eax, eax
je 0x4bafe1
lea ecx, [ebp - 0x14]
push ecx
call eax
mov byte [ebp - 0x10], 1
mov ecx, dword [esi]
lea eax, [ebp - 0x24]
mov edx, dword [edi]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push dword [ebp + 0xc]
xor eax, eax
cmp dword [ecx - 0xc], eax
push 0
push 0
cmovne eax, ecx
push 0
push eax
xor eax, eax
cmp dword [edx - 0xc], eax
cmovne eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x4bb029
test esi, esi
je 0x4bb025
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
jmp 0x4bb04d
test esi, esi
je 0x4bb042
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov byte [ebp + 0x13], al
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x10], 0
je 0x4bb078
call fcn.004c7ed0
mov eax, dword [0x5d53cc]
test eax, eax
je 0x4bb075
lea ecx, [ebp - 0x14]
push ecx
call eax
mov byte [ebp - 0x10], 0
mov al, byte [ebp + 0x13]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4bb730
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ded0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5cf024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0x57cb58
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x24]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x20]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4bb79c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x4bb85a
xor esi, esi
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push esi
push esi
push 1
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
jne 0x4bb7eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4bb83e
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
call fcn.004affb0
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push esi
push 1
push dword [ebp - 0x20]
call ebx
test eax, eax
je 0x4bb83e
cmp dword [ebp - 0x1c], 0
je 0x4bb83e
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x18]
mov word [ebp - 0x14], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4bb844
push dword [ebp - 0x2c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x2c]
cmp eax, 1
sete bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x4bb846
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov byte [ebp - 4], 0
push esi
call fcn.0051e384
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], 0x57cb58
test eax, eax
je 0x4bb87d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051dacc
mov esp, ebp
pop ebp
ret