joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004c3c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x118], edx
lea edx, [ebp - 0x114]
push edx
push 0x201
xor edi, edi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1004c48b
push 0x103
push eax
mov byte [ebp - 0x110], al
lea eax, [ebp - 0x10f]
push eax
call fcn.10074d40
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x11c]
push eax
push esi
push dword [ebp - 0x118]
mov dword [ebp - 0x120], 0x104
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x1004c474
cmp dword [ebp - 0x11c], 4
je 0x1004c467
lea esi, [edi + 0xd]
jmp 0x1004c474
mov eax, dword [ebp - 0x110]
mov dword [ebx], eax
mov edi, 1
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1004c48b
mov eax, 8
jmp 0x1004c496
xor eax, eax
cmp esi, 5
setne al
add eax, 2
push esi
push edi
push str.End_:_return_value_d__rc0x_X
push str.CSetupRegW::GetDWORDFromRegistryValue
push eax
call fcn.10041ef0
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006daee
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004c4c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
mov edi, ecx
push dword [ebp + 0xc]
push esi
push edi
push str.Start_:_root0x_X__key_s__valueName_s__value_d
push str.CSetupRegW::WriteIntToRegistry
push 8
call fcn.10041ef0
add esp, 0x1c
mov dword [ebp - 4], 0
call fcn.10062420
mov ebx, eax
test ebx, ebx
je 0x1004c50e
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp + 0xc]
push esi
push edi
call fcn.10062090
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1004c548
xor ecx, ecx
cmp eax, 5
setne cl
push eax
push str.End_:_return_FALSE__RegCreateKeyW_returned_0x_X_
push str.CSetupRegW::WriteIntToRegistry
add ecx, 2
push ecx
call fcn.10041ef0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1004c597
xor eax, eax
cmp edi, 5
setne al
push edi
push str.End_:_return_FALSE__RegSetValueExW_returned_0x_X_
push str.CSetupRegW::WriteIntToRegistry
add eax, 2
push eax
call fcn.10041ef0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.End_:_return_TRUE
push str.CSetupRegW::WriteIntToRegistry
push 8
call fcn.10041ef0
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x1004c5c0
test ebx, ebx
je 0x1004c5c0
test esi, esi
je 0x1004c5c0
mov ecx, esi
call fcn.100621f0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004c5d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1008b778
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
push dword [ebx + 0xc]
mov esi, dword [ebp + 8]
push dword [ebp + 0x10]
push edi
push esi
push str.Start_:_root0x_X__key_s__valueName_s__wStrValue_s
push str.CSetupRegW::GetStringFromRegistryValue
push 8
call fcn.10041ef0
add esp, 0x1c
cmp dword [ebp + 0x18], 0
mov ecx, 0x101
mov eax, 0x201
cmovne eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x1004c793
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x24]
push eax
push ecx
push dword [ebp + 0x10]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esp + 0x1c], 3
mov esi, eax
jne 0x1004c69f
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp esi, 5
setne cl
push str.End_:_return_FALSE__RegQueryValueExW_dwordTypeREG_BINARY_
push str.CSetupRegW::GetStringFromRegistryValue
add ecx, 2
push ecx
call fcn.10041ef0
add esp, 0xc
jmp 0x1004c7b2
cmp esi, 0xea
je 0x1004c6c5
test esi, esi
je 0x1004c6c5
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
xor eax, eax
push str.End_:_return_FALSE__RegQueryValueExW_returned_0x_X_
cmp esi, 5
jmp 0x1004c79e
mov edi, dword [esp + 0x18]
push 2
lea eax, [edi*2 + 2]
push eax
call fcn.10071846
mov esi, eax
add esp, 8
test esi, esi
je 0x1004c75b
lea eax, [esp + 0x20]
push eax
push esi
lea eax, [esp + 0x24]
push eax
push 0
push dword [ebp + 0x10]
mov dword [esp + 0x34], edi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004c74e
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x18]
ja 0x1004c74e
xor ecx, ecx
push ecx
mov word [esi + eax*2], cx
push esi
lea ecx, [esp + 0x2c]
call fcn.1003e580
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
mov dword [esp + 0x44], 0
call fcn.1003ecf0
push esi
call fcn.100716e4
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], 0xffffffff
call fcn.10022960
jmp 0x1004c75b
push esi
call fcn.100716e4
mov ecx, ebx
call fcn.1003f020
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.End_:_return_TRUE
push str.CSetupRegW::GetStringFromRegistryValue
push 8
call fcn.10041ef0
add esp, 0xc
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push ecx
xor eax, eax
push str.End_:_return_FALSE__RegOpenKeyExW_returned_0x_X_
cmp ecx, 5
setne al
push str.CSetupRegW::GetStringFromRegistryValue
add eax, 2
push eax
call fcn.10041ef0
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1004c8a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.10062420
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
test eax, eax
je 0x1004c8cc
push edi
mov ecx, eax
call fcn.10061e20
mov esi, eax
neg esi
sbb esi, esi
neg esi
push edi
push ebx
push str.Start_:_root0x_X__key_s
push str.CSetupRegW::DeleteKey
push 8
call fcn.10041ef0
add esp, 0x14
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1004c8f3
lea ecx, [eax + 8]
jmp 0x1004c8fe
xor ecx, ecx
cmp eax, 5
setne cl
add ecx, 2
xor ebx, ebx
test eax, eax
sete bl
push eax
push ebx
push str.End_:_return__d__RegDeleteKeyW_returned_0x_X_
push str.CSetupRegW::DeleteKey
push ecx
call fcn.10041ef0
add esp, 0x14
test ebx, ebx
je 0x1004c92f
test esi, esi
je 0x1004c92f
cmp dword [ebp - 4], 0
je 0x1004c92f
mov ecx, edi
call fcn.100621f0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1004ce50
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push edi
push reloc.OLEAUT32.dll_SysReAllocString
push str.Start_:_root0x_X__path_s__value_s
push str.CSetupRegW::DeleteValue
push 8
call fcn.10041ef0
add esp, 0x18
xor esi, esi
call fcn.10062420
mov dword [ebp - 8], eax
test eax, eax
je 0x1004ce97
push edi
mov ecx, eax
call fcn.10061e20
mov esi, eax
neg esi
sbb esi, esi
neg esi
lea eax, [ebp + 0xc]
push eax
push 2
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x1004cecc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1004cede
lea eax, [ebx + 8]
jmp 0x1004cee9
xor eax, eax
cmp ebx, 5
setne al
add eax, 2
mov ecx, dword [ebp - 4]
xor ebx, ebx
test ecx, ecx
sete bl
push ecx
push ebx
push str.End_:_return__d__rc0x_X_
push str.CSetupRegW::DeleteValue
push eax
call fcn.10041ef0
add esp, 0x14
test ebx, ebx
je 0x1004cf21
test esi, esi
je 0x1004cf21
cmp dword [ebp - 8], 0
je 0x1004cf21
test edi, edi
je 0x1004cf21
mov ecx, edi
call fcn.100621f0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004d1d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor ecx, ecx
mov eax, 0x105
mov edx, 2
mul edx
seto cl
push esi
mov dword [ebp - 4], 0x104
neg ecx
or ecx, eax
push ecx
call fcn.1006dae0
mov esi, eax
add esp, 4
test esi, esi
jne 0x1004d20c
lea eax, [esi + 8]
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
push edi
lea eax, [eax*2 + 2]
push eax
push 0
push esi
call fcn.10074d40
push 0x104
mov dword [ebp - 8], 0x104
call fcn.1006dae0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1004d24e
push esi
call fcn.1006eaef
add esp, 4
lea eax, [edi + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push dword [ebp - 8]
push 0
push edi
call fcn.10074d40
mov ebx, dword [ebp + 0x10]
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
push edi
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0xc], eax
cmp eax, 0xea
jne 0x1004d35b
push esi
call fcn.1006eaef
push edi
call fcn.1006eaef
add esp, 8
lea eax, [ebp - 4]
push 0
push 0
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 4], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1004d2cc
mov eax, 0x3fff
jmp 0x1004d2d0
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006dae0
mov esi, eax
add esp, 4
test esi, esi
je 0x1004d320
mov eax, dword [ebp - 4]
lea eax, [eax*2 + 2]
push eax
push 0
push esi
call fcn.10074d40
push dword [ebp - 8]
call fcn.1006dae0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1004d32e
push esi
call fcn.1006eaef
add esp, 4
pop ebx
pop edi
mov eax, 8
pop esi
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 8]
push 0
push edi
call fcn.10074d40
add esp, 0xc
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x1004d390
add ebx, 4
push ecx
mov ecx, ebx
call fcn.1003f020
mov eax, dword [ebp - 4]
inc eax
cmp dword [ebx + 8], eax
ja 0x1004d37c
inc eax
push eax
mov ecx, ebx
call fcn.1003f120
push esi
mov ecx, ebx
call fcn.1003ef80
push dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
push edi
call fcn.1004ba30
push esi
call fcn.1006eaef
push edi
call fcn.1006eaef
mov eax, dword [ebp - 0xc]
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004d3b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 8]
push eax
push 0x201
xor esi, esi
push esi
push dword [ebp + 0xc]
xor ebx, ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1004d3eb
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push edi
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0xc], 7
jne 0x1004d49b
cmp eax, 0xea
je 0x1004d41c
test eax, eax
jne 0x1004d49b
mov edi, dword [ebp + 0x18]
cmp dword [ebp + 0x14], ebx
jne 0x1004d42d
test edi, edi
je 0x1004d42d
mov eax, dword [ebp - 4]
jmp 0x1004d494
mov eax, dword [ebp - 4]
push 2
lea eax, [eax*2 + 2]
push eax
call fcn.10071846
mov esi, eax
add esp, 8
test esi, esi
je 0x1004d49b
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1004d474
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 4]
ja 0x1004d49b
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1004d48d
mov dword [eax], esi
xor esi, esi
test edi, edi
je 0x1004d496
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
mov ebx, 1
mov eax, dword [ebp - 8]
test eax, eax
je 0x1004d4a9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1004d4b6
push esi
call fcn.100716e4
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1004d4d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
test edi, edi
je 0x1004d550
mov esi, dword [ebp + 8]
test esi, esi
je 0x1004d550
push esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
push str.Start_:_hRoot0x_X__wStrKey_s__wStrValueName_s
push str.CSetupRegW::SetMultiStringRegistryValue
push 8
call fcn.10041ef0
add esp, 0x18
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp + 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1004d55a
push eax
push str.End_:_return_FALSE__RegCreateKeyExW_returned_0x_X_
xor ecx, ecx
cmp eax, 5
setne cl
push str.CSetupRegW::SetMultiStringRegistryValue
add ecx, 2
push ecx
call fcn.10041ef0
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 7
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1004d57a
push eax
push str.End_:_return_FALSE__RegSetValueExW_returned_0x_X_
jmp 0x1004d537
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.End_:_return_TRUE
push str.CSetupRegW::SetMultiStringRegistryValue
push 8
call fcn.10041ef0
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004e0c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b906
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push fcn.10022960
push 0x1003e510
push 8
mov dword [ebp - 0x2a0], eax
push 0x10
lea eax, [ebp - 0x290]
push eax
mov dword [ebp - 0x29c], ebx
call fcn.10071b70
lea eax, [ebp - 0x2a4]
push eax
mov dword [ebp - 4], 0
push dword [ebx + 0xc]
xor edi, edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x1004e167
push ebx
call fcn.1006dae0
mov esi, eax
add esp, 4
test esi, esi
je 0x1004e167
mov eax, dword [ebp - 0x29c]
push esi
push ebx
push edi
push dword [eax + 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x1004e1a5
push esi
call fcn.1006dae9
add esp, 4
xor edi, edi
push fcn.10022960
push 8
push 0x10
lea eax, [ebp - 0x290]
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.10071bd8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006daee
mov esp, ebp
pop ebp
ret 8
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov dword [ebp - 0x298], edi
call fcn.10074d40
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
add esp, 0xc
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x298]
push eax
push str.VarFileInfoTranslation
push esi
call ebx
push 0x100b4d48
test eax, eax
je 0x1004e218
mov ecx, dword [ebp - 0x298]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x210]
push 0x100
push eax
call fcn.1004d5b0
add esp, 0x18
jmp 0x1004e231
push str.StringFileInfo040904b0_s
lea eax, [ebp - 0x210]
push 0x100
push eax
call fcn.1004d5b0
add esp, 0x10
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
mov dword [ebp - 0x294], edi
call ebx
test eax, eax
je 0x1004e269
push dword [ebp - 0x294]
lea ecx, [ebp - 0x270]
call fcn.1003ec60
mov edi, 1
push dword [ebp - 0x294]
mov ecx, dword [ebp - 0x2a0]
call fcn.1003ec60
push esi
call fcn.1006eaef
add esp, 4
jmp 0x1004e169
Function at 0x1004e300
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b9ec
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x228], edi
mov esi, ecx
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 0
call fcn.10043870
cmp dword [0x100f2538], 6
push esi
sbb eax, eax
and eax, 0xfffff400
add eax, 0x1000
push 0
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
xor ebx, ebx
mov dword [ebp - 0x224], eax
test eax, eax
je 0x1004e483
push 0x1fe
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x1004e477
test edi, edi
je 0x1004e477
mov dword [ebp - 4], 1
lea esi, [ebp - 0x210]
xor edi, edi
mov dword [ebp - method.CStringBufferW.virtual_0], vtable.CStringBufferW.0
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x21c], edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1004e3d3
sub esi, ecx
sar esi, 1
je 0x1004e41d
push esi
lea ecx, [ebp - 0x220]
call fcn.1003f120
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
push dword [ebp - 0x214]
call fcn.1006fb74
mov edi, esi
lea eax, [esi + 1]
add esp, 0x10
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x218], eax
push ecx
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 2
call fcn.1003f700
test eax, eax
je 0x1004e46c
sub edi, eax
dec edi
push edi
inc eax
push eax
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x220]
call fcn.1003f540
mov ecx, dword [ebp - 0x228]
push eax
mov byte [ebp - 4], 3
call fcn.1003ecf0
lea ecx, [ebp - 0x238]
call fcn.10022960
mov ebx, 1
lea ecx, [ebp - 0x220]
call fcn.10022960
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006daee
mov esp, ebp
pop ebp
ret

Function at 0x1004efc0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ecx + 0xc]
lea ecx, [ebp - 0x24]
call fcn.1004edf0
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x1004f028
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0xb7
jne 0x1004f01b
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006daee
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.1006daee
mov esp, ebp
pop ebp
ret
Function at 0x1004f040
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ecx + 0xc]
push edi
mov edi, edx
lea ecx, [ebp - 0x24]
mov dword [edi], 0
call fcn.1004edf0
push esi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x1004f096
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1004f0a8
push esi
mov dword [edi], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006daee
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1006daee
mov esp, ebp
pop ebp
ret

Function at 0x1004f0c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
lea ecx, [ebp - 0x24]
mov dword [edi], 0
call fcn.1004edf0
push esi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x1004f115
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1004f127
push esi
mov dword [edi], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006daee
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1006daee
mov esp, ebp
pop ebp
ret