joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c91
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x3e8
lea ebp, [esp - 4]
mov eax, dword [0x422608]
xor eax, ebp
mov dword [ebp + 0x3e8], eax
push 0x20
mov eax, 0x41b9d6
call fcn.0040b33b
mov eax, dword [ebp + 0x3f8]
mov ebx, dword [ebp + 0x3f4]
mov esi, str.MarsUnknown
lea edi, [ebp + 0x1f4]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x3fc]
movsd dword es:[edi], dword [esi]
push 0x1e8
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x200]
push 0
push eax
movsd dword es:[edi], dword [esi]
call fcn.0040c420
add esp, 0xc
push ebx
lea ecx, [ebp - 0x18]
call fcn.00401ebb
push dword [ebp - 0x24]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00401ebb
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00403745
lea eax, [ebp - 0x2c]
push eax
call fcn.00403706
add esp, 0xc
push dword [eax + 4]
lea eax, [ebp]
push 0x1f4
push eax
lea eax, [ebp + 0x1f4]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x2c]
call fcn.00401ef4
lea eax, [ebp + 0x1f4]
push eax
lea eax, [ebp]
push eax
call fcn.0040cfa8
test eax, eax
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
je 0x403d73
lea eax, [ebp]
push eax
call fcn.00401df6
mov al, 1
jmp 0x403d7a
call fcn.00401d97
xor al, al
lea ecx, [ebp - 0x20]
movzx esi, al
mov byte [ebp - 4], 0
call fcn.00401ef4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401ef4
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 + 0x3e8]
xor ecx, ebp
call fcn.0040af65
add ebp, 0x3ec
leave
ret

Function at 0x404430
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x404483
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x404499
push 0x80004005
call fcn.00404016
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40449c
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x404cc7
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x34], eax
jne 0x404ce3
xor al, al
jmp 0x404cfd
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x404c93
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret
Function at 0x404e89
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x422608]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.004043fb
mov edi, eax
cmp edi, esi
je 0x404ef1
lea ecx, [ebp - 0x70]
call fcn.00404396
mov eax, edi
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040af65
add ebp, 0x98
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x404f09
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00404e89
cmp eax, esi
jne 0x404f3c
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x404ef9
lea ecx, [ebp - 0x70]
call fcn.00404396
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00404396
mov eax, esi
jmp 0x404ed7
Function at 0x4072c1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x422608]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x41bca2
call fcn.0040b36e
mov edi, ecx
mov eax, dword [ebp + 0x414]
mov esi, dword [ebp + 0x410]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
call dword [0x4225d4]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp], ebx
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x40737b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00403ef7
add esp, 0xc
test eax, eax
jl 0x40737b
mov edi, dword [ebp - 0x24]
cmp edi, 0x400
jg 0x407363
push edi
call fcn.00404c1e
test al, al
pop ecx
je 0x407363
mov eax, edi
call fcn.0040d0c0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x40736c
push edi
lea ecx, [ebp - 0x20]
call fcn.004051f1
push dword [ebp - 0x1c]
push edi
push esi
push eax
call fcn.00401e4c
cmp eax, ebx
jne 0x4073c0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40738b
lea ecx, [ebp]
call fcn.00404b58
lea ecx, [ebp - 0x20]
call fcn.00404a92
mov eax, 0x8007000e
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0040af65
add ebp, 0x408
leave
ret 0x10
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x1c], edi
jne 0x4073df
call fcn.00404235
mov esi, eax
jmp 0x4074a2
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x4073fc
call fcn.00404235
jmp 0x407497
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x4073f2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x18], esi
jae 0x407443
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40742f
lea ecx, [ebp]
call fcn.00404b58
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.00404a92
mov eax, esi
jmp 0x407398
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00405fcf
mov dword [ebp - 4], 1
jmp 0x407464
cmp dword [ebp], ebx
jne 0x407470
mov esi, 0x8007000e
jmp 0x407499
push esi
push dword [ebp - 0x14]
push esi
push dword [ebp]
call fcn.004040a5
mov eax, dword [ebp]
add esp, 0x10
push dword [ebp + 0x41c]
mov byte [eax + esi], bl
push dword [ebp]
lea ecx, [ebp - 0x2c]
call fcn.00406f44
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x407434
lea ecx, [ebp]
call fcn.00404b58
jmp 0x407434
Function at 0x407e51
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
mov dword [ebp + 0x10], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x41c6a4
push dword [ebp + 8]
mov ebx, 0x423950
push 0x422148
mov ecx, ebx
call fcn.004048d4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, 0x41cab0
lea edi, [ebp - 4]
movsw word es:[edi], word [esi]
mov dword [0x423980], eax
lea eax, [ebp - 4]
movsb byte es:[edi], byte [esi]
xor esi, esi
push eax
push dword [ebp + 0x10]
mov dword [ebp + 8], esi
jmp 0x407ecd
push str.UnregServer
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x407eff
push str.RegServer
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x407f15
lea eax, [ebp - 4]
push eax
push edi
call fcn.0040402e
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jne 0x407ea8
mov ecx, ebx
call fcn.00404cc7
push 1
push 4
mov ecx, ebx
call fcn.00404fe8
push str..pipeMorDebug
call fcn.004033cb
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
pop ecx
jmp 0x407f39
push esi
push esi
push 0x64
push ebx
call fcn.00407b10
push esi
push 1
mov ecx, ebx
call fcn.00407dc3
jmp 0x407f2a
push esi
push 1
push 0x64
push ebx
call fcn.00407b10
push esi
push 1
mov ecx, ebx
call fcn.00407d54
mov dword [ebp + 8], eax
jmp 0x407f58
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
call edi
test eax, eax
jne 0x407f2f
mov ecx, ebx
call fcn.0040502a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.00404f96
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x408001
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x422608]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x104
lea eax, [ebp - 0x10b]
push 0
push eax
mov byte [ebp - 0x10c], 0
call fcn.0040c420
push str.Debug.ini
push 0x41c308
push esi
push str.c:Morpheus_
lea eax, [ebp - 0x10c]
push str._s_s_s_s
push eax
call fcn.0040b445
add esp, 0x24
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0x10]
push edi
push str.MagicParam
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040af65
leave
ret
Function at 0x408ea8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x422608]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00408e3d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040c420
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x408ef7
cmp dword [ebp - 0x1c], 5
jb 0x408f0f
jmp 0x408f0b
cmp dword [ebp - 0x10], 1
jne 0x408f0f
cmp dword [ebp - 0x1c], 4
ja 0x408f0b
jne 0x408f0f
cmp dword [ebp - 0x18], 0
jbe 0x408f0f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41ce4c
call fcn.00404192
test eax, eax
jge 0x408f30
mov byte [0x423908], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040af65
add ebp, 0x78
leave
ret

Function at 0x40af65
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422608]
jne 0x40af6f
repz ret
jmp fcn.0041020d

Function at 0x40ffa4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x40ffc1
xor eax, eax
leave
ret
cmp dword [ebp - 4], 0x1000000
jne 0x40ffbd
mov ecx, dword [ebp - 0x18]
cmp word [ecx], 0x5a4d
jne 0x40ffbd
mov eax, dword [ecx + 0x3c]
test eax, eax
jle 0x40ffbd
mov edx, dword [ebp - 0x10]
add edx, 0xffffff08
cmp eax, edx
ja 0x40ffbd
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40ffbd
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov ecx, dword [eax + 0x50]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov eax, dword [eax + 0x58]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
inc eax
leave
ret
Function at 0x41780b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040f7f7
xor ebx, ebx
cmp dword [0x4244e8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4178e0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41784b
xor eax, eax
jmp 0x4179a4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41e81c
push edi
call esi
cmp eax, ebx
je 0x417844
push eax
call fcn.0040f789
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4244e8], eax
call esi
push eax
call fcn.0040f789
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4244ec], eax
call esi
push eax
call fcn.0040f789
mov dword [0x4244f0], eax
lea eax, [ebp - 8]
push eax
call fcn.00412ee8
test eax, eax
pop ecx
pop ecx
je 0x4178ae
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040d0f6
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4178e0
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040f789
cmp eax, ebx
pop ecx
mov dword [0x4244f8], eax
je 0x4178e0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040f789
pop ecx
mov dword [0x4244f4], eax
mov eax, dword [0x4244f4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x417959
cmp dword [0x4244f8], esi
je 0x417959
push eax
call fcn.0040f800
pop ecx
call eax
cmp eax, ebx
je 0x417926
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4244f8]
call fcn.0040f800
pop ecx
call eax
test eax, eax
je 0x417926
test byte [ebp - 0x18], 1
jne 0x417959
lea eax, [ebp - 0xc]
push eax
call fcn.00412f1f
test eax, eax
pop ecx
je 0x417941
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040d0f6
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x417950
or dword [ebp + 0x10], 0x200000
jmp 0x41798a
or dword [ebp + 0x10], 0x40000
jmp 0x41798a
mov eax, dword [0x4244ec]
cmp eax, esi
je 0x41798a
push eax
call fcn.0040f800
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41798a
mov eax, dword [0x4244f0]
cmp eax, esi
je 0x41798a
push dword [ebp - 4]
push eax
call fcn.0040f800
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 [0x4244e8]
call fcn.0040f800
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401489
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4014c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4014c0
lea ebx, [ebx]
cmp esi, eax
jae 0x4014c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4014b0
cmp esi, eax
jb 0x4014ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401ce0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x44b538]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [esp + 0x124]
push esi
push edi
mov edi, dword [esp + 0x120]
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x43b904
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401d55
push 0x43b914
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x401d5a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
jmp 0x401d72
mov ecx, dword [esp + 0x124]
push ebp
push ebx
push ecx
push edi
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00425dea
add esp, 0x10c
ret

Function at 0x4026c0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov eax, dword [0x44b538]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x114]
push esi
push edi
mov edi, dword [esp + 0x120]
lea ecx, [esp + 8]
push ecx
push 0xf003f
xor esi, esi
push esi
push edi
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40273a
mov ecx, dword [esp + 8]
push esi
push esi
push esi
push esi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push esi
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x40272f
mov esi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402756
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x114]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00425dea
add esp, 0x110
ret
Function at 0x4030a0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x438018
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x44b538]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
push str.MicrosoftWindowsCurrentVersionUninstall_
add ecx, 0x148
push ecx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.00402cd0
push str.F132AF7F_7BCA_4EDE_8A7C_958108FE7DBC
push eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x4c], 0
call fcn.00402cd0
mov eax, dword [eax]
add esp, 0x18
lea edx, [esp + 0x18]
push edx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov eax, dword [esp + 0x24]
sete byte [esp + 0xf]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403147
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40316f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0xf], 0
je 0x4031da
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push str.MajorVersion
mov edi, 4
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
call esi
test eax, eax
jne 0x4031cf
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.MinorVersion
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
call esi
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
shl eax, 0x10
or eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x403a30
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4381a6
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x44b538]
xor eax, esp
mov dword [esp + 0x110], eax
push ebp
push esi
push edi
mov eax, dword [0x44b538]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
call fcn.0041564a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403a88
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x10], ecx
mov eax, dword [esi + 0x158]
test eax, eax
mov dword [esp + 0x12c], 0
je 0x403aba
cmp dword [esi + 0x15c], 0
jne 0x403ac3
test eax, eax
jne 0x403af1
cmp dword [esi + 0x15c], 0
jne 0x403af1
lea eax, [ecx - 0x10]
mov dword [esp + 0x12c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403aea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x403c20
cmp dword [esi + 0x2a2c], 0
jne 0x403b4f
push str.RealtekInstallShield
lea ecx, [esi + 0x148]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00402cd0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 1
call fcn.00402df0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x12c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x403b5f
push 0x20
push str.SoftwareRealtekAudioInstaller
lea ecx, [esp + 0x18]
call fcn.00402a70
mov ebp, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebp
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x403bf7
cmp dword [esi + 0x158], eax
je 0x403b9e
push str.F132AF7F_7BCA_4EDE_8A7C_958108FE7DBC
lea edx, [esp + 0x20]
push 0x43bca8
push edx
call fcn.0042701f
add esp, 0xc
mov eax, 0x27
jmp 0x403bc9
cmp dword [esi + 0x15c], 0
je 0x403bc5
push str.5449FB4F_1802_4D5B_A6D8_087DB1142147
lea eax, [esp + 0x20]
push 0x43bca8
push eax
call fcn.0042701f
add esp, 0xc
mov eax, 0x27
jmp 0x403bc9
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push 1
push 0
push str.RtkCurUninstallPackage
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov eax, dword [esp + 0x14]
neg edi
sbb edi, edi
push eax
add edi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
mov dword [esp + 0x12c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00425dea
add esp, 0x120
ret
Function at 0x403c50
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4381f0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x44b538]
xor eax, esp
mov dword [esp + 0x4c], eax
push esi
mov eax, dword [0x44b538]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041564a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403c9b
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x68]
push ecx
lea edx, [esp + 0x18]
push str.0x_08X
push edx
mov dword [esp + 0x6c], 0
call fcn.0042701f
add esp, 0xc
cmp dword [esi + 0x2a2c], 0
jne 0x403d22
push str.RealtekInstallShield
add esi, 0x148
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00402cd0
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x64], 1
call fcn.00402df0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x60], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x403d32
push 0x20
push str.SoftwareRealtekAudioInstaller
lea ecx, [esp + 0x10]
call fcn.00402a70
mov esi, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x403d70
push 0x40
lea edx, [esp + 0x18]
push edx
push 1
push eax
mov eax, dword [esp + 0x1c]
push str.InstallerErrorCode
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x60], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403d94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00425dea
add esp, 0x5c
ret 4