joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a2f0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.1000fea0
mov eax, dword [0x1003a064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
call fcn.100178d3
mov dword [ebp - 0x1014], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x1010], edx
call fcn.10018185
add esp, 8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push eax
push dword [edi]
mov eax, dword [edi + 0x10]
push dword [edi + 4]
inc eax
push dword [edi + 8]
push dword [edi + 0xc]
push eax
mov eax, dword [edi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x1004]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.1000a1d0
add esp, 0x28
xor edi, edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, 1
push 0x100299b8
push ebx
cmovne edi, ecx
call fcn.10017c02
mov esi, eax
add esp, 8
test esi, esi
je 0x1000a420
test edi, edi
jne 0x1000a3b6
push esi
push 2
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x100c], 0xfeff
push 1
push eax
call fcn.100147a3
add esp, 0x10
lea eax, [ebp - 0x1004]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000a3c0
sub eax, edx
sar eax, 1
push esi
add eax, eax
push eax
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.100147a3
push esi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xd
push 1
push eax
call fcn.100147a3
push esi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xa
push 1
push eax
call fcn.100147a3
push esi
call fcn.100144eb
add esp, 0x34
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000fe5f
mov esp, ebp
pop ebp
ret

Function at 0x1000a650
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, esi
lea ecx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x1000a660
sub edi, ecx
mov edx, 2
sar edi, 1
xor ecx, ecx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000fe93
add esp, 4
mov ebx, eax
sub eax, esi
nop
movzx ecx, word [esi]
lea esi, [esi + 2]
mov word [eax + esi - 2], cx
test cx, cx
jne 0x1000a690
xor esi, esi
mov dword [ebp + 8], 1
test edi, edi
js 0x1000a6e9
nop dword [eax]
cmp word [ebx + esi*2], 0x5c
jne 0x1000a6dd
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000a6d4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1000a6fa
mov eax, 0x5c
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jle 0x1000a6b0
mov dword [ebp + 8], 1
push ebx
call fcn.1000fe5a
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
push ebx
mov dword [ebp + 8], 0
call fcn.1000fe5a
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1000a720
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1003a064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push 0x1a
push eax
push 0
call fcn.1000ac90
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000a760
sub ecx, edx
sar ecx, 1
je 0x1000a834
push esi
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x1000a780
mov eax, dword [0x10029460]
mov esi, ebx
mov dword [edi], eax
mov cx, word [ebx]
add ebx, 2
test cx, cx
jne 0x1000a795
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1000a7b0
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x1000a7d3
mov dword [edi], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000a801
lea eax, [ebp - 0x20c]
push eax
call fcn.1000a650
add esp, 4
lea edx, [ebp - 0x20c]
lea esi, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1000a810
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.10002740
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000fe5f
mov esp, ebp
pop ebp
ret
Function at 0x1000ac90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1003a064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor bl, bl
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x21c], eax
cmp byte [0x1003ad00], bl
jne 0x1000ad41
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10012430
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1000ad34
lea eax, [ebp - 0x20c]
push eax
call fcn.10017a9e
lea eax, [ebp - 0x20c]
push str.config_systemprofile
push eax
call fcn.100126dd
add esp, 0xc
test eax, eax
jne 0x1000ad2b
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.100126dd
add esp, 8
test eax, eax
je 0x1000ad34
mov byte [0x1003ad00], 1
jmp 0x1000ad41
cmp byte [0x1003ad00], 0
je 0x1000ae6d
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.Kernel32.dll
mov dword [ebp - 0x210], 0
mov byte [ebp - 0x218], 0
call esi
push str.Wtsapi32.dll
mov dword [ebp - 0x214], eax
call esi
cmp dword [ebp - 0x214], 0
mov edi, eax
je 0x1000ae0a
test edi, edi
je 0x1000ae0a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSQueryUserToken
push edi
call esi
push str.WTSGetActiveConsoleSessionId
push dword [ebp - 0x214]
mov dword [ebp - 0x220], eax
call esi
test eax, eax
je 0x1000ade8
cmp dword [ebp - 0x220], 0
jne 0x1000ade8
call eax
lea ecx, [ebp - 0x210]
push ecx
push eax
xor eax, eax
call eax
test eax, eax
je 0x1000ade8
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov ecx, dword [ebp - 0x218]
test eax, eax
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0x218], ecx
push dword [ebp - 0x214]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call esi
push edi
call esi
cmp byte [ebp - 0x218], 0
je 0x1000ae0a
mov eax, dword [ebp - 0x210]
jmp 0x1000ae1d
push str.EXPLORER.EXE
call fcn.1000b810
add esp, 4
mov dword [ebp - 0x210], eax
mov esi, dword [ebp - 0x21c]
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x1000ae76
push esi
push 1
push eax
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x1000ae76
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000fe5f
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x21c]
mov edi, dword [ebp + 0x10]
push dword [ebp + 0x14]
push edi
push esi
push dword [ebp - 0x224]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
movzx ecx, bl
mov eax, 1
cmovne ecx, eax
mov al, cl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000fe5f
mov esp, ebp
pop ebp
ret
Function at 0x1000b130
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2068
call fcn.1000fea0
mov eax, dword [0x1003a064]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1000b36e
push 0x2000
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2010], 0
push 0
push eax
mov dword [ebp - 0x2008], 0
call fcn.10012430
push edi
push esi
lea eax, [ebp - 0x2004]
push str.__s___s
push eax
call fcn.10002860
push str.EXPLORER.EXE
call fcn.1000b610
add esp, 0x20
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1000b32b
lea eax, [ebp - 0x2010]
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000b32b
lea eax, [ebp - 0x2008]
push eax
push 1
push 1
push 0
push 0xf01ff
push dword [ebp - 0x2010]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1000b32b
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1000b248
push str.WTSGetActiveConsoleSessionId
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000b241
call eax
push 4
mov dword [ebp - 0x2014], eax
lea eax, [ebp - 0x2014]
push eax
push 0xc
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x1000b32b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov dword [ebp - 0x2054], 0
xorps xmm0, xmm0
mov word [ebp - 0x2016], ax
push 0
push dword [ebp - 0x2008]
mov eax, 5
movlpd qword [ebp - 0x204c], xmm0
mov word [ebp - 0x2028], ax
lea eax, [ebp - 0x200c]
push eax
movlpd qword [ebp - 0x2044], xmm0
movlpd qword [ebp - 0x203c], xmm0
movlpd qword [ebp - 0x2034], xmm0
movlpd qword [ebp - 0x2026], xmm0
movlpd qword [ebp - 0x201e], xmm0
movups xmmword [ebp - 0x2068], xmm0
mov dword [ebp - 0x2058], 0x44
mov dword [ebp - 0x2050], str.WinSta0Default
mov dword [ebp - 0x202c], 1
mov dword [ebp - 0x200c], 0
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x1000b32b
lea eax, [ebp - 0x2068]
push eax
lea eax, [ebp - 0x2058]
push eax
push 0
push dword [ebp - 0x200c]
lea eax, [ebp - 0x2004]
push 0x430
push 0
push 0
push 0
push eax
push 0
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1000b32b
mov eax, dword [ebp - 0x200c]
test eax, eax
je 0x1000b32b
push eax
call sub.USERENV.dll_DestroyEnvironmentBlock
mov eax, dword [ebp - 0x2008]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000b343
cmp eax, 0xffffffff
je 0x1000b343
push eax
call esi
mov eax, dword [ebp - 0x2010]
test eax, eax
je 0x1000b355
cmp eax, 0xffffffff
je 0x1000b355
push eax
call esi
test edi, edi
jne 0x1000b35c
push edi
call esi
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000fe5f
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push edi
push esi
call fcn.1000aeb0
mov ecx, dword [ebp - 4]
add esp, 0x14
test eax, eax
setne al
xor ecx, ebp
pop edi
pop esi
call fcn.1000fe5f
mov esp, ebp
pop ebp
ret
Function at 0x1000b610
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027c50
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x1003a064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xor eax, eax
test edx, edx
je 0x1000b7e6
mov ecx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b660
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.10002740
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.1000d5f0
push 0x22c
lea eax, [ebp - 0x26c]
push 0
push eax
call fcn.10012430
add esp, 0x10
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x270], ebx
cmp ebx, 0xffffffff
je 0x1000b7da
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1000b7d3
nop dword [eax + eax]
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b700
sub ecx, edx
lea eax, [ebp - 0x248]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10002740
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.1000d5f0
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x40]
mov edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
add esp, 4
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
cmp ebx, 8
cmovae esi, edi
cmp edx, dword [ebp - 0x30]
jne 0x1000b784
test edx, edx
je 0x1000b768
sub esi, eax
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x1000b784
add eax, 2
sub edx, 1
jne 0x1000b757
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x28]
call fcn.10002470
jmp 0x1000b7dc
mov byte [ebp - 4], 0
cmp ebx, 8
jb 0x1000b7b8
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x1000b7ae
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000b802
push ecx
push edi
call fcn.1000fe4c
add esp, 8
mov ebx, dword [ebp - 0x270]
lea eax, [ebp - 0x26c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1000b6e0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea ecx, [ebp - 0x40]
call fcn.10002470
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000fe5f
mov esp, ebp
pop ebp
ret
call fcn.100142d9
int3
Function at 0x1000b930
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027c90
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x1003a064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x26c]
push 0x22c
xor ebx, ebx
push ebx
push eax
call fcn.10012430
mov ecx, esi
mov dword [ebp - 0x18], ebx
add esp, 0xc
mov dword [ebp - 0x14], 7
xor eax, eax
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b990
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10002740
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.1000d5f0
add esp, 4
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
jne 0x1000b9d7
xor ebx, ebx
jmp 0x1000baf7
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x22c
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1000baeb
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ba20
sub ecx, edx
lea eax, [ebp - 0x248]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.10002740
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.1000d5f0
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x40]
lea esi, [ebp - 0x40]
mov edx, dword [ebp - 0x30]
add esp, 4
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
cmp ebx, 8
cmovae esi, edi
cmp edx, dword [ebp - 0x18]
jne 0x1000ba97
test edx, edx
je 0x1000ba88
sub esi, eax
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x1000ba97
add eax, 2
sub edx, 1
jne 0x1000ba77
lea ecx, [ebp - 0x40]
mov ebx, 1
call fcn.10002470
jmp 0x1000baeb
mov byte [ebp - 4], 0
cmp ebx, 8
jb 0x1000bacf
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x1000bac5
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000bb4b
push ecx
push edi
call fcn.1000fe4c
add esp, 8
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x270]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1000ba00
xor ebx, ebx
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1000bb2d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000bb23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000bb4b
push edx
push ecx
call fcn.1000fe4c
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000fe5f
mov esp, ebp
pop ebp
ret
call fcn.100142d9
int3
Function at 0x1000beb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027ccb
mov eax, dword fs:[0]
push eax
sub esp, 0x838
mov eax, dword [0x1003a064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov ecx, edx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x840], eax
lea esi, [ecx + 2]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x838], eax
xor eax, eax
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000bf26
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x828]
call fcn.10002740
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x834]
push eax
push 0x20119
push 0
push 0x10029648
push 0x80000002
mov dword [ebp - 4], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 0
call esi
test eax, eax
jne 0x1000bfb7
lea eax, [ebp - 0x830]
push eax
push 0x20119
push 0
push dword [ebp - 0x83c]
push dword [ebp - 0x834]
call esi
test eax, eax
je 0x1000bffe
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [ebp - 0x828]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x828], ax
movq xmm0, qword [ebp - 0x818]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 7
jmp 0x1000c0ce
lea eax, [ebp - 0x82c]
push eax
push 0x20119
push 0
push dword [ebp - 0x840]
push dword [ebp - 0x830]
call esi
test eax, eax
je 0x1000c036
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
jmp 0x1000bfb7
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.10012430
add esp, 0xc
mov dword [ebp - 0x844], 0x400
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x810]
push eax
push 0
push 0
push dword [ebp - 0x838]
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x82c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x830]
call esi
push dword [ebp - 0x834]
call esi
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c0a1
sub ecx, edx
sar ecx, 1
mov ecx, edi
jne 0x1000c0c2
lea eax, [ebp - 0x828]
push eax
call fcn.1000bbb0
jmp 0x1000c0ce
lea eax, [ebp - 0x810]
push eax
call fcn.10007f80
lea ecx, [ebp - 0x828]
call fcn.10002470
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000fe5f
mov esp, ebp
pop ebp
ret
Function at 0x1000c100
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027d0b
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x1003a064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov ecx, edx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x838], eax
xor eax, eax
mov word [ebp - 0x828], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x82c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c176
sub ecx, dword [ebp - 0x82c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x828]
call fcn.10002740
lea eax, [ebp - 0x82c]
mov dword [ebp - 4], 0
push eax
push 0xf013f
push 0
push 0x10029648
push 0x80000001
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000c211
push eax
lea eax, [ebp - 0x834]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push esi
push dword [ebp - 0x82c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call esi
test eax, eax
je 0x1000c258
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [ebp - 0x828]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x828], ax
movq xmm0, qword [ebp - 0x818]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 7
jmp 0x1000c333
push 0
lea eax, [ebp - 0x830]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp - 0x83c]
push dword [ebp - 0x834]
call esi
test eax, eax
je 0x1000c29b
push dword [ebp - 0x834]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x830]
call esi
jmp 0x1000c211
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.10012430
add esp, 0xc
mov dword [ebp - 0x840], 0x400
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x810]
push eax
push 0
push 0
push dword [ebp - 0x838]
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x834]
call esi
push dword [ebp - 0x82c]
call esi
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c306
sub ecx, edx
sar ecx, 1
mov ecx, edi
jne 0x1000c327
lea eax, [ebp - 0x828]
push eax
call fcn.1000bbb0
jmp 0x1000c333
lea eax, [ebp - 0x810]
push eax
call fcn.10007f80
lea ecx, [ebp - 0x828]
call fcn.10002470
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000fe5f
mov esp, ebp
pop ebp
ret
Function at 0x1000c360
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 0xf013f
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push 0x80000003
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
call esi
test eax, eax
jne 0x1000c492
lea eax, [ebp - 8]
push eax
push 0xf013f
push 0
push 0x10029648
push dword [ebp - 4]
call esi
test eax, eax
je 0x1000c3cd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0xc]
push 0
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
je 0x1000c407
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x1000c440
push dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 4]
call esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x18]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c450
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 4]
call esi
pop esi
mov esp, ebp
pop ebp
ret