joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f5c8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45f5da
add esp, 0xfffffff0
call fcn.00404208
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fa50
mov eax, dword [0x46833c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45f96c
mov eax, dword [0x468348]
mov dword [eax + 4], ebx
mov dword [eax], 0x45f978
mov eax, ebx
call fcn.0045f984
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4177ac]
call fcn.00403ecc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4177ac]
call fcn.00403ecc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4177ac]
call fcn.00403ecc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4177ac]
call fcn.00403ecc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4177ac]
call fcn.00403ecc
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45b034
push eax
push 0
push 0
mov eax, dword [0x468498]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42e124]
call fcn.0042f644
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42e124]
call fcn.0042f644
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42e124]
call fcn.0042f644
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045fdb4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45fc84
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45fc84
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45fc84
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45f717
call fcn.00404260
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45fa68
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45fc13
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45fbf4
mov dl, 1
mov eax, dword [0x417bd0]
call fcn.00403ecc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404d10
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45fbe3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00451f8c
test al, al
je 0x45fbd6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45fc24
lea eax, [ebp - 0x254]
call fcn.0040bb44
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45fbd6
xor eax, eax
push ebp
push 0x45fbcf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45fc5c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45fbb8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f80
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45fbb8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fbd6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45fad9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041b8a8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fc1a
lea eax, [ebp - 0x260]
call fcn.00404d10
ret

Function at 0x46058c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x46ff44]
cmp byte [eax + 0xad], 0
jne 0x4605fd
cmp dword [0x46ff60], 0
jne 0x4605be
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x460548
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46ff60], eax
cmp dword [0x46ff5c], 0
jne 0x4605d9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46ff5c], eax
cmp dword [0x46ff64], 0
jne 0x4605fd
push esp
push 0
push 0
push 0x4604ec
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46ff64], eax
pop edx
ret
Function at 0x4607d0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4607e7
add esp, 0xfffffff0
call fcn.00404208
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fa50
mov eax, dword [0x468480]
cmp word [eax + 2], 0
jne 0x46080f
mov eax, dword [0x468480]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046222c
mov eax, dword [0x468524]
cmp word [eax + 2], 0
jne 0x460829
mov eax, dword [0x468524]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00462438
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4177ac]
call fcn.00403ecc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4177ac]
call fcn.00403ecc
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4177ac]
call fcn.00403ecc
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x42e900]
call fcn.00434748
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4609e0
mov eax, dword [0x4683a4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00434b1c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x462b0c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4683a4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040f2ec
test eax, eax
je 0x460930
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040b4fc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040f320
test eax, eax
je 0x460944
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404f80
mov byte [ebx + 0xd4], 0
push ebx
push 0x461ef8
call fcn.00420bcc
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4682a4]
cmp byte [eax], 0
jne 0x460995
mov eax, ebx
call fcn.00460b24
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00462ce4
mov eax, ebx
call fcn.00463848
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4609d5
call fcn.00404260
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460da4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x460e43
cmp dword [ebx + 0x94], 0
jne 0x460e3d
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x460d2c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x460e3d
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x460e03
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x460e3d
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419b50
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x460e12
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46105c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x46ff44]
cmp dword [eax + 0x30], 0
je 0x4611b9
test bl, bl
jne 0x46110a
cmp dword [esi + 0x9c], 0
jne 0x4610ff
mov eax, esi
call fcn.004636c4
push eax
push 0x460f88
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4610d0
mov eax, dword [0x46ff44]
call fcn.00463cb4
test al, al
je 0x4610d0
mov eax, dword [0x46ff68]
call fcn.00406108
mov edi, eax
cmp edi, 0
jl 0x4610d0
push 0
mov eax, dword [0x46ff68]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4610ba
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4610ff
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00419b50
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4610df
inc dword [esi + 0x9c]
jmp 0x4611b9
cmp dword [esi + 0x9c], 0
jle 0x4611b9
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4611b9
cmp dword [esi + 0x44], 0
je 0x461165
mov eax, dword [0x46ff44]
call fcn.00463cb4
test al, al
je 0x461165
mov eax, dword [0x46ff68]
call fcn.00406108
mov edi, eax
cmp edi, 0
jl 0x461165
push 5
mov eax, dword [0x46ff68]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x46114f
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x461194
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00419b50
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x461174
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x46ff68
mov ecx, 1
mov edx, dword [0x460f68]
call fcn.004062bc
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x461c4c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x461cb6
mov eax, ebx
call fcn.00463cb4
test al, al
jne 0x461cb6
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404e00
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x461ca3
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x461cc3
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404d64
jmp 0x461cc3
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404d64
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x462ec8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x462f36
mov eax, esi
call fcn.0044ce4c
test al, al
je 0x462f36
mov eax, dword [ebx + 0x84]
call fcn.0044cb40
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x462f36
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x462f2a
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044cb40
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00444cfc
jmp 0x462f36
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00462d04
pop esi
pop ebx
ret

Function at 0x463f48
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405190
xor eax, eax
push ebp
push 0x463fba
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0040b38c
push 1
push 0x463fc8
mov eax, dword [ebp - 4]
call fcn.004051a0
push eax
mov eax, ebx
call fcn.004051a0
push eax
push 0x463fcc
push 0
call sub.shell32.dll_ShellExecuteA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463fc1
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404d34
ret

Function at 0x51d1111
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
lea eax, [ebp - 4]
push eax
push 0x28
mov edi, ecx
call dword [0x51d4014]
push eax
call dword [0x51d4008]
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [0x51d4004]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 4]
call dword [section..rdata]
mov eax, edi
pop edi
leave
ret
Function at 0x104e0
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push edi
xor eax, eax
mov word [ebp - 0x10], ax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x13850
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call esi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x22
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x10579
push 0x13826
lea eax, [ebp - 0x18]
push eax
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x10579
push 0x1c
pop ecx
push dword [ebp - 4]
add edi, 0x38
mov eax, 0x10c22
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x78], 0x10a62
call dword [sym.imp.ntoskrnl.exe_IoRegisterShutdownNotification]
jmp 0x10587
cmp dword [ebp - 4], ebx
je 0x10587
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10612
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
push 0x105de
push esi
push esi
lea eax, [ebp - 0x20]
push eax
mov edi, 0x1f03ff
push edi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], 0x200
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
jl 0x10690
push esi
lea eax, [ebp - 8]
push eax
mov eax, dword [sym.imp.ntoskrnl.exe_PsThreadType]
push esi
push dword [eax]
push edi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
jl 0x10690
push esi
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
pop edi
pop esi
leave
ret

Function at 0x10732
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
push ecx
stosd dword es:[edi], eax
push 0x10714
push ecx
push ecx
lea eax, [ebp - 0x1c]
push eax
push 0x1f03ff
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0x200
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
pop edi
leave
ret
Function at 0x10882
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
xor eax, eax
mov word [ebp - 0x10], ax
lea edi, [ebp - 0xe]
xor esi, esi
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
stosw word es:[edi], ax
cmp dword [0x15120], esi
jne 0x108ac
mov eax, 0xc0000001
jmp 0x1091b
push 0x13872
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, dword [0x15120]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push 0x2001f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], 0x40
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, esi
jl 0x1091b
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 2
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x10924
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x13dd4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push edi
xor eax, eax
mov word [ebp - 0x3c], ax
lea edi, [ebp - 0x3a]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 7
xor ebx, ebx
pop ecx
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
push 0x13de0
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x25], bl
call esi
lea eax, [ebp - 0x60]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x58]
push eax
push 0x2001f
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x58], 0x18
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
jl 0x10a4e
push 0x1387e
lea eax, [ebp - 0x3c]
push eax
call esi
lea eax, [ebp - 0x40]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push 2
pop edi
push edi
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, ebx
mov dword [ebp - 0x34], eax
jl 0x109e0
cmp dword [ebp - 0x20], 4
jne 0x109e0
cmp dword [ebp - 0x18], ebx
setne byte [ebp - 0x25]
cmp byte [0x14900], bl
jne 0x109ed
cmp byte [ebp - 0x25], bl
je 0x10a42
push 0x13872
lea eax, [ebp - 0x3c]
push eax
call esi
push 4
lea eax, [ebp - 0x30]
push eax
push 4
push ebx
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], edi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
call edi
mov dword [ebp - 0x34], eax
cmp byte [ebp - 0x25], bl
jne 0x10a42
push 0x1387e
lea eax, [ebp - 0x3c]
push eax
call esi
push 4
lea eax, [ebp - 0x30]
push eax
push 4
push ebx
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 1
call edi
mov dword [ebp - 0x34], eax
push dword [ebp - 0x2c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00012b2f
leave
ret
Function at 0x10cea
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push 2
pop eax
push 4
mov word [ebp - 0x10], ax
pop eax
mov word [ebp - 0xe], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
xor esi, esi
push 0x13de0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 0x2001f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, esi
jl 0x10dab
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00012e77
test al, al
je 0x10d91
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push dword [ebp + 0x10]
push 3
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
push esi
push dword [ebp + 0x10]
mov edi, eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x10d96
mov edi, 0xc0000001
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop esi
leave
ret 0xc
Function at 0x10f0c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x13dd4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push 2
pop ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
push 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov word [ebp - 0x30], cx
pop ecx
mov dword [ebp - 0x2c], eax
push 0x13de0
lea eax, [ebp - 0x58]
xor edi, edi
push eax
mov dword [ebp - 0x18], edi
mov word [ebp - 0x2e], cx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x50]
push eax
push 0x2001f
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x50], 0x18
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x44], 0x40
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, edi
jl 0x11098
push ebx
mov ebx, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
push esi
lea eax, [ebp - 0x1c]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x18]
call ebx
cmp eax, edi
jge 0x10fcf
cmp eax, 0x80000005
je 0x10fcf
cmp eax, 0xc0000023
je 0x10fcf
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
jmp 0x11096
push 0x6a6a6a6b
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
cmp esi, edi
jne 0x10feb
mov esi, 0xc000009a
jmp 0x10fbf
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push esi
push 2
push eax
push dword [ebp - 0x18]
call ebx
mov ebx, eax
cmp ebx, edi
jge 0x11019
push dword [ebp - 0x18]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push edi
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
jmp 0x11096
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], 0xc0000001
cmp eax, edi
je 0x11082
push 0x6a6a6a6b
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
cmp ebx, edi
je 0x11082
push dword [esi + 8]
lea eax, [esi + 0xc]
push eax
push ebx
call sub.ntoskrnl.exe_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
push ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
call fcn.00012ffb
test al, al
je 0x1107a
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
mov dword [ebp - 0x28], edi
push edi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push dword [ebp - 0x18]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push edi
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x28]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00012b2f
leave
ret 0xc