joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a08a
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01006950
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100a0f0
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x101203c]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x100a0f4
xor eax, eax
jmp 0x100a101
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100be13
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x100be67
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x100be67
cmp dword [0x1011724], esi
je 0x100bec5
push dword [ebp + 8]
push 0x1002304
push 0x1002358
push 1
call fcn.0100d7ab
add esp, 0x10
jmp 0x100bec5
lea eax, [ebp - 8]
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntdll.dll_NtDeleteFile]
cmp dword [ebp + 0xc], esi
mov edi, eax
jne 0x100bea0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
cmp edi, esi
jge 0x100bec4
cmp dword [0x1011724], esi
je 0x100bec4
push edi
push dword [ebp + 8]
push 0x1002328
push 0x1002358
push 1
call fcn.0100d7ab
add esp, 0x14
pop edi
pop esi
leave
ret 8
Function at 0x100c23e
Capabilities:
Persist via application shimming
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 8], ebx
push edi
je 0x100c357
mov eax, dword [esi + 0x1c4]
cmp eax, ebx
je 0x100c30f
mov edi, 0x8801
push edi
push ebx
push eax
call fcn.0100e5ae
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x100c30f
push 0x7801
push esi
call fcn.0100c1d6
mov dword [ebp - 4], eax
push dword [ebp + 8]
push dword [esi + 0x1c4]
call fcn.0100e53a
cmp eax, ebx
je 0x100c2c1
push eax
push edi
push esi
call fcn.0100c0a9
test eax, eax
je 0x100c2d7
push dword [ebp + 8]
push ebx
push dword [esi + 0x1c4]
call fcn.0100e5f6
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x100c28b
jmp 0x100c2f3
cmp dword [0x1011724], ebx
je 0x100c2f3
push 0x1002520
push 0x100250c
push 2
jmp 0x100c2eb
cmp dword [0x1011724], ebx
je 0x100c2f3
push 0x10024e8
push 0x100250c
push 1
call fcn.0100d7ab
add esp, 0xc
push dword [ebp - 4]
push esi
call fcn.0100becf
test eax, eax
jne 0x100c30f
cmp dword [0x1011724], ebx
je 0x100c357
push 0x10024b4
jmp 0x100c348
cmp dword [esi + 8], ebx
je 0x100c357
cmp dword [esi + 0x24], ebx
mov dword [ebp + 8], ebx
jbe 0x100c357
lea edi, [esi + 0x28]
push dword [edi]
push esi
call fcn.0100c13e
test eax, eax
je 0x100c33b
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add edi, 0x28
cmp eax, dword [esi + 0x24]
jb 0x100c31f
jmp 0x100c357
cmp dword [0x1011724], ebx
je 0x100c357
push 0x100249c
push 0x100250c
push 1
call fcn.0100d7ab
add esp, 0xc
lea edi, [esi + 0x1c4]
mov eax, dword [edi]
cmp eax, ebx
je 0x100c389
push eax
call fcn.0100c23e
mov eax, dword [esi + 0x1e0]
cmp eax, ebx
mov dword [edi], ebx
je 0x100c37c
push ebx
push eax
call fcn.0100be13
lea eax, [esi + 0x1dc]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
lea edi, [esi + 0x1c8]
mov eax, dword [edi]
cmp eax, ebx
je 0x100c39d
push eax
call fcn.0100fdc9
mov dword [edi], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x100c3fa
cmp dword [esi + 8], ebx
je 0x100c3f4
push ebx
lea ecx, [ebp - 8]
push ecx
push dword [esi + 0xc]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push dword [esi]
mov dword [ebp - 4], ebx
call dword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
jge 0x100c3e7
cmp dword [0x1011724], ebx
je 0x100c3e7
push 0x1002480
push 0x100250c
push 1
call fcn.0100d7ab
add esp, 0xc
push dword [esi + 4]
call fcn.0100dec0
mov dword [esi + 4], ebx
jmp 0x100c3fa
push esi
call fcn.0100f2a6
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100c40b
push eax
call dword [sym.imp.ntdll.dll_NtClose]
or dword [esi], 0xffffffff
push esi
call fcn.0100dec0
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100c41d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10110ec]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0x14
pop edx
lea edi, [ebp - 0x1c]
push edi
push edx
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x18]
push edx
push 2
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jl 0x100c464
cmp dword [ebp - 0x14], 4
jne 0x100c464
test esi, esi
je 0x100c464
mov ecx, dword [ebp - 0xc]
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.010060f9
leave
ret 0xc

Function at 0x100c5d3
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x7ffe0030
push esi
call fcn.01009386
push esi
call fcn.010093aa
add esp, 0xc
test eax, eax
jle 0x100c602
lea eax, [esi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x100c602
and word [eax], 0
push 0x10026d0
push esi
call fcn.01009353
pop ecx
pop ecx
pop esi
pop ebp
ret 4

Function at 0x100c619
Capabilities:
Get file attributes
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
jne 0x100c654
cmp dword [0x1011724], esi
je 0x100c6b2
push 0x1002770
push 0x1002764
push 1
call fcn.0100d7ab
add esp, 0xc
jmp 0x100c6b2
push 5
push 0x18
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
cmp eax, esi
jge 0x100c67b
cmp dword [0x1011724], esi
je 0x100c6b2
push eax
push 0x1002730
jmp 0x100c6a3
push edi
push 0x8000000
push 2
push esi
push esi
push 4
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
cmp eax, esi
jge 0x100c6b6
cmp dword [0x1011724], esi
je 0x100c6b2
push eax
push 0x100270c
push 0x1002764
push 1
call fcn.0100d7ab
add esp, 0x10
xor eax, eax
jmp 0x100c729
push ebx
push 2
push esi
push 2
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
cmp ebx, esi
jge 0x100c702
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [0x1011724], esi
je 0x100c6fe
push ebx
push 0x10026e4
push 0x1002764
push 1
call fcn.0100d7ab
add esp, 0x10
xor eax, eax
jmp 0x100c728
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax], edi
mov dword [eax + 0x1c], ecx
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x100c79a
Capabilities:
Get system information on windows

Disassembly:
push 0x6c
push 0x1002978
call fcn.01007688
xor edi, edi
mov dword [ebp - 4], edi
push 4
pop eax
call fcn.01006950
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x1c], eax
or ebx, 0xffffffff
mov dword [ebp - 4], ebx
jmp 0x100c7e8
lea ecx, [ebp - 0x28]
push ecx
push 0x1c
lea ecx, [ebp - 0x50]
push ecx
push edi
push eax
push ebx
mov esi, dword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
call esi
cmp eax, edi
jge 0x100c81b
cmp dword [0x1011724], edi
je 0x100c9a5
push eax
push dword [ebp - 0x1c]
push 0x1002940
jmp 0x100c8ee
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x28]
push ecx
push 0x1c
lea ecx, [ebp - 0x50]
push ecx
push edi
push eax
push ebx
call esi
cmp eax, edi
jge 0x100c84e
cmp dword [0x1011724], edi
je 0x100c9a5
push eax
push dword [ebp - 0x20]
push 0x1002904
jmp 0x100c8ee
test byte [ebp - 0x3f], 0x20
je 0x100c889
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
lea edi, [ecx + eax]
lea eax, [ebp - 0x28]
push eax
push 0x1c
lea eax, [ebp - 0x50]
push eax
push 0
push edi
push ebx
call esi
test eax, eax
jge 0x100c887
cmp dword [0x1011724], 0
je 0x100c9a5
push eax
push edi
push 0x10028c0
jmp 0x100c8ee
xor edi, edi
push edi
push 0x2c
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, edi
jge 0x100c8c1
cmp dword [0x1011724], edi
je 0x100c9a5
push eax
push 0x1002890
push 0x1002878
push 1
call fcn.0100d7ab
add esp, 0x10
jmp 0x100c9a5
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x2c], ecx
lea eax, [ecx - 1]
not eax
and eax, dword [ebp - 0x1c]
sub eax, ecx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
cmp eax, ecx
jae 0x100c8f8
cmp dword [0x1011724], edi
je 0x100c9a5
push ecx
push eax
push 0x1002858
push 0x1002878
jmp 0x100c99b
jbe 0x100c93a
sub eax, ecx
mov dword [ebp - 0x30], eax
push 0xc000
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
cmp eax, edi
jge 0x100c93a
cmp dword [0x1011724], edi
je 0x100c93a
push eax
push dword [ebp - 0x20]
push 0x1002828
mov esi, 0x1002878
push esi
push 1
call fcn.0100d7ab
add esp, 0x14
jmp 0x100c93f
mov esi, 0x1002878
push 4
push 0x1000
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
cmp eax, edi
jge 0x100c96d
cmp dword [0x1011724], edi
je 0x100c9a5
push eax
push dword [ebp - 0x24]
push 0x10027f4
jmp 0x100c99a
lea eax, [ebp - 0x34]
push eax
push 0x104
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
cmp eax, edi
jge 0x100c9a5
cmp dword [0x1011724], edi
je 0x100c9a5
push eax
push dword [ebp - 0x24]
push 0x10027c0
push esi
push 1
call fcn.0100d7ab
add esp, 0x14
lea esp, [ebp - 0x88]
call fcn.010076c3
ret
Function at 0x100ca95
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10110ec]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
and edi, 1
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x414]
je 0x100cac8
push eax
call fcn.0100c5d3
jmp 0x100cad5
push 0x1002adc
push eax
call fcn.01009386
pop ecx
pop ecx
test byte [ebp + 0xb], 0x80
jne 0x100cae2
xor eax, eax
jmp 0x100cc4b
mov eax, dword [ebp + 8]
and eax, 0xf01f0000
cmp eax, 0x80020000
push esi
je 0x100cbea
cmp eax, 0x80030000
je 0x100cbe3
cmp eax, 0x80040000
je 0x100cbdc
cmp eax, 0x80080000
je 0x100cb33
cmp eax, 0x80100000
je 0x100cb2c
cmp eax, 0xc0030000
jne 0x100cbf1
mov esi, 0x1002ac4
jmp 0x100cbab
mov esi, 0x1002aac
jmp 0x100cbab
push ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebx, ax
cmp ebx, 0x409
je 0x100cbd5
push ebx
lea eax, [ebp - 0x414]
push eax
push 0x1002a7c
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.ntdll.dll__snwprintf
add esp, 0x14
test eax, eax
jle 0x100cbd5
test edi, edi
lea eax, [ebp - 0x20c]
push eax
je 0x100cb85
call dword [sym.imp.ntdll.dll_RtlDoesFileExists_U]
movzx eax, al
jmp 0x100cb8a
call fcn.0100ca30
test eax, eax
je 0x100cbd5
push ebx
push 0x1002a50
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.ntdll.dll__snwprintf
add esp, 0x10
lea esi, [ebp - 0x20c]
pop ebx
xor edi, edi
cmp dword [ebp - 0x418], edi
je 0x100cc15
push esi
lea eax, [ebp - 0x414]
push eax
push 0x1002a44
push dword [ebp + 0x14]
push dword [ebp - 0x418]
call sub.ntdll.dll__snwprintf
add esp, 0x14
jmp 0x100cc18
mov esi, 0x1002a2c
jmp 0x100cbaa
mov esi, 0x1002a14
jmp 0x100cbab
mov esi, 0x10029fc
jmp 0x100cbab
mov esi, 0x10029e4
jmp 0x100cbab
cmp dword [0x1011724], 0
je 0x100cc11
push dword [ebp + 8]
push 0x10029b4
push 0x1002998
push 1
call fcn.0100d7ab
add esp, 0x10
xor eax, eax
jmp 0x100cc4a
or eax, 0xffffffff
cmp eax, edi
jge 0x100cc4a
cmp dword [ebp - 0x418], edi
je 0x100cc40
cmp dword [0x1011724], edi
je 0x100cc40
push 0x1002984
push 0x1002998
push 1
call fcn.0100d7ab
add esp, 0xc
push esi
call fcn.010093aa
pop ecx
add eax, 3
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.010060f9
leave
ret 0x10

Function at 0x100cc5d
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [0x10116d4], 0xffff
mov dword [ebp - 4], esi
jne 0x100ccda
push esi
push 0xc
lea eax, [ebp - 0x10]
push eax
push 1
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, esi
jge 0x100cca9
cmp dword [0x1011724], esi
je 0x100ccda
push eax
push 0x1002b28
push 0x1002b08
push 1
call fcn.0100d7ab
add esp, 0x10
jmp 0x100ccda
movzx eax, word [ebp - 0x10]
cmp eax, esi
mov dword [0x10116d4], eax
jne 0x100ccda
push esi
push 4
lea eax, [ebp - 4]
push eax
push 0x1a
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jl 0x100ccda
cmp dword [ebp - 4], esi
je 0x100ccda
mov dword [0x10116d4], 0xa
mov eax, dword [0x10116d4]
pop esi
leave
ret
Function at 0x100cce7
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10110ec]
mov dword [ebp - 4], eax
cmp dword [0x1011698], 0xffffffff
jne 0x100cd63
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call dword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
jl 0x100cd3c
cmp dword [ebp - 0x11c], 5
jne 0x100cd59
cmp dword [ebp - 0x118], 0
jne 0x100cd59
mov dword [0x1011698], 0
jmp 0x100cd63
cmp dword [0x1011724], 0
je 0x100cd59
push 0x1002b70
push 0x1002b60
push 1
call fcn.0100d7ab
add esp, 0xc
mov dword [0x1011698], 0x100
mov eax, dword [0x1011698]
mov ecx, dword [ebp - 4]
call fcn.010060f9
leave
ret

Function at 0x100cd77
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
xor esi, esi
or dword [ebp - 4], 0xffffffff
push esi
push esi
push esi
push 1
push esi
push 0x80
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x120116
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x24], 0x1011690
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ntdll.dll_NtCreateFile]
cmp eax, esi
jl 0x100ce29
cmp dword [ebp - 4], 0xffffffff
je 0x100ce29
push 0x17
push 8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], esi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
cmp eax, esi
jge 0x100ce24
cmp dword [0x1011724], esi
je 0x100ce17
push eax
push 0x1002bc8
push 0x1002bb4
push 2
call fcn.0100d7ab
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
jmp 0x100ce50
cmp eax, 0xc0000034
je 0x100ce4d
cmp dword [0x1011724], esi
je 0x100ce4d
push eax
push 0x1002b88
push 0x1002bb4
push 2
call fcn.0100d7ab
add esp, 0x10
or eax, 0xffffffff
pop esi
leave
ret
Function at 0x100ce78
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
push edi
xor eax, eax
lea edi, [ebp - 0x20]
mov dword [ebp - 0x24], ebx
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 8], 0xc0000001
mov dword [ebp - 0xc], ebx
jne 0x100ceac
call fcn.0100cd77
mov dword [ebp - 0xc], 1
jmp 0x100ceb2
mov eax, dword [eax + 0x1b8]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x100d023
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x100d023
push esi
cmp byte [edi], bl
je 0x100cff7
push 0x1002c6c
push edi
call sub.ntdll.dll_strspn
add edi, eax
push 0x1001380
push edi
call sub.ntdll.dll_strpbrk
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x100cf02
push edi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlInitAnsiString]
xor edi, edi
jmp 0x100cf22
mov eax, esi
sub eax, edi
push 0x1001380
push esi
mov dword [ebp - 0x10], edi
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], ax
call sub.ntdll.dll_strspn
pop ecx
add eax, esi
pop ecx
mov edi, eax
cmp word [ebp - 0x14], bx
je 0x100cfc5
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x100cfcf
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x100cf6a
cmp word [eax], bx
je 0x100cf6a
push 9
push eax
call fcn.0100660a
cmp eax, ebx
pop ecx
pop ecx
je 0x100cf6a
mov word [eax], 0x20
inc eax
inc eax
jne 0x100cf4e
push ebx
lea eax, [ebp - 0x24]
push eax
movzx eax, word [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
cmp esi, ebx
jge 0x100cfc5
cmp dword [0x1011724], ebx
je 0x100cfbd
push esi
push 0x1002c38
push 0x1002c24
push 2
call fcn.0100d7ab
add esp, 0x10
cmp esi, 0xc000014b
je 0x100cff0
cmp edi, ebx
jne 0x100ceca
jmp 0x100cff7
cmp dword [0x1011724], ebx
je 0x100cff7
push dword [ebp - 8]
push 0x1002bf0
push 0x1002c24
push 2
call fcn.0100d7ab
add esp, 0x10
jmp 0x100cff7
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], ebx
pop esi
je 0x100d009
push dword [ebp - 4]
call fcn.0100ce58
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x100d019
mov ecx, dword [ebp - 4]
mov dword [eax + 0x1b8], ecx
xor eax, eax
cmp dword [ebp - 8], ebx
setge al
jmp 0x100d025
xor eax, eax
pop edi
pop ebx
leave
ret 8
Function at 0x100d11f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor eax, eax
xor ebx, ebx
mov word [ebp - 8], bx
lea edi, [ebp - 6]
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.0100e017
cmp eax, ebx
jge 0x100d165
cmp dword [0x1011724], ebx
je 0x100d1cc
push eax
push 0x1002df0
push 0x1002ddc
push 1
call fcn.0100d7ab
add esp, 0x10
jmp 0x100d1cc
push esi
push ebx
mov esi, 0x1002d60
push esi
call fcn.0100d030
mov edi, eax
cmp edi, ebx
jne 0x100d197
cmp dword [0x1011724], ebx
je 0x100d1cb
push esi
push 0x1002d30
push 0x1002ddc
push 1
call fcn.0100d7ab
add esp, 0x10
jmp 0x100d1cb
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push ebx
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push edi
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp esi, ebx
jge 0x100d1c8
cmp dword [0x1011724], ebx
je 0x100d1cb
push esi
push 0x1002d0c
jmp 0x100d186
xor ebx, ebx
inc ebx
pop esi
lea eax, [ebp - 8]
push eax
call fcn.0100e0b2
pop edi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x100d54b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov word [ebp - 8], bx
lea edi, [ebp - 6]
push 0x40
stosd dword es:[edi], eax
pop esi
cmp dword [ebp + 8], esi
mov dword [ebp - 0xc], ebx
stosw word es:[edi], ax
jne 0x100d579
push 0x10031d8
jmp 0x100d58b
cmp dword [ebp + 8], 0x80
jne 0x100d6c6
push 0x1003180
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
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], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0100cce7
or eax, 1
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, ebx
jge 0x100d5f2
cmp dword [0x1011724], ebx
je 0x100d6c1
push eax
push dword [ebp - 4]
push 0x1003158
push 0x100314c
push 2
call fcn.0100d7ab
add esp, 0x14
jmp 0x100d6c1
mov esi, 0x1003138
push esi
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x34]
push eax
push 0x100
lea eax, [ebp - 0x134]
push eax
push 2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp edi, ebx
jge 0x100d648
cmp dword [0x1011724], ebx
je 0x100d6c1
push edi
push dword [ebp - 4]
push esi
push 0x10030f8
jmp 0x100d668
cmp dword [ebp - 0x130], 4
je 0x100d671
cmp dword [0x1011724], ebx
je 0x100d6c1
push dword [ebp - 4]
push esi
push dword [ebp - 0x130]
push 0x10030c0
push 0x100314c
push 2
jmp 0x100d6b9
cmp dword [ebp - 0x128], ebx
je 0x100d680
mov dword [ebp - 0xc], 1
cmp dword [0x1011724], ebx
je 0x100d6c1
cmp dword [ebp - 0xc], ebx
mov ecx, 0x10030b8
jne 0x100d697
mov ecx, 0x10030a8
cmp dword [ebp + 8], 0x40
mov eax, 0x1003094
je 0x100d6a7
mov eax, 0x1003088
push ecx
push eax
push ebx
push 0x1003078
push 0x100314c
push 0x83
call fcn.0100d7ab
add esp, 0x18
mov eax, dword [ebp - 0xc]
jmp 0x100d6e7
cmp dword [0x1011724], ebx
je 0x100d6e5
push dword [ebp + 8]
push 0x1003058
push 0x100314c
push 2
call fcn.0100d7ab
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4