joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417ddf
Capabilities:
Create process on windows

Disassembly:
push 0x40
mov eax, 0x525589
call fcn.004f8194
xor ebx, ebx
mov dword [ebp - 4], ebx
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
lea ecx, [ebp + 8]
push ecx
push str.ShellExecuteCommand:
push eax
call fcn.00404205
add esp, 0xc
mov byte [ebp - 4], 1
push 4
mov byte [ebp - 4], bl
call fcn.0041474e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x38], 0x53b9e7
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 5
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x417ec0
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str.CCoreProcess::ShellExecuteCommand
call fcn.00401769
mov byte [ebp - 4], 2
push 0x268
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push str..CoreProcess.cpp
call fcn.00401769
mov byte [ebp - 4], 3
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
lea ecx, [ebp + 8]
push ecx
push str.Failed_to_execute_command:
push eax
call fcn.00404205
add esp, 0xc
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov byte [ebp - 4], bl
call fcn.004114a5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401898
mov eax, ebx
call fcn.004f826c
ret
xor ebx, ebx
inc ebx
jmp 0x417eac
Function at 0x417ec5
Capabilities:
Create process on windows

Disassembly:
push 0x4c
mov eax, 0x525546
call fcn.004f8194
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push str.ShellExecuteCommand:
push eax
call fcn.00404205
add esp, 0xc
mov byte [ebp - 4], 2
mov esi, 0x540784
push esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004041a1
mov byte [ebp - 4], 3
add esp, 8
mov ecx, esp
mov dword [ebp - 0x18], esp
lea edx, [ebp + 0xc]
push edx
push eax
push ecx
call fcn.0040414a
add esp, 0xc
mov byte [ebp - 4], 4
push 4
mov byte [ebp - 4], 3
call fcn.0041474e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00401898
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401898
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
xor edi, edi
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 5
mov dword [ebp - 0x34], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x41803c
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.CCoreProcess::ShellExecuteCommand
call fcn.00401769
mov byte [ebp - 4], 5
push 0x283
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str..CoreProcess.cpp
call fcn.00401769
mov byte [ebp - 4], 6
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x14]
push str.Failed_to_execute_command:
push eax
call fcn.00404205
add esp, 0xc
mov byte [ebp - 4], 7
push esi
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.004041a1
mov byte [ebp - 4], 8
add esp, 8
mov ecx, esp
mov dword [ebp - 0x10], esp
lea edx, [ebp + 0xc]
push edx
push eax
push ecx
call fcn.0040414a
add esp, 0xc
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov byte [ebp - 4], 0xb
call fcn.004114a5
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x10]
call fcn.00401898
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x14]
call fcn.00401898
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401898
mov eax, edi
call fcn.004f826c
ret
xor edi, edi
inc edi
jmp 0x41801c
Function at 0x418041
Capabilities:
Create process on windows

Disassembly:
push 0x40
mov eax, 0x5254db
call fcn.004f8194
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
lea ecx, [ebp + 8]
push ecx
push str.ShellExecuteCommand:
push eax
call fcn.00404205
add esp, 0xc
mov byte [ebp - 4], 2
push 4
mov byte [ebp - 4], bl
call fcn.0041474e
mov eax, dword [ebp + 0x14]
and dword [ebp - 0x34], 0
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x30], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x418136
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push str.CCoreProcess::ShellExecuteCommandAndWait
call fcn.00401769
mov byte [ebp - 4], 3
push 0x29d
push ecx
mov ecx, esp
mov dword [ebp + 0x18], esp
push str..CoreProcess.cpp
call fcn.00401769
mov byte [ebp - 4], 4
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
lea ecx, [ebp + 8]
push ecx
push str.Failed_to_execute_command:
push eax
call fcn.00404205
add esp, 0xc
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov byte [ebp - 4], bl
call fcn.004114a5
xor ebx, ebx
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401898
mov eax, ebx
call fcn.004f826c
ret
cmp dword [ebp - 0x14], 0
je 0x418116
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x418116
Function at 0x418153
Capabilities:
Create process on windows

Disassembly:
push 0x4c
mov eax, 0x525490
call fcn.004f8194
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push str.ShellExecuteCommand:
push eax
call fcn.00404205
add esp, 0xc
mov byte [ebp - 4], 2
push 0x540784
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004041a1
mov byte [ebp - 4], 3
add esp, 8
mov ecx, esp
mov dword [ebp - 0x18], esp
lea edx, [ebp + 0xc]
push edx
push eax
push ecx
call fcn.0040414a
add esp, 0xc
mov byte [ebp - 4], 4
push 4
mov byte [ebp - 4], 3
call fcn.0041474e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00401898
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00401898
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x3c], 0
and dword [ebp - 0x34], 0
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x40
mov dword [ebp - 0x38], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x41828a
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push str.CCoreProcess::ShellExecuteCommand
call fcn.00401769
mov byte [ebp - 4], 5
push 0x2bd
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push str..CoreProcess.cpp
call fcn.00401769
mov byte [ebp - 4], 6
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
lea ecx, [ebp + 8]
push ecx
push str.Failed_to_execute_command:
push eax
call fcn.00404205
add esp, 0xc
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov byte [ebp - 4], bl
call fcn.004114a5
xor ebx, ebx
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401898
mov eax, ebx
call fcn.004f826c
ret
test esi, esi
je 0x41826a
mov eax, dword [ebp - 0x1c]
mov dword [esi], eax
jmp 0x41826a
Function at 0x418295
Capabilities:
Enumerate gui resources
Enumerate processes

Disassembly:
push 0x148
mov eax, 0x528b23
call fcn.004f8233
mov esi, ecx
push 2
pop ebx
mov dword [ebp - 4], ebx
lea ecx, [esi + 0x2c]
lea eax, [ebp + 0xc]
push eax
call fcn.004044be
lea ecx, [esi + 0x30]
lea eax, [ebp + 0x10]
push eax
call fcn.004044be
push 0
push ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x14c], edi
cmp edi, 0xffffffff
jne 0x418334
push ecx
mov ecx, esp
mov dword [ebp - 0x14c], esp
push str.CCoreProcess::CloseProcessWindowsByModuleName
call fcn.00401769
mov byte [ebp - 4], 3
push 0x2d6
push ecx
mov ecx, esp
mov dword [ebp - 0x150], esp
push str..CoreProcess.cpp
call fcn.00401769
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x148], esp
push str.CreateToolHelp32Snapshot_failed_
call fcn.00401769
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov byte [ebp - 4], bl
call fcn.004114a5
jmp 0x4183b1
mov byte [ebp - 4], 6
mov dword [ebp - 0x144], 0x128
lea eax, [ebp - 0x144]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4183a2
push ecx
mov ecx, esp
mov dword [ebp - 0x148], esp
lea eax, [ebp + 8]
push eax
call fcn.0040184e
mov byte [ebp - 4], 7
push dword [ebp - 0x13c]
mov byte [ebp - 4], 6
call fcn.00417bd9
pop ecx
pop ecx
test eax, eax
je 0x418393
mov eax, dword [ebp - 0x13c]
mov dword [esi + 0x34], eax
push esi
push 0x418444
call dword [sym.imp.USER32.dll_EnumWindows]
lea eax, [ebp - 0x144]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
jmp 0x41834f
mov dword [ebp - 4], ebx
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00401898
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00401898
call fcn.004f828f
ret 0xc
Function at 0x418692
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0x148
mov eax, 0x528a96
call fcn.004f8233
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x14c], edi
cmp edi, 0xffffffff
jne 0x418719
push ecx
mov ecx, esp
mov dword [ebp - 0x14c], esp
push str.CCoreProcess::TerminateProcessByModuleName
call fcn.00401769
mov byte [ebp - 4], 1
push 0x332
push ecx
mov ecx, esp
mov dword [ebp - 0x150], esp
push str..CoreProcess.cpp
call fcn.00401769
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x148], esp
push str.CreateToolHelp32Snapshot_failed_
call fcn.00401769
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov byte [ebp - 4], bl
call fcn.004114a5
jmp 0x4187a5
mov byte [ebp - 4], 4
mov dword [ebp - 0x144], 0x128
lea eax, [ebp - 0x144]
push eax
push edi
call sub.KERNEL32.dll_Process32First
cmp eax, ebx
je 0x418796
push ecx
mov ecx, esp
mov dword [ebp - 0x148], esp
lea eax, [ebp + 8]
push eax
call fcn.0040184e
mov byte [ebp - 4], 5
push dword [ebp - 0x13c]
mov byte [ebp - 4], 4
call fcn.00417bd9
pop ecx
pop ecx
cmp eax, ebx
je 0x418787
push dword [ebp - 0x13c]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x418787
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x144]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
jmp 0x418734
mov dword [ebp - 4], ebx
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401898
call fcn.004f828f
ret

Function at 0x41c818
Capabilities:
Get file version info

Disassembly:
push 0x10
mov eax, 0x51eee9
call fcn.004f8194
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
and dword [ebp - 0x14], 0
test eax, eax
jne 0x41c856
lea esi, [ebp - 0x10]
call fcn.00413952
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 8]
call fcn.004044be
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00401898
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x41c8d6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x41c8d6
push ebx
push edi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41c8ca
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x540820
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41c8ca
push 0x34
pop eax
cmp dword [ebp - 0x10], eax
jb 0x41c8b2
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call fcn.004f4410
add esp, 0xc
mov dword [ebp - 0x14], 1
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401898
mov eax, dword [ebp - 0x14]
call fcn.004f826c
ret
Function at 0x41c8eb
Capabilities:
Get file version info

Disassembly:
push 0x14
mov eax, 0x51eebe
call fcn.004f8194
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 2
mov ecx, dword [ebp + 8]
push 0x53b9e7
call fcn.00401769
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
cmp dword [eax - 0xc], edi
jne 0x41c942
lea esi, [ebp - 0x14]
call fcn.00413952
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 0xc]
call fcn.004044be
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.00401898
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, edi
jbe 0x41c9f7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x41c9f7
push edi
push ebx
push 0
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41c9eb
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x14]
push str.StringFileInfo040904E4_
push eax
call fcn.00404205
add esp, 0xc
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp + 0x10]
call fcn.004044be
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00401898
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41c9eb
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.00401769
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 8]
push eax
call fcn.004044be
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00401898
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00401898
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00401898
mov eax, dword [ebp + 8]
call fcn.004f826c
ret

Function at 0x41cf42
Capabilities:
Read file on windows

Disassembly:
push 0
mov eax, 0x51991d
call fcn.004f8194
mov esi, ecx
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x41cf95
push 1
push 0x29
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push str.CCoreStreamFile::Read
call fcn.00401769
and dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str.Stream_is_not_open_
call fcn.00401769
mov byte [ebp - 4], 1
mov eax, dword [esi]
push 1
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call dword [eax + 0x10]
xor eax, eax
jmp 0x41cfef
mov edi, dword [ebp + 0x10]
push 0
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41cfe8
push 1
push 0x2e
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push str.CCoreStreamFile::Read
call fcn.00401769
mov dword [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str.ReadFile_failed_
call fcn.00401769
mov byte [ebp - 4], 3
mov eax, dword [esi]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call dword [eax + 0x18]
jmp 0x41cf91
xor eax, eax
cmp dword [edi], eax
setne al
call fcn.004f826c
ret 0xc
Function at 0x41cff7
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x5198e2
call fcn.004f8194
mov esi, ecx
mov eax, dword [esi + 0x24]
and dword [ebp - 0x10], 0
cmp eax, 0xffffffff
jne 0x41d04e
push 1
push 0x42
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str.CCoreStreamFile::Write
call fcn.00401769
and dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push str.Stream_is_not_open_
call fcn.00401769
mov byte [ebp - 4], 1
mov eax, dword [esi]
push 1
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call dword [eax + 0x10]
xor eax, eax
jmp 0x41d0b0
push 0
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41d0a1
push 1
push 0x47
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str.CCoreStreamFile::Write
call fcn.00401769
mov dword [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x5419b0
call fcn.00401769
mov byte [ebp - 4], 3
mov eax, dword [esi]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call dword [eax + 0x18]
jmp 0x41d04a
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41d0ad
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
xor eax, eax
inc eax
call fcn.004f826c
ret 0xc

Function at 0x41d7af
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [0x5937d0]
xor eax, esp
mov dword [esp + 0x9c], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.004f3c10
add esp, 0xc
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [esp + 0x10], 2
jne 0x41d847
cmp dword [esp + 4], 6
jne 0x41d82c
cmp dword [esp + 8], 1
jne 0x41d816
call fcn.0041d8f5
neg eax
sbb eax, eax
neg eax
add eax, 8
jmp 0x41d847
cmp dword [esp + 8], eax
jne 0x41d847
call fcn.0041d8f5
neg eax
sbb eax, eax
neg eax
add eax, 6
jmp 0x41d847
cmp dword [esp + 4], 5
jne 0x41d847
cmp dword [esp + 8], 1
jne 0x41d83e
push 5
jmp 0x41d846
cmp dword [esp + 8], eax
jne 0x41d847
push 4
pop eax
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004f2b62
mov esp, ebp
pop ebp
ret
Function at 0x42143a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x52858e
call fcn.004f8194
mov esi, ecx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00404402
mov byte [ebp - 4], 2
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x42148d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401898
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00401898
xor eax, eax
call fcn.004f826c
ret
push 0x53b9e7
lea ecx, [ebp + 0xc]
call fcn.004042ce
test eax, eax
jne 0x4214c7
xor esi, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401898
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00401898
mov eax, esi
jmp 0x421487
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x4214d3
call fcn.0041f8eb
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
cmp eax, 0x80000001
jne 0x4214ea
push esi
call fcn.0042103e
add esp, 4
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x421543
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x18], ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10]
test eax, eax
jne 0x42153d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
cmp esi, ebx
je 0x421535
call fcn.0040e1fe
xor esi, esi
inc esi
jmp 0x4214a0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
cmp esi, ebx
je 0x42149e
call fcn.0040e1fe
jmp 0x42149e
Function at 0x421559
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x528553
call fcn.004f8194
mov esi, ecx
mov dword [ebp - 4], 1
xor ebx, ebx
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x42157c
call fcn.0041f8eb
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
mov dword [edi], ebx
cmp eax, ebx
jne 0x4215b5
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x421596
call fcn.0040e1fe
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00401898
xor eax, eax
call fcn.004f826c
ret
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 0xc], ebx
je 0x421589
cmp eax, 0x80000001
jne 0x4215cd
push esi
call fcn.0042103e
add esp, 4
lea edx, [ebp - 0x10]
push edx
push 0x20019
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x421589
lea eax, [ebp + 8]
push eax
push edi
push ebx
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 8], 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10]
test eax, eax
je 0x421637
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x421617
call fcn.0040e1fe
xor esi, esi
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00401898
mov eax, esi
jmp 0x4215af
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x42164a
call fcn.0040e1fe
xor esi, esi
inc esi
jmp 0x421619
Function at 0x4216e8
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x5284d5
call fcn.004f8194
mov dword [ebp - 4], 1
mov edi, dword [ebp + 0x18]
xor ebx, ebx
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x42170c
call fcn.0041f8eb
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x14]
mov esi, 0x53b9e7
push esi
call fcn.00401732
cmp dword [ebp + 8], ebx
jne 0x42174f
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x421730
call fcn.0040e1fe
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00401898
xor eax, eax
call fcn.004f826c
ret
push esi
lea ecx, [ebp + 0xc]
call fcn.004042ce
test eax, eax
je 0x421723
mov eax, dword [ebp + 8]
cmp eax, 0x80000001
jne 0x42176f
push edi
call fcn.0042103e
add esp, 4
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x421723
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 8], ebx
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x4217dc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x4217bc
call fcn.0040e1fe
xor esi, esi
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00401898
mov eax, esi
jmp 0x421749
push 4
pop eax
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], eax
jne 0x421820
or dword [ebp + 0x18], 0xffffffff
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x18]
push eax
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x421853
push dword [ebp + 0x18]
push 0x53b9e4
push dword [ebp + 0x14]
call fcn.004043ef
add esp, 0xc
mov dword [ebp - 0x14], 1
jmp 0x421853
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
push edi
call fcn.00401673
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x421850
mov ecx, dword [ebp + 0x14]
dec edi
push edi
call fcn.00404376
mov dword [ebp - 0x14], 1
mov edi, dword [ebp + 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x421869
call fcn.0040e1fe
mov esi, dword [ebp - 0x14]
jmp 0x4217be