joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423bd7
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x42ee4c
call fcn.0042e6a0
mov eax, 0x122c
call fcn.0042e5e0
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x423bfa
xor eax, eax
jmp 0x423d57
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1238]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x423c1b
or eax, 0xffffffff
jmp 0x423d57
mov eax, dword [ebp - 0x2c]
mov cl, byte [ebp + 0xb]
push esi
push edi
shr eax, 2
mov byte [ebp - 0x28], cl
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
je 0x423d47
lea esi, [ebp - 0x1238]
mov dword [ebp - 0x18], eax
push dword [esi]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x423cda
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x14]
push 4
push ecx
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x423cd1
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x236]
mov word [ebp - 0x238], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x238]
push 0x104
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x423cd1
push dword [ebp + 8]
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x423cd1
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.004243e3
jmp 0x423cda
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
dec dword [ebp - 0x18]
jne 0x423c47
cmp dword [ebp - 0x24], ebx
je 0x423d47
mov esi, dword [ebp - 0x20]
sub esi, dword [ebp - 0x24]
sar esi, 2
je 0x423d47
mov eax, esi
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
je 0x423d30
xor eax, eax
cmp esi, ebx
jbe 0x423d1c
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + eax*4]
mov dword [edi + eax*4], ecx
inc eax
cmp eax, esi
jb 0x423d0e
push dword [ebp + 0xc]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push edi
call fcn.0042e536
pop ecx
xor edi, edi
cmp esi, ebx
jbe 0x423d47
mov eax, dword [ebp - 0x24]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, esi
jb 0x423d36
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004243c3
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x423d64
Capabilities:
Check if file exists
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x42ee60
call fcn.0042e6a0
mov eax, 0x122c
call fcn.0042e5e0
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x423ee8
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x423ee8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1238]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x423db6
or eax, 0xffffffff
jmp 0x423eea
mov edx, dword [ebp - 0x28]
mov al, byte [ebp + 0xb]
push esi
push edi
shr edx, 2
mov byte [ebp - 0x24], al
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push 0
mov ecx, 0x82
pop eax
lea edi, [ebp - 0x236]
mov word [ebp - 0x238], bx
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], ebx
je 0x423ed6
lea esi, [ebp - 0x1238]
mov edi, edx
push dword [esi]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x423e6f
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x14]
push 4
push ecx
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x423e66
lea eax, [ebp - 0x238]
push 0x104
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call sub.PSAPI.DLL_GetModuleFileNameExW
push dword [ebp + 8]
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x423e66
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x24]
push eax
call fcn.004243e3
jmp 0x423e6f
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
dec edi
jne 0x423df8
cmp dword [ebp - 0x20], ebx
je 0x423ed6
mov esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
sar esi, 2
je 0x423ed6
mov eax, esi
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
je 0x423ebf
xor eax, eax
cmp esi, ebx
jbe 0x423eab
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + eax*4]
mov dword [edi + eax*4], ecx
inc eax
cmp eax, esi
jb 0x423e9d
push dword [ebp + 0xc]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push edi
call fcn.0042e536
pop ecx
xor edi, edi
cmp esi, ebx
jbe 0x423ed6
mov eax, dword [ebp - 0x20]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, esi
jb 0x423ec5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004243c3
pop edi
xor eax, eax
pop esi
jmp 0x423eea
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4241e7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
xor esi, esi
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov dword [ebp - 0x28], 0x81
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x424276
cmp dword [ebp + 0x10], esi
jbe 0x424248
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp + 0x14]
cmp edi, esi
je 0x424263
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x424263
mov dword [edi], 1
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
push 1
pop esi
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x42427c
Capabilities:
Delete registry key
Set registry value

Disassembly:
push esi
push edi
push 2
mov edi, str.CLSID1A893393_71A8_4a50_95A1_2B89DE87B24C
push dword [0x43ecec]
mov esi, SysReAllocString
push 4
push 0x43fcc4
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x4242af
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov al, 1
jmp 0x4242b1
xor al, al
pop edi
pop esi
ret
Function at 0x4242b4
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1220
call fcn.0042e5e0
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 8], esi
je 0x4243be
cmp dword [ebp + 8], esi
je 0x4243be
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1220]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4243be
push ebx
push edi
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
shr edi, 2
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], esi
je 0x4243b7
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1220]
mov dword [ebp + 8], eax
jmp 0x424320
xor esi, esi
mov eax, dword [ebp + 8]
push dword [eax]
push esi
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x42439e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x42439b
and word [ebp - 0x220], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x220]
push 0x104
push eax
push dword [ebp - 0x10]
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x424393
push dword [ebp + 0xc]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x4243b0
push esi
call ebx
mov edi, dword [ebp - 0xc]
jmp 0x42439e
push esi
call ebx
inc dword [ebp - 4]
add dword [ebp + 8], 4
cmp dword [ebp - 4], edi
jb 0x42431e
jmp 0x4243b7
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop ebx
jmp 0x4243c0
xor eax, eax
pop esi
leave
ret
Function at 0x42556a
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x42ef0c
call fcn.0042e6a0
sub esp, 0x260
mov eax, dword [0x43ee14]
push esi
push edi
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov byte [ebp - 4], 1
jne 0x42559f
xor eax, eax
jmp 0x4255a4
push dword [ebp + 8]
call edi
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
call fcn.00425272
mov esi, str..
mov eax, esi
test eax, eax
je 0x4255be
push esi
call edi
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.004252a9
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x4255e7
xor esi, esi
jmp 0x425729
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__wcsicmp]
lea eax, [ebp - 0x240]
push 0x43eb0c
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x425704
lea eax, [ebp - 0x240]
push 0x43b4e8
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x425704
cmp dword [ebp + 0xc], 0
jne 0x425642
lea eax, [ebp - 0x240]
push str.desktop.ini
push eax
call ebx
pop ecx
test eax, eax
pop ecx
je 0x425704
xor eax, eax
cmp dword [ebp + 8], eax
je 0x42564e
push dword [ebp + 8]
call edi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
call fcn.00425272
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push eax
push 1
mov dword [ebp - 0x1c], 0x5c
call fcn.004252a9
lea eax, [ebp - 0x240]
test eax, eax
je 0x425682
lea eax, [ebp - 0x240]
push eax
call edi
lea ecx, [ebp - 0x240]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004252a9
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4256ab
and al, 0xfe
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x26c], 0x10
je 0x4256d0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.0042556a
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x425704
cmp dword [ebp + 0x10], 0
je 0x4256fb
lea eax, [ebp - 0x240]
push str.index.dat
push eax
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x4256fb
lea eax, [ebp - 0x240]
push eax
push dword [ebp + 8]
call fcn.00425751
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4255f4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop esi
pop ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00425205
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00425205
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x425751
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, 0x42ef20
call fcn.0042e6a0
mov eax, 0x271c
call fcn.0042e5e0
mov eax, dword [0x43ee14]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov edi, 0x2710
xor ebx, ebx
push edi
lea eax, [ebp - 0x2728]
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0xc
cmp dword [ebp + 8], ebx
jne 0x42579a
xor eax, eax
jmp 0x42579f
push dword [ebp + 8]
call esi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
call fcn.00425272
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
push 1
mov dword [ebp - 0x14], 0x5c
call fcn.004252a9
cmp dword [ebp + 0xc], ebx
jne 0x4257c9
xor eax, eax
jmp 0x4257ce
push dword [ebp + 0xc]
call esi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.004252a9
push ebx
push 0x80
push 3
push ebx
push 3
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x425855
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push 0x40
mov esi, eax
push dword [ebp + 8]
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, ebx
jbe 0x425849
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x18]
cmp esi, edi
push 0
push eax
jbe 0x42583c
lea eax, [ebp - 0x2728]
push edi
push eax
push dword [ebp + 8]
call ebx
sub esi, edi
jne 0x42581f
jmp 0x425849
lea eax, [ebp - 0x2728]
push esi
push eax
push dword [ebp + 8]
call ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00425205
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4259a6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4008
call fcn.0042e5e0
and word [ebp - 0x4008], 0
push edi
mov ecx, 0xfff
xor eax, eax
lea edi, [ebp - 0x4006]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x425a55
cmp eax, 0x3fff
ja 0x425a55
lea ecx, [ebp - 0x4008]
push ecx
push eax
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x425a55
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x4008]
push 0x43b434
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x425a55
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
movzx ecx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
movzx ecx, word [eax + 8]
mov eax, dword [eax + 8]
push ecx
shr eax, 0x10
push eax
push str._d._d._d._d
push esi
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x1c
and word [edi + esi*2 - 2], 0
push 1
pop eax
pop esi
jmp 0x425a57
xor eax, eax
pop edi
leave
ret
Function at 0x425beb
Capabilities:
Create directory

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x425c10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x425c10
push 1
pop eax
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x4261eb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
and word [ebp - 0x210], 0
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0x10]
push str.CLSID_sInprocServer32
push 0x103
mov dword [ebp - 8], 1
lea edi, [eax + eax]
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 4]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ebx, SysReAllocString
push eax
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x210]
push str.CodeBase
push eax
push ebx
call esi
test eax, eax
je 0x4262bc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x210]
push 0
push eax
push ebx
call esi
test eax, eax
je 0x4262bc
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push str.CLSID_sLocalServer32
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x210]
push 0
push eax
push ebx
call esi
test eax, eax
jne 0x4262c1
push 1
pop eax
jmp 0x42633d
and word [ebp - 0x418], 0
push dword [ebp + 8]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x416]
push str.CLSID_sTreatAs
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x208
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push 0
push eax
push ebx
call esi
test eax, eax
jne 0x426334
push dword [ebp + 0x10]
lea eax, [ebp - 0x418]
push dword [ebp + 0xc]
push eax
call fcn.004261eb
add esp, 0xc
jmp 0x42633d
mov eax, dword [ebp + 0xc]
and word [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x426b21
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push edi
movzx edi, word [ebp + 0xc]
lea eax, [ebp - 0x1c]
push esi
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.0042e080
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x426c08
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, esi
je 0x426c08
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, esi
je 0x426c08
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x426c08
push ebx
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x426c08
push esi
push dword [ebp + 0xc]
call fcn.00426d41
pop ecx
mov edi, eax
mov eax, dword [ebp + 0xc]
pop ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp edi, esi
je 0x426c08
mov eax, dword [edi + 8]
mov dword [edi + 8], esi
cmp eax, esi
jne 0x426c00
lea eax, [ebp - 0xc]
push esi
push eax
push dword [edi + 4]
call fcn.0042e0a4
cmp eax, esi
je 0x426c00
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
push dword [ebp - 8]
call fcn.0042e092
cmp dword [ebp - 4], esi
pop edi
pop esi
pop ebx
je 0x426c21
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x42750c
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.0042e5e0
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x42762d
cmp dword [ebp + 0xc], esi
je 0x42762d
push ebx
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov edi, 0x2710
push dword [ebp - 4]
lea eax, [ebp - 0x600]
push str..PhysicalDrive_d
push 0x200
push eax
call fcn.004272d7
add esp, 0x10
lea eax, [ebp - 0x600]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x427619
push 0xc
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0xc], esi
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x2d10]
push esi
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x2d10]
push edi
push eax
lea eax, [ebp - 0x18]
push 0xc
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42760d
push 0x3e8
lea eax, [ebp - 0x400]
push esi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x400]
push eax
push 1
push dword [ebp - 0x2cf8]
lea eax, [ebp - 0x2d10]
push eax
call fcn.00406803
add esp, 0x1c
lea eax, [ebp - 0x400]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004272a2
test eax, eax
jne 0x42760d
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x427626
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jl 0x42753b
mov eax, dword [ebp - 8]
pop edi
pop ebx
jmp 0x42762f
xor eax, eax
pop esi
leave
ret
Function at 0x427bd3
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f0
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x427d2b
cmp dword [ebp + 0xc], ebx
je 0x427d2b
push esi
push 0x64
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 8
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x427d0b
mov dword [ebp - 8], ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x14], 0x104
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x427d02
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x2e8]
push ebx
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x427cfa
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 1
push eax
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.ServiceName
mov dword [ebp - 0x10], 0x208
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x427cf1
push 0x64
lea eax, [ebp - 0xe0]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0xe0]
push 0x64
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.00427d30
add esp, 0x18
test eax, eax
je 0x427cf1
cmp byte [ebp - 0x7c], bl
je 0x427cdf
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x427cf1
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x7c]
push 0x64
push eax
call fcn.004272a2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
jmp 0x427c25
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x7c], bl
pop esi
je 0x427d2b
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004272a2
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
jmp 0x427d2d
xor eax, eax
pop ebx
leave
ret