joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4474c4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x463374]
cmp byte [eax + 0xc], 0
je 0x447631
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44762a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x464b68], 0
jne 0x447518
push 0x447638
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x447640
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b68], eax
cmp dword [0x462cbc], 0
jne 0x447613
push 0x447650
call sub.kernel32.dll_LoadLibraryA
mov dword [0x462cbc], eax
cmp dword [0x462cbc], 0
je 0x447613
push 0x44765c
mov eax, dword [0x462cbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b6c], eax
push 0x44766c
mov eax, dword [0x462cbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b70], eax
push 0x447680
mov eax, dword [0x462cbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b74], eax
push 0x447698
mov eax, dword [0x462cbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b78], eax
push 0x4476b0
mov eax, dword [0x462cbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b7c], eax
push 0x4476c4
mov eax, dword [0x462cbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b80], eax
push 0x4476dc
mov eax, dword [0x462cbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b84], eax
push 0x4476f4
mov eax, dword [0x462cbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b88], eax
push 0x447710
mov eax, dword [0x462cbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b8c], eax
push 0x44771c
mov eax, dword [0x462cbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x464b90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447631
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44b4d8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403edc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44b527
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040414c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x452c6c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x452cbc]
test si, 4
je 0x452c80
or bl, 1
test si, 8
je 0x452c8a
or bl, 4
test si, 1
je 0x452c94
or bl, 8
test si, 2
je 0x452c9e
or bl, 0x10
test si, 0x10
je 0x452ca8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452cb7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x452cc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x452cf8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452cd9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452ce8
or bl, 4
test esi, 0x20000000
je 0x452cf3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4593a0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4593b2
add esp, 0xfffffff0
call fcn.00403490
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c70c
mov eax, dword [0x463010]
mov dword [eax + 4], ebx
mov dword [eax], 0x459744
mov eax, dword [0x46301c]
mov dword [eax + 4], ebx
mov dword [eax], 0x459750
mov eax, ebx
call fcn.0045975c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x414a04]
call fcn.00403154
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x414a04]
call fcn.00403154
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x414a04]
call fcn.00403154
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x414a04]
call fcn.00403154
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x414a04]
call fcn.00403154
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, 0x455b78
push eax
push 0
push 0
mov eax, dword [0x463170]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e150]
call fcn.0041f594
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e150]
call fcn.0041f594
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e150]
call fcn.0041f594
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00459b7c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459a58
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459a58
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459a58
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4594ef
call fcn.004034e8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45983c
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 0x4599e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4599c8
mov dl, 1
mov eax, dword [0x414e20]
call fcn.00403154
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403edc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4599b7
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.00447824
test al, al
je 0x4599aa
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, 0x4599f8
lea eax, [ebp - 0x254]
call fcn.00408cf4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4599aa
xor eax, eax
push ebp
push 0x4599a3
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 0x459a30
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45998c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040414c
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 0x45998c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040414c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4599aa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4598ad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004188fc
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 0x4599ee
lea eax, [ebp - 0x260]
call fcn.00403edc
ret

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

Disassembly:
push ecx
mov eax, dword [0x464bb4]
cmp byte [eax + 0xa5], 0
jne 0x45a38d
cmp dword [0x464bcc], 0
jne 0x45a34e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45a2d8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x464bcc], eax
cmp dword [0x464bc8], 0
jne 0x45a369
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x464bc8], eax
cmp dword [0x464bd0], 0
jne 0x45a38d
push esp
push 0
push 0
push 0x45a27c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x464bd0], eax
pop edx
ret
Function at 0x45a484
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45a49b
add esp, 0xfffffff0
call fcn.00403490
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c70c
mov eax, dword [0x46315c]
cmp word [eax + 2], 0
jne 0x45a4c3
mov eax, dword [0x46315c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045bb5c
mov eax, dword [0x463208]
cmp word [eax + 2], 0
jne 0x45a4dd
mov eax, dword [0x463208]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045bd54
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x414a04]
call fcn.00403154
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x414a04]
call fcn.00403154
mov dword [ebx + 0xa8], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41e900]
call fcn.00424674
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45a664
mov eax, dword [0x46307c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424a44
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45c2f4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46307c]
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.0040c424
test eax, eax
je 0x45a5d2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004086d4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c44c
test eax, eax
je 0x45a5e6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040414c
mov eax, dword [0x462f60]
cmp byte [eax], 0
jne 0x45a61a
mov eax, ebx
call fcn.0045a78c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045c4d0
mov eax, ebx
call fcn.0045ce94
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45a65a
call fcn.004034e8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45aa0c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x464bb4]
cmp dword [eax + 0x30], 0
je 0x45aab6
cmp dword [ebx + 0x94], 0
jne 0x45aab0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45a99c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45aab0
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 0x45aa76
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45aab0
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.00416d6c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45aa85
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45b618
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45b64d
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.00403fcc
jmp 0x45b65a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f30
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45c6ac
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45c6ed
mov eax, esi
call fcn.00442e50
test al, al
je 0x45c6ed
mov eax, dword [ebx + 0x84]
call fcn.00442b4c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45c6ed
push 0
mov eax, dword [ebx + 0x84]
call fcn.00442b4c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45de24
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414200]
call fcn.00404848
xor eax, eax
push ebp
push 0x45df68
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x462f0c], 0
jne 0x45de77
mov ecx, dword [0x462f70]
mov dl, 1
mov eax, dword [0x406f98]
call fcn.0040b6e4
call fcn.004038f8
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402b7c
mov eax, ebx
call fcn.00404718
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x45df78
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0040579c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404728
test eax, eax
jle 0x45df0f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x45df08
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404164
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040414c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00407d70
test eax, eax
jne 0x45df08
mov ebx, 0x15
jmp 0x45df14
mov ebx, 0x10
jmp 0x45df14
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x462f0c]
call fcn.0045dd7c
mov eax, dword [ebp - 8]
call fcn.0045dd7c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004057b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45df6f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00403f00
lea eax, [ebp - 0x10]
mov edx, dword [0x414200]
call fcn.0040490c
ret
Function at 0x12490
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x38
test eax, eax
je 0x124a3
mov dword [eax], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x124b0
mov dword [eax], 0
mov eax, dword [ebp + 8]
push 0
push 0
push 0x20
push 1
push 1
push 0x80
push 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x18], eax
push 0x120089
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0x240
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x125eb
mov eax, dword [ebp + 8]
push esi
push edi
push 5
push 0x18
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 8]
push edx
push eax
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov edi, eax
test edi, edi
jl 0x125dd
mov eax, dword [ebp - 0x30]
test eax, eax
jbe 0x125d8
cmp dword [ebp - 0x2c], 0
jne 0x125d8
cmp eax, 0x1900000
jb 0x1254f
mov eax, 0x1900000
mov dword [ebp - 0x30], eax
push eax
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov esi, eax
test esi, esi
je 0x125bf
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
push 0
push 0
push ecx
push esi
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov edi, eax
test edi, edi
jge 0x1259e
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 0x10]
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
push ecx
mov dword [eax], edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
push ecx
mov edi, 0xc000009a
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edi, 0xc0000028
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x12600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.000181f0
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea ecx, [ebp - 8]
push ecx
call fcn.000184c0
xor esi, esi
push esi
push esi
push 0x20
push 5
push 3
push 0x80
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
lea edx, [ebp - 8]
push ecx
mov dword [ebp - 0x28], edx
push 0xc0000000
lea edx, [ebp + 8]
push edx
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0x240
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
cmp eax, esi
jl 0x1269e
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push esi
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov edx, dword [ebp + 8]
push edx
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x129c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x129e1
mov eax, 0xc0000001
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0xc]
push eax
mov dword [ebp - 0x1c], ecx
push 0xf003f
lea ecx, [ebp - 4]
xor ebx, ebx
push ecx
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x18], 0x240
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], edx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
jl 0x12b42
mov eax, dword [ebp - 4]
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryKey]
lea edx, [ebp + 0xc]
push edx
push ebx
push ebx
push 2
push eax
call edi
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov ecx, dword [ebp - 4]
mov esi, eax
mov dword [ebp + 8], esi
cmp esi, ebx
jne 0x12a71
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop ebx
mov eax, 0xc000009a
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0xc]
push edx
push eax
push esi
push 2
push ecx
call edi
mov edi, eax
cmp edi, ebx
jge 0x12aa2
push ebx
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
mov edi, dword [esi + 0x14]
cmp edi, ebx
je 0x12b20
dec edi
cmp edi, ebx
jl 0x12b20
mov ebx, dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov ecx, dword [ebp - 4]
lea eax, [ebp + 0xc]
push eax
push 0
push 0
push 0
push edi
push ecx
call ebx
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
push 0
mov dword [ebp + 0xc], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov esi, eax
test esi, esi
je 0x12b18
mov edx, dword [ebp + 0xc]
push edx
push 0
push esi
call sub.ntoskrnl.exe_memset
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push ecx
push esi
push 0
push edi
push edx
call ebx
test eax, eax
jl 0x12b0f
mov ecx, dword [ebp - 4]
lea eax, [esi + 0x10]
push eax
push ecx
call fcn.000129c0
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
sub edi, 1
jns 0x12ab4
mov esi, dword [ebp + 8]
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x12b50
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push ebx
lea ecx, [ebp - 0x20]
push ecx
xor ebx, ebx
push 0xf003f
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], 0x240
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
jl 0x12cb0
mov ecx, dword [ebp - 4]
push esi
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryKey]
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push 2
push ecx
call edi
mov eax, dword [ebp + 8]
add eax, 2
push eax
push ebx
mov dword [ebp + 8], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov edx, dword [ebp - 4]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, ebx
jne 0x12bd9
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop esi
mov eax, 0xc000009a
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push ecx
push esi
push 2
push edx
call edi
mov edi, eax
cmp edi, ebx
jge 0x12c0a
push ebx
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [esi + 0x14]
cmp edi, ebx
je 0x12c8e
dec edi
cmp edi, ebx
jl 0x12c8e
mov ebx, dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
lea esp, [esp]
mov edx, dword [ebp - 4]
lea ecx, [ebp + 8]
push ecx
push 0
push 0
push 0
push edi
push edx
call ebx
mov eax, dword [ebp + 8]
add eax, 2
push eax
push 0
mov dword [ebp + 8], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov esi, eax
test esi, esi
je 0x12c84
mov eax, dword [ebp + 8]
push eax
push 0
push esi
call sub.ntoskrnl.exe_memset
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp + 8]
push ecx
push edx
push esi
push 0
push edi
push eax
call ebx
test eax, eax
jl 0x12c7b
mov edx, dword [ebp - 4]
lea ecx, [esi + 0x10]
push ecx
push edx
call fcn.000129c0
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
sub edi, 1
jns 0x12c20
mov esi, dword [ebp - 8]
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4