joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1083326
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x10b1ad4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor edi, edi
cmp dword [0x10b33dc], edi
jne 0x1083483
push 0x114
xor ebx, ebx
lea eax, [ebp - 0x138]
push edi
inc ebx
push eax
mov dword [0x10b33dc], ebx
call fcn.0108b020
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
mov dword [ebp - 0x138], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1083396
push 0x1002654
push edi
call fcn.01084443
pop ecx
pop ecx
jmp 0x1083483
cmp dword [ebp - 0x134], 5
jne 0x10833c9
cmp dword [ebp - 0x130], edi
jne 0x10833b8
mov dword [0x10b33dc], 2
push 0x1002610
jmp 0x10833e1
mov dword [0x10b33dc], 3
push 0x10025d0
jmp 0x10833e1
cmp dword [ebp - 0x134], 6
jb 0x10833ea
mov dword [0x10b33dc], 4
push 0x1002578
push 0xe
call fcn.01084443
pop ecx
pop ecx
lea eax, [ebp - 0x13c]
push eax
push 0x1002518
push 0x80000002
mov dword [ebp - 0x13c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x13c], edi
je 0x1083483
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x24], 0
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x140]
push eax
push 0
push 0x10024f4
push dword [ebp - 0x13c]
mov dword [ebp - 0x144], 0x20
mov dword [ebp - 0x140], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1083477
lea eax, [ebp - 0x24]
push eax
call fcn.0108b0c6
mov dword [0x10b33e0], eax
lea eax, [ebp - 0x20]
push eax
call fcn.0108b0c6
pop ecx
pop ecx
mov dword [0x10b33e4], eax
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [0x10b33dc]
pop edi
xor ecx, ebp
pop ebx
call fcn.0108afd3
leave
ret

Function at 0x108353d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, 2
setne cl
cmp eax, 4
mov dword [0x10b31f4], eax
mov dword [0x10b31f8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [0x10b31fc], ecx
mov ecx, dword [ebp + 0x10]
mov dword [0x10b3208], ecx
je 0x1083586
cmp eax, 1
je 0x1083586
mov eax, dword [0x10b08a8]
inc dword [0x10b08a8]
mov dword [0x10b3204], eax
jmp 0x108358d
and dword [0x10b3204], 0
push esi
push 0x10b31f0
push dword [0x10b2fec]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov esi, eax
test esi, esi
jne 0x10835b0
push 0x1002710
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x1084120
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10b1ad4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp byte [0x10b38b0], bl
push esi
mov esi, dword [ebp + 8]
je 0x108419c
push 2
push ebx
push ebx
push dword [0x10b3470]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x1084156
sub eax, ecx
push ebx
sar eax, 1
lea ecx, [ebp - 0x1c]
push ecx
add eax, eax
push eax
push esi
push dword [0x10b3470]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
push ebx
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push dword [0x10b3470]
mov word [ebp - 0x18], 0xd
mov word [ebp - 0x16], 0xa
call esi
jmp 0x10841a3
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0108afd3
leave
ret 4

Function at 0x10842e9
Capabilities:
Query or enumerate registry value
Set registry value
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
mov esi, 0x10b3478
push esi
lea eax, [ebp - 4]
push eax
push 0
mov ebx, 0x1002b8c
push ebx
push dword [ebp + 8]
mov edi, 0x104
mov dword [ebp - 8], edi
mov dword [ebp - 4], 4
mov byte [0x10b38b0], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10843fb
cmp dword [ebp - 4], 1
jne 0x10843fb
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1084340
sub eax, edx
sar eax, 1
je 0x1084383
push 0
push 0x80000080
push 2
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x10b3470], eax
je 0x1084437
mov byte [0x10b38b0], 1
jmp 0x1084437
push 0x1002b50
push edi
push esi
call fcn.0108b6e6
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0xc
push 0
push 0x80000080
push 4
push 0
push 3
mov ebx, 0x40000000
push ebx
push esi
call edi
mov dword [0x10b3470], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10843d1
push eax
push 0x80000080
push 2
push eax
push 3
push ebx
push esi
call edi
mov dword [0x10b3470], eax
mov eax, dword [0x10b3470]
cmp eax, 0xffffffff
je 0x1084437
push 0
lea ecx, [ebp - 0xc]
push ecx
push 4
lea ecx, [ebp + 8]
push ecx
push eax
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], 0xfe
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1084377
push 0x1002734
push edi
push esi
call fcn.0108b6e6
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108440f
sub eax, edx
sar eax, 1
add eax, 2
push eax
push esi
push 1
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [0x10b38b0], 0
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10846c2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x108471c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x108470d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1084709
cmp esi, eax
jae 0x108470d
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10846fb
cmp esi, eax
jb 0x1084711
xor eax, eax
jmp 0x108471b
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x1086cbc
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
xor edi, edi
push dword [esi]
mov dword [ebp - 8], edi
push 0x10049d8
push 0x1d
mov dword [ebp - 4], edi
call fcn.01084443
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x1002774
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 4], edi
je 0x1086d9f
cmp dword [ebp + 8], edi
je 0x1086d3d
push 4
push esi
push 4
push edi
push 0x10049c0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
je 0x1086d26
push eax
push 0x1004980
jmp 0x1086d8a
push 0x1004950
push 0x1d
call fcn.01084443
pop ecx
pop ecx
mov dword [ebp - 8], 1
jmp 0x1086d94
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push edi
push edi
push 0x10049c0
push dword [ebp - 4]
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x1086d84
cmp dword [ebp + 8], edi
je 0x1086d84
push dword [ebp + 8]
push 0x1004930
push edi
call fcn.01084443
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov dword [ebp - 8], 1
jmp 0x1086d91
push eax
push 0x10048f4
push 0x1d
call fcn.01084443
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1086daf
push eax
push 0x10048b0
push 0x1d
call fcn.01084443
add esp, 0xc
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 8
Function at 0x1087278
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
mov esi, ecx
push edi
xor edi, edi
push 0x1005088
push edi
push edi
push edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], 1
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
call ebx
push 0x1005070
push edi
push edi
push edi
mov dword [esi + 0x14], eax
call ebx
push 0x1005054
push edi
push edi
push edi
mov dword [esi + 0x18], eax
call ebx
push 0x1005034
push edi
push edi
push edi
mov dword [esi + 0x1c], eax
call ebx
push 0x1005014
push edi
push edi
push edi
mov dword [esi + 0x20], eax
call ebx
xor ebx, ebx
inc ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x34], ebx
cmp dword [0x10b3414], edi
je 0x10873a1
push 0x1004fe8
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x10b33c0], eax
add eax, 0xffff4000
cmp eax, 0x3fff
ja 0x1087359
push 0x1004f50
push edi
call fcn.01084443
pop ecx
pop ecx
jmp 0x108736e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1004ea0
push edi
call fcn.01084443
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.01086cbc
cmp dword [ebp - 4], edi
je 0x1087399
push dword [ebp - 4]
push 0x1004e68
push edi
call fcn.01084443
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [esi + 0x6c], eax
cmp dword [0x10b3414], edi
jne 0x10873ad
cmp dword [0x10b3410], edi
je 0x108744b
cmp dword [0x10b33e0], 6
jne 0x108744b
cmp dword [0x10b33e4], ebx
jne 0x108744b
cmp dword [0x10b38b4], edi
jne 0x108744b
push 0x1004e18
push 0x1d
call fcn.01084443
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push 0x1002bd8
push 0x80000002
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 4], edi
je 0x1087427
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x1004df0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1087427
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.01086e7b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x40]
cmp eax, edi
je 0x108744b
push edi
push edi
push 0x1004de0
call eax
mov dword [0x10b38b4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1087684
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
push 0x10051e4
push 0x1d
call fcn.01084443
add esp, 0xc
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 0x1002bd8
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 8], ebx
je 0x10876fc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x1004df0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10876f3
mov eax, 0x80070006
jmp 0x10877da
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov ecx, esi
call fcn.01086e7b
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call edi
cmp dword [esi + 0x5c], ebx
je 0x1087724
push ebx
push ebx
push 0x1004de0
call dword [esi + 0x40]
push 0xa
mov dword [ebp - 4], eax
call edi
cmp dword [0x10b3410], ebx
pop edi
je 0x108774b
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x10877c5
cmp dword [ebp + 8], ebx
push 0xffffffffffffffff
je 0x1087743
push 1
jmp 0x1087744
push ebx
push dword [ebp - 4]
call eax
jmp 0x10877c5
mov eax, dword [esi + 0x48]
or dword [ebp - 0x10], 0xffffffff
cmp eax, ebx
mov dword [ebp - 0xc], ebx
je 0x1087797
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 4]
call eax
cmp al, bl
je 0x1087797
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 0x1005160
push 0x1d
call fcn.01084443
mov ecx, dword [ebp - 0xc]
add esp, 0x10
cmp ecx, ebx
je 0x10877a5
lea eax, [esi + 0x6c]
push eax
mov dword [eax], ecx
push 1
mov ecx, esi
call fcn.01086cbc
jmp 0x10877a5
push 0x1005118
push 0x1d
call fcn.01084443
pop ecx
pop ecx
cmp dword [ebp + 8], ebx
mov ecx, esi
je 0x10877ba
call fcn.01086e38
push 0xffffffffffffffff
push dword [esi + 0x6c]
mov ecx, esi
jmp 0x10877bd
push 0xffffffffffffffff
push ebx
push dword [ebp - 4]
call fcn.01086dbd
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x10877d1
push dword [ebp - 4]
call eax
mov ecx, esi
call fcn.01086f6c
xor eax, eax
pop esi
pop ebx
leave
ret 4
Function at 0x10877e5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
push 0x1005228
push 0x1d
call fcn.01084443
or dword [ebp - 0x14], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push 0x1002bd8
push 0x80000002
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 4
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x10], ebx
je 0x1087864
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push 0x1004df0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x108785b
mov eax, 0x80070006
jmp 0x10879ce
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov ecx, esi
call fcn.01086e7b
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call edi
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x108788d
push ebx
push ebx
push 0x100521c
call eax
push 0xa
mov dword [ebp - 8], eax
call edi
mov eax, dword [esi + 0x48]
cmp eax, ebx
je 0x10878da
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 8]
call eax
push 0xa
mov byte [ebp - 1], al
call edi
cmp byte [ebp - 1], bl
je 0x10878da
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push 0x1005160
push 0x1d
call fcn.01084443
mov ecx, dword [ebp - 0xc]
add esp, 0x10
cmp ecx, ebx
je 0x10878e8
lea eax, [esi + 0x6c]
push eax
mov dword [eax], ecx
push 1
mov ecx, esi
call fcn.01086cbc
jmp 0x10878e8
push 0x1005118
push 0x1d
call fcn.01084443
pop ecx
pop ecx
cmp dword [ebp + 8], ebx
mov ecx, esi
je 0x10878fd
call fcn.01086e38
push 0xffffffffffffffff
push dword [esi + 0x6c]
mov ecx, esi
jmp 0x1087900
push 0xffffffffffffffff
push ebx
push dword [ebp - 8]
call fcn.01086dbd
push 0xa
mov byte [ebp - 1], al
call edi
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x108791b
push dword [ebp - 8]
call eax
push 0xa
call edi
mov eax, dword [esi + 0x40]
cmp eax, ebx
mov dword [ebp - 8], ebx
je 0x1087939
push ebx
push ebx
push 0x1005210
call eax
push 0xa
mov dword [ebp - 8], eax
call edi
mov eax, dword [esi + 0x48]
cmp eax, ebx
je 0x1087950
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 8]
call eax
mov byte [ebp - 1], al
cmp byte [ebp - 1], bl
je 0x1087982
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push 0x1005160
push 0x1d
call fcn.01084443
mov ecx, dword [ebp - 0xc]
add esp, 0x10
cmp ecx, ebx
je 0x1087990
lea eax, [esi + 0x6c]
push eax
mov dword [eax], ecx
push 1
mov ecx, esi
call fcn.01086cbc
jmp 0x1087990
push 0x1005118
push 0x1d
call fcn.01084443
pop ecx
pop ecx
cmp dword [ebp + 8], ebx
mov ecx, esi
je 0x10879a5
call fcn.01086e38
push 0xffffffffffffffff
push dword [esi + 0x6c]
mov ecx, esi
jmp 0x10879a8
push 0xffffffffffffffff
push ebx
push dword [ebp - 8]
call fcn.01086dbd
push 0xa
call edi
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x10879c0
push dword [ebp - 8]
call eax
push 0xa
call edi
mov ecx, esi
call fcn.01086f6c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1087adc
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push eax
mov dword [esi], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1087b3e
push edi
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0108ac06
test eax, eax
pop ecx
mov dword [esi + 4], eax
je 0x1087b28
push edi
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x104
lea eax, [esi + 8]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetClassNameW]
xor eax, eax
pop edi
jmp 0x1087b43
mov eax, 0x80070006
pop esi
pop ebp
ret 4

Function at 0x1087b84
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
mov ebx, 0x80040901
jne 0x1087ba3
mov eax, 0x80070006
jmp 0x1087c36
lea eax, [ebp - 4]
push eax
push 0x1005418
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1087c1e
lea ecx, [esi + 8]
mov eax, ecx
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x1087bc3
sub eax, edx
sar eax, 1
add eax, eax
push eax
push ecx
push 1
push 0
push 0x10053d4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1087bfd
push 0x1005388
push 0x1c
xor ebx, ebx
call fcn.01084443
pop ecx
pop ecx
jmp 0x1087c13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005338
push 0
call fcn.01084443
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1087c34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10052c8
push 0
call fcn.01084443
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x1087c60
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push esi
push edi
push 0x1005824
push 0x1d
pop edi
push edi
call fcn.01084443
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop ecx
pop ecx
push 0x1005808
call esi
test eax, eax
mov dword [0x10b38c8], eax
jne 0x1087ca4
push 0x10057ec
call esi
test eax, eax
mov dword [0x10b38c8], eax
jne 0x1087ca4
push 0x10057b0
jmp 0x1087d81
push 0x1005760
push edi
call fcn.01084443
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop ecx
pop ecx
push 0x100574c
push dword [0x10b38c8]
call esi
test eax, eax
mov dword [0x10b38cc], eax
jne 0x1087cd7
push 0x1005700
jmp 0x1087d81
push 0x10056f0
push dword [0x10b38c8]
call esi
test eax, eax
mov dword [0x10b38d0], eax
jne 0x1087cf7
push 0x10056b0
jmp 0x1087d81
push 0x1005698
push dword [0x10b38c8]
call esi
test eax, eax
mov dword [0x10b38d4], eax
jne 0x1087d14
push 0x1005648
jmp 0x1087d81
push 0x1005630
push dword [0x10b38c8]
call esi
test eax, eax
mov dword [0x10b38d8], eax
jne 0x1087d31
push 0x10055e0
jmp 0x1087d81
push 0x10055c4
push dword [0x10b38c8]
call esi
test eax, eax
mov dword [0x10b38dc], eax
jne 0x1087d4e
push 0x1005570
jmp 0x1087d81
push 0x40
call fcn.0108b841
test eax, eax
pop ecx
mov dword [0x10b38ec], eax
je 0x1087d7c
push 0x1005518
push edi
call fcn.01084443
push 0x10054b0
push edi
call fcn.01084443
add esp, 0x10
xor eax, eax
jmp 0x1087d8e
push 0x1005460
push edi
call fcn.01084443
pop ecx
pop ecx
mov eax, 0x80004005
pop edi
pop esi
ret
Function at 0x1088d7d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0x38
push 0x10ae2f8
call fcn.0108cd64
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], esi
push 0x28
pop ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x44], 1
mov dword [ebp - 4], esi
push 0x10
call fcn.0108ac06
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x1088f3a
lea eax, [ebp - 0x2c]
push eax
push 9
push esi
push 0x1006920
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1088f3a
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x1c], esi
jne 0x1088e0f
lea eax, [ebx + 1]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0108ac06
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x1088f3a
jmp 0x1088e12
inc dword [ebp - 0x38]
cmp dword [ebp - 0x28], esi
je 0x1088e23
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x20], esi
je 0x1088e34
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x3c], ebx
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0xea
jne 0x1088e6d
push dword [ebp - 0x1c]
call fcn.0108ab3b
pop ecx
mov dword [ebp - 0x1c], esi
mov ebx, dword [ebp - 0x3c]
inc ebx
mov dword [ebp - 0x48], ebx
jmp 0x1088de5
cmp eax, 0x103
je 0x1088f3a
cmp eax, esi
jne 0x1088f3a
lea eax, [ebp - 0x20]
push eax
push 0x20019
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1088de5
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x30]
push eax
push esi
push 0x1006904
push dword [ebp - 0x20]
call edi
cmp eax, esi
jne 0x1088de5
cmp dword [ebp - 0x30], 4
jne 0x1088de5
mov dword [ebp - 0x40], esi
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
and eax, 0xf
dec eax
je 0x1088eee
sub eax, 7
je 0x1088eee
mov dword [ebp - 0x40], 1
cmp dword [ebp - 0x40], esi
jne 0x1088de5
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x30]
push eax
push esi
push 0x10068f4
push dword [ebp - 0x20]
call edi
cmp eax, esi
jne 0x1088de5
cmp dword [ebp - 0x30], 3
jne 0x1088de5
cmp dword [ebp - 0x34], 0x10
jne 0x1088de5
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.01088f56
xor eax, eax
cmp dword [ebp - 0x44], esi
sete al
call fcn.0108cda9
ret