joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c60
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov dword [esi], 0
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401cd1
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x124], 0
push ecx
push edi
call eax
test eax, eax
jne 0x401cc6
mov eax, 2
jmp 0x401cd1
xor eax, eax
cmp dword [ebp - 0x124], eax
setne al
push 0x118
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x11c]
push 0
push eax
mov dword [ebp - 0x120], 0x11c
call fcn.00407ff0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x114]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
cmp edx, 5
jne 0x401d32
test ecx, ecx
jle 0x401d69
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x401d69
cmp edx, 6
jne 0x401d61
cmp byte [ebp - 6], 1
jne 0x401d59
sub ecx, 0
je 0x401d51
dec ecx
je 0x401d49
mov dword [esi], edx
jmp 0x401d69
mov dword [esi], 5
jmp 0x401d69
mov dword [esi], 3
jmp 0x401d69
mov dword [esi], 4
jmp 0x401d69
jle 0x401d69
mov dword [esi], 7
movzx eax, word [ebp - 0xc]
mov dword [esi + 0x10], eax
movzx eax, word [ebp - 0xa]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - 0x148], 0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x148]
test eax, eax
je 0x401de7
cmp eax, 6
je 0x401dde
cmp eax, 9
jne 0x401dee
mov dword [esi + 0x18], 1
jmp 0x401dee
mov dword [esi + 0x18], 2
jmp 0x401dee
mov dword [esi + 0x18], 0
mov ecx, dword [ebp - 0x134]
mov eax, esi
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x12c]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401e12
mov esp, ebp
pop ebp
ret
Function at 0x4067d5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00403a59
mov dword [ebp - 0x14], eax
cmp dword [0x4181dc], esi
jne 0x4068c8
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x406855
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4069a8
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4069a8
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4069a8
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4181dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4181e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4181e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4181ec], eax
test eax, eax
je 0x4068c5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4181e8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4068ed
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4068e0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x406902
push 4
pop eax
jmp 0x4069aa
cmp dword [ebp - 0x14], esi
je 0x406902
push dword [0x4181dc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4068e7
mov eax, dword [0x4181e8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x406960
cmp dword [0x4181ec], edi
je 0x406960
push eax
call ebx
push dword [0x4181ec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x406960
test eax, eax
je 0x406960
call ecx
test eax, eax
je 0x406955
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x406955
test byte [ebp - 8], 1
jne 0x406960
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x406990
mov eax, dword [0x4181e0]
cmp eax, edi
je 0x40698d
push eax
call ebx
test eax, eax
je 0x40698d
call eax
mov esi, eax
test esi, esi
je 0x40698d
mov eax, dword [0x4181e4]
cmp eax, edi
je 0x40698d
push eax
call ebx
test eax, eax
je 0x40698d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4181dc]
call ebx
test eax, eax
je 0x4069a8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4069aa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401e12
mov esp, ebp
pop ebp
ret
Function at 0x40bb66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4429e8]
jne 0x40bb70
repz ret
jmp fcn.00410578

Function at 0x41b3ea
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004100a8
xor ebx, ebx
cmp dword [0x44c534], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41b4bf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41b42a
xor eax, eax
jmp 0x41b583
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x438af8
push edi
call esi
cmp eax, ebx
je 0x41b423
push eax
call fcn.00410045
mov dword [esp], 0x438ae8
push edi
mov dword [0x44c534], eax
call esi
push eax
call fcn.00410045
mov dword [esp], 0x438ad4
push edi
mov dword [0x44c538], eax
call esi
push eax
call fcn.00410045
mov dword [0x44c53c], eax
lea eax, [ebp - 8]
push eax
call fcn.0040f337
test eax, eax
pop ecx
pop ecx
je 0x41b48d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040fbaf
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41b4bf
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00410045
cmp eax, ebx
pop ecx
mov dword [0x44c544], eax
je 0x41b4bf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410045
pop ecx
mov dword [0x44c540], eax
mov eax, dword [0x44c540]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41b538
cmp dword [0x44c544], esi
je 0x41b538
push eax
call fcn.004100b1
pop ecx
call eax
cmp eax, ebx
je 0x41b505
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x44c544]
call fcn.004100b1
pop ecx
call eax
test eax, eax
je 0x41b505
test byte [ebp - 0x18], 1
jne 0x41b538
lea eax, [ebp - 0xc]
push eax
call fcn.0040f36e
test eax, eax
pop ecx
je 0x41b520
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040fbaf
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41b52f
or dword [ebp + 0x10], 0x200000
jmp 0x41b569
or dword [ebp + 0x10], 0x40000
jmp 0x41b569
mov eax, dword [0x44c538]
cmp eax, esi
je 0x41b569
push eax
call fcn.004100b1
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41b569
mov eax, dword [0x44c53c]
cmp eax, esi
je 0x41b569
push dword [ebp - 4]
push eax
call fcn.004100b1
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x44c534]
call fcn.004100b1
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420740
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x210
mov eax, dword [0x4429e8]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
push 0x208
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x1c], esi
call fcn.0040bf90
mov edx, dword [esp + 0x234]
lea ecx, [esp + 0x238]
push ecx
push edx
lea eax, [esp + 0x28]
push 0x104
push eax
call fcn.0042f2f7
mov eax, dword [esp + 0x240]
add esp, 0x1c
sub eax, 1
je 0x4207c4
sub eax, 1
je 0x4207bd
sub eax, 1
je 0x4207b6
mov eax, 7
jmp 0x4207c9
mov eax, 0xa
jmp 0x4207c9
mov eax, 0xe
jmp 0x4207c9
mov eax, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, 1
mov ebp, 3
mov eax, dword [0x443da0]
and eax, edi
sub eax, 1
je 0x420836
sub eax, 1
je 0x420822
sub eax, 2
jne 0x420844
mov eax, dword [0x44c56c]
test eax, eax
je 0x420844
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00401ae0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00401cf0
mov ecx, esi
call fcn.00401930
jmp 0x420844
lea edx, [esp + 0x14]
push edx
push 0x438b38
call fcn.0041b80c
add esp, 8
jmp 0x420844
lea eax, [esp + 0x14]
push eax
call ebx
push 0x435724
call ebx
add edi, edi
sub ebp, 1
jne 0x4207e1
mov ecx, dword [esp + 0x10]
push 7
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call fcn.0040c284
add eax, 0x20
push eax
call fcn.004118de
mov ecx, dword [esp + 0x220]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040bb66
add esp, 0x210
ret
Function at 0x428c60
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x428c72
call fcn.00428490
xor eax, eax
pop edi
ret
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test esi, esi
mov edi, eax
je 0x428cee
test edi, edi
je 0x428cee
mov eax, dword [esp + 0x10]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x428cee
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push edi
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x428cee
cmp ebx, dword [esp + 0x14]
jne 0x428cee
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, 1
pop edi
ret
call fcn.00428490
pop esi
pop ebx
xor eax, eax
pop edi
ret
Function at 0x4294c0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x2f8
mov eax, dword [0x4429e8]
xor eax, esp
mov dword [esp + 0x2f4], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnumDisplayDevicesA]
push esi
push edi
xor esi, esi
lea edi, [esp + 0xc]
jmp 0x4294f0
push 0x1a8
lea eax, [esp + 0xc0]
push 0
push eax
call fcn.0040bf90
add esp, 0xc
push 0
lea ecx, [esp + 0xc0]
push ecx
push esi
push 0
mov dword [esp + 0xcc], 0x1a8
call ebx
test eax, eax
je 0x429572
push str.Intel_Corporation
lea edx, [esp + 0xe4]
push edx
call fcn.00421520
test eax, eax
jne 0x429554
lea eax, [esp + 0xe0]
push str.Embedded_Graphics_Chipset
push eax
call fcn.0042fb30
add esp, 8
test eax, eax
jne 0x42956d
lea ecx, [esp + 0xe0]
push str.Atom_TM__Processor
push ecx
call fcn.0042fb30
add esp, 8
test eax, eax
je 0x429572
mov dword [edi], esi
add edi, 4
add esi, 1
cmp esi, 5
jb 0x4294f0
mov eax, dword [esp + 0x308]
mov ecx, dword [esp + eax*4 + 0xc]
push 0
lea edx, [esp + 0xc0]
push edx
push ecx
push 0
call ebx
test eax, eax
je 0x429684
mov esi, 0x9c
push esi
lea edx, [esp + 0x268]
push 0
push edx
call fcn.0040bf90
add esp, 0xc
lea eax, [esp + 0x264]
push eax
push 0xfffffffffffffffe
lea ecx, [esp + 0xc8]
push ecx
mov word [esp + 0x294], si
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
test eax, eax
jne 0x4295e7
push str.Store_default_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, byte [esp + 0x160]
test al, 1
je 0x429684
test al, 4
jne 0x429684
push esi
lea edx, [esp + 0x24]
push 0
push edx
call fcn.0040bf90
add esp, 0xc
cmp byte [0x44c791], 0
mov word [esp + 0x44], si
mov dword [esp + 0x48], 0x7c0020
je 0x42965c
mov eax, dword [0x44c794]
push str.test_change_display_settings
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x20]
push 0x10000000
push ecx
call eax
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2f4]
xor ecx, esp
call fcn.0040bb66
add esp, 0x2f8
ret
push 1
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0xc8]
push eax
call fcn.004285e0
push 0
lea ecx, [esp + 0xd0]
push 0
push ecx
call fcn.004285e0
add esp, 0x18
mov ecx, dword [esp + 0x300]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bb66
add esp, 0x2f8
ret

Function at 0x429800
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x108
mov eax, dword [0x4429e8]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push str.GmchRegDev
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push str.gmchReg.sys
call fcn.00428c60
add esp, 8
mov esi, eax
push 0x100
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.gmchReg.sys
lea ecx, [esp + 0xc]
push ecx
mov edx, ecx
push 0x43b044
push edx
call fcn.0040eee7
add esp, 0x10
lea eax, [esp + 8]
push eax
push str.gmchReg.sys
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test esi, esi
je 0x42989f
push str.gmchReg
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xf]
call fcn.0042cf50
test eax, eax
jne 0x42989f
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0040bb66
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040bb66
add esp, 0x108
ret
Function at 0x4298c0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4429e8]
xor eax, esp
mov dword [esp + 0x104], eax
cmp byte [0x44c790], 0
mov eax, 1
je 0x429951
push esi
push str.gmchReg
lea ecx, [esp + 0xb]
call fcn.0042ceb0
push 0x100
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.gmchReg.sys
lea ecx, [esp + 0xc]
push ecx
mov edx, ecx
push 0x43b044
push edx
call fcn.0040eee7
add esp, 0x10
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
test esi, esi
je 0x429949
mov byte [0x44c790], 0
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0040bb66
add esp, 0x108
ret
call fcn.00428490
mov eax, esi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0040bb66
add esp, 0x108
ret
Function at 0x42ac60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4429e8]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x220]
push edi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetControlClass4d36e968_e325_11ce_bfc1_08002be10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], eax
mov edi, 8
mov dword [esp + 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42ae23
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
xor esi, esi
jmp 0x42acd0
push esi
lea eax, [esp + 0x12c]
push str.000_d
push eax
xor bl, bl
call fcn.0040eee7
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
lea eax, [esp + 0x144]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42adf8
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push str.DriverDesc
push edx
call ebp
test eax, eax
jne 0x42adb7
push str.Intel_Corporation
lea eax, [esp + 0x2c]
push eax
call fcn.00421520
test eax, eax
jne 0x42adb7
lea ecx, [esp + 0x28]
push str.Embedded_Graphics_Chipset
push ecx
call fcn.0042fb30
add esp, 8
test eax, eax
jne 0x42ad7a
lea edx, [esp + 0x28]
push str.Atom_TM__Processor
push edx
call fcn.0042fb30
add esp, 8
test eax, eax
je 0x42adb7
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push str.InfPath
push eax
call ebp
test eax, eax
jne 0x42adb7
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x28]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x42ada7
xor edi, edi
mov bl, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x42adfd
add esi, 1
cmp esi, 4
jl 0x42acd0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0040bb66
add esp, 0x21c
ret
call fcn.00428490
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0040bb66
add esp, 0x21c
ret
call fcn.00428490
mov ecx, dword [esp + 0x21c]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040bb66
add esp, 0x21c
ret
Function at 0x42b100
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
sub esp, 0x124
mov eax, dword [0x4429e8]
xor eax, esp
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x130]
push ebx
mov ebx, dword [esp + 0x130]
push ebp
mov ebp, dword [esp + 0x13c]
push esi
mov esi, dword [esp + 0x134]
push edi
push 0x100
lea ecx, [esp + 0x34]
push 0
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov edi, 4
mov dword [esp + 0x2c], 0x100
call fcn.0040bf90
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x44]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x42b262
push ebx
lea ecx, [esp + 0x34]
push ecx
mov edx, ecx
push 0x43b044
push edx
call fcn.0040eee7
add esp, 0x10
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
lea edx, [esp + 0x4c]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42b262
mov ebx, dword [esp + 0x1c]
push str.Name
push ebx
call fcn.0040c589
add esp, 8
test eax, eax
je 0x42b1ed
push str.PortOrder
push ebx
call fcn.0040c589
add esp, 8
test eax, eax
jne 0x42b207
mov eax, ebp
mov esi, 1
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42b1f7
sub eax, edx
lea edi, [eax + 1]
jmp 0x42b221
push 0
lea eax, [esp + 0x30]
push eax
push ebp
call fcn.00417775
add esp, 0xc
mov dword [esp + 0x24], eax
lea ebp, [esp + 0x24]
mov esi, edi
mov ecx, dword [esp + 0x10]
push edi
push ebp
push esi
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x42b24f
call fcn.00428490
mov edx, dword [esp + 0x10]
push edx
mov esi, 8
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x42b26c
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x42b26c
call fcn.00428490
mov eax, 8
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bb66
add esp, 0x124
ret
Function at 0x42b290
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x120
mov eax, dword [0x4429e8]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x130]
push ebx
mov ebx, dword [esp + 0x12c]
push ebp
mov ebp, dword [esp + 0x13c]
push esi
mov esi, dword [esp + 0x130]
push edi
mov edi, dword [esp + 0x13c]
push 0x100
lea ecx, [esp + 0x30]
push 0
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], 4
mov dword [esp + 0x1c], 0x100
call fcn.0040bf90
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x40]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x42b402
push ebx
lea ecx, [esp + 0x30]
push ecx
mov edx, ecx
push 0x43b044
push edx
call fcn.0040eee7
add esp, 0x10
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
lea edx, [esp + 0x48]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42b402
push str.Name
push edi
call fcn.0040c589
add esp, 8
test eax, eax
je 0x42b383
push str.PortOrder
push edi
call fcn.0040c589
add esp, 8
test eax, eax
jne 0x42b3cb
mov eax, dword [esp + 0x1c]
mov esi, 1
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push eax
push ebp
push 0
push edi
push edx
mov dword [esp + 0x28], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x42b3d5
call fcn.00428490
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
jmp 0x42b40c
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x24]
jmp 0x42b38c
cmp esi, 4
jne 0x42b3f1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push eax
push 0x4368a8
push ecx
call fcn.0040eee7
add esp, 0xc
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
jmp 0x42b40c
call fcn.00428490
mov eax, 8
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bb66
add esp, 0x120
ret

Function at 0x42b430
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x14]
push edi
xor edi, edi
test esi, esi
je 0x42b4b3
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42b442
sub eax, edx
je 0x42b4b3
mov edx, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42b4a5
mov ecx, dword [esp + 0x18]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x42b494
call fcn.00428490
mov edi, 8
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ecx
ret
call fcn.00428490
pop edi
mov eax, 8
pop esi
pop ecx
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
test eax, eax
jne 0x42b4a5
mov eax, edi
pop edi
pop esi
pop ecx
ret