joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010dab
Capabilities:
Create directory

Disassembly:
push 0x20
mov eax, 0x1009b021
call fcn.1007684e
xor esi, esi
inc esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x10010dc9
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1001ce33
pop ecx
pop ecx
mov byte [ebp - 4], 2
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x10010de5
lea eax, [ebp + 0x24]
xor ebx, ebx
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x385
call fcn.1001d6bd
cmp dword [ebp + 0x38], 8
pop ecx
mov ecx, dword [ebp + 0x24]
jae 0x10010e07
lea ecx, [ebp + 0x24]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x10010e13
lea eax, [ebp - 0x2c]
push eax
call fcn.10023153
pop ecx
test eax, eax
je 0x10010e59
mov dword [0x100d9614], esi
xor edi, edi
push 0x386
call fcn.1001d6bd
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10013fa5
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.1000f89d
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.1000f89d
mov eax, edi
call fcn.100768d1
ret 0x38
call fcn.1000d717
mov edi, esi
jmp 0x10010e26

Function at 0x10010e62
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100cc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
call fcn.1001bc96
xor ecx, ecx
test eax, eax
sete cl
mov dword [edi + 0x164], eax
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov dword [edi + 0x168], ecx
call fcn.1005d3f0
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
add esp, 0xc
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x210]
push eax
push str._APPDATA_
call esi
lea eax, [ebp - 0x210]
push eax
call fcn.1005d0d1
pop ecx
push eax
lea eax, [ebp - 0x210]
push eax
lea ecx, [edi + 0x1c]
call fcn.1000f93d
push 0x259
call fcn.1001d6bd
xor eax, eax
mov dword [esp], 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.1005d3f0
add esp, 0xc
push ebx
lea eax, [ebp - 0x210]
push eax
push str._ALLUSERSPROFILE_
call esi
lea eax, [ebp - 0x210]
push eax
call fcn.1005d0d1
pop ecx
push eax
lea eax, [ebp - 0x210]
push eax
lea ecx, [edi + 0x38]
call fcn.1000f93d
push 0x25a
call fcn.1001d6bd
call fcn.10004ddd
lea esi, [edi + 0x150]
lea ebx, [edi + 0x54]
call fcn.1001c8a1
mov dword [esp], 0x25b
call fcn.1001d6bd
pop ecx
mov ecx, edi
call fcn.1001194b
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov dword [edi + 0x160], eax
pop ebx
call fcn.1005c747
leave
ret
Function at 0x1001284e
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
sub esp, 0x1c
xor ebx, ebx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.Baidu.exe
mov byte [ebp - 1], 1
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
lea esi, [ebp - 8]
call fcn.1000f6ca
mov ecx, esi
call fcn.1001bd90
add esp, 0x20
cmp dword [ebp - 8], ebx
je 0x1001288d
mov byte [ebp - 1], bl
lea eax, [ebp - 0xc]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.BaiduBugRpt.exe
lea esi, [ebp - 8]
call fcn.1000f6ca
mov ecx, esi
call fcn.1001bd90
add esp, 0x20
cmp dword [ebp - 8], ebx
je 0x100128b8
mov byte [ebp - 1], bl
lea eax, [ebp - 0xc]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.BaiduClientRender.exe
lea esi, [ebp - 8]
call fcn.1000f6ca
mov ecx, esi
call fcn.1001bd90
add esp, 0x20
cmp dword [ebp - 8], ebx
je 0x100128e3
mov byte [ebp - 1], bl
mov esi, str.2.1.0.0
push esi
call fcn.1005d0d1
pop ecx
push eax
push esi
push dword [0x100d166c]
mov ecx, 0x100d165c
push ebx
call fcn.1000fe1a
test eax, eax
jle 0x1001292e
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
push ebx
push str.ReBarWindow32
push ebx
push eax
call dword [sym.imp.USER32.dll_FindWindowExW]
push ebx
push ebx
push 0x511
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret

Function at 0x100133af
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x38], 8
mov ecx, dword [ebp + 0x24]
jae 0x100133be
lea ecx, [ebp + 0x24]
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x100133ca
lea eax, [ebp + 8]
push 1
push 0
push ecx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 1
lea ecx, [ebp + 8]
call fcn.1000f89d
push 0
push 1
lea ecx, [ebp + 0x24]
call fcn.1000f89d
pop ebp
ret 0x38
Function at 0x1001594c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [0x100cc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov byte [ebp - 0xe9], 1
cmp dword [esi + 0x18], ebx
jne 0x10015a28
push 0xa
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [esi + 4]
inc eax
push eax
call fcn.1005ebbf
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0xcc]
push eax
push dword [esi]
mov dword [ebp - 0xf0], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x10015a1a
push edi
push str.Baidu_Desk_Client_SearchBar_Widget_Docked
lea ecx, [ebp - 0xe8]
call fcn.1000f6ca
cmp dword [ebp - 0xd4], 8
mov edi, dword [ebp - 0xe8]
mov eax, edi
jae 0x100159d2
lea eax, [ebp - 0xe8]
mov edi, eax
push eax
call fcn.1005d0d1
pop ecx
add eax, eax
push eax
push edi
push 1
push ebx
push str.ButtonClassName
push dword [ebp - 0xf0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
test eax, eax
jne 0x10015a04
push dword [ebp - 0xf0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10015a0a
mov byte [ebp - 0xe9], bl
push ebx
push 1
lea ecx, [ebp - 0xe8]
call fcn.1000f89d
jmp 0x10015a20
mov byte [ebp - 0xe9], bl
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xe9]
xor ecx, ebp
pop ebx
call fcn.1005c747
leave
ret
Function at 0x1001bb89
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001bbe0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1001bbd2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x1001bbce
cmp edi, eax
jae 0x1001bbd2
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x1001bbc0
cmp edi, eax
jb 0x1001bbd6
xor eax, eax
jmp 0x1001bbdf
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x1001bcf8
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100cc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1001bd23
xor eax, eax
jmp 0x1001bd84
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1001bd43
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001bd1f
mov eax, dword [ebp - 0x20]
push esi
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push 0
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
xor esi, esi
inc esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1001bd78
xor esi, esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c747
leave
ret
Function at 0x1001bd90
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x100cc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x24]
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x234], eax
call fcn.1001bcf8
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x298]
push edi
push eax
call fcn.1005d3f0
push 0x10
lea eax, [ebp - 0x254]
push edi
push eax
call fcn.1005d3f0
mov dword [ebp - 0x298], esi
mov esi, 0x22c
push esi
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.1005d3f0
add esp, 0x24
push edi
push 2
mov dword [ebp - 0x230], esi
pop esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x238], eax
cmp eax, 0xffffffff
jne 0x1001be2e
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x234]
push edi
mov dword [ecx], eax
push 1
jmp 0x1001bef8
lea ecx, [ebp - 0x230]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1001be48
mov dword [ebx], 3
jmp 0x1001be18
mov dword [ebp - 0x23c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x240], eax
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x1001be6c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001beb3
mov eax, dword [ebp - 0x228]
cmp dword [ebp - 0x240], eax
je 0x1001beb3
push eax
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call esi
mov ebx, dword [ebp - 0x244]
mov dword [ebp - 0x23c], 1
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1001be60
push dword [ebp - 0x238]
call esi
cmp dword [ebp - 0x23c], edi
je 0x1001bee9
mov ecx, dword [ebp - 0x234]
xor eax, eax
inc eax
mov dword [ebx], eax
mov dword [ecx], eax
jmp 0x1001bef6
mov eax, dword [ebp - 0x234]
mov dword [ebx], edi
mov dword [eax], edi
xor eax, eax
inc eax
push edi
push eax
lea ecx, [ebp + 8]
call fcn.1000f89d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005c747
leave
ret

Function at 0x1001bf0f
Capabilities:
Get file attributes
Set file attributes

Disassembly:
test esi, esi
je 0x1001bf3a
push esi
call fcn.1005d0d1
pop ecx
test eax, eax
je 0x1001bf3a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
and ecx, 1
cmp cl, 1
jne 0x1001bf3a
xor eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret
Function at 0x1001bf3b
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
lea eax, [ebp - 4]
xor esi, esi
push eax
inc esi
call fcn.1001dcee
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
je 0x1001bf7e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001bf7e
mov esi, edi
call fcn.1001bf0f
xor esi, esi
call fcn.1001bf0f
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.1001bc7e
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x1001c37b
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push 0x2b8
mov eax, 0x10099ccf
call fcn.1007684e
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x2c0]
xor ebx, ebx
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 0x2c0], 0x5c
call fcn.100140ae
cmp eax, dword [ebp + 0x18]
je 0x1001c3c7
mov esi, 0x100afb00
push esi
call fcn.1005d0d1
pop ecx
push eax
push esi
lea ecx, [ebp + 8]
call fcn.100104a9
lea eax, [ebp - 0x4c]
push 0x100b11dc
push eax
lea edi, [ebp + 8]
call fcn.10014290
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
push 0x24c
lea eax, [ebp - 0x2b8]
push ebx
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x2bc], ebx
call fcn.1005d3f0
mov eax, dword [ebp - 0x4c]
add esp, 0x14
cmp dword [ebp - 0x38], 8
jae 0x1001c413
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x2bc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c0], eax
cmp eax, 0xffffffff
je 0x1001c57e
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x290]
push eax
push 0x100b11e0
call fcn.1005d46a
pop ecx
pop ecx
test eax, eax
je 0x1001c51e
lea eax, [ebp - 0x290]
push eax
push 0x100b11e4
call fcn.1005d46a
pop ecx
pop ecx
test eax, eax
je 0x1001c51e
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x68]
push eax
lea edi, [ebp + 8]
call fcn.10014290
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.1000fd37
push ebx
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.1000f89d
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x1001c4a9
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1001c4e1
sub esp, 0x1c
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0x2c4], esp
push eax
call fcn.1000f6a2
call fcn.1001c37b
mov eax, dword [ebp - 0x30]
add esp, 0x1c
cmp dword [ebp - 0x1c], 8
jae 0x1001c4dc
lea eax, [ebp - 0x30]
push eax
call esi
jmp 0x1001c51e
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x1001c4ed
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1001c51e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x1001c51e
sub esp, 0x1c
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0x2c4], esp
push eax
call fcn.1000f6a2
call fcn.1001bf8f
add esp, 0x1c
lea eax, [ebp - 0x2bc]
push eax
push dword [ebp - 0x2c0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001c436
mov eax, dword [ebp + 0x18]
dec eax
push eax
push ebx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp + 8]
call fcn.10013ee3
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.1000fd37
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.1000f89d
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x1001c56f
lea eax, [ebp + 8]
push eax
call esi
push dword [ebp - 0x2c0]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.1000f89d
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.1000f89d
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.1000f89d
call fcn.100768d1
ret
Function at 0x1001c8a1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x100cc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.1005d3f0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jne 0x1001c96a
cmp dword [ebp - 0x118], 0
jne 0x1001c914
mov edi, str.win2000
push edi
call fcn.1005d0d1
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.1000f93d
mov dword [esi], 0x32
jmp 0x1001ca47
cmp dword [ebp - 0x118], 1
jne 0x1001c93d
mov edi, str.winxp
push edi
call fcn.1005d0d1
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.1000f93d
mov dword [esi], 0x33
jmp 0x1001ca47
cmp dword [ebp - 0x118], 2
jne 0x1001ca2c
mov edi, str.winxpprof
push edi
call fcn.1005d0d1
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.1000f93d
mov dword [esi], 0x34
jmp 0x1001ca47
cmp dword [ebp - 0x11c], 6
jne 0x1001ca2c
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x1001c9a1
mov edi, str.vista
push edi
call fcn.1005d0d1
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.1000f93d
mov dword [esi], 0x3c
jmp 0x1001ca47
cmp eax, 1
jne 0x1001c9c6
mov edi, str.win7
push edi
call fcn.1005d0d1
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.1000f93d
mov dword [esi], 0x3d
jmp 0x1001ca47
cmp eax, 2
jne 0x1001c9e8
mov edi, str.win8
push edi
call fcn.1005d0d1
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.1000f93d
mov dword [esi], 0x3e
jmp 0x1001ca47
cmp eax, 3
jne 0x1001ca0a
mov edi, str.win8.1
push edi
call fcn.1005d0d1
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.1000f93d
mov dword [esi], 0x3f
jmp 0x1001ca47
cmp eax, 4
jne 0x1001ca2c
mov edi, str.win8.2
push edi
call fcn.1005d0d1
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.1000f93d
mov dword [esi], 0x40
jmp 0x1001ca47
mov edi, str.unknowntype
push edi
call fcn.1005d0d1
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.1000f93d
mov dword [esi], 0x64
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1005c747
leave
ret
Function at 0x1001ca54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100cc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push esi
mov dword [ebp - 0x218], ecx
mov ecx, dword [ebp + 0xc]
mov esi, edx
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x21c], 0x104
jb 0x1001ca92
mov eax, dword [eax]
lea edx, [ebp - 0x210]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001cb39
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.1005d3f0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x1001cad4
mov esi, dword [esi]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001cb2d
lea eax, [ebp - 0x20c]
push eax
call fcn.1005d0d1
pop ecx
mov ecx, dword [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.1000f93d
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x1001cb3b
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1005c747
leave
ret
Function at 0x1001cb48
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x100cc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x21c], eax
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
mov edi, ecx
mov esi, edx
call fcn.1005d3f0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x1001cbae
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1005d4a8
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x1001cbcb
mov edi, dword [edi]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push 2
pop esi
push esi
push ebx
push ebx
push ebx
push edi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1001cc5d
mov eax, dword [ebp - 0x220]
cmp dword [eax + 0x14], 8
jb 0x1001cc02
mov edi, dword [eax]
jmp 0x1001cc04
mov edi, eax
lea eax, [ebp - 0x20c]
push eax
call fcn.1005d0d1
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
inc esi
push esi
push ebx
push edi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1001cc43
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1001cc75
mov eax, dword [ebp - 0x210]
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x214]
mov dword [ecx], eax
xor esi, esi
jmp 0x1001cc33
mov eax, dword [ebp - 0x210]
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x214]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005c747
leave
ret
Function at 0x1001cc84
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100cc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x210], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov edi, ecx
mov ebx, edx
call fcn.1005d3f0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x1001ccd9
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1005d4a8
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x1001ccf6
mov edi, dword [edi]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
xor esi, esi
push esi
push 2
push esi
push esi
push esi
push edi
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1001cd80
cmp dword [ebx + 0x14], 8
jb 0x1001cd24
mov ebx, dword [ebx]
lea eax, [ebp - 0x20c]
push eax
call fcn.1005d0d1
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 2
push esi
push ebx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1001cd64
xor esi, esi
inc esi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1001cd9c
mov eax, dword [ebp - 0x214]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x210]
mov dword [ecx], eax
jmp 0x1001cd54
mov eax, dword [ebp - 0x214]
mov dword [eax], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x210]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005c747
leave
ret

Function at 0x1001cdab
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x1001cdbc
lea eax, [ebp + 8]
push esi
push edi
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 4]
push edx
xor esi, esi
push esi
push 2
push esi
push esi
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1001ce2f
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x1001cde6
lea eax, [ebp + 0x24]
push 4
lea ecx, [ebp + 0x40]
push ecx
push 4
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1001ce25
xor edi, edi
inc edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 1
lea ecx, [ebp + 8]
call fcn.1000f89d
push esi
push 1
lea ecx, [ebp + 0x24]
call fcn.1000f89d
mov eax, edi
pop edi
pop esi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
jmp 0x1001ce00
xor edi, edi
jmp 0x1001ce09