joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e4c0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x1038
call fcn.005327a0
mov eax, dword [0x5c8810]
xor eax, esp
mov dword [esp + 0x1034], eax
push ebx
mov ebx, dword [esp + 0x1044]
push esi
mov esi, dword [esp + 0x1044]
push edi
push 0x1030
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00530830
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x1030
lea edx, [esp + 0x1c]
push edx
mov eax, 1
push 0x1030
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, edx
push eax
push 0x2d1400
push esi
mov dword [esp + 0x30], 0x31
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 3
mov dword [esp + 0x48], 0x28
mov dword [esp + 0x4c], 0x1000
mov dword [esp + 0x44], 0
call edi
test eax, eax
je 0x45e57f
push 0x1000
lea ecx, [esp + 0x44]
push ecx
push ebx
call fcn.00532150
add esp, 0xc
mov eax, 1
jmp 0x45e5c8
push 0
lea edx, [esp + 0x10]
push edx
push 0x1030
lea eax, [esp + 0x1c]
push eax
push 0x1030
mov ecx, eax
push ecx
push 0x2d1400
push esi
mov dword [esp + 0x44], 0xffffffff
call edi
test eax, eax
je 0x45e5c6
push 0x1000
lea edx, [esp + 0x44]
push edx
push ebx
call fcn.00532150
add esp, 0xc
mov eax, 1
jmp 0x45e5c8
xor eax, eax
mov ecx, dword [esp + 0x1040]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053081c
add esp, 0x1038
ret 8

Function at 0x45e5f0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x1038
call fcn.005327a0
mov eax, dword [0x5c8810]
xor eax, esp
mov dword [esp + 0x1034], eax
push ebx
push esi
mov esi, dword [esp + 0x1044]
push edi
mov edi, dword [esp + 0x104c]
push 0x1030
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00530830
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x1030
lea edx, [esp + 0x1c]
push edx
mov eax, 2
push 0x1030
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, edx
push eax
push 0x2d1400
push esi
mov dword [esp + 0x30], 0x31
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 3
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0x28
mov dword [esp + 0x4c], 0x1000
call ebx
test eax, eax
je 0x45e6a7
mov ecx, 0x80
lea esi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov eax, 1
jmp 0x45e6d4
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x1030
lea edx, [esp + 0x1c]
push edx
push 0x1030
mov eax, edx
push eax
push 0x2d1400
push esi
mov dword [esp + 0x44], 0xffffffff
call ebx
test eax, eax
jne 0x45e695
mov ecx, dword [esp + 0x1040]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053081c
add esp, 0x1038
ret 8
Function at 0x45e6f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24c
mov eax, dword [0x5c8810]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push ebp
mov ebp, dword [esp + 0x25c]
push esi
mov esi, dword [esp + 0x25c]
push edi
push 0x244
xor ebx, ebx
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.00530830
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esp, 0xc
push ebx
lea edx, [esp + 0x14]
push edx
push 0x244
lea eax, [esp + 0x20]
push eax
mov ecx, 0x2c
push 0x244
mov word [esp + 0x28], cx
mov dword [esp + 0x40], ecx
mov ecx, eax
push ecx
push 0x4d004
push esi
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3b], 0x18
mov dword [esp + 0x40], 0x200
mov dword [esp + 0x44], 2
mov dword [esp + 0x48], 0x44
mov byte [esp + 0x3a], 0x10
mov byte [esp + 0x50], 0xb5
mov byte [esp + 0x51], 0xfe
mov byte [esp + 0x52], bl
mov byte [esp + 0x53], 5
mov byte [esp + 0x54], bl
mov byte [esp + 0x55], bl
mov byte [esp + 0x56], bl
mov byte [esp + 0x57], bl
mov byte [esp + 0x58], bl
mov byte [esp + 0x59], 0x40
mov byte [esp + 0x3c], bl
mov byte [esp + 0x78], 1
call edi
test eax, eax
je 0x45e878
push ebx
lea edx, [esp + 0x14]
push edx
push 0x244
lea eax, [esp + 0x20]
push eax
push 0x244
mov ecx, eax
push ecx
push 0x4d004
push esi
mov byte [esp + 0x3a], 0x10
mov byte [esp + 0x50], 0xa2
mov byte [esp + 0x51], 0xfe
mov byte [esp + 0x52], bl
mov byte [esp + 0x53], 5
mov byte [esp + 0x54], bl
mov byte [esp + 0x55], bl
mov byte [esp + 0x56], bl
mov byte [esp + 0x57], bl
mov byte [esp + 0x58], 1
mov byte [esp + 0x59], bl
mov byte [esp + 0x3c], 1
mov byte [esp + 0x78], bl
call edi
test eax, eax
je 0x45e878
xor ecx, ecx
xor eax, eax
xor esi, esi
xor edx, edx
movzx edi, byte [esp + eax + 0x58]
add ecx, edi
movzx edi, byte [esp + eax + 0x59]
add ebx, edi
movzx edi, byte [esp + eax + 0x5a]
add edx, edi
movzx edi, byte [esp + eax + 0x5b]
add eax, 4
add esi, edi
cmp eax, 0x200
jl 0x45e830
add ebx, edx
add ebx, esi
add ecx, ebx
je 0x45e878
push 0x1000
lea edx, [esp + 0x5c]
push edx
push ebp
call fcn.00532150
add esp, 0xc
mov eax, 1
jmp 0x45e87a
xor eax, eax
mov ecx, dword [esp + 0x258]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053081c
add esp, 0x24c
ret 8
Function at 0x45e8a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24c
mov eax, dword [0x5c8810]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x25c]
push edi
mov edi, dword [esp + 0x264]
push 0x244
xor ebx, ebx
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.00530830
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esp, 0xc
push ebx
mov eax, 2
mov dword [esp + 0x28], eax
mov byte [esp + 0x5c], al
mov al, 0xff
lea edx, [esp + 0x14]
push edx
push 0x244
mov byte [esp + 0x68], al
mov byte [esp + 0x69], al
mov byte [esp + 0x6a], al
mov byte [esp + 0x6b], al
lea eax, [esp + 0x20]
push eax
mov ecx, 0x2c
push 0x244
mov word [esp + 0x28], cx
mov dword [esp + 0x40], ecx
mov ecx, eax
push ecx
push 0x4d004
push esi
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3b], 0x18
mov dword [esp + 0x40], 0x200
mov dword [esp + 0x48], 0x44
mov byte [esp + 0x3a], 0x10
mov byte [esp + 0x50], 0xb5
mov byte [esp + 0x51], 0xfe
mov byte [esp + 0x52], bl
mov byte [esp + 0x53], 6
mov byte [esp + 0x54], bl
mov byte [esp + 0x55], bl
mov byte [esp + 0x56], bl
mov byte [esp + 0x57], bl
mov byte [esp + 0x58], bl
mov byte [esp + 0x59], 0x40
mov byte [esp + 0x3c], bl
call ebp
test eax, eax
je 0x45ea32
push ebx
lea edx, [esp + 0x14]
push edx
push 0x244
lea eax, [esp + 0x20]
push eax
push 0x244
mov ecx, eax
push ecx
push 0x4d004
push esi
mov byte [esp + 0x3a], 0x10
mov byte [esp + 0x50], 0xa2
mov byte [esp + 0x51], 0xfe
mov byte [esp + 0x52], bl
mov byte [esp + 0x53], 6
mov byte [esp + 0x54], bl
mov byte [esp + 0x55], bl
mov byte [esp + 0x56], bl
mov byte [esp + 0x57], bl
mov byte [esp + 0x58], 1
mov byte [esp + 0x59], bl
mov byte [esp + 0x3c], 1
mov byte [esp + 0x78], bl
call ebp
test eax, eax
je 0x45ea32
xor ecx, ecx
xor eax, eax
xor esi, esi
xor edx, edx
movzx ebp, byte [esp + eax + 0x58]
add ecx, ebp
movzx ebp, byte [esp + eax + 0x59]
add ebx, ebp
movzx ebp, byte [esp + eax + 0x5a]
add edx, ebp
movzx ebp, byte [esp + eax + 0x5b]
add eax, 4
add esi, ebp
cmp eax, 0x200
jl 0x45e9f2
add ebx, edx
add ebx, esi
add ecx, ebx
je 0x45ea32
mov ecx, 0x80
lea esi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov eax, 1
jmp 0x45ea34
xor eax, eax
mov ecx, dword [esp + 0x258]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053081c
add esp, 0x24c
ret 8
Function at 0x469ec0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x214]
push edi
lea edi, [esi + 0x214]
xor eax, eax
cmp ecx, 0xffffffff
je 0x469f35
lea eax, [esi + 0x224]
push eax
mov eax, dword [esi + 0x220]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x14]
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x238]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x469f17
push edi
call dword [sym.imp.KERNEL32.dll_CancelIo]
xor edi, edi
jmp 0x469f1c
mov edi, 1
mov ecx, dword [esi + 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test edi, edi
jne 0x469f33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x469f40
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x218]
push edi
lea edi, [esi + 0x218]
xor eax, eax
cmp ecx, 0xffffffff
je 0x469fb5
lea eax, [esi + 0x224]
push eax
mov eax, dword [esi + 0x21c]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x14]
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x238]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x469f97
push edi
call dword [sym.imp.KERNEL32.dll_CancelIo]
xor edi, edi
jmp 0x469f9c
mov edi, 1
mov ecx, dword [esi + 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test edi, edi
jne 0x469fb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x46a150
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x214]
push edi
lea edi, [esi + 0x214]
xor eax, eax
cmp ecx, 0xffffffff
je 0x46a1c3
lea eax, [esi + 0x218]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x22c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x46a1a5
push edi
call dword [sym.imp.KERNEL32.dll_CancelIo]
xor edi, edi
jmp 0x46a1aa
mov edi, 1
mov ecx, dword [esi + 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test edi, edi
jne 0x46a1c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x50f71e
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.rootwmi
mov ebx, ecx
call esi
push str.MSSmBios_RawSMBiosTables
mov dword [ebp - 0x18], eax
call esi
push str.SMBiosData
mov dword [ebp - 0x14], eax
call esi
xor esi, esi
push 2
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x50f8bb
push esi
push 2
push esi
push 3
push 6
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, esi
jge 0x50f78d
cmp eax, 0x80010119
jne 0x50f870
lea eax, [ebp - 4]
push eax
push 0x58ae5c
push 1
push esi
push 0x58af1c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x50f870
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x18]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x50f870
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push esi
push esi
push dword [ebp - 0x14]
push eax
call dword [ecx + 0x48]
test eax, eax
jl 0x50f870
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x10]
push edx
push 1
push 0xfa0
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x20], 1
jne 0x50f870
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x38]
push edx
push esi
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x10]
mov eax, 0x2011
cmp word [ebp - 0x38], ax
jne 0x50f870
mov eax, dword [ebp - 0x30]
push edi
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x24], eax
cmp edi, esi
je 0x50f86f
cmp edi, 0x4000
jle 0x50f856
push dword [ebx + 0x14]
call fcn.005120f6
push edi
call fcn.005120eb
pop ecx
pop ecx
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x24]
push edi
push dword [eax + 0xc]
push dword [ebx + 0x14]
call fcn.00532150
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov word [eax + 6], di
pop edi
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x50f880
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], esi
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x50f890
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 8], esi
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x50f8a0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0xc], esi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x1c]
call esi
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x518b02
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x518b49
call fcn.0051fe9e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x518b49
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x518b65
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0051867a
mov esi, eax
test edi, edi
je 0x518b63
test ebx, ebx
je 0x518b63
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x51f275
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x51f299
cmp dword [edi + 0x54], 0
jne 0x51f299
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0051fe9e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0051f236
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x520567
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x5c8810]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x5205ff
push 0x586a7c
push 4
push eax
call fcn.005314be
push eax
call fcn.00402b40
add esp, 0x10
push ebx
push edi
call fcn.00532ff3
mov edi, dword [eax]
call fcn.00532ff3
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00532644
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00532ff3
cmp dword [eax], ebx
je 0x520616
call fcn.00532ff3
push dword [eax]
call fcn.00512215
pop ecx
jmp 0x52061d
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x5205aa
jmp 0x5206a4
call fcn.00532ff3
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x5206a0
cmp dword [ebp - 0x234], esi
jae 0x5206a0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.00530830
add esp, 0xc
push 0x586658
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x52068f
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x52068f
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x52068f
push ebx
push ebx
push esi
jmp 0x520698
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x5206a2
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0053081c
leave
ret

Function at 0x52273a
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 1
mov ecx, esi
test al, 1
je 0x52275e
mov eax, dword [esi]
push 0
call dword [eax + 0x98]
test eax, eax
jne 0x52276c
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0x98]
jmp 0x522758
xor eax, eax
inc eax
pop esi
ret

Function at 0x52474f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x5628cb
call fcn.00531d28
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004028b0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x5247b1
call fcn.0051f778
cmp eax, 1
jne 0x5247b1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x586da8
push eax
call fcn.00521820
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0051ab63
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004021e0
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004021e0
mov eax, esi
call fcn.00531e00
ret 0x10
Function at 0x5247da
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x5628cb
call fcn.00531d28
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004028b0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x52483c
call fcn.0051f778
cmp eax, 1
jne 0x52483c
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x586da8
push eax
call fcn.00521820
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0051ab63
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004021e0
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004021e0
mov eax, esi
call fcn.00531e00
ret 0x14

Function at 0x52dd7f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c8810]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x52ddb4
xor eax, eax
jmp 0x52de07
lea eax, [ebp - 0x210]
push eax
call fcn.00530d5c
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x52dde5
push 0x586dcc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005308fb
add esp, 0xc
test eax, eax
jne 0x52ddb0
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005308fb
add esp, 0xc
test eax, eax
jne 0x52ddb0
lea eax, [ebp - 0x210]
push eax
call fcn.0052a1dd
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053081c
leave
ret

Function at 0x53081c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5c8810]
jne 0x530826
repz ret
jmp fcn.00536652
Function at 0x542d80
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.00536061
and dword [ebp - 4], 0
cmp dword [0x5ccdf0], 0
mov ebx, eax
jne 0x542e31
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x542ee2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x542ee2
push eax
call fcn.00535fef
mov dword [esp], 0x589730
push edi
mov dword [0x5ccdf0], eax
call esi
push eax
call fcn.00535fef
mov dword [esp], 0x58971c
push edi
mov dword [0x5ccdf4], eax
call esi
push eax
call fcn.00535fef
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5ccdf8], eax
call esi
push eax
call fcn.00535fef
pop ecx
mov dword [0x5cce00], eax
test eax, eax
je 0x542e31
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00535fef
pop ecx
mov dword [0x5ccdfc], eax
mov eax, dword [0x5ccdfc]
cmp eax, ebx
je 0x542e89
cmp dword [0x5cce00], ebx
je 0x542e89
push eax
call fcn.0053606a
push dword [0x5cce00]
mov esi, eax
call fcn.0053606a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x542e89
test edi, edi
je 0x542e89
call esi
test eax, eax
je 0x542e80
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x542e80
test byte [ebp - 0xc], 1
jne 0x542e89
or dword [ebp + 0x10], 0x200000
jmp 0x542ec2
mov eax, dword [0x5ccdf4]
cmp eax, ebx
je 0x542ec2
push eax
call fcn.0053606a
pop ecx
test eax, eax
je 0x542ec2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x542ec2
mov eax, dword [0x5ccdf8]
cmp eax, ebx
je 0x542ec2
push eax
call fcn.0053606a
pop ecx
test eax, eax
je 0x542ec2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5ccdf0]
call fcn.0053606a
pop ecx
test eax, eax
je 0x542ee2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x542ee4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x54bc09
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push 2
push esi
mov edi, ecx
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x54bc2a
xor eax, eax
jmp 0x54bcd1
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, esi
jge 0x54bc4f
cmp eax, 0x80010119
je 0x54bc4f
mov ecx, edi
call fcn.0054baa7
jmp 0x54bc23
lea eax, [edi + 0x20]
push eax
push 0x58ae5c
push 1
push esi
push 0x58af1c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x54bc46
push ebx
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [edi + 0x20]
lea ebx, [edi + 0x1c]
push ebx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
mov dword [edi + 0x2c], eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0xc]
test eax, eax
jl 0x54bcc7
mov eax, dword [ebx]
cmp eax, esi
je 0x54bcc7
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x58a8f4
push eax
call dword [ecx]
test eax, eax
jl 0x54bcc7
push esi
push esi
push 3
push esi
push esi
push esi
push 0xa
push dword [ebx]
mov ebx, dword [sym.imp.ole32.dll_CoSetProxyBlanket]
call ebx
test eax, eax
jge 0x54bcd7
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, edi
call fcn.0054baa7
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 4
push esi
push esi
push 3
push esi
push esi
push esi
push 0xa
push dword [ebp - 4]
call ebx
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp ebx, esi
jl 0x54bcc7
lea ebx, [edi + 0x24]
push ebx
push 0x58aeec
push 1
push esi
push 0x58af8c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x54bcc7
mov ebx, dword [ebx]
mov eax, dword [ebx]
lea ecx, [edi + 0x28]
push ecx
push 0x58af0c
push ebx
call dword [eax]
test eax, eax
jl 0x54bcc7
xor eax, eax
inc eax
jmp 0x54bcd0

Function at 0x54ed90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5c8810]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x21c], ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x54ee01
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053081c
mov esp, ebp
pop ebp
ret 0xc