joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e22a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x8633f0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 0xa
mov ecx, dword [esp + 0x44]
push edi
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x44], edi
call fcn.00529880
push edi
push 0x20
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x50], 1
call fcn.004e0f30
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e2333
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e2358
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
cmp ebp, edi
je 0x4e2420
jmp 0x4e2372
xor edi, edi
cmp ebp, edi
je 0x4e2405
mov esi, dword [ebp + 8]
mov ebp, dword [ebp]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x1c], esp
mov ebx, esp
call eax
cmp dword [esi - 4], edi
lea ecx, [esi - 4]
jl 0x4e23ac
cmp eax, dword [esi - 0x10]
jne 0x4e23ac
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4e23dc
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x4e240f
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea eax, [eax + eax + 2]
push eax
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0080217f
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
call fcn.004e1c30
add esp, 4
test al, al
je 0x4e23f1
inc dword [esp + 0x14]
test ebp, ebp
jne 0x4e2370
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4e2414
xor edi, edi
jmp 0x4e2420
push 0x80004005
call fcn.004a8210
call fcn.004a8580
xor edx, edx
cmp eax, dword [esp + 0x24]
sete dl
lea edi, [edx + 1]
lea ecx, [esp + 0x1c]
call fcn.004afe70
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x4e2440
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x8633f0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 0xa
mov ecx, dword [esp + 0x44]
push edi
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x44], edi
call fcn.00529880
push edi
push 0x20
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x50], 1
call fcn.004e0f30
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e24d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e24f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
cmp ebp, edi
je 0x4e25c0
jmp 0x4e2512
xor edi, edi
cmp ebp, edi
je 0x4e25a5
mov esi, dword [ebp + 8]
mov ebp, dword [ebp]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x1c], esp
mov ebx, esp
call eax
cmp dword [esi - 4], edi
lea ecx, [esi - 4]
jl 0x4e254c
cmp eax, dword [esi - 0x10]
jne 0x4e254c
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4e257c
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x4e25af
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea eax, [eax + eax + 2]
push eax
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0080217f
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
call fcn.004e2030
add esp, 4
test al, al
je 0x4e2591
inc dword [esp + 0x14]
test ebp, ebp
jne 0x4e2510
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4e25b4
xor edi, edi
jmp 0x4e25c0
push 0x80004005
call fcn.004a8210
call fcn.004a8580
xor edx, edx
cmp eax, dword [esp + 0x24]
sete dl
lea edi, [edx + 1]
lea ecx, [esp + 0x1c]
call fcn.004afe70
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x4e36b0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x8635e0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov al, byte [esp + 0x48]
cmp al, byte [0x8d2c24]
jne 0x4e36e7
xor al, al
jmp 0x4e36f0
mov byte [0x8d2c24], al
mov al, byte [esp + 0x4c]
xor ebp, ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 0xa
mov dword [esp + 0x40], ebp
test al, al
je 0x4e3819
lea eax, [esp + 0x20]
push eax
call fcn.004e30c0
add esp, 4
test al, al
je 0x4e3819
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x20]
mov byte [esp + 0x40], 1
cmp esi, ebp
je 0x4e3819
mov eax, esi
mov esi, dword [esi]
add eax, 8
push eax
lea ecx, [esp + 0x50]
push 0x40957c
push ecx
call fcn.004b1a10
mov eax, dword [eax]
add esp, 0xc
lea edx, [esp + 0x48]
push edx
push 0x2001f
push ebp
push eax
push DirectSoundEnumerateW
mov dword [esp + 0x5c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x4e37a4
xor eax, eax
cmp edi, ebp
je 0x4e3796
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
cmp eax, ebp
mov eax, dword [esp + 0x4c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e37c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4e3806
cmp byte [0x8d2c24], 0
je 0x4e37fa
push 0x402a88
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push 0x402a88
push 1
push ebp
push 0x409964
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4e3806
push 0x409964
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp esi, ebp
jne 0x4e374e
cmp edi, ebp
je 0x4e3819
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.004afe70
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x4e6a70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x863a30
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x38]
push eax
push 0x2720
call fcn.007da388
push 0x402a88
lea ecx, [esi + 0x94]
mov dword [esp + 0x1c], 0
mov dword [esi], 0x409ffc
call fcn.004a8f10
push 0x402a88
lea ecx, [esi + 0x98]
mov byte [esp + 0x1c], 1
call fcn.004a8f10
lea ecx, [esi + 0x9c]
mov byte [esp + 0x18], 2
call fcn.004abcc0
lea ecx, [esi + 0x13c]
mov byte [esp + 0x18], 3
call fcn.007cb60c
mov dword [esi + 0x13c], 0x4023d4
fld qword [esp + 0x30]
mov eax, dword [esp + 0x28]
fst qword [esi + 0x1c0]
fldz
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
fucompp
mov dword [esi + 0x1b8], eax
mov dword [esi + 0x1b0], ecx
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x18], 4
fnstsw ax
mov dword [esi + 0x1b4], edx
mov dword [esi + 0x1bc], ecx
test ah, 0x44
jp 0x4e6bb5
call fcn.007c9a2f
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x84]
push 0x405084
push 0x40a230
push 0x402d18
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call edx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x20]
push eax
push 0x409c44
push ecx
call fcn.00803d5e
add esp, 0xc
cmp eax, 1
jne 0x4e6b95
fld dword [esp + 0x20]
fstp qword [esi + 0x1c0]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4e6bb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x1c
Function at 0x4e6ee0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundEnumerateW
push eax
mov esi, ecx
xor bl, bl
call dword [0x8d4298]
mov edi, eax
cmp edi, 0xffffffff
je 0x4e7040
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4e7040
cmp dword [esp + 0x10], 0
jg 0x4e7040
mov eax, dword [esp + 0xc]
jl 0x4e6f42
cmp eax, 0x800000
ja 0x4e7040
push eax
call fcn.007c8558
mov edx, dword [esp + 0x10]
add esp, 4
push 0
lea ebx, [esi + 4]
push ebx
push edx
push eax
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx], 0xc
jb 0x4e7030
mov eax, dword [esi]
push 0xc
push 0x40a3a8
push eax
call fcn.00804a4d
add esp, 0xc
test eax, eax
jne 0x4e6fef
mov edi, dword [esi]
mov eax, dword [edi + 0xd0]
lea ecx, [edi + 0xd0]
push ebp
mov edx, eax
mov ebp, eax
shl edx, 0x10
and ebp, 0xff00
or edx, ebp
shr eax, 8
and eax, 0xff00
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 3]
or edx, eax
pop ebp
je 0x4e6fef
push ecx
call fcn.004e6e20
shl eax, 0xb
lea ecx, [edi + 0xcc]
add eax, edi
push ecx
mov dword [esi + 8], eax
call fcn.004e6e20
add esp, 8
shl eax, 0xb
add eax, edi
cmp dword [esi + 8], 0
pop edi
mov dword [esi + 0xc], eax
pop esi
setne al
pop ebx
add esp, 8
ret 4
cmp dword [ebx], 0xc
jb 0x4e7030
mov edx, dword [esi]
push 0xc
push 0x40a3b8
push edx
call fcn.00804a4d
add esp, 0xc
test eax, eax
jne 0x4e7030
mov edi, dword [esi]
lea ebx, [edi + 0xc8]
push ebx
call fcn.004e6e20
add esp, 4
test eax, eax
je 0x4e7030
push ebx
call fcn.004e6e20
shl eax, 0xb
add esp, 4
add eax, edi
mov dword [esi + 8], eax
cmp dword [esi + 8], 0
pop edi
pop esi
setne al
pop ebx
add esp, 8
ret 4
pop edi
pop esi
mov al, bl
pop ebx
add esp, 8
ret 4

Function at 0x4e71c0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
cmp dword [esi], 0
je 0x4e721c
mov eax, dword [esp + 0xc]
push edi
push 0
push 0x80
push 2
push 0
push 7
push 0xc0000000
push eax
call dword [0x8d4298]
mov edi, eax
cmp edi, 0xffffffff
je 0x4e7214
mov edx, dword [esi + 4]
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
ret 4
pop edi
pop esi
mov al, bl
pop ebx
ret 4
pop esi
mov al, bl
pop ebx
ret 4
Function at 0x4e9c50
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4e9c35
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4e9c53
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4e9cb1
inc eax
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4e9c98
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4e9ca1
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4e9cab
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4e9c8d
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4e9c17
mov dword [ebp + 8], esi
xor edi, edi
dec dword [ebx + 0x26a1845]
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4e9cfe
dec eax
je 0x4e9cf5
sub eax, 3
je 0x4e9cec
mov dword [ebp - 4], 0x40
jmp 0x4e9d1b
mov dword [ebp - 4], 4
jmp 0x4e9d01
mov dword [ebp - 4], 0x20
jmp 0x4e9d01
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
or bh, bh
xchg ebp, eax
inc esp
invalid
invalid
invalid
test eax, eax
je 0x4e9d4d
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4e9ccd
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004e955e
jl 0x4e9ccc
push ebx
mov ch, 0xff
jne 0x4e9d58
push 1
push esi
call edi
mov eax, esi
jmp 0x4e9d59
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e9c70
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4e9c35
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4e9c53
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4e9cb1
inc eax
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4e9c98
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4e9ca1
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4e9cab
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4e9c8d
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4e9c17
mov dword [ebp + 8], esi
xor edi, edi
dec dword [ebx + 0x26a1845]
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4e9cfe
dec eax
je 0x4e9cf5
sub eax, 3
je 0x4e9cec
mov dword [ebp - 4], 0x40
jmp 0x4e9d1b
mov dword [ebp - 4], 4
jmp 0x4e9d01
mov dword [ebp - 4], 0x20
jmp 0x4e9d01
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
or bh, bh
xchg ebp, eax
inc esp
invalid
invalid
invalid
test eax, eax
je 0x4e9d4d
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4e9ccd
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004e955e
jl 0x4e9ccc
push ebx
mov ch, 0xff
jne 0x4e9d58
push 1
push esi
call edi
mov eax, esi
jmp 0x4e9d59
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ee1a0
Capabilities:
Lock the desktop
Shutdown system

Disassembly:
push ebx
push esi
mov esi, ecx
call fcn.007c9a2f
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x1fc]
test cl, 4
jne 0x4ee1c4
cmp byte [eax + 0x10ac], 0
jne 0x4ee1c4
xor bl, bl
jmp 0x4ee1c6
mov bl, 1
test cl, 8
je 0x4ee1e8
push 1
push 0x40c90c
call fcn.005c1fa0
add esp, 8
push 0
push 1
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov bl, 1
jmp 0x4ee25c
test cl, 0x10
je 0x4ee20a
push 1
push 0x40c90c
call fcn.005c1fa0
add esp, 8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov bl, 1
jmp 0x4ee25c
test cl, 0x20
je 0x4ee22c
push 1
push 0x40c90c
call fcn.005c1fa0
add esp, 8
push 0
push 0x19
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov bl, 1
jmp 0x4ee25c
test cl, 0x40
je 0x4ee24e
push 1
push 0x40c90c
call fcn.005c1fa0
add esp, 8
push 0
push 0x10
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov bl, 1
jmp 0x4ee25c
test cl, cl
jns 0x4ee258
call dword [sym.imp.USER32.dll_LockWorkStation]
test bl, bl
je 0x4ee272
mov eax, dword [esi + 0x20]
push 0
push 0x330
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
mov al, bl
pop ebx
ret
Function at 0x4f1f10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x864098
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, ecx
call fcn.007c9a2f
mov eax, dword [eax + 4]
xor ebx, ebx
cmp byte [eax + 0x474], bl
je 0x4f2088
mov dword [esp + 0x18], ebx
xor esi, esi
call fcn.007c9a2f
mov eax, dword [eax + 4]
cmp byte [eax + 0x474], bl
je 0x4f1ff6
mov dword [esp + 0x10], ebx
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x40], ebx
call sub.DSOUND.dll_DirectSoundCreate
test eax, eax
js 0x4f1fdc
mov eax, dword [esp + 0x10]
mov edx, dword [edi + 0x20]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
js 0x4f1fdc
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
js 0x4f1fdc
mov eax, dword [esp + 0x18]
cmp eax, 7
ja case.0x4f1fb4.1
jmp dword [eax*4 + 0x4f209c]
mov esi, 6
jmp 0x4f1fdc
mov esi, 1
jmp 0x4f1fdc
mov esi, 4
jmp 0x4f1fdc
mov esi, 5
jmp 0x4f1fdc
mov esi, 2
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
cmp eax, ebx
je 0x4f1ffb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4f1ffb
mov esi, 2
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push 0x40cc20
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.004dff00
mov edi, dword [esp + 0x20]
test eax, eax
jne 0x4f207d
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push 0x40cc10
push edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jge 0x4f205d
mov dword [esp + 0x14], ebx
jmp 0x4f2063
cmp dword [esp + 0x14], esi
ja 0x4f207d
push 4
lea eax, [esp + 0x20]
push eax
push 4
push ebx
push 0x40cc10
push edi
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp edi, ebx
je 0x4f2088
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret
Function at 0x4f2950
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x8640e8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], 0x40cd3c
call fcn.007cff5d
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4f299b
push 0x80004005
call fcn.004a8210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], 0xa
push fcn.004a8c20
push fcn.005345e0
push 2
push 4
lea ecx, [esi + 0x20]
push ecx
mov dword [esp + 0x2c], edi
mov dword [esi], 0x40cd44
call fcn.00803c4e
or eax, 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4f7250
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x14], edx
fld qword [edi + 0x18]
fstp qword [esi + 0x18]
fld qword [edi + 0x20]
fstp qword [esi + 0x20]
fld qword [edi + 0x28]
fstp qword [esi + 0x28]
fld qword [edi + 0x30]
fstp qword [esi + 0x30]
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov eax, dword [edi + 0x44]
mov dword [esi + 0x44], eax
movzx ecx, byte [edi + 0x48]
mov byte [esi + 0x48], cl
mov dl, byte [edi + 0x49]
mov byte [esi + 0x49], dl
mov al, byte [edi + 0x4a]
mov byte [esi + 0x4a], al
movzx ecx, byte [edi + 0x4b]
mov byte [esi + 0x4b], cl
mov edx, dword [edi + 0x4c]
mov dword [esi + 0x4c], edx
mov edx, dword [edi + 0x50]
mov ebp, dword [esi + 0x50]
lea ecx, [esi + 0x50]
lea ebx, [edx - 0x10]
sub ebp, 0x10
cmp ebx, ebp
je 0x4f7383
cmp dword [ebp + 0xc], 0
jl 0x4f7379
mov eax, dword [ebx]
cmp eax, dword [ebp]
jne 0x4f7379
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x4f7319
cmp eax, dword [ebx]
jne 0x4f7319
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4f7357
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4f7334
call fcn.004a8580
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 4]
lea ecx, [ecx + ecx + 2]
push ecx
add ebx, 0x10
push ebx
push ecx
add eax, 0x10
push eax
call fcn.0080217f
mov ebx, dword [esp + 0x24]
add esp, 0x10
lea eax, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x4f7371
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
add ebx, 0x10
mov dword [esi + 0x50], ebx
jmp 0x4f7383
mov eax, dword [edx - 0xc]
push eax
push edx
call fcn.004a8db0
fld qword [edi + 0x58]
fstp qword [esi + 0x58]
fld qword [edi + 0x60]
fstp qword [esi + 0x60]
fld qword [edi + 0x68]
fstp qword [esi + 0x68]
fld qword [edi + 0x70]
fstp qword [esi + 0x70]
mov ecx, dword [edi + 0x78]
mov dword [esi + 0x78], ecx
mov dl, byte [edi + 0x7c]
mov byte [esi + 0x7c], dl
mov al, byte [edi + 0x7d]
mov byte [esi + 0x7d], al
mov cl, byte [edi + 0x7e]
mov byte [esi + 0x7e], cl
mov edx, dword [edi + 0x80]
mov dword [esi + 0x80], edx
fld qword [edi + 0x88]
fstp qword [esi + 0x88]
fld qword [edi + 0x90]
fstp qword [esi + 0x90]
fld qword [edi + 0x98]
fstp qword [esi + 0x98]
fld qword [edi + 0xa0]
fstp qword [esi + 0xa0]
fld qword [edi + 0xa8]
fstp qword [esi + 0xa8]
fld qword [edi + 0xb0]
fstp qword [esi + 0xb0]
mov eax, dword [edi + 0xb8]
pop edi
mov dword [esi + 0xb8], eax
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4