joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b008]
jne 0x40100a
repz ret
jmp fcn.00401a2c

Function at 0x40569b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403053
and dword [ebp - 4], 0
cmp dword [0x41ce74], 0
mov ebx, eax
jne 0x40574c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4057fd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4057fd
push eax
call fcn.00402fe1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41ce74], eax
call esi
push eax
call fcn.00402fe1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41ce78], eax
call esi
push eax
call fcn.00402fe1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41ce7c], eax
call esi
push eax
call fcn.00402fe1
pop ecx
mov dword [0x41ce84], eax
test eax, eax
je 0x40574c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402fe1
pop ecx
mov dword [0x41ce80], eax
mov eax, dword [0x41ce80]
cmp eax, ebx
je 0x4057a4
cmp dword [0x41ce84], ebx
je 0x4057a4
push eax
call fcn.0040305c
push dword [0x41ce84]
mov esi, eax
call fcn.0040305c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4057a4
test edi, edi
je 0x4057a4
call esi
test eax, eax
je 0x40579b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40579b
test byte [ebp - 0xc], 1
jne 0x4057a4
or dword [ebp + 0x10], 0x200000
jmp 0x4057dd
mov eax, dword [0x41ce78]
cmp eax, ebx
je 0x4057dd
push eax
call fcn.0040305c
pop ecx
test eax, eax
je 0x4057dd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4057dd
mov eax, dword [0x41ce7c]
cmp eax, ebx
je 0x4057dd
push eax
call fcn.0040305c
pop ecx
test eax, eax
je 0x4057dd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41ce74]
call fcn.0040305c
pop ecx
test eax, eax
je 0x4057fd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4057ff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x417580
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x41b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x2b1af6c]
push ebx
push esi
mov esi, dword [0x2b1adb4]
mov ebx, eax
cmp eax, 0x5dd
jne 0x4175ba
push 0
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, dword [0x41bef0]
call fcn.00417420
cmp dword [0x2b1af6c], 0x2f
jne 0x4175d5
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
call fcn.00417460
add esp, 4
cmp dword [0x2b1af6c], 0x568
pop esi
pop ebx
jne 0x417603
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov ecx, dword [ebp - 0x408]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x406773
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406797
xor eax, eax
test eax, eax
je 0x4067aa
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4067aa
xor ecx, ecx
jmp 0x4067ad
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4068d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a65ec], 0
push esi
jne 0x406907
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4068e1
mov dword [ecx*4 + 0x7a65e8], eax
inc ecx
cmp ecx, 0x100
jl 0x4068dc
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406938
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a65e8]
xor eax, esi
inc ecx
dec edx
jne 0x40691a
pop edi
not eax
pop esi
ret 0xc

Function at 0x438c9d
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop ecx
add edx, 1
call fcn.00438cd9
add edx, 0xb2744585
mov edx, edx
mov eax, eax
xor dword [ebx], ecx
sub eax, eax
inc ebx
inc edx
mov edx, 0xf91d0d0a
cmp ebx, esi
jne fcn.00438c9d
dec edx
mov edx, eax
ret

Function at 0x43b661
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
sub edi, 0xf0ec1bc8
call fcn.0043b68f
dec edi
xor dword [eax], ebx
inc edi
add eax, 1
dec esi
cmp eax, ecx
jne fcn.0043b661
add edi, esi
mov edi, 0xd0bd8854
ret
Function at 0x10001469
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
not dword [ecx]
xor edx, edx
cmp dword [esp + 8], edx
jbe 0x100014a2
push esi
push edi
mov eax, dword [ecx]
mov esi, dword [esp + 0xc]
movzx esi, byte [edx + esi]
mov edi, eax
and edi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + section..data]
inc edx
cmp edx, dword [esp + 0x10]
mov dword [ecx], eax
jb 0x10001479
pop edi
pop esi
not dword [ecx]
ret
Function at 0x10002935
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
and dword [ebp - 4], 0
push 0x3c
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.100063b0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x34], str.open
mov dword [ebp - 0x3c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000299c
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x100029a1
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x9c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0x104
xor edi, edi
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
push 0x104
push edi
mov dword [ebp + 0x60], eax
call esi
push eax
call ebx
push 4
push edi
mov dword [ebp + 0x5c], eax
call esi
push eax
call ebx
push dword [ebp + 0x60]
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x70]
mov dword [0x100286ac], eax
mov eax, dword [ebp + 0x78]
mov dword [0x100286a8], eax
mov eax, dword [ebp + 0x74]
mov dword [0x100286b0], eax
call fcn.10001954
push dword [ebp + 0x5c]
call fcn.10001954
push dword [ebp + 0x58]
call fcn.10001954
push dword [ebp + 0x58]
call fcn.100018a3
test al, 1
pop ecx
je 0x10002a7b
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x10002a7b
push 0x3c
pop ebx
push ebx
lea eax, [ebp + 0xc]
push edi
push eax
call fcn.100063b0
mov eax, dword [ebp + 0x60]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 0x20], eax
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x28], 5
mov dword [ebp + 0x18], str.open
mov dword [ebp + 0x10], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [ebp + 0x44]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp + 0x70], eax
jmp 0x10002aeb
push 0x208
push edi
call esi
push eax
call ebx
push dword [ebp + 0x5c]
mov ebx, eax
push dword [ebp + 0x60]
push str._s__s
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push ebx
push edi
mov dword [ebp - 0x38], edi
mov word [ebp - 6], di
mov dword [ebp - 0x34], edi
mov dword [ebp + 8], edi
mov dword [ebp], edi
mov dword [ebp + 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [ebp + 0x48]
push dword [ebp + 0x4c]
mov dword [ebp + 0x70], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebx
push 0xffffffffffffffff
push dword [ebp + 0x70]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x58]
push edi
call esi
push eax
call ebx
push dword [ebp + 0x60]
push edi
call esi
push eax
call ebx
push dword [ebp + 0x5c]
push edi
call esi
push eax
call ebx
pop edi
pop esi
pop ebx
add ebp, 0x64
leave
ret

Function at 0x10002b22
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [0x100286d4], 0
mov eax, dword [esp + 8]
mov dword [0x100286ac], eax
mov eax, dword [esp + 0x10]
mov dword [0x100286a8], eax
mov eax, dword [esp + 0xc]
mov dword [0x100286b0], eax
jne 0x10002b61
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x10001a9f
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x100286d4], eax
ret
Function at 0x100030dc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x10027410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [0x100286ac], eax
mov eax, dword [ebp + 0x14]
mov dword [0x100286a8], eax
mov eax, dword [ebp + 0x10]
mov dword [0x100286b0], eax
lea eax, [ebp - 0x404]
push eax
call fcn.10001954
lea eax, [ebp - 0x404]
push eax
mov byte [ebp - 0x403], 0x3a
mov byte [ebp - 0x402], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x1000313a
push 0x100224e8
jmp 0x1000313f
push 0x100224e4
call fcn.1000198e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100061c6
leave
ret

Function at 0x100032c3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push 0x3c
xor edi, edi
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.100063b0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x38], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x10003313
mov edi, dword [ebp - 4]
mov eax, edi
pop edi
leave
ret
Function at 0x10003cf9
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x1f4
mov eax, dword [0x10027410]
xor eax, ebp
mov dword [ebp + 0x60], eax
push esi
push 0x98
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.100063b0
mov eax, dword [ebp + 0x70]
mov dword [0x100286ac], eax
mov eax, dword [ebp + 0x78]
mov dword [0x100286a8], eax
mov eax, dword [ebp + 0x74]
mov esi, 0x9c
add esp, 0xc
mov dword [0x100286b0], eax
mov dword [ebp - 0x50], esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x10003d62
lea eax, [ebp + 0x4c]
push str.010000000000000000
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
jmp 0x10003eb4
push edi
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x10003d8b
lea ecx, [ebp - 0x190]
push ecx
call eax
jmp 0x10003d98
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x10003db8
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x94
call esi
cmp dword [ebp - 0x4c], 6
jb 0x10003e81
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.10003c4c
test eax, eax
pop ecx
pop ecx
je 0x10003df7
mov eax, dword [ebp - 0x168]
cmp dword [ebp - 0x4c], eax
je 0x10003de9
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x16c]
cmp dword [ebp - 0x48], eax
je 0x10003df7
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x4c], 6
jb 0x10003e81
cmp dword [ebp - 0x48], 2
jb 0x10003e81
and dword [ebp - 0x164], 0
push 0x110
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.100063b0
add esp, 0xc
push str.NtDll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10003e81
push str.RtlGetVersion
push esi
call edi
test eax, eax
je 0x10003e7a
lea ecx, [ebp - 0x164]
push ecx
mov dword [ebp - 0x164], 0x114
call eax
mov eax, dword [ebp - 0x160]
cmp dword [ebp - 0x4c], eax
jae 0x10003e6a
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x15c]
jmp 0x10003e77
jne 0x10003e7a
mov eax, dword [ebp - 0x15c]
cmp dword [ebp - 0x48], eax
jae 0x10003e7a
mov dword [ebp - 0x48], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, word [ebp + 0x48]
push eax
push dword [ebp - 0x44]
movzx eax, word [ebp - 0x190]
push eax
movzx eax, byte [ebp + 0x4a]
push eax
movzx eax, word [ebp + 0x44]
push eax
push dword [ebp - 0x48]
lea eax, [ebp + 0x4c]
push dword [ebp - 0x4c]
push str._02x_02x_02x_02x_02x_04x_04x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
pop edi
lea eax, [ebp + 0x4c]
push eax
call fcn.1000198e
mov ecx, dword [ebp + 0x60]
xor ecx, ebp
pop esi
call fcn.100061c6
add ebp, 0x64
leave
ret
Function at 0x10003ecd
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x10027410]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov ecx, dword [ebp + 0xa4]
xor eax, eax
cmp ecx, eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
je 0x10003fc8
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea ecx, [ebp - 0x74]
push ecx
push 0x20019
push eax
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push ebx
mov edi, SysReAllocStringLen
push edi
call esi
cmp eax, 2
jne 0x10003f36
lea eax, [ebp - 0x74]
push eax
push 0x20219
push 0
push ebx
push edi
call esi
xor esi, esi
cmp eax, esi
jne 0x10003f95
push 0x103
lea eax, [ebp - 0x6b]
push esi
push eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], 0x104
mov byte [ebp - 0x6c], 0
call fcn.100063b0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
push esi
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10003f8c
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x70]
call fcn.10007010
pop ecx
pop ecx
mov dword [ebp - 0x78], 1
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x70]
call fcn.10006cd0
test eax, eax
pop ecx
ja 0x10003fc2
push esi
push 0x26
push dword [ebp - 0x70]
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x10003fc2
push str.Internet_Exploreriexplore.exe
push dword [ebp - 0x70]
call fcn.10007020
pop ecx
pop ecx
mov eax, dword [ebp - 0x78]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x98]
xor ecx, ebp
call fcn.100061c6
add ebp, 0x9c
leave
ret
Function at 0x10003fdd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x10027410]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov ecx, dword [ebp + 0xa4]
xor eax, eax
cmp ecx, eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x7c], eax
je 0x100040ed
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea ecx, [ebp - 0x70]
push ecx
push 0x20019
push eax
mov ebx, str.SoftwareMicrosoftInternet_Explorer
push ebx
mov edi, SysReAllocStringLen
push edi
call esi
cmp eax, 2
jne 0x10004046
lea eax, [ebp - 0x70]
push eax
push 0x20219
push 0
push ebx
push edi
call esi
xor edi, edi
cmp eax, edi
jne 0x100040e7
push 0x103
lea eax, [ebp - 0x6b]
push edi
push eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x78], 0x104
mov byte [ebp - 0x6c], 0
call fcn.100063b0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push str.svcVersion
push dword [ebp - 0x70]
call esi
test eax, eax
jne 0x1000409f
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
call fcn.10007010
pop ecx
pop ecx
push dword [ebp - 0x74]
call fcn.10006cd0
test eax, eax
pop ecx
jbe 0x100040b5
mov dword [ebp - 0x7c], 1
jmp 0x100040de
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push str.Version
push dword [ebp - 0x70]
call esi
test eax, eax
jne 0x100040de
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
call fcn.10007010
pop ecx
pop ecx
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x98]
xor ecx, ebp
call fcn.100061c6
add ebp, 0x9c
leave
ret
Function at 0x10004458
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2b8]
sub esp, 0x338
mov eax, dword [0x10027410]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
mov eax, dword [ebp + 0x2c4]
mov dword [0x100286ac], eax
mov eax, dword [ebp + 0x2cc]
mov dword [0x100286a8], eax
mov eax, dword [ebp + 0x2c8]
mov dword [0x100286b0], eax
push ebx
lea eax, [ebp + 0x2a8]
push eax
call fcn.10001954
lea eax, [ebp - 0x64]
push eax
call fcn.10001954
lea eax, [ebp + 0x1a4]
push eax
call fcn.10001954
lea eax, [ebp + 0xa0]
push eax
call fcn.10001954
push str.hklm
lea eax, [ebp + 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
lea ecx, [ebp - 0x70]
push ecx
sbb eax, eax
push 0xb
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x64]
add eax, 0x80000002
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004628
lea eax, [ebp - 0x68]
push eax
push ebx
lea eax, [ebp - 0x80]
push eax
push ebx
lea eax, [ebp + 0x1a4]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x68], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x68], ebx
je 0x1000461f
cmp dword [ebp - 0x80], 7
jne 0x1000461f
inc dword [ebp - 0x68]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push dword [ebp - 0x68]
mov dword [ebp - 0x7c], ebx
push ebx
mov dword [ebp - 0x6c], ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
push dword [ebp - 0x68]
mov dword [ebp - 0x78], eax
push 8
call esi
push eax
call edi
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x78]
lea eax, [ebp + 0x1a4]
push ebx
push ebx
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x68], ebx
jbe 0x100045e1
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
lea edi, [ecx + eax]
lea eax, [ebp + 0xa0]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x100045a0
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x74]
inc dword [ebp - 0x6c]
mov byte [eax + ecx], bl
jmp 0x100045cb
push edi
call fcn.10006cd0
mov ecx, dword [ebp - 0x6c]
inc eax
push eax
mov eax, dword [ebp - 0x74]
add eax, ecx
push edi
push eax
call fcn.100067d0
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x6c]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x6c], eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x7c]
lea eax, [ecx + eax + 1]
cmp eax, dword [ebp - 0x68]
mov dword [ebp - 0x7c], eax
jb 0x10004577
push dword [ebp - 0x6c]
lea eax, [ebp + 0x1a4]
push dword [ebp - 0x74]
push 7
push ebx
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x78]
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
push dword [ebp - 0x74]
push ebx
call esi
push eax
call edi
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
jmp 0x10004628
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x2b4]
xor ecx, ebp
pop ebx
call fcn.100061c6
add ebp, 0x2b8
leave
ret
Function at 0x1000463e
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa8]
sub esp, 0x128
mov eax, dword [0x10027410]
xor eax, ebp
mov dword [ebp + 0xa4], eax
mov eax, dword [ebp + 0xb4]
mov dword [0x100286ac], eax
mov eax, dword [ebp + 0xbc]
mov dword [0x100286a8], eax
mov eax, dword [ebp + 0xb8]
mov dword [0x100286b0], eax
push edi
lea eax, [ebp - 0x60]
push eax
call fcn.10001954
lea eax, [ebp - 0x6c]
push eax
push 0xb
xor edi, edi
push edi
push str.SYSTEMCurrentControlSetControlSession_Manager
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100047f6
lea eax, [ebp - 0x64]
push eax
push edi
lea eax, [ebp - 0x80]
push eax
push edi
push str.PendingFileRenameOperations
push dword [ebp - 0x6c]
mov dword [ebp - 0x64], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x64], edi
je 0x100047ed
cmp dword [ebp - 0x80], 7
jne 0x100047ed
inc dword [ebp - 0x64]
push ebx
push esi
push dword [ebp - 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov dword [ebp - 0x74], edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
push dword [ebp - 0x64]
mov dword [ebp - 0x70], eax
push 8
call esi
push eax
call ebx
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x70]
xor ebx, ebx
push ebx
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x64], ebx
jbe 0x100047b3
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x70]
add eax, ecx
lea ecx, [ebp - 0x60]
push ecx
push eax
mov dword [ebp - 0x68], eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x10004775
mov eax, dword [ebp - 0x68]
cmp byte [eax], 0x21
jne 0x10004775
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x70]
lea eax, [eax + ecx + 1]
push eax
mov dword [ebp - 0x7c], eax
call fcn.10006cd0
inc eax
push eax
mov eax, dword [ebp - 0x78]
push dword [ebp - 0x7c]
add eax, edi
push eax
call fcn.100067d0
add esp, 0x10
push dword [ebp - 0x7c]
jmp 0x10004793
push dword [ebp - 0x68]
call fcn.10006cd0
inc eax
push eax
mov eax, dword [ebp - 0x78]
push dword [ebp - 0x68]
add eax, edi
push eax
call fcn.100067d0
add esp, 0x10
push dword [ebp - 0x68]
call ebx
push dword [ebp - 0x68]
lea edi, [edi + eax + 1]
call ebx
mov ecx, dword [ebp - 0x74]
lea eax, [ecx + eax + 1]
cmp eax, dword [ebp - 0x64]
mov dword [ebp - 0x74], eax
jb 0x10004728
xor ebx, ebx
push edi
push dword [ebp - 0x78]
push 7
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x70]
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
push dword [ebp - 0x78]
push ebx
call esi
push eax
call edi
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
jmp 0x100047f6
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xa4]
xor ecx, ebp
pop edi
call fcn.100061c6
add ebp, 0xa8
leave
ret