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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426691
mov eax, dword fs:[0]
push eax
mov eax, 0x1001c
call fcn.004248e0
mov eax, dword [0x43400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test dword [ecx + 0xdc], 0x200
jne 0x407d04
xor eax, eax
jmp 0x407e3e
mov dword [ebp - 0x10024], 0
mov dword [ebp - 0x10020], 0
mov dword [ebp - 0x1001c], 0
mov dword [ebp - 4], 0
call fcn.00401230
mov ecx, eax
test ecx, ecx
je 0x407eee
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10014], eax
push 0x42cd58
lea ecx, [ebp - 0x10014]
mov byte [ebp - 4], 1
call fcn.00402e30
test al, al
jne 0x407d70
push 0
push 0x42cd58
lea ecx, [ebp - 0x10014]
call fcn.004031f0
push 0x20019
push str.SOFTWARERealtekWOV
push ecx
lea ecx, [ebp - 0x10024]
mov byte [ebp - 4], 2
call fcn.00401680
mov esi, dword [ebp - 0x10024]
test eax, eax
jne 0x407df0
lea eax, [ebp - 0x10018]
mov dword [ebp - 0x10018], 0xfffe
push eax
lea eax, [ebp - 0x10010]
push eax
lea eax, [ebp - 0x10028]
push eax
push 0
push str.VoiceAssistantApplication
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407df0
mov eax, dword [ebp - 0x10028]
cmp eax, 1
je 0x407dd5
cmp eax, 2
jne 0x407df0
mov eax, dword [ebp - 0x10018]
test eax, eax
je 0x407e59
test al, 1
jne 0x407df0
shr eax, 1
cmp word [ebp + eax*2 - 0x10012], 0
je 0x407e62
test esi, esi
je 0x407e03
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x10024], esi
mov dword [ebp - 0x10020], 0
xor edi, edi
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x10014]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407e31
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x407e3c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f45f
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [ebp - 0x10010], ax
lea ecx, [ebp - 0x10010]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407e70
sub ecx, edx
lea eax, [ebp - 0x10010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10014]
call fcn.004031f0
mov eax, dword [ebp - 0x10014]
mov ecx, str.LenovoVoiceAssistant
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407ec6
test dx, dx
je 0x407ec2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407ec6
add eax, 4
add ecx, 4
test dx, dx
jne 0x407ea0
xor eax, eax
jmp 0x407ecb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x407df0
lea ecx, [ebp - 0x10024]
call fcn.00401650
mov esi, dword [ebp - 0x10024]
mov edi, 1
jmp 0x407e0f
push 0x80004005
call fcn.00401510
int3
Function at 0x407f00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426691
mov eax, dword fs:[0]
push eax
mov eax, 0x1001c
call fcn.004248e0
mov eax, dword [0x43400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test dword [ecx + 0xdc], 0x200
jne 0x407f44
xor eax, eax
jmp 0x40807e
mov dword [ebp - 0x10024], 0
mov dword [ebp - 0x10020], 0
mov dword [ebp - 0x1001c], 0
mov dword [ebp - 4], 0
call fcn.00401230
mov ecx, eax
test ecx, ecx
je 0x40812e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10014], eax
push 0x42cd58
lea ecx, [ebp - 0x10014]
mov byte [ebp - 4], 1
call fcn.00402e30
test al, al
jne 0x407fb0
push 0
push 0x42cd58
lea ecx, [ebp - 0x10014]
call fcn.004031f0
push 0x20019
push str.SOFTWARERealtekAudioWOV
push ecx
lea ecx, [ebp - 0x10024]
mov byte [ebp - 4], 2
call fcn.00401680
mov esi, dword [ebp - 0x10024]
test eax, eax
jne 0x408030
lea eax, [ebp - 0x10018]
mov dword [ebp - 0x10018], 0xfffe
push eax
lea eax, [ebp - 0x10010]
push eax
lea eax, [ebp - 0x10028]
push eax
push 0
push str.VoiceAssistantApplication
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408030
mov eax, dword [ebp - 0x10028]
cmp eax, 1
je 0x408015
cmp eax, 2
jne 0x408030
mov eax, dword [ebp - 0x10018]
test eax, eax
je 0x408099
test al, 1
jne 0x408030
shr eax, 1
cmp word [ebp + eax*2 - 0x10012], 0
je 0x4080a2
test esi, esi
je 0x408043
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x10024], esi
mov dword [ebp - 0x10020], 0
xor edi, edi
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x10014]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408071
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x40807c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f45f
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [ebp - 0x10010], ax
lea ecx, [ebp - 0x10010]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4080b0
sub ecx, edx
lea eax, [ebp - 0x10010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10014]
call fcn.004031f0
mov eax, dword [ebp - 0x10014]
mov ecx, str.LenovoVoiceAssistant
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408106
test dx, dx
je 0x408102
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408106
add eax, 4
add ecx, 4
test dx, dx
jne 0x4080e0
xor eax, eax
jmp 0x40810b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408030
lea ecx, [ebp - 0x10024]
call fcn.00401650
mov esi, dword [ebp - 0x10024]
mov edi, 1
jmp 0x40804f
push 0x80004005
call fcn.00401510
int3
Function at 0x408140
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4266d0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x43400c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push 1
push str.SOFTWARERealtekAudioRtkAudioService
push ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0
call fcn.00401680
test eax, eax
jne 0x4081e3
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.SetServiceDependency
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4082c3
cmp dword [ebp - 0x10], 4
jne 0x4082c3
cmp dword [ebp - 0x14], 1
jne 0x4082c3
jmp 0x40830e
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x408250
cmp dword [esi], 0
je 0x408243
push 0x42cea8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40820c
mov eax, 1
jmp 0x408275
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408249
push 0
push dword [esi]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARERealtekAudioRtkAudioService
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x408275
cmp dword [esi + 4], 0
jne 0x408250
mov eax, 1
jmp 0x408275
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARERealtekAudioRtkAudioService
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4082c0
mov eax, dword [ebp - 0x24]
xor ecx, ecx
test eax, eax
je 0x40828b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, eax
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 0
test ecx, ecx
jne 0x4082c3
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 4
push ecx
push str.SetServiceDependency
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4082c3
xor edi, edi
jmp 0x408313
mov esi, dword [ebp - 0x24]
push ecx
mov edi, esp
mov dword [ebp - 0x18], edi
call fcn.00401230
mov ecx, eax
test ecx, ecx
je 0x408331
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push str.sc_config_RtkAudioService_dependaudiosrv
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00402e30
test al, al
jne 0x408300
push 0x29
push str.sc_config_RtkAudioService_dependaudiosrv
mov ecx, edi
call fcn.004031f0
xor ecx, ecx
mov byte [ebp - 4], 0
call fcn.004028b0
add esp, 4
mov edi, 1
test esi, esi
je 0x40831e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401510
int3
Function at 0x408c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
push 0x11
push 0
push str.SYSTEMCurrentControlSetControlPriorityControl
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408c88
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.ConvertibleSlateMode
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x408c90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SOFTWARERealtekRealtekEffectsAP
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408cec
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push str.AutoRotationState
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push str.SensorIndex
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x40ab30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4268e7
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x43400c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x434], 0
jne 0x40ace9
push 0x44
call fcn.0040fbab
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.CSimpleOrientationSensorManagerEvents.0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0x11
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0xa
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x20], 0x3f400000
mov dword [esi + 0x24], 0x3e800000
mov dword [esi + 0x28], 0x40100000
mov dword [esi + 0x2c], 0x26
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 2
push 0x9c
mov dword [esi + 8], edi
mov dword [esi + 4], 1
call fcn.0040fbab
add esp, 4
mov dword [ebp - 0x20], eax
push esi
push edi
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004083f0
mov dword [esi + 0xc], eax
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x434], esi
call fcn.00409d40
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push str.SOFTWARERealtekAudio
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40ac64
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push str.InitSensorAPI_HRESULT_
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
jl 0x40acc3
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push str.SOFTWARERealtekAudio
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40acad
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x752f
push eax
push 4
push 0
push str.SensorAPI_uninit_HRESULT_
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x434]
call fcn.00409f50
mov ecx, dword [edi + 0x434]
test ecx, ecx
je 0x40acdf
mov eax, dword [ecx]
push 1
call dword [eax + 0x10]
mov dword [edi + 0x434], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40eb00
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push 0
push 0
mov edi, ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x40eb1a
mov ecx, 0x5e
jmp 0x40eb41
cmp dword [edi + 0x20], 0
lea eax, [edi + 0x20]
jne 0x40eb82
push eax
push 0x42d088
push 0x17
push 0
push 0x42d048
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40eb82
mov ecx, 0x65
push eax
push str.f:proj_20210312_backgroundprocess_huawei_rtkaudservice_modifymmdeviceapilibmmdeviceapibase.cpp
push ecx
push str._MMDevAPILib__EXIT_ON_ERROR:_Line___d__File___s__hr__0x_X_n
call fcn.0040d6f0
mov ecx, dword [edi + 0x20]
add esp, 0x10
test ecx, ecx
je 0x40eb69
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x20], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
push str.CMMDeviceAPIBase::Init___failed_n
call fcn.0040d6f0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
ret
lea esi, [edi + 4]
mov ebx, 3
nop word [eax + eax]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], eax
lea esi, [esi + 4]
sub ebx, 1
jne 0x40eb90
lea esi, [edi + 0x14]
mov ebx, 2
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], eax
lea esi, [esi + 4]
sub ebx, 1
jne 0x40ebb0
lea eax, [edi + 0x1c]
push eax
push ebx
push edi
push 0x40ec20
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x10], eax
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x413fff
Capabilities:
Inspect section memory permissions

Disassembly:
cmp eax, ebx
je 0x41405c
add eax, esi
cmp dword [eax], ebx
je 0x41405c
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x414057
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x414041
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x414049
cmp edx, ebx
jne 0x414197
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x414018
add eax, dword [eax + 4]
jmp 0x414005
mov dword [ebp + 0xc], ebx
jmp 0x414067
Function at 0x4140c0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x41407f
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x41409d
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4140fb
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4140e2
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4140eb
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4140f5
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4140d7
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x414061
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x414148
dec eax
je 0x41413f
sub eax, 3
je 0x414136
mov dword [ebp - 4], 0x40
jmp 0x414165
mov dword [ebp - 4], 4
jmp 0x41414b
mov dword [ebp - 4], 0x20
jmp 0x41414b
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x414197
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x414117
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004139a8
cli
adc edi, edx
aaa
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x4141a3
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41c55c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c1d5
Function at 0x1003d30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0x20019
push edi
mov esi, ecx
push 0x1001840
push 0x80000001
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], 0x7530
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], edi
je 0x1003db0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x1001828
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003da2
mov ecx, dword [ebp - 8]
mov eax, 0x2710
cmp ecx, eax
mov dword [esi + 0x6c], ecx
jge 0x1003da2
mov dword [esi + 0x6c], eax
cmp dword [ebp - 4], edi
je 0x1003db0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret

Function at 0x1006828
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.01009d0c
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1006815
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, esi
setne cl
mov dword [0x1018d58], eax
pop esi
mov eax, ecx
leave
ret
Function at 0x1007a80
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001840
push 0x80000001
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], esi
jne 0x1007abc
mov eax, dword [ebp + 0xc]
jmp 0x1007af7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1007ae5
cmp dword [ebp - 0xc], 4
je 0x1007aeb
cmp dword [ebp - 0xc], 3
je 0x1007aeb
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
leave
ret 8

Function at 0x1008378
Capabilities:
Get common file path

Disassembly:
push 0x10
mov eax, 0x10154ef
call fcn.010093ba
call fcn.01008852
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42u.dll_AFX_MAINTAIN_STATE2::AFX_MAINTAIN_STATE2
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
xor eax, eax
xor ebx, ebx
mov word [edi], ax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
mov word [esi], ax
call sub.MFC42u.dll_CString::CString_2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString_2
push 0xa3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42u.dll_CString::LoadStringW
push 0xa5
lea ecx, [ebp - 0x14]
call sub.MFC42u.dll_CString::LoadStringW
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
jne 0x100840f
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42u.dll_CString::CString
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
xor eax, eax
call fcn.010094a6
ret 0x10
push dword [ebp - 0x10]
push dword [ebp + 0x14]
push esi
call fcn.0100600d
xor eax, eax
mov esi, 0x1019b38
cmp ax, word [0x1019b38]
jne 0x1008466
push ebx
push 9
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x1008466
mov word [0x1019b38], ax
xor esi, esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42u.dll_CString::CString
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov eax, esi
jmp 0x1008407
push esi
push dword [ebp + 0xc]
push edi
call fcn.01003ae9
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push edi
call fcn.0100600d
xor esi, esi
inc esi
jmp 0x1008442
Function at 0x100938a
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1016180
call fcn.01009528
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x101cf00
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1009145
cmp eax, esi
jne 0x1009138
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1009148
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100911f
xor esi, esi
inc esi
mov eax, dword [0x101cefc]
cmp eax, esi
jne 0x100915b
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100918a
mov eax, dword [0x101cefc]
test eax, eax
jne 0x1009184
mov dword [0x101cefc], esi
push 0x1001620
push 0x1001614
call fcn.01009081
pop ecx
pop ecx
test eax, eax
je 0x100918a
jmp 0x10092ae
mov dword [0x101c01c], esi
mov eax, dword [0x101cefc]
cmp eax, esi
jne 0x10091ae
push 0x1001610
push 0x10015f4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x101cefc], 2
cmp dword [ebp - 0x20], ebx
jne 0x10091bb
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x101cf0c], ebx
je 0x10091dc
push 0x101cf0c
call fcn.01009809
pop ecx
test eax, eax
je 0x10091dc
push ebx
push 2
push ebx
call dword [0x101cf0c]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10092ae
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1009246
cmp cx, bx
je 0x1009201
cmp dword [ebp - 0x1c], ebx
jne 0x1009246
movzx ecx, word [eax]
cmp cx, bx
je 0x1009216
cmp cx, 0x20
ja 0x1009216
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1009201
test byte [ebp - 0x40], 1
je 0x1009222
movzx ecx, word [ebp - 0x3c]
jmp 0x1009225
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x101c018], eax
cmp dword [0x101c00c], ebx
jne 0x100928b
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1009257
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10091eb
cmp dword [0x101c01c], ebx
jne 0x1009299
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101c018]
jmp 0x10092ba
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100956d
ret
call fcn.01009956
jmp 0x10090e2