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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov eax, dword [ebp + 8]
mov dword [0x100846bc], 0x1410
mov dword [ebp - 0x30], eax
call fcn.10041080
xor ecx, ecx
mov dword [0x100846b8], 0x163b
mov edx, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
lea edx, section..data
imul esi, eax, 0xfc
mov edi, edx
add edi, esi
add edi, 0x9c
mov esi, dword [edi]
imul edi, eax, 0xfc
add edx, edi
add edx, 0x50
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x417
mov ecx, edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
jne 0x1003fff5
lea eax, [0x1004283f]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov dword [0x100846b8], 0x3bc
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], ecx
call fcn.10040ff0
mov dword [0x100846bc], 0x17c9
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.1003fbc0
mov ecx, eax
mov dword [0x100846d4], eax
mov eax, esp
mov edx, dword [ebp - 0x40]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov dword [0x100846bc], 0x1739
mov edx, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
lea edx, section..data
imul esi, eax, 0xfc
mov edi, edx
add edi, esi
add edi, 0x9c
mov esi, dword [edi]
imul edi, eax, 0xfc
mov ebx, edx
add ebx, edi
add ebx, 0x4c
mov edi, dword [ebx]
imul ebx, eax, 0xfc
add edx, ebx
add edx, 0x50
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x4c]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], edx
call fcn.100401a0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
add eax, ecx
mov edx, dword [ebp - 0x58]
add edx, 1
cmp edx, 0x417
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], edx
jne 0x100400c5
mov dword [0x100846bc], 0x22ea
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x40]
mov dword [esp + 8], ecx
call fcn.10040590
mov eax, dword [ebp - 0x4c]
add eax, 0x1c102
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov dword [ecx + 4], 0x154800
mov eax, dword [ebp - 0x4c]
add eax, 0x19a2d
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0x1ff0
mov dword [0x100846b8], 0x1434
xor eax, eax
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100403a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [0x100846b8], 0x9d2
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x100846b8], 0x2420
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1004042d
mov eax, dword [ebp - 0x14]
add esp, 0x28
pop ebp
ret
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [0x100846bc], 0xffffe35a
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jl 0x1004042d
jmp 0x10040443
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2], 0x6c
je 0x100404d5
jmp 0x1004050a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
jne 0x100403e8
mov eax, dword [ebp - 0x1c]
mov dword [0x100846b8], 0x568
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
jne 0x1004050a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov dx, word [eax + ecx*2 - 0x18]
mov word [ebp - 0x26], dx
mov ax, word [ebp - 0x26]
cmp ax, 0x6f
jne 0x1004050a
mov dword [0x100846b8], 0x23ba
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
sete dl
mov byte [ebp - 0x27], dl
mov al, byte [ebp - 0x27]
test al, 1
jne 0x100404a6
jmp 0x1004050a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1004050a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
sete dl
mov byte [ebp - 0x28], dl
mov al, byte [ebp - 0x28]
test al, 1
jne 0x1004040b
jmp 0x1004050a
mov eax, dword [0x100846bc]
add eax, 0x1815
mov dword [0x100846bc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0xe], 0x6c
jne 0x1004050a
mov dword [0x100846b8], 0x263b
mov eax, 1
mov dword [ebp - 0x14], eax
jmp 0x100403e0
mov dword [0x100846bc], 0x18b8
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x100403e0

Function at 0x10040520
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [fcn.10040520]
mov dword [0x100846b8], 0x2ba
mov dword [0x100846bc], 0xffffe8fe
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
je 0x10040572
mov eax, dword [ebp - 8]
add eax, 0xfffff000
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and eax, 0xfffff000
mov dword [0x100846b8], 0xfffff2fa
mov dword [ebp - 4], eax
jmp 0x10040543
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x10040550
mov eax, dword [ebp - 8]
add esp, 0xc
pop ebp
ret
Function at 0x10040c10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [0x100846b8]
mov dword [0x100846c0], 0
mov dword [0x100846c4], 0
mov dword [0x100846d0], 0
add edi, 0xffffe517
mov dword [0x100846bc], edi
mov edi, dword [0x100846b8]
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ebx
je 0x10040dc7
xor eax, eax
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffff5ed
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, 0x100
mov dword [0x100846bc], ecx
mov dword [0x100846b8], 0x14b6
mov ecx, dword [0x100846c0]
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
mov ecx, dword [ebp - 0x34]
idiv ecx
mov dword [0x100846c0], edx
mov esi, dword [0x100846c4]
mov edi, dword [ebp - 0x1c]
movzx edx, byte [edi + edx]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x100846c4], edx
mov dword [0x100846b8], 0x44
mov edx, dword [0x100846c0]
mov bl, byte [edi + edx]
mov byte [0x100846c8], bl
mov dword [0x100846b8], 0xe50
mov edx, dword [0x100846c4]
mov bl, byte [edi + edx]
mov edx, dword [0x100846c0]
mov byte [edi + edx], bl
mov bl, byte [0x100846c8]
mov edx, dword [0x100846c4]
mov byte [edi + edx], bl
mov edx, dword [0x100846b8]
add edx, 0xb7f
mov dword [0x100846bc], edx
mov edx, dword [0x100846c0]
movzx edx, byte [edi + edx]
mov esi, dword [0x100846c4]
movzx esi, byte [edi + esi]
add esi, edx
mov dword [0x100846bc], 0x10dd
and esi, 0xff
mov dword [0x100846d0], esi
mov edx, dword [0x100846b8]
add edx, 0xffffe052
mov dword [0x100846b8], edx
mov bl, byte [edi + esi]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
movzx ecx, byte [edx + esi]
mov dword [esp], ecx
movzx ecx, bl
mov dword [esp + 4], ecx
call fcn.10001000
mov ecx, 0xc10
mov edx, 0x1fd
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x30]
mov byte [esi + edi], al
mov dword [0x100846b8], 0xc10
add edi, 1
mov eax, dword [ebp - 0x10]
cmp edi, eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], ecx
jne 0x10040c8b
mov eax, dword [ebp - 0x24]
add eax, 0xffffdbf0
mov dword [0x100846bc], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401d0b
cmp byte [esi + ebx - 1], 0xa
je 0x401cdf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4030f8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x402640
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x10029a7
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
test eax, eax
je 0x1005306
cmp dword [ebp - 4], 0
je 0x1005319
lea eax, [ebp - 8]
push eax
call fcn.01003c62
pop ecx
test eax, eax
jne 0x100531d
push esi
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 4]
call esi
test eax, eax
je 0x10029fc
mov al, 1
pop esi
leave
ret
lea eax, [ebp - 8]
push eax
call fcn.01002a24
pop ecx
test eax, eax
jne 0x1005325
push dword [ebp - 8]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x10029f7
jmp 0x100532d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005528
call fcn.0100b355
pop ecx
pop ecx
xor al, al
leave
ret
push eax
push 0x1005490
jmp 0x1005312
push eax
push 0x1005408
jmp 0x1005341
lea eax, [ebp - 8]
push eax
call fcn.01008036
pop ecx
test eax, eax
je 0x100534f
push eax
push 0x1005368
call fcn.0100b355
pop ecx
pop ecx
xor al, al
jmp 0x10029f9
push dword [ebp - 8]
push dword [ebp - 4]
call esi
test eax, eax
setne al
jmp 0x10029f9
Function at 0x100479c
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa40
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xa30], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x21c]
call fcn.010024b3
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea eax, [ebp - 0xa20]
mov dword [ebp - 0xa2c], eax
mov eax, dword [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
mov dword [ebp - 0xa28], 0x401
push 0
push edi
mov dword [ebp - 0xa38], eax
call esi
test eax, eax
jne 0x100486d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xa34]
push eax
push 0x20019
push 0
push dword [ebp - 0x21c]
push edi
call fcn.01002171
add esp, 0x14
mov dword [ebp - 0xa40], eax
test eax, eax
jne 0x1005762
push dword [ebp - 0xa34]
call fcn.0100465a
pop ecx
test al, al
je 0x10056da
inc dword [ebp - 0xa30]
push dword [ebp - 0xa34]
call ebx
push dword [ebp - 0xa38]
push dword [ebp - 0x21c]
push dword [ebp - 0xa30]
push edi
call esi
test eax, eax
je 0x1004807
cmp eax, 0x103
jne 0x100575a
lea ecx, [ebp - 0xa2c]
call fcn.010048a9
cmp dword [ebp - 0x218], 0x105
jg 0x10057c2
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001d10
leave
ret
push dword [ebp - 0xa34]
call ebx
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0xa3c], eax
xor eax, eax
push eax
lea ecx, [ebp - 0xa3c]
push ecx
push eax
push 1
push eax
push 0x403
push eax
push 2
call fcn.010087bc
push dword [ebp - 0x21c]
push 0x1005918
push dword [ebp - 0xa28]
push dword [ebp - 0xa2c]
call fcn.01008f12
add esp, 0x30
test eax, eax
jl 0x100573b
push 0
push dword [ebp - 0xa2c]
call fcn.0100b355
pop ecx
pop ecx
push dword [ebp - 0x21c]
push edi
call fcn.0100bc53
pop ecx
pop ecx
test al, al
jne 0x100484c
push 0
push 0x10058a8
jmp 0x1005791
push eax
push 0x1005840
jmp 0x1005791
push dword [ebp - 0x21c]
push 0x10057d8
push dword [ebp - 0xa28]
push dword [ebp - 0xa2c]
call fcn.01008f12
add esp, 0x10
test eax, eax
jl 0x1005798
push dword [ebp - 0xa40]
push dword [ebp - 0xa2c]
call fcn.0100b355
pop ecx
pop ecx
lea ecx, [ebp - 0xa2c]
call fcn.010048a9
cmp dword [ebp - 0x218], 0x105
jle 0x10057bb
push dword [ebp - 0x21c]
call fcn.01008836
pop ecx
xor al, al
jmp 0x1004895
push dword [ebp - 0x21c]
call fcn.01008836
pop ecx
jmp 0x1004893

Function at 0x1004a2c
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x114
mov byte [eax], 0
lea eax, [ebp - 0x118]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x1007bbc
cmp dword [ebp - 0x114], 5
jbe 0x1007bad
push 0x1004aa8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001d10
leave
ret
jne 0x1007bbc
cmp dword [ebp - 0x110], 1
jae 0x1004a8e
push 0x1004aa8
call fcn.01004361
pop ecx
jmp 0x1004a99
Function at 0x1008851
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100fe04]
cmp eax, 0xffffffff
je 0x1008877
test eax, eax
setne al
jmp 0x10088e1
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x10088d8
cmp dword [ebp - 0x114], 5
jb 0x10088d8
and dword [ebp - 0x11c], 0
push 0
push 4
lea eax, [ebp - 0x11c]
push eax
push 0x1a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x100fe34]
test eax, eax
jl 0x10088d8
cmp dword [ebp - 0x11c], 0
je 0x10088d8
xor eax, eax
inc eax
mov dword [0x100fe04], eax
jmp 0x10088e1
and dword [0x100fe04], 0
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001d10
leave
ret

Function at 0x1008f99
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov byte [ebp - 0x205], 1
xor ebx, ebx
jmp 0x100905e
mov eax, dword [esi]
add esi, 4
push dword [esi]
mov dword [ebp - 0x20c], ebx
push eax
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.01008f12
add esp, 0x10
add esi, 4
test eax, eax
jl 0x100907b
mov eax, dword [esi]
push ebx
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x204]
add esi, 4
mov edi, dword [esi]
push eax
push 0x80000000
add esi, 4
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100904c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push ebx
push dword [ebp - 0x210]
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1009052
mov byte [ebp - 0x205], bl
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi], ebx
jne 0x1008fc2
mov al, byte [ebp - 0x205]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001d10
leave
ret
xor al, al
jmp 0x100906c

Function at 0x1009084
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov bl, 1
jmp 0x10090e9
mov eax, dword [esi]
add esi, 4
push dword [esi]
push eax
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.01008f12
add esp, 0x10
test eax, eax
jl 0x10090fe
lea eax, [ebp - 0x204]
push eax
push 0x80000000
add esi, 0xc
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, 0x3fa
je 0x10090e9
cmp eax, 2
je 0x10090e9
test eax, eax
je 0x10090e9
xor bl, bl
cmp dword [esi], 0
jne 0x10090a2
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01001d10
leave
ret
xor al, al
jmp 0x10090f0
Function at 0x10096af
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], 0x100fdf4
mov ebx, 0x1002090
push dword [ebx]
mov esi, 0x100fcd0
push 0x1007f00
push 0x28
push 0x100f470
call fcn.01008f12
add esp, 0x10
cmp eax, edi
jl 0x100983b
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax]
cmp eax, edi
je 0x1009722
push eax
push 0x28
push 0x100f420
call fcn.01008e2c
cmp eax, edi
jl 0x100983b
cmp dword [0x100fcd0], edi
je 0x1009789
lea ecx, [esi + 4]
cmp dword [ecx], edi
je 0x1009785
cmp dword [esi + 8], edi
je 0x1009785
mov eax, dword [esi]
mov esi, ecx
mov ecx, dword [esi]
push ecx
push eax
lea eax, [ebp - 0xa4]
push 0x50
push eax
add esi, 4
call fcn.01008f12
add esp, 0x10
cmp eax, edi
jl 0x100983b
lea eax, [ebp - 0xa4]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, 0x3fa
je 0x1009782
cmp eax, 2
je 0x1009782
cmp eax, edi
je 0x1009782
inc dword [ebp - 0xac]
add esi, 0xc
cmp dword [esi], edi
jne 0x100972a
add dword [ebp - 0xa8], 4
add ebx, 0x10
cmp ebx, 0x10020a0
jl 0x10096de
mov esi, 0x2001f
call fcn.01008851
movzx ebx, al
cmp ebx, edi
je 0x10097b5
mov esi, 0x2011f
lea eax, [ebp - 0xa8]
push eax
push esi
push edi
mov edi, 0x10020d0
push edi
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10097fc
test ebx, ebx
jne 0x10097df
push 0x1007edc
jmp 0x10097e4
push 0x1007ec4
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1009808
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
call fcn.010088f2
test al, al
je 0x100981c
push 0x100fd24
call fcn.01009084
pop ecx
call fcn.010088f2
test al, al
jne 0x100982e
call fcn.01008851
test al, al
je 0x1009839
push 0x100fde0
call fcn.01009084
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001d10
leave
ret
Function at 0x1009e29
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
push 0x100f9f8
push dword [0x100e014]
xor eax, eax
mov word [0x100fbfe], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1009e6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1009fb5
xor eax, eax
and dword [ebp - 0x80c], eax
push esi
mov word [0x100fbfe], ax
mov esi, 0x100fd48
cmp dword [0x100fd4c], eax
je 0x1009f91
push ebx
push edi
push 4
pop ebx
mov edi, 0x401
mov eax, dword [esi]
add esi, ebx
test eax, eax
jne 0x1009f82
mov ecx, dword [esi]
add esi, ebx
mov edx, dword [esi]
add esi, ebx
mov eax, dword [esi]
add esi, ebx
test eax, eax
je 0x1009ec6
push eax
push edx
push ecx
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.01008f12
add esp, 0x14
jmp 0x1009ed8
push edx
push ecx
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.01008f12
add esp, 0x10
xor ecx, ecx
cmp eax, ecx
jge 0x1009eec
inc dword [ebp - 0x80c]
add esi, 8
jmp 0x1009f85
push ecx
lea eax, [ebp - 0x810]
push eax
push ecx
push 0x2001f
push ecx
push ecx
push ecx
lea eax, [ebp - 0x808]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1009f19
inc dword [ebp - 0x80c]
mov eax, dword [esi]
test eax, eax
je 0x1009f71
add esi, ebx
push dword [esi]
push eax
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.01008f12
add esp, 0x10
add esi, ebx
test eax, eax
jl 0x1009f69
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x808]
push eax
push 1
push 0
push 0
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1009f74
inc dword [ebp - 0x80c]
jmp 0x1009f74
add esi, 8
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1009f85
add esi, 0x14
cmp dword [esi + 4], 0
jne 0x1009e95
pop edi
pop ebx
push 0
push 0
push 0x1000
push 0x8000000
call dword [0x100fe20]
mov eax, dword [ebp - 0x80c]
neg eax
sbb eax, eax
and eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001d10
leave
ret
Function at 0x1009fc6
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov esi, 0x100fd4c
cmp dword [0x100fd4c], ebx
je 0x100a0ac
mov edi, 0x401
mov ecx, dword [esi]
add esi, 4
mov edx, dword [esi]
add esi, 4
mov eax, dword [esi]
add esi, 4
cmp eax, ebx
je 0x100a01e
push eax
push edx
push ecx
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.01008f12
add esp, 0x14
jmp 0x100a030
push edx
push ecx
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.01008f12
add esp, 0x10
cmp eax, ebx
jl 0x100a0cf
lea eax, [ebp - 0x80c]
push eax
push 0x20008
push ebx
lea eax, [ebp - 0x808]
push eax
push 0x80000000
mov dword [ebp - 0x80c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a0a1
push 0x50
lea eax, [ebp - 0x808]
push eax
push ebx
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
jne 0x100a08f
push 0x1007d5c
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x80c], ebx
add esi, 0xc
cmp dword [esi], ebx
jne 0x1009ff6
push ebx
push ebx
push 0x1000
push 0x8000000
call dword [0x100fe20]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001d10
leave
ret
mov eax, 0x80004005
jmp 0x100a0c0