joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b5d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x40b6b5
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push edi
push 1
push dword [esi + 0x10]
push 0x30
push eax
call ebx
movzx eax, word [esi]
push 5
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov ecx, ebp
call fcn.0040b0ec
xor edi, edi
and dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov eax, 0xffff
cmp word [ebp + 2], ax
lea eax, [ebp + 0x10]
je 0x40b63c
lea eax, [ebp + 8]
movzx eax, word [eax]
cmp dword [esp + 0xc], eax
jge 0x40b69e
cmp dword [esp + 0xc], 0
jne 0x40b653
push 5
push dword [esi + 8]
jmp 0x40b656
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
je 0x40b69e
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx + 0x14]
je 0x40b681
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x40b662
test edi, edi
je 0x40b69e
push 1
push dword [esi + 0x10]
push 0x30
push edi
call ebx
mov eax, dword [esp + 0x10]
call fcn.0040b168
inc dword [esp + 0xc]
jmp 0x40b627
push dword [esi + 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
xor eax, eax
pop ebp
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
pop ebx
pop ecx
pop ecx
ret
Function at 0x40fc92
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dacd4
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x57b750]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
mov edi, SysReAllocString
push eax
lea esi, [esp + 0x30]
mov dword [esp + 0x1c], edi
call fcn.0040a64a
xor ebx, ebx
mov dword [esp + 0x50], ebx
push 0x526398
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0x2001f
call fcn.004024df
push ecx
mov byte [esp + 0x54], 1
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.SYSRES
call fcn.004024df
lea ecx, [esp + 0x18]
call fcn.004067db
push 1
push dword [esp + 0x18]
push edi
call fcn.0040a666
test eax, eax
je 0x40fd5b
xor eax, eax
mov word [esp + 0x1c], ax
lea edi, [esp + 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x10
lea eax, [esp + 0x20]
push eax
push 3
push ebx
push str.LastRestorePointTime
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call fcn.0040a6c4
mov bl, 1
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004027b0
lea esi, [esp + 0x2c]
call fcn.0040a6c4
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffff0
call fcn.004027b0
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4109d6
Capabilities:
Get common file path

Disassembly:
push 0x210
mov eax, 0x4d7f79
call fcn.004bed19
xor edi, edi
lea esi, [ebx + 0x2018]
mov dword [ebx], vtable.CCategory.0
mov dword [ebx + 0x2004], edi
mov dword [ebx + 0x2008], edi
mov dword [ebx + 0x200c], edi
mov dword [ebx + 0x2010], edi
mov dword [ebx + 0x2014], edi
mov dword [ebp - 0x21c], ebx
mov dword [esi], vtable.CArray_class_CProblem___class_CProblem__const_const__.0
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
lea ecx, [ebx + 0x202c]
mov dword [ebp - 4], edi
call fcn.00402792
push 0x2000
lea eax, [ebx + 4]
push edi
push eax
mov byte [ebp - 4], 1
call fcn.004be850
add esp, 0xc
mov eax, 0x104
push eax
push eax
lea ecx, [ebx + 0x202c]
call fcn.004028ad
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebx + 0x202c]
call fcn.004160af
push 0x526790
lea ecx, [ebx + 0x202c]
call fcn.00415cf1
cmp dword [0x584ad8], edi
jne 0x410aab
push str.GetSystemWow64DirectoryW
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x584ad8], eax
cmp eax, edi
je 0x410afa
mov eax, dword [0x584adc]
cmp dword [eax - 0xc], edi
jne 0x410afa
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.004be850
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [0x584ad8]
test eax, eax
je 0x410afa
lea eax, [ebp - 0x218]
push eax
mov ecx, 0x584adc
call fcn.004026bd
xor edi, edi
call fcn.00445c45
mov eax, ebx
call fcn.004bed9c
ret
Function at 0x410bc7
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x34
mov eax, 0x4d7f3d
call fcn.004bece3
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
call fcn.004a459c
lea eax, [ebp - 0x40]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x24], ebx
jbe 0x410cf1
push 0x3fc
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call fcn.004985df
pop ecx
mov dword [ebp - 0x1c], eax
call fcn.0047380a
mov byte [ebp - 0x15], al
mov dword [ebp - 0x28], ebx
movzx eax, word [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
jae 0x410cd1
lea ecx, [ebp - 0x40]
push ecx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x1c]
mov dword [ebp - 0x2c], 0xff
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jne 0x410cc9
cmp byte [ebp - 0x15], bl
je 0x410cba
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
call fcn.004024df
lea edi, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00415c5a
mov ebx, edi
call fcn.0040f5c6
mov ebx, eax
call fcn.0040f613
push 0x52756c
xor ecx, ecx
mov esi, edi
call fcn.004072a5
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
test eax, eax
jne 0x410cb3
call fcn.004027b0
xor ebx, ebx
jmp 0x410cc9
call fcn.004027b0
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x1c]
mov eax, dword [ecx + 8]
push eax
call fcn.004a49ab
inc dword [ebp - 0x28]
jmp 0x410c34
or dword [ebp - 4], 0xffffffff
jmp 0x410ce3
cmp dword [ebp - 0x1c], ebx
je 0x410cf1
push dword [ebp - 0x1c]
call fcn.004985ea
pop ecx
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp dword [ecx + 8], ebx
setne al
call fcn.004bed88
ret
Function at 0x410d02
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x4d57e8
call fcn.004bece3
mov ecx, dword [ebp + 0xc]
xor esi, esi
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], esi
call fcn.004a459c
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x18], esi
jbe 0x410dd6
mov ebx, 0x400
push 0x1000
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], esi
call fcn.004985df
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esi
movzx edi, word [ebp - 0x1c]
cmp edi, dword [ebp - 0x18]
jae 0x410db6
push 0x800
push esi
push dword [ebp - 0x14]
call fcn.004be850
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
jne 0x410db1
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x14]
mov eax, dword [ecx + 8]
push eax
call fcn.004a49ab
inc dword [ebp - 0x1c]
jmp 0x410d6c
or dword [ebp - 4], 0xffffffff
jmp 0x410dc8
cmp dword [ebp - 0x14], esi
je 0x410dd6
push dword [ebp - 0x14]
call fcn.004985ea
pop ecx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
call fcn.004bed88
ret 8
Function at 0x410de4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x2c
mov eax, 0x4d7f1a
call fcn.004bece3
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push 0xffffffffffffffff
xor eax, eax
mov dword [ebp - 0x38], ebx
lea edi, [ebp - 0x34]
push ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
stosd dword es:[edi], eax
call fcn.004a459c
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x1c], ebx
jbe 0x410f15
push 0x3fc
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0xff
mov dword [ebp - 4], ebx
call fcn.004985df
mov esi, eax
pop ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], ebx
movzx edi, word [ebp - 0x18]
cmp edi, dword [ebp - 0x1c]
jae 0x410ef5
push 0x1fe
push ebx
push esi
call fcn.004be850
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x20], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebx
jne 0x410eed
push esi
cmp word [ebp - 0x18], bx
jne 0x410ee1
lea ecx, [ebp - 0x14]
call fcn.004024df
lea ebx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040f613
call fcn.0040f5c6
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x410ece
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
push esi
push eax
call fcn.004a49ab
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004027b0
xor ebx, ebx
jmp 0x410eed
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
push eax
call fcn.004a49ab
inc dword [ebp - 0x18]
jmp 0x410e5e
or dword [ebp - 4], 0xffffffff
jmp 0x410f0a
cmp esi, ebx
je 0x410f15
push esi
call fcn.004985ea
pop ecx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
call fcn.004bed88
ret 8

Function at 0x410f7e
Capabilities:
Get file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
je 0x410f9b
not al
movzx esi, al
shr esi, 4
and esi, 1
mov ecx, dword [esp + 8]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, esi
pop esi
ret 4
Function at 0x41238b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x4d67cd
call fcn.004becb0
mov ebx, ecx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
call fcn.0047380a
test al, al
je 0x4123c5
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, esi
jmp 0x4124c1
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
mov esi, 0x104
mov ecx, ebx
mov dword [ebp - 0x10], esi
call fcn.004025dd
push dword [ebp + 0xc]
mov eax, 0x2001f
push dword [ebp + 8]
lea edi, [ebp - 0x1c]
call fcn.00416053
mov dword [ebp - 0x14], eax
cmp eax, 5
jne 0x41240e
push dword [ebp + 0xc]
mov eax, 0x20019
push dword [ebp + 8]
call fcn.00416053
mov dword [ebp - 0x14], eax
xor edi, edi
cmp dword [ebp - 0x14], edi
jne 0x41249b
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
push dword [ebp - 0x1c]
mov dword [ebp + 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41248a
cmp dword [ebp + 8], 1
je 0x412445
cmp dword [ebp + 8], 2
jne 0x41248a
cmp dword [ebp - 0x10], esi
jbe 0x41244d
mov esi, dword [ebp - 0x10]
push esi
mov ecx, ebx
call fcn.004028ad
push dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
push ecx
lea esi, [ebp - 0x10]
mov edi, eax
call fcn.00415feb
push 0xffffffffffffffff
mov ecx, ebx
mov esi, eax
call fcn.004160af
test esi, esi
jne 0x41248a
mov eax, dword [ebx]
cmp dword [eax - 0xc], esi
je 0x412491
call fcn.0040f5c6
mov ebx, eax
call fcn.0040f613
jmp 0x412491
mov ecx, ebx
call fcn.004025dd
lea ecx, [ebp - 0x1c]
call fcn.0041608f
xor edi, edi
lea ecx, [ebp - 0x1c]
call fcn.0041608f
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004027b0
xor eax, eax
cmp dword [ebp - 0x14], edi
sete al
call fcn.004bed88
ret 0xc
Function at 0x4124c9
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x4d679a
call fcn.004becb0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 2
mov esi, 0x104
mov dword [ebp - 0x14], esi
call fcn.004025dd
push dword [ebp + 0xc]
mov eax, 0x2021f
push dword [ebp + 8]
lea edi, [ebp - 0x20]
call fcn.00416053
mov dword [ebp - 0x18], eax
cmp eax, 5
jne 0x412522
push dword [ebp + 0xc]
mov eax, 0x20219
push dword [ebp + 8]
call fcn.00416053
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
jne 0x4125b8
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
push dword [ebp - 0x20]
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4125a8
cmp dword [ebp + 8], 1
je 0x412557
cmp dword [ebp + 8], 2
jne 0x4125a8
cmp dword [ebp - 0x14], esi
jbe 0x41255f
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
push esi
call fcn.004028ad
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
push ecx
lea esi, [ebp - 0x14]
mov edi, eax
call fcn.00415feb
mov esi, dword [ebp + 0x14]
push 0xffffffffffffffff
mov ecx, esi
mov edi, eax
call fcn.004160af
cmp edi, ebx
jne 0x4125a4
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x4125b0
mov ebx, esi
call fcn.0040f5c6
mov ebx, eax
call fcn.0040f613
xor ebx, ebx
jmp 0x4125b0
mov ecx, esi
jmp 0x4125ab
mov ecx, dword [ebp + 0x14]
call fcn.004025dd
lea ecx, [ebp - 0x20]
call fcn.0041608f
lea ecx, [ebp - 0x20]
call fcn.0041608f
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004027b0
xor eax, eax
cmp dword [ebp - 0x18], ebx
sete al
call fcn.004bed88
ret 0x10
Function at 0x4125e6
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x4d679a
call fcn.004becb0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 2
mov esi, 0x104
mov dword [ebp - 0x14], esi
call fcn.004025dd
push dword [ebp + 0xc]
mov eax, 0x2011f
push dword [ebp + 8]
lea edi, [ebp - 0x20]
call fcn.00416053
mov dword [ebp - 0x18], eax
cmp eax, 5
jne 0x41263f
push dword [ebp + 0xc]
mov eax, 0x20119
push dword [ebp + 8]
call fcn.00416053
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
jne 0x4126d5
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
push dword [ebp - 0x20]
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4126c5
cmp dword [ebp + 8], 1
je 0x412674
cmp dword [ebp + 8], 2
jne 0x4126c5
cmp dword [ebp - 0x14], esi
jbe 0x41267c
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
push esi
call fcn.004028ad
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
push ecx
lea esi, [ebp - 0x14]
mov edi, eax
call fcn.00415feb
mov esi, dword [ebp + 0x14]
push 0xffffffffffffffff
mov ecx, esi
mov edi, eax
call fcn.004160af
cmp edi, ebx
jne 0x4126c1
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x4126cd
mov ebx, esi
call fcn.0040f5c6
mov ebx, eax
call fcn.0040f613
xor ebx, ebx
jmp 0x4126cd
mov ecx, esi
jmp 0x4126c8
mov ecx, dword [ebp + 0x14]
call fcn.004025dd
lea ecx, [ebp - 0x20]
call fcn.0041608f
lea ecx, [ebp - 0x20]
call fcn.0041608f
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004027b0
xor eax, eax
cmp dword [ebp - 0x18], ebx
sete al
call fcn.004bed88
ret 0x10
Function at 0x412e0c
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x4deecf
call fcn.004becb0
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004024df
and dword [ebp - 4], 0
mov edi, eax
call fcn.00415c5a
push eax
lea ecx, [ebp + 8]
call fcn.0040228a
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004027b0
cmp byte [ebp + 0xc], 0
jne 0x412eec
mov edi, str._syswow64_
push edi
xor ecx, ecx
lea esi, [ebp + 8]
call fcn.004072a5
cmp eax, 0xffffffff
je 0x412ec2
mov eax, esi
push eax
lea ecx, [ebp + 0xc]
call fcn.0040228a
push str._system32_
push edi
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 3
call fcn.00415abb
mov edi, dword [ebp + 0xc]
push edi
call fcn.00414eb2
test eax, eax
jge 0x412eb7
push dword [ebp + 8]
call fcn.00414eb2
mov esi, eax
lea ecx, [edi - 0x10]
call fcn.004027b0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, esi
call fcn.004bed88
ret 8
jne 0x412e98
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x412e98
mov ebx, str._system32_
push ebx
xor ecx, ecx
lea esi, [ebp + 8]
call fcn.004072a5
cmp eax, 0xffffffff
je 0x412eec
mov eax, esi
push eax
lea ecx, [ebp + 0xc]
call fcn.0040228a
mov byte [ebp - 4], 4
jmp 0x412f57
jne 0x412e9a
jmp 0x412eb9
mov edi, str.program_files__x86__
push edi
xor ecx, ecx
lea esi, [ebp + 8]
call fcn.004072a5
cmp eax, 0xffffffff
je 0x412f33
mov eax, esi
push eax
lea ecx, [ebp + 0xc]
call fcn.0040228a
push str.program_files_
mov byte [ebp - 4], 5
push edi
lea eax, [ebp + 0xc]
push eax
call fcn.00415abb
mov edi, dword [ebp + 0xc]
push edi
call fcn.00414eb2
mov esi, eax
test esi, esi
jge 0x412ee8
jmp 0x412e90
mov ebx, str.program_files_
push ebx
xor ecx, ecx
lea esi, [ebp + 8]
call fcn.004072a5
cmp eax, 0xffffffff
je 0x412f5b
mov eax, esi
push eax
lea ecx, [ebp + 0xc]
call fcn.0040228a
mov byte [ebp - 4], 6
push edi
push ebx
jmp 0x412f16
push dword [ebp + 8]
call fcn.00414eb2
mov esi, eax
jmp 0x412ea2
Function at 0x415feb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41604f
cmp dword [ebp + 0xc], 1
je 0x416027
cmp dword [ebp + 0xc], 2
je 0x416027
push 0xd
pop eax
jmp 0x41604f
mov eax, dword [ebp - 4]
test edi, edi
je 0x416049
test eax, eax
je 0x416044
test al, 1
jne 0x416022
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x416049
jmp 0x416022
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x4246f9
Capabilities:
Query environment variable

Disassembly:
push 0x41c
mov eax, 0x4d7b4c
call fcn.004bed19
mov eax, dword [ebp + 8]
and dword [ebp - 0x424], 0
mov dword [ebp - 0x428], eax
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0xa
jl 0x4247de
lea edi, [ebp + 0xc]
call fcn.00415c5a
mov edi, str._userprofile_
push edi
xor ecx, ecx
lea esi, [ebp + 0xc]
call fcn.004072a5
cmp eax, 0xffffffff
je 0x4247de
call fcn.00499991
push eax
lea ecx, [ebp - 0x424]
call fcn.004727f7
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 0x428]
mov byte [ebp - 4], 1
push dword [eax + 0x2074]
lea ecx, [eax + 0x2044]
call fcn.004a7c0b
push 0x207
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4247c0
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x424]
call fcn.004026bd
push dword [ebp - 0x424]
mov eax, esi
push edi
push eax
call fcn.00415abb
lea eax, [ebp - 0x424]
push eax
mov ecx, ebx
call fcn.0040228a
mov ecx, dword [ebp - 0x424]
add ecx, 0xfffffff0
call fcn.004027b0
jmp 0x4247e9
lea eax, [ebp + 0xc]
push eax
mov ecx, ebx
call fcn.0040228a
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, ebx
call fcn.004bed9c
ret 8
Function at 0x42eb0f
Capabilities:
Persist via run registry key

Disassembly:
push 0xc
mov eax, 0x4d7adb
call fcn.004becb0
mov esi, ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x10]
call fcn.004024df
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0047380a
lea edi, [esi + 0x2030]
test al, al
je 0x42ebd8
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.Common_Programs
call fcn.004024df
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.0040228a
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], bl
call fcn.004125e6
cmp eax, ebx
je 0x42eb9c
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, ebx
je 0x42eb9c
lea ecx, [eax - 1]
mov eax, edi
call fcn.00402afd
cmp ax, 0x5c
je 0x42eb9c
push 0x526790
mov ecx, edi
call fcn.00415cf1
add esi, 0x2034
push esi
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.Programs
call fcn.004024df
push ecx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.0040228a
push SysReAllocString
mov byte [ebp - 4], bl
call fcn.004124c9
jmp 0x42ec6b
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.Common_Programs
call fcn.004024df
push ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.0040228a
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.0041238b
cmp eax, ebx
je 0x42ec33
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, ebx
je 0x42ec33
lea ecx, [eax - 1]
mov eax, edi
call fcn.00402afd
cmp ax, 0x5c
je 0x42ec33
push 0x526790
mov ecx, edi
call fcn.00415cf1
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.Programs
add esi, 0x2034
call fcn.004024df
push ecx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.0040228a
push SysReAllocString
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.0041238b
cmp eax, ebx
je 0x42ec94
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, ebx
je 0x42ec94
lea ecx, [eax - 1]
mov eax, esi
call fcn.00402afd
cmp ax, 0x5c
je 0x42ec94
push 0x526790
mov ecx, esi
call fcn.00415cf1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004027b0
call fcn.004bed88
ret
Function at 0x43404c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x57b750]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x58]
push eax
push 1
push 0
push dword [0x585180]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4340a9
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push dword [0x585188]
mov dword [ebp - 0x5c], 0x50
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4340a9
cmp dword [ebp - 0x54], eax
sete al
jmp 0x4340ab
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b96ff
leave
ret