joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ab53
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1059984]
cmp eax, dword [0x105998c]
push esi
push edi
jne 0x100ac21
cmp dword [0x10190c4], 1
lea eax, [ebp - 4]
push 0
push eax
jne 0x100abae
push 0x10000
push 0x1039980
push dword [0x1059980]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100aba4
mov dword [0x1019978], 0x82
jmp 0x100ac2e
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
jmp 0x100abde
mov edi, 0x10000
push edi
mov esi, 0x1019980
push esi
push dword [0x1059980]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100ab95
push edi
push 0x1039980
push dword [ebp - 4]
push esi
push 1
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [0x1059990]
and dword [0x1059984], 0
mov dword [0x105998c], eax
mov eax, dword [ebp - 4]
add dword [0x1059994], eax
test ecx, ecx
je 0x100ac0b
mov eax, dword [0x1059994]
xor edx, edx
div ecx
cmp eax, 0x64
jbe 0x100ac0e
push 0x64
pop eax
cmp dword [0x1059998], eax
je 0x100ac21
push eax
mov dword [0x1059998], eax
call fcn.01006d62
mov eax, dword [0x1059984]
cmp eax, dword [0x105998c]
jl 0x100ac32
xor eax, eax
jmp 0x100ac49
mov ax, word [eax*2 + 0x1039980]
mov ecx, dword [ebp + 8]
mov word [ecx], ax
inc dword [0x1059984]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4

Function at 0x100accf
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push ebx
push 9
push 0x110a
push dword [0x1019060]
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp + 0xc], ebx
mov dword [0x1019978], 0x88
je 0x100ad22
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.010050e4
push eax
call fcn.0100a9b2
test eax, eax
je 0x100ad22
mov dword [0x1019978], 0x89
jmp 0x100ad82
push esi
push edi
push 1
mov edi, 0x1001bc4
push edi
call fcn.01006a26
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyW]
cmp eax, ebx
je 0x100ad79
cmp eax, 6
je 0x100ad6a
xor ecx, ecx
cmp eax, 0x522
sete cl
add ecx, 0x8d
mov dword [0x1019978], ecx
jmp 0x100ad74
mov dword [0x1019978], 0x8f
push dword [ebp + 8]
call esi
push ebx
push edi
call fcn.01006a26
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100ad8c
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1059984]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x100ae17
cmp dword [0x10190bc], 4
jne 0x100ade4
push esi
push edi
push edi
push 0x20000
mov esi, 0x1019980
push esi
push eax
push 0x1039980
push edi
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push dword [0x1059980]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop esi
je 0x100ae0d
cmp ebx, dword [ebp - 4]
jmp 0x100ae0b
push edi
lea ecx, [ebp - 4]
push ecx
add eax, eax
push eax
push 0x1039980
push dword [0x1059980]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100ae0d
mov eax, dword [0x1059984]
add eax, eax
cmp eax, dword [ebp - 4]
je 0x100ae17
mov dword [0x1019978], 0x8d
mov dword [0x1059984], edi
pop edi
pop ebx
leave
ret
Function at 0x100b1ee
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10191f4]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x1001ba0
push eax
call fcn.0100a8aa
lea ecx, [ebp - 0x210]
push ecx
push 2
xor ebx, ebx
push ebx
push ebx
push eax
mov dword [ebp - 0x210], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100b23d
mov dword [0x1019978], 0x83
jmp 0x100b42c
lea eax, [ebp - 0x208]
push eax
call fcn.0100ab53
test eax, eax
je 0x100b414
push esi
push edi
dec dword [0x1059984]
push 0x5c
call fcn.0100ac54
test eax, eax
je 0x100b26b
mov esi, 0x1001a38
jmp 0x100b279
cmp word [0x1001ba0], bx
mov esi, 0x1001ba0
je 0x100b293
xor eax, eax
mov ax, word [esi]
push eax
call fcn.0100ac54
inc esi
inc esi
test eax, eax
je 0x100b3f9
cmp word [esi], bx
jne 0x100b279
push 0x5c
call fcn.0100ac54
mov edi, eax
cmp edi, ebx
je 0x100b3f9
xor esi, esi
jmp 0x100b2cf
mov ecx, dword [ebp - 0x208]
cmp cx, 0x20
je 0x100b2e3
push ecx
call fcn.0100acac
test eax, eax
jne 0x100b2e3
cmp esi, 0xff
jae 0x100b2e1
mov word [ebp + esi*2 - 0x204], cx
inc esi
lea eax, [ebp - 0x208]
push eax
call fcn.0100ab53
test eax, eax
jne 0x100b2a8
jmp 0x100b2e3
xor edi, edi
cmp edi, ebx
je 0x100b3f9
mov word [ebp + esi*2 - 0x204], bx
call fcn.0100b11f
push 0x3d
call fcn.0100ac54
test eax, eax
je 0x100b30a
push 0x20
call fcn.0100ac54
push 0x100
push 0x40
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor eax, eax
cmp esi, ebx
setne al
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x208]
push eax
call fcn.0100ab53
test eax, eax
je 0x100b3a4
mov ebx, 0x200
cmp dword [ebp - 0x20c], 0
je 0x100b3da
push dword [ebp - 0x208]
call fcn.0100acac
test eax, eax
jne 0x100b3a2
lea eax, [ebx - 0x101]
cmp edi, eax
jb 0x100b386
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
mov dword [ebp - 0x20c], ecx
je 0x100b3da
mov esi, eax
add ebx, 0x100
mov ax, word [ebp - 0x208]
mov word [esi + edi*2], ax
lea eax, [ebp - 0x208]
push eax
inc edi
call fcn.0100ab53
test eax, eax
jne 0x100b33d
xor ebx, ebx
cmp dword [ebp - 0x20c], ebx
je 0x100b3dc
lea eax, [edi + edi]
push eax
push esi
mov word [eax + esi], bx
push 1
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
je 0x100b3e6
mov dword [0x1019978], 0x84
jmp 0x100b3e6
xor ebx, ebx
mov dword [0x1019978], 0x132
cmp esi, ebx
je 0x100b3f1
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x20c], ebx
jne 0x100b3fe
call fcn.0100b14f
lea eax, [ebp - 0x208]
push eax
call fcn.0100ab53
test eax, eax
jne 0x100b253
pop edi
pop esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01016b82
leave
ret 4
Function at 0x100ba13
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0x20
push 0x1001bf0
call fcn.01016ec0
push 0x5b
call fcn.0100b19a
push dword [ebp + 0xc]
call fcn.0100b4ba
push 0x1001be8
call fcn.0100b4ba
xor esi, esi
mov dword [ebp - 0x1c], esi
mov ebx, 0x10599c0
mov dword [ebp - 0x2c], 0x100
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x1c]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
inc dword [ebp - 0x1c]
cmp edi, esi
je 0x100bb7b
push 0xa
call fcn.0100b19a
cmp edi, 0x103
je 0x100ba8a
mov dword [0x1019978], 0x8c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea edi, [ebx + 0x100]
mov dword [ebp - 4], esi
lea eax, [edi + edi]
add eax, 3
and eax, 0xfffffffc
call fcn.01016e70
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x30], esi
or dword [ebp - 4], 0xffffffff
push dword [ebp + 0xc]
push edi
push esi
call fcn.0100fcc7
lea esi, [esi + ebx*2]
mov word [esi], 0x5c
inc esi
inc esi
xor eax, eax
mov word [esi], ax
mov dword [ebp - 0x1c], eax
mov ebx, 0xff
push ebx
push esi
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x100bb32
inc dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
push 9
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100bb23
push dword [ebp - 0x30]
push dword [ebp - 0x28]
call fcn.0100ba13
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x1019978], 0x8d
je 0x100bc4e
jmp 0x100bb2d
mov dword [0x1019978], 0x8b
push ebx
push esi
push dword [ebp - 0x1c]
push dword [ebp + 8]
call edi
test eax, eax
je 0x100bae4
cmp eax, 0x103
je 0x100bc4e
mov dword [0x1019978], 0x8c
jmp 0x100bc4e
cmp dword [ebp - 0x20], 1
je 0x100bb91
cmp dword [ebp - 0x20], 2
je 0x100bb91
cmp dword [ebp - 0x20], 7
je 0x100bb91
xor eax, eax
jmp 0x100bb94
push 2
pop eax
mov ecx, dword [ebp - 0x24]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, esi
je 0x100bc34
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push dword [ebp + 8]
call fcn.0100a0c1
test eax, eax
je 0x100bbcf
mov dword [0x1019978], 0x8d
jmp 0x100bc2b
cmp dword [ebp - 0x2c], esi
je 0x100bbdc
push ebx
call fcn.0100b4e1
jmp 0x100bbe3
push 0x40
call fcn.0100b19a
push 0x3d
call fcn.0100b19a
mov eax, dword [ebp - 0x20]
dec eax
je 0x100bc1e
sub eax, 3
jne 0x100bc10
cmp dword [ebp - 0x24], 4
jne 0x100bc10
push 0x1001abc
call fcn.0100b4ba
push 1
push dword [edi]
call fcn.0100b55c
jmp 0x100bc24
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push edi
call fcn.0100b640
jmp 0x100bc24
push edi
call fcn.0100b4e1
push 0xa
call fcn.0100b19a
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100bc3e
mov dword [0x1019978], 0x8d
cmp dword [0x1019978], 0x8d
jne 0x100ba42
lea esp, [ebp - 0x3c]
call fcn.01016efb
ret 8
Function at 0x100bcae
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x10191f4]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 9
push 0x110a
push dword [0x1019060]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, esi
mov dword [ebp - 0x258], eax
mov dword [0x1019978], 0x88
je 0x100bd1c
push esi
push ebx
lea ecx, [ebp - 0x25c]
push ecx
push eax
call fcn.010050e4
push eax
call fcn.0100a9b2
test eax, eax
je 0x100bd1c
mov dword [0x1019978], 0x89
jmp 0x100be48
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x1059980], eax
je 0x100be2e
push esi
lea ecx, [ebp - 0x260]
push ecx
push 2
push 0x1001a64
push eax
mov dword [0x1059984], esi
mov dword [0x1059988], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x1001a68
call fcn.0100b4ba
push 0x1001c04
call fcn.0100b4ba
push 0x1001aa8
call fcn.0100b4ba
push 0x1001bfc
call fcn.0100b4ba
cmp ebx, esi
je 0x100bdaf
push ebx
push 0x128
lea eax, [ebp - 0x254]
push eax
call fcn.010051cb
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x25c]
jmp 0x100be16
push dword [ebp - 0x258]
call fcn.010050e4
push 0x1001b54
mov dword [ebp - 0x258], eax
mov edi, 0x128
push edi
lea eax, [ebp - 0x254]
push eax
call fcn.010051cb
lea eax, [ebp - 0x254]
push eax
push eax
push dword [ebp - 0x258]
call fcn.0100a8aa
push eax
call fcn.0100ba13
push 0x1001b3c
push edi
lea eax, [ebp - 0x254]
push eax
call fcn.010051cb
lea eax, [ebp - 0x254]
push eax
push eax
push dword [ebp - 0x258]
call fcn.0100a8aa
push eax
call fcn.0100ba13
call fcn.0100ad8c
push dword [0x1059980]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100be38
mov dword [0x1019978], 0x8a
cmp ebx, esi
je 0x100be48
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01016b82
leave
ret 8
Function at 0x100cf7f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10191f4]
push ebx
xor ebx, ebx
cmp dword [0x10198e0], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x20c], ebx
je 0x100d0fe
push esi
mov esi, 0x10599c0
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
push esi
push dword [ebp - 0x20c]
mov edi, 0x100
push dword [ebp - 0x214]
mov dword [ebp - 0x218], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc dword [ebp - 0x20c]
test eax, eax
jne 0x100d0fc
push 0x1fa8
call fcn.0100c5d2
mov eax, dword [ebp - 0x20c]
dec eax
push eax
push 0x1001db8
lea eax, [ebp - 0x204]
push edi
push eax
call fcn.01003135
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call fcn.0100c58f
call fcn.0100c5c1
push 0x1fa9
call fcn.0100c5d2
cmp dword [ebp - 0x218], ebx
je 0x100d04c
push esi
call fcn.0100c58f
jmp 0x100d056
push 0x1fad
call fcn.0100c5d2
call fcn.0100c5c1
push dword [ebp - 0x208]
call fcn.0100c5fe
cmp dword [ebp - 0x208], 1
je 0x100d085
cmp dword [ebp - 0x208], 2
je 0x100d085
cmp dword [ebp - 0x208], 7
je 0x100d085
xor eax, eax
jmp 0x100d088
push 2
pop eax
mov ecx, dword [ebp - 0x210]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x100d0f2
lea eax, [ebp - 0x210]
push eax
push edi
lea eax, [ebp - 0x208]
push eax
push ebx
push esi
push dword [ebp - 0x214]
call fcn.0100a0c1
test eax, eax
jne 0x100d0d3
push dword [ebp - 0x208]
push dword [ebp - 0x210]
push edi
call fcn.0100cd6b
jmp 0x100d0dd
mov dword [0x10198e4], 0x92
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x10198e0], ebx
jne 0x100cfb7
jmp 0x100d0fc
mov dword [0x10198e4], 0x90
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01016b82
leave
ret 4
Function at 0x100d145
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x14
push 0x1001dc0
call fcn.01016ec0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0100d110
push dword [ebp + 8]
call fcn.0100cf7f
xor ebx, ebx
cmp dword [0x10198e4], ebx
jne 0x100d22e
mov dword [ebp - 0x1c], ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea edi, [esi + 0x100]
mov dword [ebp - 4], ebx
lea eax, [edi + edi]
add eax, 3
and eax, 0xfffffffc
call fcn.01016e70
mov dword [ebp - 0x18], esp
mov ebx, esp
mov dword [ebp - 0x24], ebx
or dword [ebp - 4], 0xffffffff
push dword [ebp + 0xc]
push edi
push ebx
call fcn.0100fcc7
lea esi, [ebx + esi*2]
mov word [esi], 0x5c
inc esi
inc esi
xor edi, edi
mov word [esi], di
call fcn.0100c5c1
jmp 0x100d203
push 0xff
push esi
push dword [ebp - 0x1c]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
inc dword [ebp - 0x1c]
test eax, eax
jne 0x100d22e
lea eax, [ebp - 0x20]
push eax
push 9
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100d203
push ebx
push dword [ebp - 0x20]
call fcn.0100d145
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x10198e0], edi
jne 0x100d1c3
jmp 0x100d22e
lea esp, [ebp - 0x30]
call fcn.01016efb
ret 8
Function at 0x100d877
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor esi, esi
cmp eax, esi
mov dword [0x101990c], eax
je 0x100d935
mov word [eax], 0xfeff
xor eax, eax
inc eax
push edi
mov dword [0x1019910], 0x2000
mov dword [0x1019914], eax
mov dword [0x10198e0], eax
mov dword [0x10198e4], esi
mov dword [0x1019918], 0x1001e04
call fcn.0100d23e
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100d91e
push esi
lea eax, [ebp + 8]
push eax
mov eax, dword [0x1019914]
add eax, eax
push eax
push dword [0x101990c]
mov dword [ebp + 8], esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100d915
mov dword [0x10198e4], 0x8d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100d928
mov dword [0x10198e4], 0x8a
push dword [0x101990c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
push dword [0x10198e4]
call fcn.0100c497
pop esi
pop ebp
ret 8
Function at 0x100dae7
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x10191f4]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
inc ebx
mov dword [0x1019428], edi
cmp dword [esi + 0x20], edi
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x208], ebx
je 0x100dcb5
lea eax, [ebp - 0x204]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x250]
push eax
push dword [esi + 0x10]
mov dword [ebp - 0x248], edi
push 0x1073
push dword [0x1019064]
mov dword [ebp - 0x238], 0x100
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x20]
cmp word [eax], di
jne 0x100db77
mov dword [ebp - 0x210], 0x4b
mov dword [ebp - 0x208], edi
jmp 0x100dc8e
lea ecx, [ebp - 0x218]
push ecx
push edi
push ecx
push edi
push eax
push dword [0x1019078]
call fcn.0100a0c1
cmp eax, 2
mov dword [ebp - 0x208], edi
je 0x100dba7
mov dword [ebp - 0x210], 0x4a
jmp 0x100dc8e
lea eax, [ebp - 0x214]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x204]
push eax
push dword [0x1019078]
call fcn.0100a0c1
cmp dword [ebp - 0x20c], ebx
je 0x100dbe7
cmp dword [ebp - 0x20c], 2
je 0x100dbe7
cmp dword [ebp - 0x20c], 7
je 0x100dbe7
xor eax, eax
jmp 0x100dbea
push 2
pop eax
mov ecx, dword [ebp - 0x214]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
je 0x100dc7c
lea eax, [ebp - 0x214]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x204]
push eax
push dword [0x1019078]
mov dword [ebp - 0x210], 0x49
call fcn.0100a0c1
test eax, eax
jne 0x100dc73
push dword [ebp - 0x214]
push ebx
push dword [ebp - 0x20c]
push edi
push dword [esi + 0x20]
push dword [0x1019078]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100dc73
lea eax, [ebp - 0x204]
push eax
push dword [0x1019078]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x100dc73
mov dword [ebp - 0x208], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100dc86
mov dword [ebp - 0x210], 0x76
cmp dword [ebp - 0x208], edi
jne 0x100dcb5
lea eax, [ebp - 0x204]
push eax
movzx eax, word [ebp - 0x210]
push 0x10
push 0x48
push eax
push dword [ebp - 0x21c]
push dword [0x1019510]
call fcn.01009ee7
add esp, 0x18
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x208]
pop edi
pop esi
pop ebx
call fcn.01016b82
leave
ret 8
Function at 0x100e3f4
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x10191f4]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [0x1019078], edi
mov dword [ebp - 0x218], eax
je 0x100e5bf
push ebx
mov dword [ebp - 0x20c], 1
push esi
push dword [ebp - 0x20c]
lea eax, [ebp - 0x204]
push dword [0x10190a0]
push 0x100
push eax
call fcn.01003135
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
push edi
push eax
push edi
lea eax, [ebp - 0x204]
push eax
push dword [0x1019078]
call fcn.0100a0c1
test eax, eax
mov ebx, dword [ebp + 0xc]
push 3
pop esi
jne 0x100e4b6
inc dword [ebp - 0x20c]
cmp dword [ebp - 0x20c], 0x64
jb 0x100e42b
cmp dword [ebp - 0x20c], 0x64
jne 0x100e525
mov eax, 0xaa
push 0x10
movzx eax, ax
push 0xa8
push eax
push dword [ebp - 0x218]
push dword [0x1019510]
call fcn.01009ee7
add esp, 0x14
jmp 0x100e5bd
cmp ebx, edi
jbe 0x100e4de
push 2
pop ecx
cmp ebx, ecx
jbe 0x100e4d1
cmp ebx, esi
je 0x100e51d
push 4
pop eax
cmp ebx, eax
je 0x100e50f
cmp ebx, 7
jne 0x100e4de
mov word [ebp - 0x210], di
mov dword [ebp - 0x208], ecx
push dword [ebp - 0x208]
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
lea eax, [ebp - 0x204]
push eax
push dword [0x1019078]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100e480
mov eax, 0xa9
jmp 0x100e492
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x208], eax
jmp 0x100e4de
mov dword [ebp - 0x208], edi
jmp 0x100e4de
push edi
push edi
push 0x1004
push dword [0x1019064]
mov dword [ebp - 0x24c], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x204]
mov dword [ebp - 0x238], eax
call esi
cmp ebx, 1
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], edi
je 0x100e571
cmp ebx, 2
je 0x100e571
cmp ebx, 7
mov dword [ebp - 0x230], 5
jne 0x100e57b
mov dword [ebp - 0x230], 4
lea eax, [ebp - 0x24c]
push eax
push edi
push 0x104d
push dword [0x1019064]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x100e5bd
push ebx
push dword [ebp - 0x208]
lea eax, [ebp - 0x210]
push eax
push esi
push dword [0x1019064]
call fcn.0100e176
push esi
push dword [0x1019064]
call fcn.0100dd3c
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01016b82
leave
ret 8
Function at 0x100e952
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x10191f4]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov edi, dword [0x1019064]
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x1032
push edi
mov dword [ebp - 0x20c], eax
call esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 0x34
push 0x34
movzx eax, ax
push 0x33
push eax
push dword [ebp - 0x20c]
push dword [0x1019510]
call fcn.01009ee7
add esp, 0x14
cmp eax, 6
jne 0x100eaa3
push ebx
push ebx
push 0xb
push edi
call esi
or dword [ebp - 0x208], 0xffffffff
push 2
mov dword [ebp - 0x210], ebx
push 0xffffffffffffffff
jmp 0x100ea64
test ebx, ebx
je 0x100ea09
and dword [ebp - 0x23c], 0
lea eax, [ebp - 0x204]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x244]
push eax
push ebx
push 0x1073
push edi
mov dword [ebp - 0x22c], 0x100
call esi
jmp 0x100ea11
and word [ebp - 0x204], 0
lea eax, [ebp - 0x204]
push eax
push dword [0x1019078]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x100ea4c
cmp ebx, eax
je 0x100ea38
push eax
push ebx
push 0x1008
push edi
call esi
jmp 0x100ea5c
push 1
push eax
push eax
push eax
push edi
call fcn.0100e176
and dword [ebp - 0x208], 0
jmp 0x100ea5c
mov dword [ebp - 0x210], 1
mov dword [ebp - 0x208], ebx
push 2
push dword [ebp - 0x208]
push 0x100c
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100e9d6
push 0
push 1
push 0xb
push edi
call esi
cmp dword [ebp - 0x210], 0
je 0x100eaa3
push 0x10
push 0x58
push 0x59
push dword [ebp - 0x20c]
push dword [0x1019510]
call fcn.01009ee7
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01016b82
leave
ret 4
Function at 0x100edd6
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0
push 0
push 0x1032
push dword [0x1019064]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jbe 0x100ee01
cmp eax, 1
je 0x100ee05
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
pop ebp
ret 8
pop ebp
jmp fcn.0100e5d1