joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459e00
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x459e1e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x459e13
pop esi
ret

Function at 0x46a5cb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46a60d
call fcn.0046d91e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46a60d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46a604
xor eax, eax
jmp 0x46a615
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046a61b
pop edi
pop esi
pop ebx
ret 4

Function at 0x46b5a9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x46f1c8
call fcn.0045d3e0
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0046d91e
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x46b5e8
call fcn.0046d91e
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46b5f6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x46b604
or eax, 0xffffffff
jmp 0x46b6ec
mov ecx, esi
call fcn.0046b51f
mov dword [ebp - 0x14], eax
call fcn.00468c11
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x46b63b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x46b63b
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00468bc5
push dword [ebp - 0x14]
call fcn.004686f7
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0046b2b7
cmp eax, edi
je 0x46b6ae
test byte [esi + 0x24], 0x10
je 0x46b67c
push 4
mov ecx, esi
pop ebx
call fcn.004680f7
test ah, 1
je 0x46b674
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0046a71d
cmp dword [esi + 0x1c], edi
je 0x46b6ae
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0046812b
jmp 0x46b6ae
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x46b6c2
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x46b6db
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x46b6db
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0046b559
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x46d490
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46d4be
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46d4dc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046d3f6
jmp 0x46d4dc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46d4dc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046d3f6
test edi, edi
mov eax, edi
jne 0x46d4c6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x433005
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x11648
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
push 0x20006
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0x240
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp eax, esi
jl 0x116bd
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwFlushKey]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop esi
leave
ret 0x14

Function at 0x116c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
push 0x20019
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0x240
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, esi
jl 0x1172f
push ebx
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebx]
push edi
add esi, 0x10
push esi
call fcn.00015c50
mov edi, eax
test edi, edi
jne 0x11734
mov esi, 0xc000009a
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret 0x14
push esi
push 0
push edi
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
push edi
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov esi, eax
cmp esi, 0xc0000023
je 0x11795
cmp esi, 0x80000005
je 0x11795
test esi, esi
jl 0x1179d
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x11776
mov ecx, dword [edi + 4]
mov dword [eax], ecx
mov eax, dword [ebx]
mov ecx, dword [edi + 8]
cmp eax, ecx
jb 0x11781
mov eax, ecx
push eax
mov dword [ebx], eax
lea eax, [edi + 0xc]
push eax
push dword [ebp + 0x14]
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
jmp 0x1179d
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
mov dword [ebx], eax
push edi
call fcn.00015c6a
jmp 0x11722
Function at 0x11c78
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [sym.imp.ntoskrnl.exe_KeTickCount]
sub esp, 0x1c
push esi
jmp 0x11c8a
pause
mov ecx, dword [eax + 4]
mov esi, dword [eax]
mov edx, dword [eax + 8]
cmp ecx, edx
jne 0x11c88
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_KeQuerySystemTime]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea eax, [ebp - 0xc]
push eax
call fcn.00011a5a
lea eax, [ebp - 4]
push eax
call sub.ntoskrnl.exe_RtlRandomEx
mov ecx, eax
xor edx, edx
add ecx, 3
mov eax, esi
div ecx
movzx eax, byte [ebp - 0xb]
push 0x114
push 0
mov esi, 0x27b20
push esi
add edx, eax
movzx eax, byte [ebp - 7]
add edx, eax
movzx eax, byte [ebp - 8]
add edx, eax
movzx eax, byte [ebp - 9]
add edx, eax
movzx eax, byte [ebp - 0xa]
add eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
push esi
mov dword [0x27b20], 0x114
call dword [sym.imp.ntoskrnl.exe_RtlGetVersion]
pop esi
test eax, eax
jne 0x11d35
cmp dword [0x27b24], 6
jb 0x11d35
push dword [ebp - 0x14]
call dword [sym.imp.ntoskrnl.exe_srand]
pop ecx
call dword [sym.imp.ntoskrnl.exe_rand]
leave
ret
mov ecx, dword [ebp - 0x14]
mov eax, 0x3039
test ecx, ecx
jne 0x11d4f
mov ecx, dword [0x248b8]
imul ecx, ecx, 0x41c64e6d
add ecx, eax
imul ecx, ecx, 0x3e39b193
sub eax, ecx
shr eax, 0x10
and eax, 0x7fff
leave
ret

Function at 0x130c2
Capabilities:
Complete processing asynchronous io request

Disassembly:
push 0x14
push 0x1fd88
call fcn.0001ea70
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 0x60]
push dword [edi + 0x18]
call fcn.00012ca8
mov ebx, eax
mov eax, dword [edi + 8]
test ebx, ebx
je 0x131b4
mov ecx, dword [edi + 0x10]
mov dword [ebp + 8], ecx
and dword [ebp - 4], 0
push 4
push eax
push ecx
call dword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp + 8], eax
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
push ecx
push dword [eax]
push dword [eax + 4]
call dword [sym.imp.ntoskrnl.exe_ProbeForWrite]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, dword [ebx + 8]
jb 0x13179
push ecx
push 0
push dword [eax + 4]
call sub.ntoskrnl.exe_memset
push dword [ebx + 8]
push dword [ebx + 4]
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.ntoskrnl.exe_memcpy
add esp, 0x18
and dword [esi + 0x18], 0
mov eax, dword [ebx + 8]
mov dword [esi + 0x1c], eax
push dword [edi + 0x18]
call fcn.00012cec
xor edi, edi
mov dl, 2
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, edi
jmp 0x131c9
mov eax, 0xc0000023
mov dword [esi + 0x18], eax
and dword [esi + 0x1c], 0
mov edi, eax
jmp 0x1316b
inc byte [esi + 0x23]
add dword [esi + 0x60], 0x24
mov edx, esi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
call dword [sym.imp.ntoskrnl.exe_IofCallDriver]
call fcn.0001eab5
ret 8
Function at 0x1376a
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00011e64
test al, al
je 0x1377e
pop ebp
jmp fcn.000136da
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x60]
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00012d74
cmp al, 1
je 0x137c4
movzx eax, byte [edx]
mov eax, dword [eax*4 + 0x24900]
test eax, eax
je 0x137a9
push ecx
push esi
call eax
jmp 0x13844
and dword [ecx + 0x1c], 0
mov esi, 0xc0000010
xor dl, dl
mov dword [ecx + 0x18], esi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, esi
jmp 0x13844
cmp byte [0x248b0], 0
push edi
mov edi, dword [esi + 0x28]
jne 0x137fd
mov al, byte [edx]
test al, al
je 0x1383b
cmp al, 0xf
je 0x137e9
cmp al, 0x12
jne 0x137fd
push edx
push ecx
push esi
call fcn.00012e64
jmp 0x13843
movzx eax, byte [edx + 1]
dec eax
je 0x13831
dec eax
je 0x13827
sub eax, 5
je 0x1381d
sub eax, 4
je 0x13813
inc byte [ecx + 0x23]
add edx, 0x24
mov dword [ecx + 0x60], edx
mov edx, ecx
mov ecx, dword [edi + 0xc]
call dword [sym.imp.ntoskrnl.exe_IofCallDriver]
jmp 0x13843
push edx
push ecx
push esi
call fcn.00012fba
jmp 0x13843
push edx
push ecx
push esi
call fcn.000131d6
jmp 0x13843
push edx
push ecx
push esi
call fcn.00012f6c
jmp 0x13843
push edx
push ecx
push esi
call fcn.00012edc
jmp 0x13843
push edx
push ecx
push esi
call fcn.00012d98
pop edi
pop esi
pop ebp
ret 8
Function at 0x13b58
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [0x20650]
and dword [ebp - 4], 0
push esi
mov esi, dword [0x2064c]
push edi
mov edi, dword [0x20654]
add eax, edi
add eax, dword [0x20648]
xor ecx, esi
xor edx, esi
add eax, esi
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 4]
mov dword [ebp - 0xc], edi
mov edi, dword [esi]
mov dword [ebp + 0xc], edi
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 8]
mov dword [ebp - 8], 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
add dword [ebp - 4], eax
dec dword [ebp - 8]
mov esi, edx
shl esi, 4
add esi, dword [ebp + 0xc]
mov edi, edx
shr edi, 5
add edi, dword [ebp - 0xc]
xor esi, edi
mov edi, dword [ebp - 4]
add edi, edx
xor esi, edi
add ecx, esi
mov esi, ecx
shl esi, 4
add esi, dword [ebp - 0x10]
mov edi, ecx
shr edi, 5
add edi, dword [ebp - 0x14]
xor esi, edi
mov edi, dword [ebp - 4]
add edi, ecx
xor esi, edi
add edx, esi
cmp dword [ebp - 8], 0
ja 0x13bae
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop esi
leave
ret 8

Function at 0x13c04
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov ecx, dword [0x20654]
push esi
mov esi, dword [eax + 4]
mov eax, dword [0x20650]
add ecx, eax
mov eax, dword [ebp + 0xc]
add ecx, dword [0x2064c]
push edi
mov edi, dword [eax + 0xc]
add ecx, dword [0x20648]
mov dword [ebp - 0xc], edi
mov edi, dword [eax + 8]
mov dword [ebp + 0xc], edi
mov edi, dword [eax + 4]
mov eax, dword [eax]
mov edx, ecx
mov dword [ebp - 8], 0x20
shl edx, 5
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp + 0xc]
dec dword [ebp - 8]
shr edi, 5
add edi, dword [ebp - 0xc]
xor eax, edi
mov edi, dword [ebp - 4]
add edi, edx
xor eax, edi
sub esi, eax
mov eax, esi
shl eax, 4
add eax, dword [ebp - 0x10]
mov edi, esi
shr edi, 5
add edi, dword [ebp - 0x14]
xor eax, edi
lea edi, [edx + esi]
xor eax, edi
sub dword [ebp - 4], eax
sub edx, ecx
cmp dword [ebp - 8], 0
ja 0x13c58
mov eax, dword [0x2064c]
xor eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [0x2064c]
xor eax, esi
pop edi
mov dword [ecx + 4], eax
pop esi
leave
ret 8

Function at 0x13d60
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor ecx, ecx
or eax, 0xffffffff
cmp dword [ebp + 0xc], ecx
jbe 0x13d8e
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x270c0]
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x13d6f
not eax
pop ebp
ret 8
Function at 0x17670
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x2483c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x4000
push esi
call fcn.00015c50
mov edi, eax
test edi, edi
jne 0x176c1
mov eax, dword [0x2498c]
test eax, eax
jne 0x17850
mov eax, dword [0x24988]
and eax, 3
mov eax, dword [eax*4 + 0x2065c]
mov byte [0x24990], 1
jmp 0x17850
push 0x11
push 2
push 2
call fcn.000109a4
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x17712
push edi
call fcn.00015c6a
mov eax, dword [0x2498c]
test eax, eax
je 0x176ed
mov esi, eax
jmp 0x1784e
mov eax, dword [0x24988]
and eax, 3
mov esi, dword [eax*4 + 0x2065c]
push 0x1f2ba
mov byte [0x24990], 1
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1784d
push esi
push 0
push edi
call sub.ntoskrnl.exe_memset
add esp, 0xc
push ebx
push edi
call fcn.00017502
push 2
mov dword [ebp - 0x20], eax
pop eax
push 0x35
mov word [ebp - 0x14], ax
call fcn.000109fe
pop ecx
mov word [ebp - 0x12], ax
call fcn.00017418
push 0x10
pop ebx
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x20]
push edi
push dword [ebp - 0x18]
call fcn.00010904
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
jge 0x177a9
push edi
call fcn.00015c6a
push dword [ebp - 0x18]
call fcn.00010542
cmp dword [ebp - 0x1c], 0xc0000022
mov eax, dword [0x2498c]
pop ecx
jne 0x1769e
test eax, eax
jne 0x1779e
mov eax, dword [0x24988]
and eax, 3
mov eax, dword [eax*4 + 0x2065c]
mov byte [0x24990], 1
inc dword [0x24988]
jmp 0x17850
push esi
push 0
push edi
mov dword [ebp - 0x1c], ebx
call sub.ntoskrnl.exe_memset
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push edi
push dword [ebp - 0x18]
call fcn.0001082a
mov esi, eax
add esp, 0x24
test esi, esi
jge 0x17815
push edi
call fcn.00015c6a
push dword [ebp - 0x18]
call fcn.00010542
mov eax, dword [0x2498c]
pop ecx
test eax, eax
je 0x177ee
mov edi, eax
jmp 0x17811
mov eax, dword [0x24988]
and eax, 3
mov edi, dword [eax*4 + 0x2065c]
push esi
push 0x1f298
mov byte [0x24990], 1
call sub.ntoskrnl.exe_DbgPrint
pop ecx
pop ecx
mov eax, edi
jmp 0x17850
push esi
push edi
call fcn.000175d8
mov esi, eax
test esi, esi
jne 0x17845
mov eax, dword [0x2498c]
test eax, eax
je 0x1782f
mov esi, eax
jmp 0x17845
mov eax, dword [0x24988]
and eax, 3
mov esi, dword [eax*4 + 0x2065c]
mov byte [0x24990], 1
push dword [ebp - 0x18]
call fcn.00010542
pop ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0001d90e
leave
ret 4
Function at 0x19c4a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
and dword [ebp - 4], 0
push ebx
xor ebx, ebx
inc ebx
cmp byte [0x24db4], bl
je 0x19c69
xor eax, eax
jmp 0x19dee
call fcn.00019b70
test eax, eax
je 0x19c77
call fcn.00019940
push esi
mov esi, 0x400
push esi
call fcn.00015c50
xor ecx, ecx
mov word [ebp - 0x1c], cx
mov ecx, esi
mov dword [ebp - 0x18], eax
mov word [ebp - 0x1a], cx
test eax, eax
je 0x19ded
push edi
push esi
push 0
push eax
call sub.ntoskrnl.exe_memset
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
add esp, 0xc
push 0x211e8
lea eax, [ebp - 0x24]
push eax
call esi
mov eax, dword [0x20cd8]
push dword [eax*4 + 0x20ccc]
lea eax, [ebp - 0x2c]
push eax
call esi
mov edi, dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
call edi
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x19de1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
xor edi, edi
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x44]
push eax
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x44], 0x18
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x38], 0x200
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], edi
je 0x19de1
push 0x1f562
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 8], ebx
call esi
push 4
lea eax, [ebp - 8]
push eax
push 4
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call edi
push 0x1ee1a
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 8], ebx
call esi
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call edi
mov dword [ebp - 0xc], eax
push 0x1f558
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 8], ebx
call esi
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call edi
push 0x1f54c
lea eax, [ebp - 0x14]
push eax
call esi
mov ecx, 0x1f524
mov eax, ecx
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x19db4
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push ebx
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
and dword [ebp - 4], 0
push dword [ebp - 0x18]
call fcn.00015c6a
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1a7c6
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
mov edi, 0x40000
push edi
call fcn.00015c50
xor esi, esi
mov dword [0x24998], eax
cmp eax, esi
je 0x1a8d2
push edi
push esi
push eax
call sub.ntoskrnl.exe_memset
mov eax, dword [0x249a0]
add esp, 0xc
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x24], 0x26e58
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov edi, dword [eax + 0x28]
push eax
call dword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov dword [edi + 8], eax
cmp eax, esi
jne 0x1a82f
mov eax, dword [edi + 4]
mov dword [edi + 8], eax
push dword [edi + 8]
lea eax, [ebp - 0x14]
push 0x800
push esi
push esi
push esi
push esi
push 0x60
push 1
push 1
push 0x80
push esi
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x80000000
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
test eax, eax
jge 0x1a875
push dword [0x24998]
call fcn.00015c6a
mov dword [0x24998], esi
jmp 0x1a8d2
push 5
push 0x18
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jl 0x1a862
mov edi, dword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
push esi
push 1
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0x3c]
push esi
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [0x24998]
mov dword [0x2499c], eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jl 0x1a862
push esi
push 1
push dword [ebp - 4]
call edi
pop edi
pop esi
leave
ret
Function at 0x1a8dc
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x249a0]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x1a9f5
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [eax + 0x28]
push eax
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 0x240
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov dword [edi + 8], eax
cmp eax, esi
jne 0x1a92c
mov eax, dword [edi + 4]
mov dword [edi + 8], eax
push dword [edi + 8]
lea eax, [ebp - 0xc]
push 0x800
push esi
push esi
push esi
push esi
push 0x60
push 5
push 3
push 6
push esi
push eax
lea eax, [ebp - 0x24]
push eax
push 0xc0000000
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
mov edi, eax
cmp edi, esi
jl 0x1a9f0
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
push esi
push 1
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call fcn.00019604
push 4
push 0x28
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp dword [ebp - 0xc], esi
jl 0x1a9e7
mov eax, 0xfa2b0929
push 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x44], eax
push 0x28
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0xc]
mov ecx, 0x1c95a06
push eax
push dword [ebp - 4]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x40], ecx
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
jmp 0x1a9fa
mov eax, 0xc000000e
pop esi
leave
ret 0x10