joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004f19
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.01016ac0
mov eax, dword [0x1019214]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 0x104c], eax
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x1005169
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
test eax, eax
mov dword [ebp - 0x100c], eax
je 0x1005169
push ebx
push esi
push edi
push 0xc
pop ecx
push 0x30
xor eax, eax
pop esi
lea edi, [ebp - 0x1048]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1048]
push eax
push 0
push 0x500
push dword [ebp - 0x100c]
mov dword [ebp - 0x1048], esi
mov dword [ebp - 0x1044], 1
mov dword [ebp - 0x103c], 3
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov ebx, 0x400
push ebx
push 2
push dword [ebp - 0x100c]
call dword [sym.imp.USER32.dll_DeleteMenu]
test eax, eax
jne 0x1004fac
lea eax, [ebp - 0x1010]
push eax
push 0x10016f0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x100515a
lea ecx, [ebp - 0x1014]
push ecx
lea ecx, [ebp - 0x1004]
push ecx
lea ecx, [ebp - 0x1050]
push ecx
push eax
lea ecx, [ebp - 0x1018]
push ecx
lea ecx, [ebp - 0x804]
push ecx
mov dword [ebp - 0x1008], eax
push eax
jmp 0x100512e
cmp dword [ebp - 0x1008], 0
jne 0x1005092
push 0xc
pop ecx
xor eax, eax
lea edi, [ebp - 0x1048]
rep stosd dword es:[edi], eax
and dword [ebp - 0x103c], eax
lea eax, [ebp - 0x1048]
push eax
push 0
push 0x500
push dword [ebp - 0x100c]
mov dword [ebp - 0x1048], esi
mov dword [ebp - 0x1044], 1
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push 0xc
pop ecx
xor eax, eax
lea edi, [ebp - 0x1048]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1048]
push eax
push 2
push 0xffffffffffffffff
push dword [ebp - 0x100c]
mov dword [ebp - 0x1048], esi
mov dword [ebp - 0x1044], 0x10
mov dword [ebp - 0x1040], 0x800
call dword [sym.imp.USER32.dll_InsertMenuItemW]
push 0xc
xor eax, eax
pop ecx
lea edi, [ebp - 0x1048]
rep stosd dword es:[edi], eax
and dword [ebp - 0x1040], eax
mov edi, dword [ebp - 0x1008]
and dword [ebp - 0x103c], 0
lea eax, [ebp - 0x804]
add edi, 0x502
push eax
mov dword [ebp - 0x1048], esi
mov dword [ebp - 0x1044], 0x13
mov dword [ebp - 0x1038], edi
mov dword [ebp - 0x1024], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x1020], eax
lea eax, [ebp - 0x1048]
push eax
push 0
push edi
push dword [ebp - 0x100c]
call dword [sym.imp.USER32.dll_InsertMenuItemW]
inc dword [ebp - 0x1008]
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x1050]
push eax
push 0
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x1008]
push dword [ebp - 0x1010]
mov dword [ebp - 0x1018], ebx
mov dword [ebp - 0x1014], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x100500e
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x104c]
call dword [sym.imp.USER32.dll_DrawMenuBar]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.010167d4
leave
ret 8
Function at 0x10054f6
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push esi
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xe
call esi
push 0xd
mov dword [0x10596a4], eax
call esi
push 8
mov dword [0x10596a8], eax
call esi
push 5
mov dword [0x10596ac], eax
call esi
push eax
push dword [0x1019094]
mov dword [0x10596b0], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
push dword [0x10596b0]
push 0
push 0x1001
push dword [0x1019084]
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret

Function at 0x100566d
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x1019214]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 8
pop ecx
mov dword [ebp - 0x438], eax
xor eax, eax
push 0
mov word [ebp - 0x28], 0x5c
mov word [ebp - 0x26], 0x5c
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
push 9
lea eax, [ebp - 0x22c]
mov edi, 0x110a
push edi
push dword [0x1019080]
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x430]
mov dword [ebp - 0x440], eax
call esi
push eax
push 3
push edi
push dword [0x1019080]
mov dword [ebp - 0x434], eax
call esi
push dword [ebp - 0x434]
mov dword [ebp - 0x43c], eax
call fcn.01005586
mov ebx, eax
push 0x101
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x434]
call fcn.01008375
xor eax, eax
cmp ebx, dword [0x10190d8]
setne al
test eax, eax
mov dword [ebp - 0x448], eax
je 0x1005731
push 0x10
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.01008375
jmp 0x100574c
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x44c], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp dword [ebp - 0x43c], ebx
jne 0x1005764
and dword [ebp - 0x444], 0
and dword [ebp - 0x440], 0
jmp 0x1005793
push dword [ebp - 0x43c]
push 3
push edi
push dword [0x1019080]
call esi
cmp eax, ebx
je 0x100575b
push 0
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x43c]
push dword [0x1019080]
call fcn.010080e7
push dword [ebp - 0x434]
call fcn.010055b5
lea ecx, [ebp - 0x450]
push ecx
push dword [ebp - 0x438]
push 0
push eax
push dword [ebp - 0x448]
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x440]
push dword [ebp - 0x444]
call fcn.01010211
test eax, eax
pop edi
pop esi
pop ebx
jne 0x10057f6
push dword [ebp - 0x450]
push dword [ebp - 0x438]
call dword [sym.imp.ACLUI.dll_EditSecurity]
push dword [0x1019080]
call fcn.010089e4
jmp 0x1005818
push 0
push 0x10
push 0x1b58
push 0x1b8c
push dword [ebp - 0x438]
push dword [0x1019530]
call fcn.01009e27
add esp, 0x18
mov ecx, dword [ebp - 4]
call fcn.010167d4
leave
ret 4
Function at 0x100873d
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x1019214]
push esi
push edi
mov edi, dword [ebp + 8]
push 1
lea ecx, [ebp - 0x404]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ecx
push eax
push dword [0x1019080]
call fcn.010080e7
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea esi, [eax + eax + 2]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10087d8
push ebx
push esi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x10087d1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov edi, eax
mov eax, ecx
shr ecx, 2
lea esi, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.010167d4
leave
ret 8

Function at 0x10087eb
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1019214]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push 3
push 0x110a
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x1008825
inc eax
jmp 0x10088f6
push esi
xor esi, esi
push esi
lea eax, [ebp - 0x204]
push eax
push edi
push ebx
call fcn.010080e7
lea ecx, [ebp - 0x208]
push ecx
push 8
push esi
lea ecx, [ebp - 0x204]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100885a
xor eax, eax
jmp 0x10088f5
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, 0xff
sub edi, eax
push edi
lea eax, [ebp - 0x204]
push eax
mov dword [ebp - 0x20c], esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x10088c6
inc dword [ebp - 0x20c]
push 0
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
call fcn.0100823b
push eax
lea eax, [ebp - 0x204]
push eax
push 0xffff0001
push dword [ebp - 0x210]
push ebx
call fcn.010081e3
push edi
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x208]
call esi
test eax, eax
je 0x1008885
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x210]
push 0
push 0x1113
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.010167d4
leave
ret 8
Function at 0x100b12e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1019214]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x1001b90
push eax
call fcn.0100a7ea
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 0x100b17d
mov dword [0x1019678], 0x83
jmp 0x100b36c
lea eax, [ebp - 0x208]
push eax
call fcn.0100aa93
test eax, eax
je 0x100b354
push esi
push edi
dec dword [0x1059684]
push 0x5c
call fcn.0100ab94
test eax, eax
je 0x100b1ab
mov esi, 0x1001a28
jmp 0x100b1b9
cmp word [0x1001b90], bx
mov esi, 0x1001b90
je 0x100b1d3
xor eax, eax
mov ax, word [esi]
push eax
call fcn.0100ab94
inc esi
inc esi
test eax, eax
je 0x100b339
cmp word [esi], bx
jne 0x100b1b9
push 0x5c
call fcn.0100ab94
mov edi, eax
cmp edi, ebx
je 0x100b339
xor esi, esi
jmp 0x100b20f
mov ecx, dword [ebp - 0x208]
cmp cx, 0x20
je 0x100b223
push ecx
call fcn.0100abec
test eax, eax
jne 0x100b223
cmp esi, 0xff
jae 0x100b221
mov word [ebp + esi*2 - 0x204], cx
inc esi
lea eax, [ebp - 0x208]
push eax
call fcn.0100aa93
test eax, eax
jne 0x100b1e8
jmp 0x100b223
xor edi, edi
cmp edi, ebx
je 0x100b339
mov word [ebp + esi*2 - 0x204], bx
call fcn.0100b05f
push 0x3d
call fcn.0100ab94
test eax, eax
je 0x100b24a
push 0x20
call fcn.0100ab94
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.0100aa93
test eax, eax
je 0x100b2e4
mov ebx, 0x200
cmp dword [ebp - 0x20c], 0
je 0x100b31a
push dword [ebp - 0x208]
call fcn.0100abec
test eax, eax
jne 0x100b2e2
lea eax, [ebx - 0x101]
cmp edi, eax
jb 0x100b2c6
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 0x100b31a
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.0100aa93
test eax, eax
jne 0x100b27d
xor ebx, ebx
cmp dword [ebp - 0x20c], ebx
je 0x100b31c
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 0x100b326
mov dword [0x1019678], 0x84
jmp 0x100b326
xor ebx, ebx
mov dword [0x1019678], 0x132
cmp esi, ebx
je 0x100b331
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x20c], ebx
jne 0x100b33e
call fcn.0100b08f
lea eax, [ebp - 0x208]
push eax
call fcn.0100aa93
test eax, eax
jne 0x100b193
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.010167d4
leave
ret 4
Function at 0x100b953
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x5b
call fcn.0100b0da
push dword [ebp + 0xc]
call fcn.0100b3fa
push 0x1001bd8
call fcn.0100b3fa
lea eax, [ebp - 0xc]
push eax
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
mov esi, 0x10596c0
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 8], 1
jmp 0x100baa2
cmp dword [ebp - 4], 1
je 0x100b9c0
cmp dword [ebp - 4], 2
je 0x100b9c0
cmp dword [ebp - 4], 7
je 0x100b9c0
xor eax, eax
jmp 0x100b9c3
push 2
pop eax
mov ecx, dword [ebp - 0xc]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
je 0x100ba63
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp + 8]
call fcn.0100a001
test eax, eax
je 0x100b9fe
mov dword [0x1019678], 0x8d
jmp 0x100ba5a
cmp dword [ebp - 0x10], edi
je 0x100ba0b
push esi
call fcn.0100b421
jmp 0x100ba12
push 0x40
call fcn.0100b0da
push 0x3d
call fcn.0100b0da
mov eax, dword [ebp - 4]
dec eax
je 0x100ba4d
sub eax, 3
jne 0x100ba3f
cmp dword [ebp - 0xc], 4
jne 0x100ba3f
push 0x1001aac
call fcn.0100b3fa
push 1
push dword [ebx]
call fcn.0100b49c
jmp 0x100ba53
push dword [ebp - 0xc]
push dword [ebp - 4]
push ebx
call fcn.0100b580
jmp 0x100ba53
push ebx
call fcn.0100b421
push 0xa
call fcn.0100b0da
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100ba6d
mov dword [0x1019678], 0x8d
cmp dword [0x1019678], 0x8d
je 0x100bb75
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x10], 0x100
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc dword [ebp - 8]
mov ebx, eax
cmp ebx, edi
je 0x100b9aa
push 0xa
call fcn.0100b0da
cmp ebx, 0x103
je 0x100bac5
mov dword [0x1019678], 0x8c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + esi + 0x200]
add eax, 3
and eax, 0xfffffffc
call fcn.01016ac0
mov ebx, esp
push dword [ebp + 0xc]
mov dword [ebp - 0x18], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea esi, [ebx + esi*2]
mov word [esi], 0x5c
inc esi
mov ebx, 0xff
inc esi
push ebx
push esi
mov word [esi], di
mov dword [ebp - 8], edi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x100bb5b
inc dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
push 9
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100bb4c
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.0100b953
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x1019678], 0x8d
je 0x100bb75
jmp 0x100bb56
mov dword [0x1019678], 0x8b
push ebx
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call edi
test eax, eax
je 0x100bb11
cmp eax, 0x103
je 0x100bb75
mov dword [0x1019678], 0x8c
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100bbd4
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x1019214]
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 [0x1019080]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, esi
mov dword [ebp - 0x258], eax
mov dword [0x1019678], 0x88
je 0x100bc42
push esi
push ebx
lea ecx, [ebp - 0x25c]
push ecx
push eax
call fcn.01005586
push eax
call fcn.0100a8f2
test eax, eax
je 0x100bc42
mov dword [0x1019678], 0x89
jmp 0x100bd63
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 [0x1059680], eax
je 0x100bd49
push esi
lea ecx, [ebp - 0x260]
push ecx
push 2
push 0x1001a54
push eax
mov dword [0x1059684], esi
mov dword [0x1059688], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x1001a58
call fcn.0100b3fa
push 0x1001be8
call fcn.0100b3fa
push 0x1001a98
call fcn.0100b3fa
push 0x1001be0
call fcn.0100b3fa
cmp ebx, esi
je 0x100bcd1
push ebx
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x25c]
jmp 0x100bd31
push dword [ebp - 0x258]
call fcn.01005586
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x258], eax
push 0x1001b44
lea eax, [ebp - 0x254]
push eax
call edi
lea eax, [ebp - 0x254]
push eax
push eax
push dword [ebp - 0x258]
call fcn.0100a7ea
push eax
call fcn.0100b953
push 0x1001b2c
lea eax, [ebp - 0x254]
push eax
call edi
lea eax, [ebp - 0x254]
push eax
push eax
push dword [ebp - 0x258]
call fcn.0100a7ea
push eax
call fcn.0100b953
call fcn.0100accc
push dword [0x1059680]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100bd53
mov dword [0x1019678], 0x8a
cmp ebx, esi
je 0x100bd63
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010167d4
leave
ret 8
Function at 0x100ce87
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1019214]
push ebx
xor ebx, ebx
cmp dword [0x10195e0], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x20c], ebx
je 0x100d005
push esi
mov esi, 0x10596c0
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 dword [ebp - 0x218], 0x100
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc dword [ebp - 0x20c]
test eax, eax
jne 0x100d003
push 0x1fa8
call fcn.0100c4de
mov eax, dword [ebp - 0x20c]
dec eax
push eax
lea eax, [ebp - 0x204]
push 0x1001da0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
call fcn.0100c49b
call fcn.0100c4cd
push 0x1fa9
call fcn.0100c4de
cmp dword [ebp - 0x218], ebx
je 0x100cf53
push esi
call fcn.0100c49b
jmp 0x100cf5d
push 0x1fad
call fcn.0100c4de
call fcn.0100c4cd
push dword [ebp - 0x208]
call fcn.0100c50a
cmp dword [ebp - 0x208], 1
je 0x100cf8c
cmp dword [ebp - 0x208], 2
je 0x100cf8c
cmp dword [ebp - 0x208], 7
je 0x100cf8c
xor eax, eax
jmp 0x100cf8f
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 0x100cff9
lea eax, [ebp - 0x210]
push eax
push edi
lea eax, [ebp - 0x208]
push eax
push ebx
push esi
push dword [ebp - 0x214]
call fcn.0100a001
test eax, eax
jne 0x100cfda
push dword [ebp - 0x208]
push dword [ebp - 0x210]
push edi
call fcn.0100cc74
jmp 0x100cfe4
mov dword [0x10195e4], 0x92
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x10195e0], ebx
jne 0x100cebf
jmp 0x100d003
mov dword [0x10195e4], 0x90
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.010167d4
leave
ret 4

Function at 0x100d04c
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0100d017
push dword [ebp + 8]
call fcn.0100ce87
xor ebx, ebx
cmp dword [0x10195e4], ebx
jne 0x100d0ff
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + esi + 0x200]
add eax, 3
and eax, 0xfffffffc
call fcn.01016ac0
mov edi, esp
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea esi, [edi + esi*2]
mov word [esi], 0x5c
inc esi
inc esi
mov word [esi], bx
call fcn.0100c4cd
jmp 0x100d0f7
push 0xff
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
inc dword [ebp - 4]
test eax, eax
jne 0x100d0ff
lea eax, [ebp - 8]
push eax
push 9
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100d0f7
push edi
push dword [ebp - 8]
call fcn.0100d04c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x10195e0], ebx
jne 0x100d0b7
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100d8cf
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x1019214]
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 [0x1019448], edi
cmp dword [esi + 0x20], edi
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x208], ebx
je 0x100da9d
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 [0x1019084]
mov dword [ebp - 0x238], 0x100
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x20]
cmp word [eax], di
jne 0x100d95f
mov dword [ebp - 0x210], 0x4b
mov dword [ebp - 0x208], edi
jmp 0x100da76
lea ecx, [ebp - 0x218]
push ecx
push edi
push ecx
push edi
push eax
push dword [0x1019098]
call fcn.0100a001
cmp eax, 2
mov dword [ebp - 0x208], edi
je 0x100d98f
mov dword [ebp - 0x210], 0x4a
jmp 0x100da76
lea eax, [ebp - 0x214]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x204]
push eax
push dword [0x1019098]
call fcn.0100a001
cmp dword [ebp - 0x20c], ebx
je 0x100d9cf
cmp dword [ebp - 0x20c], 2
je 0x100d9cf
cmp dword [ebp - 0x20c], 7
je 0x100d9cf
xor eax, eax
jmp 0x100d9d2
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 0x100da64
lea eax, [ebp - 0x214]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x204]
push eax
push dword [0x1019098]
mov dword [ebp - 0x210], 0x49
call fcn.0100a001
test eax, eax
jne 0x100da5b
push dword [ebp - 0x214]
push ebx
push dword [ebp - 0x20c]
push edi
push dword [esi + 0x20]
push dword [0x1019098]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100da5b
lea eax, [ebp - 0x204]
push eax
push dword [0x1019098]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x100da5b
mov dword [ebp - 0x208], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100da6e
mov dword [ebp - 0x210], 0x76
cmp dword [ebp - 0x208], edi
jne 0x100da9d
lea eax, [ebp - 0x204]
push eax
movzx eax, word [ebp - 0x210]
push 0x10
push 0x48
push eax
push dword [ebp - 0x21c]
push dword [0x1019530]
call fcn.01009e27
add esp, 0x18
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x208]
pop edi
pop esi
pop ebx
call fcn.010167d4
leave
ret 8