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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd94
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x7e
xor esi, esi
mov ebx, ecx
lea edx, [ebp - 0x82]
xor ecx, ecx
push esi
push edx
mov dword [ebp - 0xd94], eax
mov word [ebp - 0x84], cx
call fcn.004e7d90
push 0xfe
lea ecx, [ebp - 0x182]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x184], ax
call fcn.004e7d90
add esp, 0x18
lea edx, [ebp - 0xd88]
push edx
push str.HARDWAREDESCRIPTIONSystem
push reloc.WS2_32.dll_bind
mov dword [ebp - 0xd88], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4c2dc5
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xd8c]
push eax
mov eax, dword [ebp - 0xd88]
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0xd90]
push edx
push esi
push str.SystemBiosVersion
push eax
mov dword [ebp - 0xd90], esi
mov dword [ebp - 0xd8c], 0x80
call edi
lea ecx, [ebp - 0xd8c]
push ecx
mov ecx, dword [ebp - 0xd88]
lea edx, [ebp - 0x184]
push edx
lea eax, [ebp - 0xd90]
push eax
push esi
push str.SystemBiosDate
push ecx
mov dword [ebp - 0xd8c], pe_nt_image_headers32
call edi
push 0x7fe
lea eax, [ebp - 0xd82]
xor edx, edx
push esi
push eax
mov word [ebp - 0xd84], dx
call fcn.004e7d90
add esp, 0xc
xor eax, eax
jmp 0x4c2d60
movzx ecx, word [ebp + eax - 0x84]
mov word [ebp + eax - 0xd84], cx
add eax, 2
cmp cx, si
jne 0x4c2d60
lea ecx, [ebp - 0xd84]
push 0xd
push ecx
call fcn.004e46a9
add esp, 8
cmp eax, esi
je 0x4c2db8
xor edx, edx
mov word [eax], dx
xor eax, eax
jmp 0x4c2da0
movzx ecx, word [ebp + eax - 0xd84]
mov word [ebp + eax - 0x84], cx
add eax, 2
cmp cx, si
jne 0x4c2da0
mov eax, dword [ebp - 0xd88]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x3fe
lea edx, [ebp - 0x582]
xor ecx, ecx
push esi
push edx
mov word [ebp - 0x584], cx
call fcn.004e7d90
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x584]
push str.Vendor:_s_Date:_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp - 0xd94]
push 0xce
lea edi, [ebp - 0x584]
call fcn.004c0b90
mov ecx, dword [ebp - 4]
add esp, 0x20
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret
Function at 0x4c3bf0
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 0x424], eax
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x53b5fd], bl
je 0x4c3def
lea ecx, [ebp - 0x410]
push ecx
push 0x502118
push 1
push ebx
push 0x5021e8
mov dword [ebp - 0x410], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4c3de9
mov eax, dword [ebp - 0x410]
lea ecx, [ebp - 0x414]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x414], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push 0x52619c
push eax
call edx
test eax, eax
js 0x4c3ddb
mov eax, dword [ebp - 0x414]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 0x414]
js 0x4c3dd3
lea edx, [ebp - 0x418]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_Keyboard
mov dword [ebp - 0x418], ebx
mov ecx, dword [eax]
push 0x526208
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
js 0x4c3dcd
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], ebx
cmp eax, ebx
je 0x4c3dc5
mov ecx, dword [eax]
lea edx, [ebp - 0x420]
push edx
lea edx, [ebp - 0x41c]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x420], ebx
je 0x4c3da7
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x434]
push edx
push ebx
push str.Description
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp word [ebp - 0x434], 1
je 0x4c3d8a
push 0x3fe
lea edx, [ebp - 0x40a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x40c], cx
call fcn.004e7d90
mov eax, dword [ebp - 0x42c]
lea edx, [ebp - 0x40c]
add esp, 0xc
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4c3d60
mov ebx, dword [ebp - 0x424]
push 0xd2
lea edi, [ebp - 0x40c]
call fcn.004c0b90
add esp, 4
xor ebx, ebx
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x418]
cmp eax, ebx
jne 0x4c3ce5
jmp 0x4c3dad
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x41c]
cmp ecx, ebx
je 0x4c3dc5
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x410]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret
Function at 0x4c40c0
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 0x424], eax
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x53b5fd], bl
je 0x4c42bf
lea ecx, [ebp - 0x410]
push ecx
push 0x502118
push 1
push ebx
push 0x5021e8
mov dword [ebp - 0x410], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4c42b9
mov eax, dword [ebp - 0x410]
lea ecx, [ebp - 0x414]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x414], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push 0x52619c
push eax
call edx
test eax, eax
js 0x4c42ab
mov eax, dword [ebp - 0x414]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 0x414]
js 0x4c42a3
lea edx, [ebp - 0x418]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_PointingDevice
mov dword [ebp - 0x418], ebx
mov ecx, dword [eax]
push 0x526208
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
js 0x4c429d
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], ebx
cmp eax, ebx
je 0x4c4295
mov ecx, dword [eax]
lea edx, [ebp - 0x420]
push edx
lea edx, [ebp - 0x41c]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x420], ebx
je 0x4c4277
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x434]
push edx
push ebx
push str.Description
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp word [ebp - 0x434], 1
je 0x4c425a
push 0x3fe
lea edx, [ebp - 0x40a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x40c], cx
call fcn.004e7d90
mov eax, dword [ebp - 0x42c]
lea edx, [ebp - 0x40c]
add esp, 0xc
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4c4230
mov ebx, dword [ebp - 0x424]
push 0xd4
lea edi, [ebp - 0x40c]
call fcn.004c0b90
add esp, 4
xor ebx, ebx
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x418]
cmp eax, ebx
jne 0x4c41b5
jmp 0x4c427d
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x41c]
cmp ecx, ebx
je 0x4c4295
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x410]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret
Function at 0x4c47c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, 2
push edi
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x21c], esi
lea ebx, [ebx]
xor eax, eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
jmp 0x4c4810
movzx ecx, word [eax + 0x523b1c]
mov word [ebp + eax - 0x10], cx
add eax, 2
test cx, cx
jne 0x4c4810
lea eax, [ebp - 0x10]
lea edx, [esi + 0x41]
push eax
mov word [ebp - 0x10], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x220], eax
add eax, 0xfffffffe
cmp eax, 1
ja 0x4c49bb
push 0x800
call fcn.004e4240
push 0x800
mov edi, eax
push 0
push edi
mov dword [ebp - 0x228], edi
call fcn.004e7d90
push edi
lea edx, [ebp - 0x10]
call fcn.004c42d0
push 9
push edi
mov dword [ebp - 0x224], eax
mov esi, edi
call fcn.004e46a9
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x4c499f
lea esp, [esp]
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.004e7d90
mov eax, ebx
sub eax, esi
sar eax, 1
add eax, eax
push eax
lea ecx, [ebp - 0x210]
push esi
push ecx
call fcn.004eaf30
add esp, 0x18
cmp dword [ebp - 0x224], 0
je 0x4c4987
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x210]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c4906
test dx, dx
je 0x4c4902
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c4906
add eax, 4
add ecx, 4
test dx, dx
jne 0x4c48e0
xor eax, eax
jmp 0x4c490b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4c4987
lea eax, [ebp - 0x10]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c4914
mov edi, dword [ebp - 0x218]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4c4930
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x218]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4c4955
mov edx, dword [0x51d454]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x22c]
mov dword [edi], edx
mov edi, dword [ebp - 0x228]
mov dword [ecx], eax
mov dword [ebp - 0x214], 1
lea esi, [ebx + 2]
push 9
push esi
call fcn.004e46a9
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4c4890
push 0x800
push 0
push edi
call fcn.004e7d90
push edi
call fcn.004e424b
mov esi, dword [ebp - 0x21c]
add esp, 0x10
inc esi
mov dword [ebp - 0x21c], esi
cmp esi, 0x1a
jl 0x4c4800
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret
Function at 0x4c5ae0
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 0x424], eax
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x53b5fd], bl
je 0x4c5d13
lea ecx, [ebp - 0x410]
push ecx
push 0x502118
push 1
push ebx
push 0x5021e8
mov dword [ebp - 0x410], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4c5d0d
mov eax, dword [ebp - 0x410]
lea ecx, [ebp - 0x414]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x414], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push 0x52619c
push eax
call edx
test eax, eax
js 0x4c5cff
mov eax, dword [ebp - 0x414]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 0x414]
js 0x4c5cf7
lea edx, [ebp - 0x418]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_DisplayConfiguration
mov dword [ebp - 0x418], ebx
mov ecx, dword [eax]
push 0x526208
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
js 0x4c5cf1
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], ebx
cmp eax, ebx
je 0x4c5ce9
mov ecx, dword [eax]
lea edx, [ebp - 0x420]
push edx
lea edx, [ebp - 0x41c]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x420], ebx
je 0x4c5ccb
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x434]
push edx
push ebx
push 0x526254
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp word [ebp - 0x434], 1
je 0x4c5cae
push 0x3fe
lea edx, [ebp - 0x40a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x40c], cx
call fcn.004e7d90
mov eax, dword [ebp - 0x42c]
lea edx, [ebp - 0x40c]
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4c5c52
lea eax, [ebp - 0x40c]
push str.mv_video_hook_driver
push eax
call fcn.004e49bf
add esp, 8
test eax, eax
jne 0x4c5cae
lea eax, [ebp - 0x40c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4c5c82
sub eax, edx
sar eax, 1
je 0x4c5cae
mov ebx, dword [ebp - 0x424]
push 0xda
lea edi, [ebp - 0x40c]
call fcn.004c0b90
add esp, 4
xor ebx, ebx
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x418]
cmp eax, ebx
jne 0x4c5bd5
jmp 0x4c5cd1
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x41c]
cmp ecx, ebx
je 0x4c5ce9
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x410]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret
Function at 0x4c72d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x202]
push ecx
mov dword [ebp - 0x208], 0
mov word [ebp - 0x204], ax
call fcn.004e7d90
add esp, 0xc
lea edx, [ebp - 0x208]
push edx
push 0x20019
push 0
push str.SystemCurrentControlSetServiceslanmanserverparameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c739f
push edi
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x208]
lea ecx, [ebp - 0x204]
push ecx
lea edx, [ebp - 0x210]
push edx
push 0
push str.Srvcomment
push eax
mov dword [ebp - 0x20c], 0x200
mov dword [ebp - 0x210], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x208]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x4c739f
lea eax, [ebp - 0x204]
mov edx, esi
mov ecx, eax
sub edx, ecx
jmp 0x4c7390
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4c7390
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
Function at 0x4c8940
Capabilities:
Get common file path
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edx, edx
push 0x206
mov dword [ebp - 0x248], eax
push edx
lea eax, [ebp - 0x22a]
push eax
mov dword [ebp - 0x244], ecx
mov word [ebp - 0x22c], dx
call fcn.004e7d90
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, dword [ebp - 0x22c]
push edx
lea edi, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0
call fcn.004c8af0
add esp, 4
xor eax, eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
jmp 0x4c89d0
movzx ecx, word [eax + 0x523b1c]
mov word [ebp + eax - 0x14], cx
add eax, 2
test cx, cx
jne 0x4c89d0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov eax, 2
mov dword [ebp - 0x240], eax
add eax, 0x41
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4c8ac1
mov eax, dword [0x526878]
mov ecx, dword [str..A:]
mov edx, dword [0x526874]
push 0
push 0x80
push 3
push 0
push 3
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], ecx
mov cx, word [0x52687c]
mov dword [ebp - 0x20], edx
mov dx, word [ebp - 0x14]
push 0
lea eax, [ebp - 0x24]
push eax
or edi, 0xffffffff
mov word [ebp - 0x18], cx
mov word [ebp - 0x1c], dx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4c8a97
push 0
lea ecx, [ebp - 0x24c]
push ecx
push 0xc
lea edx, [ebp - 0x238]
push edx
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4c8a90
cmp dword [ebp - 0x24c], 0xc
jne 0x4c8a90
mov edi, dword [ebp - 0x234]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
cmp edi, dword [ebp - 0x23c]
jne 0x4c8aae
mov ecx, dword [ebp - 0x248]
lea eax, [ebp - 0x14]
push eax
push ecx
jmp 0x4c8ab9
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.004e4f1c
add esp, 0xc
mov eax, dword [ebp - 0x240]
inc eax
mov dword [ebp - 0x240], eax
cmp eax, 0x1a
jl 0x4c89f5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret
Function at 0x4c8af0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x526878]
mov eax, dword [str..A:]
mov ecx, dword [0x526874]
push esi
push 0
push 0x80
push 3
push 0
push 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], eax
mov ax, word [0x52687c]
mov dword [ebp - 0x10], ecx
mov cx, word [ebp + 8]
push 0
lea edx, [ebp - 0x14]
push edx
mov word [ebp - 8], ax
mov word [ebp - 0xc], cx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c8b7f
push 0
lea eax, [ebp - 0x24]
push eax
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4c8b78
cmp dword [ebp - 0x24], 0xc
jne 0x4c8b78
mov edx, dword [ebp - 0x1c]
mov dword [edi], edx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004e3946
mov esp, ebp
pop ebp
ret
Function at 0x4c8b90
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcb8
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push 0x1fe
mov ebx, ecx
lea ecx, [ebp - 0x392]
xor eax, eax
push edi
push ecx
mov esi, edx
mov dword [ebp - 0xcb8], edi
mov word [ebp - 0x394], ax
call fcn.004e7d90
push 0x18e
lea eax, [ebp - 0x192]
xor edx, edx
push edi
push eax
mov dword [ebp - 0xcb4], edi
mov word [ebp - 0x194], dx
call fcn.004e7d90
push 0x11c
lea ecx, [ebp - 0xcb0]
push edi
push ecx
call fcn.004e7d90
add esp, 0x24
lea edx, [ebp - 0xcb0]
push edx
mov dword [ebp - 0xcb0], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0xcac], 6
jb 0x4c8c50
jmp 0x4c8c30
movzx ecx, word [eax + str.SOFTWAREMICROSOFTWINDOWS_NTCURRENTVERSION]
mov word [ebp + eax - 0x194], cx
add eax, 2
cmp cx, di
jne 0x4c8c30
jmp 0x4c8c67
movzx ecx, word [eax + str.SOFTWAREMICROSOFTWINDOWSCURRENTVERSION]
mov word [ebp + eax - 0x194], cx
add eax, 2
cmp cx, di
jne 0x4c8c50
call fcn.004bc7d0
test eax, eax
je 0x4c8c86
lea eax, [ebp - 0xcb4]
push eax
push 0x101
push edi
lea ecx, [ebp - 0x194]
push ecx
jmp 0x4c8c97
lea edx, [ebp - 0xcb4]
push edx
push 1
push edi
lea eax, [ebp - 0x194]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4c8cdf
mov eax, dword [ebp - 0xcb4]
lea ecx, [ebp - 0xcb8]
push ecx
lea edx, [ebp - 0x394]
push edx
push edi
push edi
push str.ProductId
push eax
mov dword [ebp - 0xcb8], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0xcb4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x7fe
lea eax, [ebp - 0xb92]
xor edx, edx
push edi
push eax
mov word [ebp - 0xb94], dx
call fcn.004e7d90
push 0x53bce0
push 0x53bc20
lea ecx, [ebp - 0xb94]
push str._s_t_s_t_t_t_t_t_t_tO.S._t
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x259
lea edi, [ebp - 0xb94]
call fcn.004c0b90
push ebx
mov ecx, esi
call fcn.004c8d50
mov ecx, dword [ebp - 4]
add esp, 0x24
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret
Function at 0x4cb7e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x88]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesWinMaster_Service
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x88], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cb8e2
push esi
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x82]
push edx
mov word [ebp - 0x84], cx
call fcn.004e7d90
add esp, 0xc
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x90]
push edx
push 0
push str.Version
push eax
mov dword [ebp - 0x8c], 0x40
mov dword [ebp - 0x90], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x88]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4cb8e2
mov edx, str.Asset
lea ecx, [ebp - 0x84]
jmp 0x4cb8a0
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4cb8c6
test ax, ax
je 0x4cb8c2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4cb8c6
add ecx, 4
add edx, 4
test ax, ax
jne 0x4cb8a0
xor eax, eax
jmp 0x4cb8cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4cb8e2
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004e3946
mov esp, ebp
pop ebp
ret

Function at 0x4cbb60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x53b314]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push ecx
call esi
test eax, eax
je 0x4cbbc0
mov eax, dword [0x53b314]
mov edx, dword [eax]
mov dword [0x53cde0], edx
movzx ecx, byte [eax + 4]
mov edx, dword [0x53cde8]
mov byte [0x53cde4], cl
mov dword [eax], edx
movzx ecx, byte [0x53cdec]
lea edx, [ebp - 4]
push edx
mov byte [eax + 4], cl
mov ecx, dword [ebp - 4]
push ecx
push 5
push eax
call esi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4cbbd0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x53b314]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push ecx
call esi
test eax, eax
mov eax, dword [0x53b314]
je 0x4cbc18
mov edx, dword [0x53cde0]
mov dword [eax], edx
mov cl, byte [0x53cde4]
lea edx, [ebp - 4]
push edx
mov byte [eax + 4], cl
mov ecx, dword [ebp - 4]
push ecx
push 5
push eax
call esi
mov eax, dword [0x53b314]
xor edx, edx
pop esi
mov esp, ebp
pop ebp
ret