joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431ff0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 4], edx
push 0
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_PeekNamedPipe
test eax, eax
je 0x43214d
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
jbe 0x43214d
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
xor ecx, ecx
call fcn.004077b8
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
call fcn.004073cc
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
test eax, eax
je 0x432062
sub eax, 4
mov eax, dword [eax]
xor ecx, ecx
xchg edx, eax
call fcn.00405340
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 4], edx
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
call fcn.004073cc
mov esi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ebx, eax
test ebx, ebx
je 0x432090
sub ebx, 4
mov ebx, dword [ebx]
push 0
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push ebx
push esi
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
je 0x43214d
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
jbe 0x432140
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp word [eax + 0x2a], 0
je 0x4320de
mov eax, dword [ebp + 8]
mov ebx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
movzx ecx, byte [ebp - 5]
mov eax, dword [ebx + 0x2c]
call dword [ebx + 0x28]
jmp 0x432140
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4320f0
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp + 8]
mov dword [edx - 0x10], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x10]
mov eax, dword [ebp + 8]
add edx, dword [eax - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
add eax, 0x20
xor ecx, ecx
call fcn.004077b8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
add eax, 0x20
call fcn.004073cc
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x10]
add eax, edx
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
call fcn.004073cc
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 4]
pop edx
call fcn.0040504c
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
jne 0x431ffe
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x432b40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
call sub.kernel32.dll_GetTickCount64
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, ebx
call fcn.0040792c
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x432b6d
test al, 0x10
sete bl
jmp 0x432b6f
xor ebx, ebx
lea eax, [ebp - 8]
call fcn.0042d6f0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [0x47f750]
mov edx, dword [0x47f754]
cmp edx, dword [ebp - 0xc]
jne 0x432b95
cmp eax, dword [ebp - 0x10]
jae 0x432ba9
jmp 0x432b97
jge 0x432ba9
mov eax, dword [ebp - 0x10]
mov dword [0x47f750], eax
mov eax, dword [ebp - 0xc]
mov dword [0x47f754], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x432be0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
mov eax, esi
call fcn.0040792c
mov edi, eax
push edi
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x432c37
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
mov edi, eax
cmp edi, 0xffffffff
je 0x432c37
test edi, 1
je 0x432c37
and edi, 0xfffffffe
push edi
mov eax, esi
call fcn.0040792c
mov ebx, eax
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
push ebx
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x432c40
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
mov bl, 1
mov eax, esi
call fcn.0040792c
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov edi, eax
cmp edi, 0xffffffff
je 0x432c7d
test edi, 1
je 0x432c7d
and edi, 0xfffffffe
push edi
mov eax, esi
call fcn.0040792c
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
jne 0x432c7d
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x432c90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040792c
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x432cac
test al, 1
jne 0x432cb1
xor eax, eax
pop ebx
pop ebp
ret
mov al, 1
pop ebx
pop ebp
ret

Function at 0x432cc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
call sub.kernel32.dll_GetTickCount64
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, ebx
call fcn.0040792c
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x432cf1
test eax, 0x10
seta bl
jmp 0x432cf3
xor ebx, ebx
lea eax, [ebp - 8]
call fcn.0042d6f0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [0x47f758]
mov edx, dword [0x47f75c]
cmp edx, dword [ebp - 0xc]
jne 0x432d19
cmp eax, dword [ebp - 0x10]
jae 0x432d2d
jmp 0x432d1b
jge 0x432d2d
mov eax, dword [ebp - 0x10]
mov dword [0x47f758], eax
mov eax, dword [ebp - 0xc]
mov dword [0x47f75c], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x434120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.KERNEL32.DLL_FindResourceW
mov edi, eax
mov dword [ebx + 0x10], edi
test edi, edi
jne 0x43414e
push ebp
call fcn.00434070
pop ecx
mov eax, dword [ebx + 0x10]
push eax
push esi
call sub.KERNEL32.DLL_LoadResource
mov edi, eax
mov dword [ebx + 0x14], edi
test edi, edi
jne 0x434168
push ebp
call fcn.00434070
pop ecx
mov edi, ebx
mov eax, dword [ebx + 0x14]
push eax
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x10]
push eax
push esi
call sub.KERNEL32.DLL_SizeofResource
mov edx, dword [ebp - 8]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x437200
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x43729c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
jne 0x43729c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x3c]
add dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0x4550
jne 0x43729c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
movzx eax, word [eax + 0x14]
cmp eax, 0xe0
jne 0x43729c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
cmp word [eax + 0x18], 0x10b
jne 0x43729c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [edx + 4], eax
pop ecx
pop ebp
ret
Function at 0x437d00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor edi, edi
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
mov dword [ebp - 8], eax
movzx edx, bx
mov eax, esi
call fcn.004178b0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x437dcb
and bx, 0xf
cmp bx, 2
jne 0x437d48
mov ebx, 8
mov esi, 1
jmp 0x437d52
mov ebx, 2
mov esi, 4
push 0
push 0
push 0
push ebx
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CreateFileMappingW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x437d76
push ebp
call fcn.00437ca0
pop ecx
jmp 0x437dcb
push 0
push 0
push 0
push esi
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x437d98
push ebp
call fcn.00437ca0
pop ecx
jmp 0x437dcb
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetFileSize
cmp eax, 0xffffffff
jne 0x437db1
push ebp
call fcn.00437ca0
pop ecx
jmp 0x437dcb
mov edx, dword [ebp - 8]
push edx
mov edx, dword [ebp - 4]
push edx
push eax
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x437aec]
call fcn.00438200
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x438580
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, eax
xor esi, esi
push 0x40
push ebx
call sub.KERNEL32.DLL_IsBadReadPtr
test eax, eax
jne 0x4385cf
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x4385cf
cmp dword [eax + 0x3c], 0
je 0x4385cf
mov dword [ebp - 4], ebx
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
push 0xf8
push esi
call sub.KERNEL32.DLL_IsBadReadPtr
test eax, eax
jne 0x4385cd
cmp dword [esi], 0x4550
je 0x4385cf
xor esi, esi
mov eax, esi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4385e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, eax
xor esi, esi
push 0x40
push ebx
call sub.KERNEL32.DLL_IsBadReadPtr
test eax, eax
jne 0x43862f
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x43862f
cmp dword [eax + 0x3c], 0
je 0x43862f
mov dword [ebp - 4], ebx
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
push 0x108
push esi
call sub.KERNEL32.DLL_IsBadReadPtr
test eax, eax
jne 0x43862d
cmp dword [esi], 0x4550
je 0x43862f
xor esi, esi
mov eax, esi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x438aa0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x438bc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, dword [0x4388f8]
call fcn.00409acc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
push 0
push 0x410
call sub.KERNEL32.DLL_OpenProcess
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x438ba7
xor eax, eax
push ebp
push 0x438ba0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.psapi.dll_EnumProcessModules
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x438b77
mov ebx, dword [ebp - 0x10]
shr ebx, 2
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4388f8]
call fcn.004099a8
add esp, 4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.psapi.dll_EnumProcessModules
test eax, eax
je 0x438b87
dec ebx
test ebx, ebx
jl 0x438b87
inc ebx
xor esi, esi
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + esi*4]
mov eax, dword [ebp - 0xc]
call fcn.00438930
pop ecx
inc esi
dec ebx
jne 0x438b5e
jmp 0x438b87
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00438a10
pop ecx
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438ba7
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438bcc
lea eax, [ebp - 4]
mov edx, dword [0x4388f8]
call fcn.00409acc
pop eax
jmp eax
Function at 0x440e70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
je 0x440e93
mov eax, dword [ebp - 8]
call fcn.0040792c
push eax
call sub.KERNEL32.DLL_OutputDebugStringW
pop ecx
pop ecx
pop ebp
ret
Function at 0x44c1b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
call fcn.00405b08
mov ebx, edx
mov esi, eax
cmp byte [esi + 0x1c], 0
jne 0x44c1e0
mov edx, dword [esi + 0x28]
mov eax, esi
call fcn.0044c280
test al, al
jne 0x44c1e0
push 1
mov eax, dword [esi + 4]
push eax
call sub.KERNEL32.DLL_TerminateThread
mov dl, 0xfc
and dl, bl
mov eax, esi
call fcn.0044c3b0
lea eax, [esi + 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx], ecx
call fcn.0040578c
lea eax, [esi + 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
xor ecx, ecx
mov dword [edx], ecx
call fcn.0040578c
test bl, bl
jle 0x44c224
mov eax, esi
call fcn.00405ab0
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x44c9c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x44cb83
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407230
cmp dword [ebp - 4], 0
je 0x44ca03
mov eax, dword [ebp - 4]
cmp word [eax], 0x5c
jne 0x44ca03
xor eax, eax
jmp 0x44ca05
mov al, 1
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x44ca20
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00407cb4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0044cd30
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x44cafd
xor edx, edx
push ebp
push 0x44caf6
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0044d390
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0044cde0
test al, al
je 0x44cad2
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00406f90
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x44cad2
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0xc]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0040792c
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x44cacc
mov eax, dword [ebp - 8]
call fcn.0040792c
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040797c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0044c9c0
dec ebx
cmp ebx, 0xffffffff
jne 0x44ca7f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44cafd
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0044d390
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040792c
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0044cbd0
push eax
call sub.advapi32.dll_RegDeleteKeyExW
cmp eax, 0x78
je 0x44cb38
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x1c], eax
test eax, eax
sete bl
jmp 0x44cb5e
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040792c
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0044cbd0
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov dword [ebx + 0x1c], eax
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44cb8a
lea eax, [ebp - 0x3c]
call fcn.00406e44
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ea4
pop eax
jmp eax
Function at 0x44cbf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 8], eax
mov esi, ebx
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, edi
call fcn.0040792c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [esi + 0x1c], eax
test eax, eax
je 0x44cc37
xor eax, eax
mov dword [ebp + 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
cmp dword [ebp - 8], 1
jne 0x44cc44
mov al, 1
jmp 0x44cc64
cmp dword [ebp - 8], 2
jne 0x44cc4e
mov al, 2
jmp 0x44cc64
cmp dword [ebp - 8], 4
jne 0x44cc58
mov al, 3
jmp 0x44cc64
cmp dword [ebp - 8], 3
jne 0x44cc62
mov al, 4
jmp 0x44cc64
xor eax, eax
mov ecx, dword [ebp + 8]
mov byte [ecx], al
mov eax, edx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x44cc80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, esi
xor ecx, ecx
mov edx, 8
call fcn.00405340
mov edi, ebx
lea eax, [esi + 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.0040792c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [edi + 0x1c], eax
test eax, eax
sete dl
cmp dword [ebp - 8], 1
jne 0x44ccd0
mov al, 1
jmp 0x44ccf0
cmp dword [ebp - 8], 2
jne 0x44ccda
mov al, 2
jmp 0x44ccf0
cmp dword [ebp - 8], 4
jne 0x44cce4
mov al, 3
jmp 0x44ccf0
cmp dword [ebp - 8], 3
jne 0x44ccee
mov al, 4
jmp 0x44ccf0
xor eax, eax
mov byte [esi], al
mov eax, edx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x44d3d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x44d492
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 4]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 8]
call fcn.0044cde0
test al, al
je 0x44d472
mov ecx, dword [ebp - 0x28]
add ecx, 2
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406f90
mov ebx, dword [ebp - 0x2c]
dec ebx
test ebx, ebx
jl 0x44d472
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.0040792c
push eax
push esi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.0040792c
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.0040797c
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
call fcn.004355d0
inc esi
dec ebx
jne 0x44d426
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d499
lea eax, [ebp - 0x30]
call fcn.00406e44
lea eax, [ebp - 4]
call fcn.00406e44
pop eax
jmp eax
Function at 0x44d4a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x44d562
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 4]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 8]
call fcn.0044cde0
test al, al
je 0x44d542
mov ecx, dword [ebp - 0x20]
add ecx, 2
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406f90
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x44d542
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.0040792c
push eax
push esi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegEnumValueW
mov eax, dword [ebp - 4]
call fcn.0040792c
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.0040797c
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
call fcn.004355d0
inc esi
dec ebx
jne 0x44d4f6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d569
lea eax, [ebp - 0x30]
call fcn.00406e44
lea eax, [ebp - 4]
call fcn.00406e44
pop eax
jmp eax

Function at 0x44e090
Capabilities:
Get system firmware table

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x52534d42
call sub.kernel32.dll_GetSystemFirmwareTable
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jbe 0x44e15e
mov eax, dword [ebp - 0xc]
call fcn.00404ea8
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x44e157
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0x52534d42
call sub.kernel32.dll_GetSystemFirmwareTable
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
ja 0x44e0ff
call fcn.00406630
jmp 0x44e15e
mov eax, dword [ebp - 0xc]
sub eax, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
lea edx, [eax + 4]
mov eax, dword [ebp - 0x14]
mov ecx, 8
call fcn.0040504c
mov eax, dword [ebp - 0x14]
lea edx, [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp eax, dword [ebp - 0x10]
je 0x44e13b
call fcn.00406630
jmp 0x44e15e
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e15e
mov eax, dword [ebp - 0x14]
call fcn.00404ec4
pop eax
jmp eax
mov al, byte [ebp - 5]
pop ebx
mov esp, ebp
pop ebp
ret