joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54d3d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x59f848
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esi + 0x18]
mov ecx, dword [esi]
mov edx, dword [eax]
push eax
push ecx
push edx
push ecx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0054c000
cmp dword [esi + 0xc], 0
jne 0x54d42b
mov ecx, dword [esi + 0x18]
push ecx
call fcn.0056ba57
add esp, 4
cmp dword [esi + 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
jne 0x54d44a
mov edx, dword [esi]
push edx
call fcn.0056ba57
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret

Function at 0x54e2f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x59f9b6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x2c]
mov cx, word [eax]
mov ebx, dword [esp + 0x30]
mov word [esi + 4], cx
mov dl, byte [eax + 2]
lea edi, [esi + 8]
push ebx
mov ecx, edi
mov byte [esi + 6], dl
call fcn.0054c380
mov eax, dword [ebx]
lea ecx, [esp + 0x2c]
lea ebx, [esi + 0x24]
push ecx
mov ecx, ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], eax
call fcn.0054cce0
fld dword [0x5bf280]
fstp dword [esi + 0x44]
mov eax, dword [edi + 0x14]
mov edi, dword [edi]
mov byte [esp + 0x24], 1
test edi, edi
je 0x54e374
mov edi, dword [edi]
jmp 0x54e376
xor edi, edi
mov edx, dword [edi]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
push 9
mov ecx, ebx
mov dword [esp + 0x1c], edx
call fcn.0054d910
mov dword [esi + 0x3c], 7
mov dword [esi + 0x40], 8
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8

Function at 0x5536b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x59fc98
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
lea ecx, [esi + 4]
mov dword [esp + 0x18], ebx
mov dword [esi], vtable.google::protobuf::MessageOptions.0
call fcn.00545bf0
mov dword [esi + 0x28], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x44], bl
mov byte [esi + 0x45], bl
mov byte [esi + 0x46], bl
mov byte [esi + 0x47], bl
mov dword [esi + 0x2c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x553a60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x59fc98
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
lea ecx, [esi + 4]
mov dword [esp + 0x18], ebx
mov dword [esi], vtable.google::protobuf::FieldOptions.0
call fcn.00545bf0
mov dword [esi + 0x28], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov byte [esi + 0x4c], bl
mov dword [esi + 0x38], ebx
mov byte [esi + 0x4d], bl
mov byte [esi + 0x4e], bl
mov byte [esi + 0x4f], bl
mov dword [esi + 0x2c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x553ea0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x59fc98
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor edi, edi
lea ecx, [esi + 4]
mov dword [esp + 0x18], edi
mov dword [esi], vtable.google::protobuf::OneofOptions.0
call fcn.00545bf0
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
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 0x554150
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x59fc98
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
lea ecx, [esi + 4]
mov dword [esp + 0x18], ebx
mov dword [esi], vtable.google::protobuf::EnumOptions.0
call fcn.00545bf0
mov dword [esi + 0x28], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x44], bl
mov byte [esi + 0x45], bl
mov dword [esi + 0x2c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x554470
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x59fc98
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
lea ecx, [esi + 4]
mov dword [esp + 0x18], ebx
mov dword [esi], vtable.google::protobuf::EnumValueOptions.0
call fcn.00545bf0
mov dword [esi + 0x28], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x44], bl
mov dword [esi + 0x2c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x554790
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x59fc98
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
lea ecx, [esi + 4]
mov dword [esp + 0x18], ebx
mov dword [esi], vtable.google::protobuf::ServiceOptions.0
call fcn.00545bf0
mov dword [esi + 0x28], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x44], bl
mov dword [esi + 0x2c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x554a80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x59fc98
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
lea ecx, [esi + 4]
mov dword [esp + 0x18], ebx
mov dword [esi], vtable.google::protobuf::MethodOptions.0
call fcn.00545bf0
mov dword [esi + 0x28], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x44], bl
mov dword [esi + 0x2c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x554d10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x59fd1e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor edi, edi
mov dword [esi], vtable.google::protobuf::UninterpretedOption.0
mov dword [esp + 0x18], edi
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
push 0x505980
push 0x5f8780
mov byte [esp + 0x20], 2
call fcn.004c38e0
fldz
mov dword [esi + 0xc], edi
mov eax, dword [0x5f877c]
fstp qword [esi + 0x38]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov ecx, dword [0x5f877c]
mov dword [esi + 0x40], ecx
mov edx, dword [0x5f877c]
mov dword [esi + 0x44], edx
add esp, 8
mov dword [esi + 8], edi
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 0x557720
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x59fe10
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor edi, edi
mov dword [esi], vtable.google::protobuf::FileDescriptorProto.0
mov dword [esp + 0x18], edi
mov dword [esi + 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
push 0x505980
push 0x5f8780
mov byte [esp + 0x20], 8
call fcn.004c38e0
mov dword [esi + 0xc], edi
mov eax, dword [0x5f877c]
mov dword [esi + 0x10], eax
mov ecx, dword [0x5f877c]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov edx, dword [0x5f877c]
mov dword [esi + 0x88], edx
add esp, 8
mov dword [esi + 8], edi
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 0x557c20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x59ff1e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor edi, edi
mov dword [esi], vtable.google::protobuf::DescriptorProto.0
mov dword [esp + 0x18], edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
push 0x505980
push 0x5f8780
mov byte [esp + 0x20], 9
call fcn.004c38e0
mov dword [esi + 0xc], edi
mov eax, dword [0x5f877c]
mov dword [esi + 0x10], eax
mov dword [esi + 0x74], edi
add esp, 8
mov dword [esi + 8], edi
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 0x558990
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5a0074
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor edi, edi
mov dword [esi], vtable.google::protobuf::SourceCodeInfo_Location.0
mov dword [esp + 0x18], edi
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
push 0x505980
push 0x5f8780
mov byte [esp + 0x20], 4
call fcn.004c38e0
mov dword [esi + 0xc], edi
mov eax, dword [0x5f877c]
mov dword [esi + 0x30], eax
mov ecx, dword [0x5f877c]
mov dword [esi + 0x34], ecx
add esp, 8
mov dword [esi + 8], edi
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 0x564f40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a03e8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00404c50
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x48], ebx
call fcn.005644e0
cmp dword [esp + 0x2c], 0x10
mov bl, byte [eax + 8]
jb 0x564fc6
mov edx, dword [esp + 0x18]
push edx
call fcn.0056a760
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x3c
ret
Function at 0x56936e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5f8ab4], 0
push esi
jne 0x5692e1
call fcn.00569207
test eax, eax
je 0x569324
mov eax, dword [0x5f8ab4]
cmp eax, 1
jne 0x569302
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x569324
pop esi
ret
push eax
call dword [0x5f8abc]
test eax, eax
jne 0x56936c
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x569328
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x5f8ab4]
call dword [0x5f8abc]
mov edi, eax
test edi, edi
je 0x56934d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x569369
mov edi, esi
add esi, 0xff0
push edi
push dword [0x5f8ab4]
call dword [0x5f8ab8]
add edi, 0x10
cmp edi, esi
jb 0x569355
mov eax, edi
pop edi
pop esi
ret
jmp 0x5692ce

Function at 0x56ab51
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5f4964]
jne 0x56ab5b
repz ret
jmp fcn.0057613c

Function at 0x584d9b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00575a76
and dword [ebp - 4], 0
cmp dword [0x5f9888], 0
mov ebx, eax
jne 0x584e4c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x584efd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x584efd
push eax
call fcn.00575a04
mov dword [esp], 0x5c82a0
push edi
mov dword [0x5f9888], eax
call esi
push eax
call fcn.00575a04
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5f988c], eax
call esi
push eax
call fcn.00575a04
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5f9890], eax
call esi
push eax
call fcn.00575a04
pop ecx
mov dword [0x5f9898], eax
test eax, eax
je 0x584e4c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00575a04
pop ecx
mov dword [0x5f9894], eax
mov eax, dword [0x5f9894]
cmp eax, ebx
je 0x584ea4
cmp dword [0x5f9898], ebx
je 0x584ea4
push eax
call fcn.00575a7f
push dword [0x5f9898]
mov esi, eax
call fcn.00575a7f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x584ea4
test edi, edi
je 0x584ea4
call esi
test eax, eax
je 0x584e9b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x584e9b
test byte [ebp - 0xc], 1
jne 0x584ea4
or dword [ebp + 0x10], 0x200000
jmp 0x584edd
mov eax, dword [0x5f988c]
cmp eax, ebx
je 0x584edd
push eax
call fcn.00575a7f
pop ecx
test eax, eax
je 0x584edd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x584edd
mov eax, dword [0x5f9890]
cmp eax, ebx
je 0x584edd
push eax
call fcn.00575a7f
pop ecx
test eax, eax
je 0x584edd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5f9888]
call fcn.00575a7f
pop ecx
test eax, eax
je 0x584efd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x584eff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x589df0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.0056d570
mov eax, dword [0x5f4964]
xor eax, esp
mov dword [esp + 0x2c10], eax
mov eax, dword [esp + 0x2c18]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x589f5b
cmp dword [esp + 0x2c20], edi
je 0x589f5b
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x10], edi
xor ebx, ebx
lea ebx, [ebx]
push ebx
push str..PhysicalDrive_d
lea eax, [esp + 0x30]
push 0x100
push eax
call fcn.00589810
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push edi
lea ecx, [esp + 0x40]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x589f34
xor eax, eax
push 0x2710
lea edx, [esp + 0x514]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.0056b960
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x51c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x589f27
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.0056b960
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.0058b510
mov edx, dword [esp + 0x2c48]
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x128]
push ecx
push edx
push eax
call fcn.00589710
test eax, eax
jne 0x589f27
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x589f3e
inc ebx
cmp ebx, 0x10
jl 0x589e40
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.0056ab51
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0056ab51
add esp, 0x2c14
ret
Function at 0x58a200
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x5f4964]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x58a401
cmp dword [esp + 0x2f8], 0
je 0x58a401
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0056b960
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x5c8334
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x58a3c8
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x58a3bb
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x58a389
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x58a37e
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0056b960
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.0058a0f0
add esp, 0x14
test eax, eax
je 0x58a37e
cmp byte [esp + 0x24], 0
je 0x58a342
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x58a37e
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x58a371
mov cl, byte [esi + eax]
test cl, cl
je 0x58a371
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x58a356
jmp 0x58a375
test edx, edx
jne 0x58a376
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x58a2a0
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x58a401
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.00589710
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.0056ab51
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0056ab51
add esp, 0x2ec
ret