joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401650
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x18
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
push edi
lea edi, [esi + 0x10]
xor ebp, ebp
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
call fcn.004011d0
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.004012e0
test al, al
jne 0x40169c
mov eax, dword [esp + 0xc]
cmp eax, ebp
je 0x401693
push eax
call fcn.004019c8
add esp, 4
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x18
ret
push ebx
lea edx, [esi + 8]
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.004015c0
mov ebx, dword [esp + 0x20]
push ebx
lea ecx, [esp + 0x14]
call fcn.00401010
lea ecx, [esp + 0x10]
cmp eax, ecx
je 0x4016d3
mov edx, dword [eax]
push edx
call fcn.004011d0
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.004011d0
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40172f
cmp ebx, ebp
je 0x401707
push ebx
call fcn.004019c8
add esp, 4
cmp esi, ebp
je 0x401714
push esi
call fcn.004019c8
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x401725
push eax
call fcn.004019c8
add esp, 4
pop ebx
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x18
ret
lea ecx, [esp + 0x18]
cmp ecx, edi
je 0x40173f
push esi
mov ecx, edi
call fcn.004011d0
cmp ebx, ebp
je 0x40174c
push ebx
call fcn.004019c8
add esp, 4
cmp esi, ebp
je 0x401759
push esi
call fcn.004019c8
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x40176a
push eax
call fcn.004019c8
add esp, 4
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x18
ret

Function at 0x401780
Capabilities:
Download url
Receive data

Disassembly:
sub esp, 8
push esi
push edi
lea eax, [esp + 8]
push eax
mov esi, ecx
call fcn.00401500
lea edi, [esi + 0x10]
cmp eax, edi
je 0x4017a2
mov ecx, dword [eax]
push ecx
mov ecx, edi
call fcn.004011d0
mov eax, dword [esp + 8]
test eax, eax
je 0x4017b3
push eax
call fcn.004019c8
add esp, 4
mov edi, dword [edi]
mov eax, dword [esi + 8]
push 0
push 0
push edi
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jl 0x4017df
mov ecx, esi
call fcn.00401650
test al, al
je 0x4017df
pop edi
mov eax, 1
pop esi
add esp, 8
ret
pop edi
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x401910
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x20], 0
jne 0x401936
lea eax, [esi + 0x18]
push eax
push 0
push esi
push 0x4017f0
push 0
push 0
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
pop esi
ret
Function at 0x401b1a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x401b47
call fcn.004029af
mov dword [eax], esi
call fcn.0040299c
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00402ae6
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x401b23
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401b76
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004029c2
pop ecx
call fcn.0040299c
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x401b9d
test al, 1
je 0x401b9d
test byte [esp + 0xc], 2
je 0x401b9d
call fcn.004029af
mov dword [eax], 5
call fcn.0040299c
mov dword [eax], 0xd
jmp 0x401b6d
xor eax, eax
pop esi
ret

Function at 0x40220f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c07c]
jne 0x402219
repz ret
jmp fcn.0040404c

Function at 0x4044b7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40c838]
je 0x4044d2
inc edi
cmp edi, 0x17
jb 0x4044c3
cmp edi, 0x17
jae 0x404652
push ebp
push 3
call fcn.00407525
cmp eax, 1
pop ecx
je 0x40461e
push 3
call fcn.00407525
test eax, eax
pop ecx
jne 0x404506
cmp dword [0x40c084], 1
je 0x40461e
cmp ebx, 0xfc
je 0x404651
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40d150
push ebp
call fcn.00405f70
add esp, 0xc
test eax, eax
je 0x40453c
push esi
push esi
push esi
push esi
push esi
call fcn.004029ea
add esp, 0x14
push 0x104
mov esi, 0x40d169
push esi
push 0
mov byte [0x40d26d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404580
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00405f70
add esp, 0xc
test eax, eax
je 0x404580
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004029ea
add esp, 0x14
push esi
call fcn.00405fe0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4045c5
push esi
call fcn.00405fe0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40d464
push 0x4098c4
sub ecx, eax
push ecx
push eax
call fcn.00406b96
add esp, 0x14
test eax, eax
je 0x4045c5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004029ea
add esp, 0x14
jmp 0x4045c7
xor esi, esi
push 0x4098c0
push ebx
push ebp
call fcn.00406adc
add esp, 0xc
test eax, eax
je 0x4045e7
push esi
push esi
push esi
push esi
push esi
call fcn.004029ea
add esp, 0x14
push dword [edi*8 + 0x40c83c]
push ebx
push ebp
call fcn.00406adc
add esp, 0xc
test eax, eax
je 0x404609
push esi
push esi
push esi
push esi
push esi
call fcn.004029ea
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00407368
add esp, 0xc
jmp 0x404651
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x404651
cmp ebp, 0xffffffff
je 0x404651
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40c83c]
push dword [esi]
call fcn.00405fe0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x407368
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00403815
xor ebx, ebx
cmp dword [0x40d850], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40743e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40751e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40751e
push eax
call fcn.004037a7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40d850], eax
call esi
push eax
call fcn.004037a7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40d854], eax
call esi
push eax
call fcn.004037a7
mov dword [0x40d858], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00404244
test eax, eax
pop ecx
pop ecx
je 0x40740c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004029ea
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40743e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004037a7
cmp eax, ebx
pop ecx
mov dword [0x40d860], eax
je 0x40743e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004037a7
pop ecx
mov dword [0x40d85c], eax
mov eax, dword [0x40d85c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4074c3
cmp dword [0x40d860], ecx
je 0x4074c3
push eax
call fcn.0040381e
push dword [0x40d860]
mov esi, eax
call fcn.0040381e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4074c3
cmp edi, ebx
je 0x4074c3
call esi
cmp eax, ebx
je 0x407490
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407490
test byte [ebp - 0x18], 1
jne 0x4074c3
lea eax, [ebp - 0x10]
push eax
call fcn.0040427b
test eax, eax
pop ecx
je 0x4074ab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004029ea
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4074ba
or dword [ebp + 0x10], 0x200000
jmp 0x4074fe
or dword [ebp + 0x10], 0x40000
jmp 0x4074fe
mov eax, dword [0x40d854]
cmp eax, dword [ebp - 8]
je 0x4074fe
push eax
call fcn.0040381e
cmp eax, ebx
pop ecx
je 0x4074fe
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4074fe
mov eax, dword [0x40d858]
cmp eax, dword [ebp - 8]
je 0x4074fe
push eax
call fcn.0040381e
cmp eax, ebx
pop ecx
je 0x4074fe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40d850]
call fcn.0040381e
cmp eax, ebx
pop ecx
je 0x40751e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407520
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100c60f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x102a0ec]
push esi
xor esi, esi
push esi
push esi
push 2
push 5
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], esi
call fcn.01018dae
test eax, eax
jne 0x100c69e
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x100c69e
lea eax, [ebp - 0x210]
push eax
push 0xd
push esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x100c678
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp dword [ebp - 0x210], esi
je 0x100c692
mov eax, dword [ebp - 0x214]
push dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0101672d
leave
ret

Function at 0x100c787
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x102a0ec]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
xor ebx, ebx
xor esi, esi
inc ebx
push ebx
push esi
push 0x10017a8
mov edi, 0x80000002
push edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], 0x14
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100c815
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
push esi
push 0x1001788
push dword [ebp - 0x30]
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100c807
cmp dword [ebp - 0x3c], ebx
jne 0x100c807
lea eax, [ebp - 0x2c]
push eax
push 0x1001780
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
sbb eax, eax
pop ecx
inc eax
pop ecx
mov dword [ebp - 0x34], eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x34], esi
jne 0x100c87e
cmp dword [ebp + 8], esi
je 0x100c87e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x10016c8
push edi
call ebx
test eax, eax
jne 0x100c85e
push 4
lea eax, [ebp - 0x38]
push eax
push 4
push esi
push 0x10016b0
push dword [ebp - 0x30]
mov dword [ebp - 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x1001630
push edi
call ebx
test eax, eax
jne 0x100c87e
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
call fcn.0101672d
leave
ret 4
Function at 0x100cb97
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100cbf6
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
cmp dword [ebp + 0x10], esi
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push esi
je 0x100cbdf
push dword [ebp + 0x10]
jmp 0x100cbe4
push 0x1001af8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 0xc

Function at 0x100cc00
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x102a0ec]
push ebx
xor ebx, ebx
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push 0x1001b20
push 0x80000001
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x228], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x100cc4f
xor eax, eax
jmp 0x100cd1e
push esi
push edi
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
mov esi, 0x1001b0c
push esi
push dword [ebp - 0x220]
mov dword [ebp - 0x22c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
mov dword [ebp - 0x224], eax
jne 0x100ccab
cmp dword [ebp - 0x228], 1
jne 0x100ccab
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0x14
pop ecx
jae 0x100cd05
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x100cd05
push 0x103
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x100cd05
lea eax, [ebp - 0x20c]
push eax
call edi
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x224], eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x224], ebx
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0101672d
leave
ret
Function at 0x100cd2e
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x102a0ec]
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push 5
mov dword [ebp - 4], eax
mov dword [ebp - 0x44], edi
call fcn.01018dae
test eax, eax
mov esi, 0x80000002
jne 0x100ce02
push 0x5a
push 4
mov dword [ebp - 0x48], edi
call fcn.01017179
test eax, eax
jne 0x100ce11
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x44]
push eax
push 1
push edi
push 0x1001c94
push esi
call ebx
test eax, eax
jne 0x100cde4
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x4c]
push eax
push edi
push 0x1001c74
push dword [ebp - 0x44]
mov dword [ebp - 0x50], 0x1e
mov dword [ebp - 0x4c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100cdd6
cmp dword [ebp - 0x4c], 1
jne 0x100cdd6
lea eax, [ebp - 0x40]
push 0x1001780
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
sbb eax, eax
pop ecx
inc eax
pop ecx
mov dword [ebp - 0x48], eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x48], edi
jne 0x100ce1d
lea eax, [ebp - 0x44]
push eax
push 1
push edi
push 0x1001c00
push esi
call ebx
test eax, eax
jne 0x100ce4a
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100ce1d
push edi
push edi
push 1
push 5
call fcn.01018dae
test eax, eax
je 0x100ce1d
push 0x1001c00
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, 0x1001b80
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edi
lea eax, [ebp - 0x44]
push eax
push edi
push 3
push edi
push edi
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100ce4a
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101672d
leave
ret
Function at 0x100ce5c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x102a0ec]
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x210]
push edx
push 0x2001f
xor esi, esi
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100cf3c
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push edi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x208
mov dword [ebp - 0x214], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100cf30
cmp dword [ebp - 0x214], 1
jne 0x100cf30
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
pop ecx
je 0x100cf30
push 0x103
lea eax, [ebp - 0x20c]
push eax
push eax
call fcn.01018224
lea eax, [ebp - 0x20c]
push eax
call esi
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0101672d
leave
ret 0xc

Function at 0x100cf4f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x102a0ec]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push 0x2001f
xor esi, esi
push esi
push 0x1001d28
push 0x80000001
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100d06d
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], 0x104
push esi
jmp 0x100d050
inc dword [ebp - 0x21c]
lea eax, [ebp - 0x214]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100d038
push 0x1001d0c
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x1001cf0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x1001cd4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
push dword [ebp - 0x210]
call edi
test eax, eax
je 0x100cfc5
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.0101672d
leave
ret
Function at 0x100d07d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x102a0ec]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
push 1
xor esi, esi
push esi
push 0x1001c94
push 0x80000002
mov dword [ebp - 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100d106
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
push 0x1001db0
push dword [ebp - 0x30]
mov dword [ebp - 0x38], 0x14
mov dword [ebp - 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100d0f9
cmp dword [ebp - 0x34], 1
jne 0x100d0f9
lea eax, [ebp - 0x2c]
push 0x1001780
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
mov esi, eax
neg esi
pop ecx
sbb esi, esi
pop ecx
inc esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100d108
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.0101672d
leave
ret
Function at 0x100d436
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
inc esi
push esi
push 0
push 0x1001f70
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100d4a5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x1001f54
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100d49c
cmp dword [ebp - 8], 4
jne 0x100d49c
cmp dword [ebp - 0xc], esi
sete al
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x100d538
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x102a0ec]
push ebx
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push 0x2001f
xor esi, esi
push esi
push 0x10022a0
push 0x80000002
mov dword [ebp - 0x210], esi
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100d5e3
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push 0x1002288
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x208
mov dword [ebp - 0x214], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100d5d3
cmp dword [ebp - 0x214], 1
jne 0x100d5d3
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
jne 0x100d5f9
push 0x1002268
push 0x103
lea eax, [ebp - 0x20c]
push eax
call fcn.0100c535
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1002260
call fcn.0100cb97
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1002254
call fcn.0100cb97
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1002248
call fcn.0100cb97
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x100223c
call fcn.0100cb97
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1002204
call fcn.0100cb97
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x10021cc
call fcn.0100cb97
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1002194
call fcn.0100cb97
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1002160
call fcn.0100cb97
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1002128
call fcn.0100cb97
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x10020f0
call fcn.0100cb97
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x10020b8
call fcn.0100cb97
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1002080
call fcn.0100cb97
push 0x100207c
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x1002054
push esi
call fcn.0100cb97
push 0x1002048
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0100cb97
push 0x100203c
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0100cb97
push 0x1002030
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0100cb97
push 0x1002024
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0100cb97
push 0x1002018
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0100cb97
push 0x1002010
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0100cb97
push 0x1002004
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0100cb97
push 0x1001ff8
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0100cb97
push 0x1001fec
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0100cb97
push 0x1001fe0
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0100cb97
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0101672d
leave
ret