joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e4160
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
sub eax, 2
je 0x4e41e4
sub eax, 2
jne 0x4e4278
mov ecx, dword [esi + 0x48]
call fcn.00457550
cmp dword [esi + 0x40], 1
push 0x80
jne 0x4e41a5
mov ecx, dword [0x5fd7c0]
lea eax, [ebp - 0x100]
push eax
push 0x2cec
push ecx
jmp 0x4e41b7
mov eax, dword [0x5fd7c0]
lea edx, [ebp - 0x100]
push edx
push 0x2ced
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [esi + 4]
push 1
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea edx, [ebp - 0x100]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
add dword [esi + 0x4c], 0xfffffffe
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 0x48]
test eax, eax
je 0x4e4208
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4e4208
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x5fd7c0]
push ebx
push edi
push 0x80
lea eax, [ebp - 0x100]
push eax
push 0x2af8
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push edx
call edi
lea ecx, [ebp - 0x100]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [esi + 4]
push 1
push edx
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push 1
push eax
call ebx
mov eax, dword [esi + 0x24]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push 0x456
push ecx
call edi
push 0
push eax
call ebx
dec dword [esi + 0x4c]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4e4610
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x593156
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 4]
push 0x456
push eax
call ebx
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
lea edi, [esi + 0x40]
test edi, edi
je 0x4e4659
lea eax, [edi - 0x20]
jmp 0x4e465b
xor eax, eax
mov ecx, dword [eax + 4]
push 0x334
push ecx
call ebx
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi], eax
mov edx, dword [esi + 0x24]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x48], 0
jne 0x4e46c4
push 0x6210
call fcn.0055549a
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4e46b8
mov ecx, dword [esi + 0x50]
add ecx, 0x604
push ecx
mov ecx, eax
call fcn.0045d5c0
jmp 0x4e46ba
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x48]
mov edx, dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push edx
call edi
mov ebx, 1
test eax, eax
je 0x4e472e
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x4e46f8
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
push 0x6210
call fcn.0055549a
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x4e4722
mov ecx, dword [esi + 0x50]
add ecx, 0x604
push ecx
mov ecx, eax
call fcn.0045d5c0
jmp 0x4e4724
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x48]
mov edx, dword [eax + 4]
push edx
call edi
test eax, eax
jne 0x4e4763
mov eax, dword [esi + 0x48]
mov dword [eax + 0x258], 0x435
mov ecx, dword [esi + 0x48]
mov dword [ecx + 0x6208], 2
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x48]
push 0
push edx
call fcn.00461410
mov ecx, dword [esi + 0x48]
call fcn.00457550
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 4]
push ebx
push 0
push 0
push 5
push 5
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esi + 0x48]
mov eax, dword [edx + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
add dword [esi + 0x4c], ebx
push 0x80
cmp dword [esi + 0x40], ebx
jne 0x4e47b4
mov edx, dword [0x5fd7c0]
lea ecx, [ebp - 0x110]
push ecx
push 0x2cec
push edx
jmp 0x4e47c7
mov ecx, dword [0x5fd7c0]
lea eax, [ebp - 0x110]
push eax
push 0x2ced
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [esi + 4]
push ebx
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x110]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4e48b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 4]
push 0x456
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x34], 0
mov ecx, dword [esi + 4]
lea ebx, [esi + 0x20]
mov dword [ebp - 4], ecx
jne 0x4e48f6
call fcn.00552f9a
mov dword [ebx + 0x14], eax
test eax, eax
jne 0x4e48f6
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4e4921
push ebx
add ebx, 8
push ebx
push 0x5fd800
call fcn.004125d0
mov edx, dword [ebp - 4]
mov eax, dword [0x5fd7c0]
push 0
push 0x4129f0
push edx
push 0x434
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 0
lea ecx, [esi + 0x24]
call fcn.00401ce0
mov ecx, dword [esi + 0x24]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
inc dword [esi + 0x4c]
push 0
lea ecx, [esi + 4]
call fcn.00401ce0
mov ecx, esi
call fcn.004e4610
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4e4a80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x5fd7c0]
sub esp, 0x100
push 0x80
lea eax, [ebp - 0x100]
push eax
push 0x258
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
push 1
push 0
push 0
lea edx, [ebp - 0x100]
push edx
push 0x5a6140
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4e4b40
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
push esi
push edi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
xor edx, edx
xor edi, edi
or edi, dword [ebp - 0x10]
push ecx
or esi, edx
call fcn.0050a100
add esp, 8
test eax, eax
je 0x4e4c20
cmp dword [ebp - 8], 2
jne 0x4e4c20
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x18]
push edx
push 0x5a6134
push eax
call fcn.0050a2a0
add esp, 0xc
test eax, eax
jne 0x4e4bc4
mov ecx, dword [ebp - 4]
push esi
push edi
push 0x5a6134
push ecx
call fcn.0050a2f0
mov edx, dword [ebp - 4]
add esp, 0x10
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 0xf
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
cmp esi, eax
ja 0x4e4bde
jb 0x4e4bb9
cmp edi, ecx
jb 0x4e4bb9
push 0
sub edi, ecx
push 0x989680
sbb esi, eax
push esi
push edi
call fcn.0055b390
push 0
push 0x3c
push edx
push eax
call fcn.0055b390
push 0
push 0x3c
push edx
push eax
call fcn.0055b390
push 0
push 0x18
push edx
push eax
call fcn.0055b390
mov ecx, 0xf
sub ecx, eax
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x5a614c
lea edx, [ebp - 0x818]
push 0x59c0b8
push edx
call fcn.00555a14
add esp, 0xc
lea eax, [ebp - 0x818]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e6b10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593481
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CUSBShadowView.1.0
mov dword [esi + 0x50], vtable.CUSBShadowView.0
mov dword [ebp - 4], 7
mov eax, dword [esi + 0x31c]
xor edi, edi
test eax, eax
je 0x4e6b78
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp edi, eax
jae 0x4e6ca5
mov eax, dword [esi + 0x318]
lea eax, [eax + edi*4]
mov eax, dword [eax]
push eax
call ebx
inc edi
cmp edi, dword [esi + 0x31c]
jb 0x4e6b61
mov cl, 6
mov byte [ebp - 4], cl
lea eax, [esi + 0x354]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], cl
mov eax, dword [eax]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e6ba7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov cl, 5
mov byte [ebp - 4], cl
lea eax, [esi + 0x32c]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], cl
mov eax, dword [eax]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e6bd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
lea ecx, [esi + 0x318]
call fcn.00432860
mov byte [ebp - 4], 3
lea ecx, [esi + 0x2cc]
call fcn.00494560
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x2a4]
test eax, eax
je 0x4e6c17
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x4e6c17
mov dword [esi + 0x2a4], 0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x26c]
call fcn.0044fc90
mov byte [ebp - 4], 0
lea ecx, [esi + 0x50]
call fcn.004f9fe0
mov ebx, 0xa
mov dword [ebp - 4], ebx
lea edi, [esi + 0x24]
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 0xc
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4e6c5b
push eax
call fcn.00554c82
add esp, 4
mov dword [edi + 0x1c], 0
xor eax, eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov byte [ebp - 4], bl
push fcn.00419b10
push 2
push 4
add edi, 8
push edi
call fcn.00555d39
or ecx, 0xffffffff
mov dword [ebp - 4], ecx
lea eax, [esi + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ecx
mov eax, dword [eax + 0xc]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4e6c97
push eax
call fcn.00552eea
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401150
int3
Function at 0x4e6ea0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583a78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x4e6ee9
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebp + 0x14], ebx
xor edi, edi
mov dword [ebp - 4], edi
push ebx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x4e7039
push esi
push 0x30
lea edx, [ebp - 0x40]
push 0
push edx
call fcn.00555020
push 0x110
lea eax, [ebp - 0x150]
push 0
push eax
mov dword [ebp - 0x40], 0x30
call fcn.00555020
add esp, 0x18
lea ecx, [ebp - 0x154]
push ecx
mov dword [ebp - 0x154], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4e6f64
mov eax, dword [ebp - 0x150]
cmp eax, 5
jae 0x4e6f6b
cmp eax, 4
jne 0x4e6f64
cmp dword [ebp - 0x14c], 0x5a
jae 0x4e6f6b
mov dword [ebp - 0x40], 0x2c
lea eax, [ebp - 0x40]
push eax
push 1
push edi
lea edx, [ebp - 0x21c]
push ebx
mov dword [ebp - 0x18], 0x64
mov dword [ebp - 0x3c], 0x3f
mov dword [ebp - 0x1c], edx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test dword [ebp - 0x38], 0x100
jne 0x4e7028
push 0x10
call fcn.0055549a
mov esi, eax
add esp, 4
test esi, esi
je 0x4e7028
mov eax, dword [ebp - 0x38]
or eax, 0x100
mov dword [ebp - 0x38], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x34]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4e6fd0
add ecx, 0xfffffd94
jmp 0x4e6fd2
xor ecx, ecx
push esi
lea edx, [ebp - 0x40]
push edx
call fcn.004b2a10
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053f875
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x4e7017
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x40]
push edx
push 1
push edi
push ebx
mov dword [ebp - 0x20], esi
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push ebx
inc edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jl 0x4e6f06
pop esi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x10]
push eax
add ecx, 0x20
mov dword [ebp + 0x10], ebx
call fcn.00425c60
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4e7070
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5935bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 4], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], edi
mov dword [ebp - 4], 1
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [ebp - 4], 2
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x20], eax
mov dword [ebp - 4], 4
lea ecx, [esi + 0x24]
call fcn.00452200
mov dword [ebp - 4], 6
mov ecx, dword [ebp + 8]
push edi
push ecx
lea ecx, [esi + 0x50]
call fcn.004f9d60
mov byte [ebp - 4], 7
lea eax, [esi + 0x26c]
mov dword [ebp + 8], eax
mov dword [eax + 0x10], edi
mov byte [ebp - 4], 8
lea ecx, [eax + 0x20]
mov dword [ebp - 0x14], ecx
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov byte [ebp - 4], 0xa
mov dword [eax + 0x2c], edi
mov edx, 0xf
mov dword [eax + 0x14], edi
mov dword [eax + 0x1c], 0xc0c0c0
mov dword [eax], 0x10
mov dword [eax + 4], edx
mov dword [eax + 8], 0x16
mov dword [eax + 0xc], 0x15
mov byte [ebp - 4], 0xb
mov dword [esi], vtable.CUSBShadowView.1.0
mov dword [esi + 0x50], vtable.CUSBShadowView.0
mov dword [esi + 0x2a0], edi
mov dword [esi + 0x2a4], edi
mov byte [ebp - 4], 0xc
lea eax, [esi + 0x2cc]
mov dword [esi + 0x2a8], edi
lea ecx, [eax + 8]
mov dword [eax + 4], edi
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], ecx
mov dword [ecx + 0xc], edi
mov byte [ebp - 4], 0xe
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], edi
mov byte [ebp - 4], dl
mov edx, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [eax + 0x20], edx
mov byte [ebp - 4], 0x11
mov dword [eax], vtable.CPagedHeaderCtrl.0
mov dword [eax + 0x24], edi
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], edi
mov dword [eax + 0x30], edi
mov byte [ebp - 4], 0x12
lea ecx, [esi + 0x318]
mov byte [esi + 0x314], 1
call fcn.004a3030
mov byte [ebp - 4], 0x13
mov eax, dword [0x5f5774]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x32c]
mov ecx, 0x5f5774
mov dword [ebp + 8], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x15
mov eax, dword [0x5f5774]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x354]
mov ecx, 0x5f5774
mov dword [ebp + 8], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e9ae0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.00443820
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push ebx
push esi
mov dword [ebp - 8], 0
call edi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4e9bae
push 0xf0
push ebx
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
test eax, eax
je 0x4e9b34
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov eax, dword [ebp - 0xc]
push eax
push esi
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x4e9b97
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4e9b97
push ebx
push edi
call fcn.004e5c00
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
add esp, 8
push ecx
mov ebx, eax
mov eax, dword [ebp + 0x10]
push edx
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4e9b83
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp ebx, edi
je 0x4e9ba0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4e9ba0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4e9bae
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ef7e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593e40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea eax, [esi + 8]
mov dword [esi + 4], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], ebx
mov dword [ebp - 4], 1
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [ebp - 4], 2
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x20], eax
mov dword [ebp - 4], 4
mov dword [esi], vtable.CxSkinButton.0
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov byte [ebp - 4], 5
mov dword [esi + 0x38], ebx
mov byte [ebp - 4], 6
mov dword [esi + 0x3c], ebx
mov byte [ebp - 4], 7
mov dword [esi + 0x40], ebx
mov byte [ebp - 4], 8
mov dword [esi + 0x44], ebx
mov byte [ebp - 4], 9
mov dword [esi + 0x48], ebx
mov byte [ebp - 4], 0xa
mov ecx, 1
xor edx, edx
push 0x12
mov word [esi + 0x5c], cx
mov word [esi + 0x4c], dx
mov dword [esi + 0x54], ebx
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esi + 0x50], eax
mov byte [esi + 0x24], bl
mov word [esi + 0x2c], bx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4f0230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 3
push 0
push str.SOFTWAREStaffCopAdminProtect
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4f0258
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, 4
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 8]
push edx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.SIZE
push ecx
mov dword [ebp - 8], 0
call ebx
test eax, eax
je 0x4f0295
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp - 8]
test edi, edi
jne 0x4f02a5
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 1
push edi
call fcn.005553ec
mov esi, eax
add esp, 8
test esi, esi
je 0x4f02ef
push edi
push 0
push esi
call fcn.00555020
mov edx, dword [ebp - 8]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
lea ecx, [ebp - 0xc]
push ecx
push 0
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x10]
push str.DATA
push edx
mov dword [ebp - 0xc], 3
call ebx
test eax, eax
jne 0x4f02ef
cmp dword [ebp - 4], eax
jne 0x4f02f8
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 4]
mov ecx, dword [ebp + 8]
push edi
push esi
push ecx
call fcn.00554470
mov edx, dword [ebp + 0xc]
add esp, 0xc
pop esi
mov dword [edx], edi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f0330
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 4]
push eax
push 0
push 3
push 0
push 0
push 0
push str.SOFTWAREStaffCopAdminProtect
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4f0360
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push str.SIZE
push edx
mov dword [ebp - 8], esi
call edi
test eax, eax
jne 0x4f039f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push esi
push eax
push 3
push 0
push str.DATA
push ecx
call edi
test eax, eax
je 0x4f03a7
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4f03c0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 3
push 0
push str.SOFTWAREStaffCopAdminProtect
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4f03e6
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.SIZE
push ecx
call esi
test eax, eax
je 0x4f040d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push str.DATA
push eax
call esi
test eax, eax
je 0x4f042d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret