joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d89c
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
sub esp, 0x26c
lea ebp, [esp - 4]
mov eax, dword [0x62ece4]
xor eax, ebp
mov dword [ebp + 0x26c], eax
push 0x20
mov eax, 0x5af221
call fcn.00499ab7
mov ecx, dword [ebp + 0x278]
mov edi, dword [ebp + 0x27c]
xor ebx, ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], ebx
call fcn.004070e0
xor esi, esi
inc esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41d9c2
lea eax, [ebp - 0x28]
push eax
push edi
mov dword [ebp - 0x28], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
je 0x41d9c2
push edi
call fcn.0047b302
pop ecx
mov dword [ebp - 0x1c], eax
push eax
push edi
push ebx
push dword [ebp - 0x24]
mov dword [ebp - 4], esi
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41d9b6
test dword [ebp - 0x18], 0xfffffffc
je 0x41d9b6
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str.StringFileInfo_04x_04xFileDescription
lea eax, [ebp + 0x208]
push 0x32
push eax
call fcn.0049bab9
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x1c]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41d9b6
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.00408c50
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], ebx
je 0x41d9ab
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
call fcn.00408700
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00407130
push dword [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0047b2f7
pop ecx
mov esi, dword [ebp - 0x20]
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x41d9ff
push dword [ebp - 0x24]
lea eax, [ebp]
push 0x104
push eax
call fcn.0049aef3
add esp, 0xc
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00408bd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x26c]
xor ecx, ebp
call fcn.00499aa8
add ebp, 0x270
leave
ret
Function at 0x41e685
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x62ece4]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
mov eax, dword [ebp + 0x3ac]
push esi
mov dword [ebp - 0x7c], eax
mov eax, dword [0x63f87c]
xor esi, esi
push edi
mov dword [ebp - 0x78], esi
mov edi, 0x63f87c
cmp dword [eax - 0xc], esi
je 0x41e6ce
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41e796
call fcn.004840f7
mov eax, dword [eax + 8]
push 0x5ca310
push 0xf3
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x74], eax
cmp eax, esi
je 0x41e796
call fcn.004840f7
push dword [ebp - 0x74]
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x78], eax
cmp eax, esi
je 0x41e796
push ebx
lea eax, [ebp - 0x70]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp + 0x198]
push eax
push esi
push str.REGJUMP
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
push esi
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, esi
je 0x41e795
mov dword [ebp - 0x80], esi
call fcn.004840f7
mov eax, dword [eax + 8]
push esi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x198]
push eax
mov ecx, edi
call fcn.00408bd0
pop ebx
mov ecx, dword [ebp - 0x7c]
push edi
call fcn.00408810
mov ecx, dword [ebp + 0x3a0]
mov eax, dword [ebp - 0x7c]
pop edi
xor ecx, ebp
pop esi
call fcn.00499aa8
add ebp, 0x3a4
leave
ret
Function at 0x41eb2a
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x62ece4]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x1c
mov eax, 0x5af41f
call fcn.00499ab7
mov ebx, dword [ebp + 0x41c]
mov eax, dword [ebp + 0x420]
push ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41ecd7
lea eax, [ebp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x10]
mov edi, 0x63f9a0
push eax
mov ecx, edi
call fcn.0042bc2e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
and dword [ebp - 4], 0
test eax, eax
je 0x41ebff
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.General_UseTC
call fcn.00402800
mov ecx, edi
call fcn.0042b87c
test eax, eax
je 0x41ebff
push str.__O__T__
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
lea eax, [ebp + 0x208]
push eax
call edi
push 0x5c7b48
lea eax, [ebp + 0x208]
push eax
call edi
push 5
lea eax, [ebp]
push eax
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x10]
push 0x5ca0b4
push 0
jmp 0x41ec1e
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x41ec29
push 5
lea eax, [ebp]
push eax
push ebx
push str.explorer
push 0x5ca0b4
push dword [ebp - 0x1c]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x41ecc7
push 0x5c7b48
lea ecx, [ebp - 0x18]
call fcn.00408c50
mov edi, eax
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00408c50
mov ebx, eax
push str._select___
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00408c50
push ebx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.00410ad4
push edi
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 4
call fcn.00410ad4
mov ecx, dword [ebp - 0x28]
add esp, 0x18
add ecx, 0xfffffff0
call fcn.00407130
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00407130
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00407130
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00407130
push 1
push 0
push dword [ebp - 0x14]
push str.explorer
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00407130
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00407130
xor eax, eax
inc eax
jmp 0x41ecd9
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00499aa8
add ebp, 0x414
leave
ret
Function at 0x41ecfc
Capabilities:
Create process on windows
Terminate process

Disassembly:
push 0x58
mov eax, 0x5af457
call fcn.00499ab7
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00408c50
lea eax, [ebp - 0x10]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.0041cdeb
pop ecx
cmp dword [ebp + 0xc], esi
je 0x41edfd
push esi
push 0x5ca414
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, esi
je 0x41ed89
lea ecx, [ebp + 0xc]
push ecx
push eax
mov dword [ebp + 0xc], esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp + 0xc], esi
je 0x41ed89
push dword [ebp + 0xc]
push esi
push 0x100401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
je 0x41ed89
push edi
call fcn.004209f4
pop ecx
test eax, eax
je 0x41ed82
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x44
pop edi
push edi
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0049af70
push 0x10
lea eax, [ebp - 0x20]
push esi
push eax
mov dword [ebp - 0x64], edi
call fcn.0049af70
lea eax, [ebp + 0xc]
push eax
call fcn.0041e685
add esp, 0x1c
mov edi, dword [eax]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00407820
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov edi, eax
call fcn.00407130
cmp edi, esi
je 0x41edea
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00407130
mov eax, esi
call fcn.00499b8f
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.004209f4
pop ecx
test eax, eax
je 0x41ee6c
push esi
push 0x5ca414
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, esi
je 0x41ee6c
lea ecx, [ebp + 0xc]
push ecx
push eax
mov dword [ebp + 0xc], esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp + 0xc], esi
je 0x41ee6c
push dword [ebp + 0xc]
push esi
push 0x100401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
je 0x41ee6c
push edi
call fcn.004209f4
pop ecx
test eax, eax
jne 0x41ee65
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call fcn.00420651
pop ecx
pop ecx
mov esi, eax
jmp 0x41edea
Function at 0x41febd
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x18]
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
mov dword [ebp - 0x18], 1
call ebx
test eax, eax
jne 0x41ffdd
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x41ffd4
mov eax, dword [ebp - 0xc]
push edi
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
mov dword [ebp - 8], esi
neg ecx
or ecx, eax
push ecx
call fcn.0047b302
pop ecx
mov edi, eax
cmp dword [ebp - 0x14], esi
jbe 0x41ffcc
cmp dword [ebp - 0x18], esi
je 0x41ffcc
mov eax, dword [ebp - 0xc]
inc eax
push 8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.0049af70
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
mov word [edi + edx*2], cx
cmp eax, esi
jne 0x41ffbd
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x18]
mov dword [ebp - 0x10], esi
push esi
push edi
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x41ffbd
push dword [ebp + 0x14]
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [ebp + 0x10]
cmp eax, 1
jne 0x41ffb4
mov dword [ebp - 0x18], esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jb 0x41ff3f
push edi
call fcn.0047b2f7
pop ecx
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
pop esi
pop ebx
leave
ret
Function at 0x41ffe4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x420084
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
xor ebx, ebx
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047b302
pop ecx
mov edi, eax
cmp dword [ebp - 8], esi
jbe 0x42007d
mov eax, dword [ebp - 4]
push esi
inc eax
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x420077
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x420077
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push edi
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [ebp + 0xc]
dec eax
je 0x42008c
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x420035
push edi
call fcn.0047b2f7
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
push edi
call fcn.0049bb08
pop ecx
xor eax, eax
jmp 0x420087
Function at 0x42010f
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x62ece4]
xor eax, ebp
mov dword [ebp + 0x1a8], eax
mov ecx, dword [ebp + 0x1b8]
mov eax, dword [ebp + 0x1b4]
push esi
xor esi, esi
lea edx, [ebp - 0x60]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x6c], eax
cmp ecx, esi
je 0x42016f
lea edx, [ebp - 0x6c]
push edx
push 0x20019
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x42027a
push esi
push esi
push esi
lea eax, [ebp - 0x70]
push eax
push esi
push esi
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push esi
push esi
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x78], eax
cmp eax, esi
jne 0x420269
inc dword [ebp - 0x74]
mov eax, dword [ebp - 0x74]
inc dword [ebp - 0x70]
push edi
mov edi, eax
cmp eax, dword [ebp - 0x70]
ja 0x4201a8
mov edi, dword [ebp - 0x70]
cmp edi, 0x104
jbe 0x4201d2
lea eax, [edi + edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x64], eax
cmp eax, esi
jne 0x4201d2
mov dword [ebp - 0x78], 8
jmp 0x42024f
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4201ed
push dword [ebp - 0x64]
push dword [ebp - 0x6c]
call fcn.0042010f
mov dword [ebp - 0x78], eax
cmp eax, esi
jne 0x42024e
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x64]
mov dword [ebp - 0x68], edi
push esi
push dword [ebp - 0x6c]
call ebx
test eax, eax
je 0x4201db
cmp dword [ebp - 0x80], esi
je 0x42021b
push dword [ebp - 0x80]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x78], eax
jmp 0x42024e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x420236
push dword [ebp - 0x64]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x78], eax
cmp eax, esi
jne 0x42024e
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x64]
mov dword [ebp - 0x68], edi
push esi
push dword [ebp - 0x7c]
call ebx
test eax, eax
je 0x420223
pop ebx
lea eax, [ebp - 0x60]
pop edi
cmp dword [ebp - 0x64], eax
je 0x420269
push dword [ebp - 0x64]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x80], esi
je 0x420277
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x1a8]
xor ecx, ebp
pop esi
call fcn.00499aa8
add ebp, 0x1ac
leave
ret 8
Function at 0x42035f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 2
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub eax, esi
je 0x4203ca
dec eax
dec eax
jne 0x4203bb
cmp dword [ebp + 0x18], esi
je 0x4203bb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 6
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4203ca
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00407130
xor eax, eax
pop esi
leave
ret
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00407130
mov eax, esi
jmp 0x4203b8
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4203bb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
jmp 0x4203bb

Function at 0x4203f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420449
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
push dword [ebp - 4]
mov dword [ebp - 8], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x420449
inc esi
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00407130
mov eax, esi
pop esi
leave
ret

Function at 0x420459
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 2
xor esi, esi
push esi
push dword [ebp + 8]
mov edi, SysReAllocString
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub eax, esi
je 0x4204c7
dec eax
dec eax
jne 0x4204b8
cmp dword [ebp + 0x18], esi
je 0x4204b8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 6
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4204c7
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00407130
xor eax, eax
pop edi
pop esi
leave
ret
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00407130
mov eax, esi
jmp 0x4204b4
push 8
lea eax, [ebp + 0x10]
push eax
push 0xb
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4204b8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
jmp 0x4204b8
Function at 0x4204ed
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push 2
mov dword [ebp - 4], esi
pop edi
cmp dword [ebp + 0x1c], esi
je 0x420505
mov edi, 0x102
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub eax, esi
je 0x42057d
dec eax
dec eax
jne 0x420563
cmp dword [ebp + 0x18], esi
je 0x420563
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 4]
push eax
push esi
or edi, 4
push edi
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp + 0x1c], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x42057d
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00407130
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.00407130
xor eax, eax
pop edi
pop esi
leave
ret
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00407130
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.00407130
mov eax, esi
jmp 0x42055f
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx - 0xc]
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x420563
xor esi, esi
inc esi
jmp 0x420563

Function at 0x4205ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov esi, 0x800
inc ebx
push esi
mov dword [ebp - 0xc], ebx
call fcn.0047b302
push esi
mov edi, eax
push 0
push edi
call fcn.0049af70
add esp, 0x10
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ebx
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
cmp eax, 0xea
jne 0x420630
push edi
call fcn.0047b2f7
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
shr eax, 1
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047b302
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, ebx
jne 0x42063f
mov ecx, dword [ebp + 0x10]
push edi
call fcn.00408bd0
jmp 0x420642
mov dword [ebp - 0xc], ebx
push edi
call fcn.0047b2f7
mov eax, dword [ebp - 0xc]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4208da
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x24
mov eax, 0x5af62e
call fcn.00499ab7
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00407840
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x14]
xor edi, edi
push ebx
push dword [ebp + 0x10]
inc edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4209e5
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
jne 0x4209dc
mov eax, dword [ebp - 0x18]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
mov dword [ebp - 0x10], ebx
neg ecx
or ecx, eax
push ecx
call fcn.0047b302
pop ecx
mov esi, eax
cmp dword [ebp - 0x1c], ebx
jbe 0x4209d5
mov eax, dword [ebp - 0x18]
inc eax
push 8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.0049af70
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edx, dword [ebp - 0x20]
xor ecx, ecx
mov word [esi + edx*2], cx
cmp eax, ebx
jne 0x4209ca
push esi
lea ecx, [ebp - 0x24]
call fcn.00408c50
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 4], edi
call fcn.004079f0
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00407130
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jb 0x420969
push esi
call fcn.0047b2f7
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
call fcn.00499b8f
ret