joyce8/EMBER2024-capa huggingface dataset:
Function at 0x13cf6
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
mov eax, 0x8000
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
jne 0x13d17
xor al, al
jmp 0x13dc8
push esi
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, 0x35343332
push esi
push eax
jmp 0x13d4b
push 0
push ebx
push dword [ebp - 8]
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x13d58
push esi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
add ebx, ebx
push esi
push ebx
push 1
call edi
mov dword [ebp - 8], eax
test eax, eax
jne 0x13d28
jmp 0x13d6c
test eax, eax
jge 0x13d70
cmp dword [ebp - 8], 0
je 0x13d6c
push esi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor al, al
jmp 0x13dc6
mov edi, dword [ebp - 8]
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x13d8a
mov dword [ebp - 0xc], 0x1b400
cmp dword [edi + 0x44], 4
jbe 0x13da3
push 1
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x13dad
mov eax, dword [edi]
test eax, eax
je 0x13db9
add edi, eax
jmp 0x13d73
mov eax, dword [edi + 0x44]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov byte [ebp - 1], 1
push esi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1403e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1bde0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20c], eax
xor dl, dl
xor eax, eax
mov ecx, 0x100
mov byte [ebp + eax - 0x104], dl
inc eax
inc dl
cmp eax, ecx
jb 0x14065
push ebx
push esi
push edi
xor esi, esi
xor edx, edx
mov eax, esi
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
inc esi
mov al, byte [edx + eax]
mov byte [ebp + esi - 0x205], al
cmp esi, ecx
jb 0x14078
mov byte [ebp - 0x205], 0
xor esi, esi
mov edi, ecx
movzx eax, byte [ebp - 0x205]
lea ecx, [ebp + eax - 0x104]
movzx eax, byte [ebp + eax - 0x204]
mov dl, byte [ecx]
movzx ebx, dl
add eax, esi
add eax, ebx
and eax, 0x800000ff
jns 0x140c9
dec eax
or eax, 0xffffff00
inc eax
inc byte [ebp - 0x205]
dec edi
movzx esi, al
lea eax, [ebp + esi - 0x104]
mov bl, byte [eax]
mov byte [ecx], bl
mov byte [eax], dl
jne 0x1409c
mov esi, dword [ebp + 0x14]
test esi, esi
jbe 0x14192
mov edx, dword [ebp - 0x20c]
mov eax, dword [ebp + 0x10]
xor ecx, ecx
sub eax, edx
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x20c], esi
lea eax, [ecx + 1]
and eax, 0x800000ff
jns 0x1411d
dec eax
or eax, 0xffffff00
inc eax
movzx ecx, al
lea eax, [ebp + ecx - 0x104]
mov dl, byte [eax]
movzx ebx, dl
add ebx, edi
and ebx, 0x800000ff
jns 0x1413e
dec ebx
or ebx, 0xffffff00
inc ebx
movzx edi, bl
lea esi, [ebp + edi - 0x104]
mov bl, byte [esi]
mov byte [eax], bl
mov byte [esi], dl
movzx eax, byte [eax]
movzx edx, dl
add eax, edx
and eax, 0x800000ff
jns 0x14164
dec eax
or eax, 0xffffff00
inc eax
mov esi, dword [ebp - 0x214]
movzx eax, al
mov dl, byte [ebp + eax - 0x104]
mov eax, dword [ebp - 0x210]
xor dl, byte [esi + eax]
mov byte [eax], dl
inc eax
dec dword [ebp - 0x20c]
mov dword [ebp - 0x210], eax
jne 0x1410c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00019dff
leave
ret 0x14

Function at 0x14dee
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
jne 0x14e0e
mov eax, 0xc0000001
jmp 0x14e99
lea eax, [esi + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], 0x240
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, edi
jl 0x14e99
mov eax, dword [esi + 0x1c]
push ebx
lea ebx, [esi + 0x10]
cmp eax, edi
je 0x14e6c
movzx ecx, word [esi + 0x18]
push ecx
push eax
push 1
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
movzx eax, word [esi + 0x18]
push eax
push dword [esi + 0x1c]
push 1
jmp 0x14e81
push 4
push esi
push 4
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
push 4
push esi
push 4
push edi
push ebx
push dword [ebp - 4]
call fcn.00015d8a
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x14ea4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push 2
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000023
je 0x14ed5
cmp eax, 0x80000005
je 0x14ed5
xor al, al
jmp 0x14ed7
mov al, 1
leave
ret 8

Function at 0x14ee0
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
xor edi, edi
push 0x80000000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], 0x240
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov esi, eax
cmp esi, edi
jne 0x14f64
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp - 4]
call fcn.00014ea4
test al, al
je 0x14f59
push edi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.00014ea4
test al, al
je 0x14f59
push edi
push dword [ebp - 4]
call fcn.00015e7e
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop edi
pop esi
leave
ret 8
Function at 0x16d42
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
push esi
mov esi, dword [ebp + 0x10]
mov bl, byte [esi + 0x100]
mov al, byte [esi + 0x101]
mov dword [ebp - 4], ecx
jle 0x16e01
push edi
movzx edi, bl
movzx eax, al
mov dword [ebp - 8], ecx
jmp 0x16d78
mov eax, dword [ebp - 0xc]
lea ebx, [edi + 1]
and ebx, 0x800000ff
jns 0x16d8b
dec ebx
or ebx, 0xffffff00
inc ebx
movzx edi, bl
lea ecx, [edi + esi]
movzx edx, byte [ecx]
add eax, edx
and eax, 0x800000ff
mov dword [ebp - 0x14], ecx
jns 0x16da7
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp + 0x13], al
movzx eax, al
mov dword [ebp - 0xc], eax
add eax, esi
push eax
push ecx
mov dword [ebp - 0x10], eax
call fcn.00016ca2
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx]
add eax, ecx
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ecx]
add ecx, edx
and ecx, 0x800000ff
jns 0x16de2
dec ecx
or ecx, 0xffffff00
inc ecx
movzx ecx, cl
mov cl, byte [ecx + esi]
xor byte [eax], cl
inc dword [ebp - 4]
movsx eax, word [ebp - 4]
cmp eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
jl 0x16d75
mov al, byte [ebp + 0x13]
pop edi
mov byte [esi + 0x100], bl
mov byte [esi + 0x101], al
pop esi
pop ebx
leave
ret 0xc
Function at 0x17b42
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
xor eax, eax
push ebx
xor ebx, ebx
mov word [ebp - 8], ax
mov word [ebp - 6], ax
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
cmp eax, ebx
jne 0x17b76
mov eax, 0xc0000001
jmp 0x17c27
cmp dword [eax + 4], ebx
je 0x17b6c
push esi
push edi
mov edi, 0x35343332
push edi
mov esi, 0x208
push esi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x17ba1
mov eax, 0xc0000001
jmp 0x17c25
push 0x1b3bc
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
movzx eax, word [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call sub.ntoskrnl.exe_memcpy
mov ax, word [ebp - 0x10]
add esp, 0xc
push dword [ebp + 8]
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
mov word [ebp - 6], si
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
mov esi, eax
mov eax, 0xc0000000
mov ecx, esi
and ecx, eax
cmp ecx, eax
je 0x17c14
lea eax, [ebp - 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], 0x240
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov esi, eax
cmp dword [ebp - 4], ebx
je 0x17c23
push edi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x18698
Capabilities:
Create thread

Disassembly:
cmp dword [0x1c8cc], 0
jne 0x186a7
mov eax, 0xc00000bb
ret
cmp dword [0x1c8c8], 1
jne 0x186b3
xor eax, eax
ret
cmp dword [0x1c8d4], 0
jne 0x186c2
mov eax, 0xc0000008
ret
xor eax, eax
inc eax
mov ecx, 0x1c8c8
xchg dword [ecx], eax
jmp fcn.00018544
Function at 0x186d6
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
xor eax, eax
push ebx
mov word [ebp - 0x18], ax
push esi
push edi
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x20], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 1], 1
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
cmp dword [0x1c8cc], ebx
je 0x1889a
cmp dword [0x1c8c8], ebx
je 0x1889a
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0001937e
test eax, eax
jne 0x1889a
cmp byte [ebp + 0x10], 1
lea eax, [ebp - 0x18]
jne 0x18820
push eax
call fcn.00019d30
test al, al
jne 0x18767
lea eax, [ebp - 0x18]
push eax
call fcn.000196e8
test al, al
jne 0x18838
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x801
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], 0x40
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
test eax, eax
jl 0x18838
mov dword [ebp + 0x10], 3
push dword [ebp - 8]
call dword [0x1c8c0]
test eax, eax
jne 0x187bd
inc dword [ebp - 0xc]
dec dword [ebp + 0x10]
jne 0x187ad
cmp dword [ebp - 0xc], 3
jne 0x18838
push edi
call fcn.000185b6
mov esi, eax
cmp esi, ebx
je 0x18838
push esi
call fcn.00018220
test al, al
jne 0x187e6
push ebx
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push 0x35343332
push 0x10
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp eax, ebx
je 0x18838
mov ecx, dword [ebp + 8]
push eax
push 0x17ce6
push ebx
push ebx
push ebx
mov dword [eax + 4], ecx
mov dword [eax], edi
mov dword [eax + 0xc], esi
push ebx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
jl 0x18838
mov byte [ebp - 1], bl
jmp 0x18838
push 1
push eax
push dword [0x1c8d0]
call dword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
jne 0x18838
call fcn.0001849a
cmp dword [ebp - 0x14], ebx
je 0x1884b
push 0x35343332
push dword [ebp - 0x14]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edi, dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp byte [ebp - 1], bl
je 0x18883
cmp esi, ebx
je 0x1886b
push ebx
push ebx
push dword [esi + 0x1c]
mov dword [esi + 0x18], ebx
mov byte [esi + 0x10], bl
call dword [sym.imp.ntoskrnl.exe_KeSetEvent]
cmp dword [ebp - 8], ebx
je 0x18890
mov esi, dword [ebp - 0xc]
cmp esi, ebx
jbe 0x18883
push dword [ebp - 8]
call dword [0x1c8c4]
dec esi
jne 0x18877
cmp dword [ebp - 8], ebx
je 0x18890
push dword [ebp - 8]
call edi
mov dword [ebp - 8], ebx
cmp dword [ebp - 0x10], ebx
je 0x1889a
push dword [ebp - 0x10]
call edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x18d4c
Capabilities:
Get system information on windows

Disassembly:
push 0x4c
push 0x1bc78
call fcn.00019e7c
xor eax, eax
mov word [ebp - 0x30], ax
lea edi, [ebp - 0x2e]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
mov dword [ebp - 0x5c], esi
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x1000
push 0x1b6d4
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov edi, eax
cmp edi, esi
je 0x18e49
push edi
mov ebx, dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
call ebx
test al, al
je 0x18e49
lea eax, [ebp - 0x20]
push eax
push 0x2c
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, esi
jl 0x18dcc
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x28], esi
cmp esi, 0x20000
jae 0x18e42
lea ecx, [edi + esi]
mov eax, ecx
xor edx, edx
div dword [ebp - 0x1c]
test edx, edx
jne 0x18def
push ecx
call ebx
test al, al
je 0x18e42
xor ecx, ecx
mov dword [ebp - 0x24], ecx
cmp ecx, 0xd
jge 0x18e2a
mov eax, ecx
shl eax, 3
mov edx, dword [eax + 0x1bd10]
add edx, edi
mov dl, byte [edx + esi]
cmp dl, byte [eax + 0x1bd14]
je 0x18e24
mov edx, dword [eax + 0x1bd78]
add edx, edi
mov dl, byte [edx + esi]
cmp dl, byte [eax + 0x1bd7c]
jne 0x18e27
inc ecx
jmp 0x18df1
cmp ecx, 0xd
jne 0x18e38
lea eax, [edi + esi]
mov dword [ebp - 4], 0xfffffffe
jmp 0x18e4b
inc esi
jmp 0x18dcf
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.00019ec1
ret

Function at 0x18f8c
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1bde0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x120], ax
mov word [ebp - 0x11e], ax
lea eax, [ebp - 0x118]
xor esi, esi
push eax
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.ntoskrnl.exe_RtlGetVersion]
cmp eax, esi
je 0x18fdc
mov eax, 0xc0000001
jmp 0x19036
cmp dword [ebp - 0x114], 6
jb 0x19006
push 0x1b708
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
jmp 0x1900b
mov eax, 0x18ed0
mov dword [0x1c988], eax
cmp eax, esi
je 0x18fd5
push esi
push 0x50726f4c
push 0x48
push esi
push esi
push esi
push 0x1c910
call dword [sym.imp.ntoskrnl.exe_ExInitializeNPagedLookasideList]
call fcn.0001890a
call fcn.00011ace
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00019dff
leave
ret
Function at 0x193f0
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
jne 0x19408
xor eax, eax
jmp 0x194cc
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, edi
jne 0x19417
xor eax, eax
jmp 0x194cb
push esi
push 0x1c910
call fcn.000188a6
mov esi, eax
cmp esi, edi
jne 0x1942f
xor eax, eax
jmp 0x194ca
push 0x48
push edi
push esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
push edi
push edi
lea eax, [esi + 0x30]
push eax
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2c], 1
call dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
lea eax, [esi + 0x18]
push eax
push dword [ebp + 8]
mov dword [esi + 0xc], esi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 8], 0x6c693750
call fcn.0001937e
cmp eax, edi
jne 0x194b0
lea eax, [esi + 0x24]
push eax
push ebx
call fcn.0001937e
cmp eax, edi
jne 0x194b0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jne 0x194ac
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_PsGetProcessInheritedFromUniqueProcessId]
cmp eax, edi
je 0x194ac
lea ecx, [esi + 0x10]
push ecx
push eax
call fcn.0001937e
xor eax, eax
cmp eax, edi
jge 0x194bb
push edi
push esi
call fcn.00018e56
xor esi, esi
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x194c8
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, esi
pop esi
pop ebx
pop edi
leave
ret 8

Function at 0x1aff0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
xor eax, eax
mov byte [eax + ecx], al
inc eax
cmp eax, 0x100
jb 0x1affc
push ebx
push esi
push edi
mov byte [ecx + 0x100], dl
mov byte [ecx + 0x101], dl
mov dword [ebp + 8], edx
xor esi, esi
movzx eax, dl
mov edx, dword [ebp + 8]
lea edi, [edx + ecx]
mov edx, dword [ebp + 0xc]
movzx edx, byte [eax + edx]
movzx ebx, byte [edi]
add edx, esi
add edx, ebx
and edx, 0x800000ff
jns 0x1b042
dec edx
or edx, 0xffffff00
inc edx
movzx esi, dl
mov dl, byte [edi]
mov bl, byte [esi + ecx]
mov byte [edi], bl
mov byte [esi + ecx], dl
inc eax
xor edx, edx
div dword [ebp + 0x10]
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x100
jb 0x1b01b
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1b06e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
mov dl, byte [ecx + 0x100]
mov al, byte [ecx + 0x101]
jbe 0x1b11e
push ebx
push esi
push edi
movzx esi, dl
movzx edi, al
jmp 0x1b0a0
mov edi, dword [ebp - 8]
lea edx, [esi + 1]
and edx, 0x800000ff
jns 0x1b0b3
dec edx
or edx, 0xffffff00
inc edx
movzx esi, dl
lea eax, [esi + ecx]
movzx ebx, byte [eax]
add ebx, edi
and ebx, 0x800000ff
jns 0x1b0ce
dec ebx
or ebx, 0xffffff00
inc ebx
movzx edi, bl
mov bl, byte [eax]
mov byte [ebp + 0xb], bl
mov bl, byte [edi + ecx]
mov byte [eax], bl
mov bl, byte [ebp + 0xb]
mov byte [edi + ecx], bl
mov ebx, dword [ebp - 4]
movzx eax, byte [eax]
mov dword [ebp - 8], edi
mov edi, dword [ebp + 0xc]
add edi, ebx
mov ebx, dword [ebp - 8]
movzx ebx, byte [ebx + ecx]
add ebx, eax
and ebx, 0x800000ff
jns 0x1b108
dec ebx
or ebx, 0xffffff00
inc ebx
movzx eax, bl
mov al, byte [eax + ecx]
xor byte [edi], al
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jb 0x1b09d
pop edi
pop esi
pop ebx
mov byte [ecx + 0x100], dl
mov byte [ecx + 0x101], dl
leave
ret 0xc

Function at 0x20fbe
Capabilities:
Create device object
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00020f85
pop ebp
jmp fcn.00014428
Function at 0x10001020
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ecx, dword [esi]
test ecx, ecx
je 0x100010bd
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x100010bd
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetServicesCdnprot
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100010bd
mov edx, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x14]
push ebx
push ecx
push eax
push str.DescriptionName
push edx
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100010b2
mov edi, str.cdnprot
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
ret

Function at 0x100011e0
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.Console
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10001229
mov edx, dword [esp]
push str.KwUnSelf
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
Function at 0x10001230
Capabilities:
Check os version

Disassembly:
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
xor esi, esi
xor ebx, ebx
push 0x100070ac
xor edi, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x17], bl
call fcn.10002010
push 0x1000709c
call fcn.10002010
mov eax, dword [esp + 0xd0]
add esp, 8
cmp eax, 0xa
ja case.0x10001273.4
jmp dword [eax*4 + 0x10001408]
mov ebp, 0x83003c07
jmp 0x10001386
mov ebp, 0x83003c03
call fcn.100011e0
jmp 0x10001386
mov ebp, 0x83003c0b
jmp 0x10001386
lea eax, [esp + 0x28]
mov ebp, 0x83003c0f
push eax
mov dword [esp + 0x2c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je case.0x10001273.4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], 5
sub eax, 0
je 0x10001304
dec eax
je 0x100012ee
dec eax
jne case.0x10001273.4
mov dword [esp + 0x18], 0x1221
lea esi, [esp + 0x18]
mov edi, 4
jmp 0x10001386
mov dword [esp + 0x18], 0x1225
lea esi, [esp + 0x18]
mov edi, 4
jmp 0x10001386
mov dword [esp + 0x18], 0x1212
lea esi, [esp + 0x18]
mov edi, 4
jmp 0x10001386
mov esi, dword [esp + 0xcc]
mov ebp, 0x83003c1b
test esi, esi
je 0x10001337
mov ecx, dword [esi]
mov ebx, dword [esi + 0xc]
mov edi, 0x10
mov dword [esp + 0x1c], ecx
jmp 0x10001386
pop edi
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret
mov eax, dword [esp + 0xcc]
mov ebp, 0x83003c1f
mov esi, eax
lea ebx, [esp + 0x13]
neg eax
sbb eax, eax
mov dword [esp + 0x1c], 1
and eax, 4
mov edi, eax
jmp 0x10001386
mov ebp, 0x83003c37
jmp 0x10001386
mov ebp, 0x83003c3b
jmp 0x10001386
mov ebp, 0x83003c3f
lea edx, [esp + 0x20]
push edx
call sym.cdnprh.dll_prh_OpenDriver
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x100013e8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
push ebx
push edi
push esi
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100013c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100013d7
cmp ebp, 0x83003c1f
jne 0x100013db
test ebx, ebx
je 0x100013db
cmp byte [ebx], 0
jne 0x100013db
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
push eax
call sym.cdnprh.dll_prh_CloseDriver
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret
pop edi
pop esi
pop ebp
mov eax, 0x57
pop ebx
add esp, 0xb4
ret

Function at 0x10001520
Capabilities:
Copy file
Move file

Disassembly:
push ebx
push ebp
push esi
push edi
xor bl, bl
call fcn.10001480
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10001579
cmp esi, 1
jne 0x1000155c
push 5
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
test esi, esi
jne 0x10001572
push str.WININIT.INI
push ebp
push edi
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret