joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005bfb0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018fdcb
push eax
mov eax, dword [0x101fe3dc]
mov dword fs:[0], esp
sub esp, 0xe14
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x1005c1e9
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x61e]
mov word [esp + 0x61c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x416]
mov word [esp + 0x414], bx
rep stosd dword es:[edi], eax
push str.OAgent.ini
mov dword [0x101fe3dc], 1
mov dword [esp + 0xc], ebx
stosw word es:[edi], ax
call fcn.1003b270
push eax
lea eax, [esp + 0x41c]
push 0x101c4b5c
push eax
call fcn.10060870
add esp, 0x10
lea ecx, [esp + 0x414]
lea edx, [esp + 0x61c]
push ecx
push 0x400
push edx
push 0x101ec534
push 0x10199118
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x1005c0aa
cmp word [esp + 0xe1a], bx
jne 0x1005c0aa
lea eax, [esp + 0x14]
push 0x400
lea ecx, [esp + 0x620]
push eax
push ecx
call fcn.1008f870
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x1005c0ae
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x1005c1b3
lea ecx, [esp + 0xc]
call fcn.10084c20
push 0x20019
push 0x10199120
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x18]
mov dword [esp + 0xe30], ebx
call fcn.10084d90
test eax, eax
je 0x1005c12a
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
push 0x101991ac
call fcn.100851b0
cmp eax, ebx
je 0x1005c12a
mov ecx, dword [esp + 8]
cmp ecx, 0x400
jae 0x1005c11d
mov edx, ecx
push esi
mov esi, eax
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1005c121
mov dword [esp + 8], ebx
push eax
call fcn.1017c36b
add esp, 4
lea ecx, [esp + 0xc]
call fcn.10084de0
lea ecx, [esp + 0xc]
mov dword [esp + 0xe24], 0xffffffff
call fcn.10084d10
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x1005c1b3
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x61c]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x620]
push eax
push 0x101ec534
push 0x101991ac
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
test eax, eax
jbe 0x1005c1ab
cmp word [esp + 0xe1a], bx
jne 0x1005c1ab
lea ecx, [esp + 0x14]
push 0x400
lea edx, [esp + 0x620]
push ecx
push edx
call fcn.1008f870
add esp, 0xc
jmp 0x1005c1af
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x1005c1e9
cmp eax, 4
jbe 0x1005c1e9
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x1005c1e9
cmp dword [esp + 0x14], 1
je 0x1005c1e9
mov edx, dword [esp + 0x30]
and edx, 0xffff
lea ecx, [edx + edx + 0x22]
cmp ecx, ebx
je 0x1005c1e9
add eax, 0xfffffffc
cmp ecx, eax
ja 0x1005c1e9
mov eax, dword [esp + 0x1c]
mov dword [0x101fe3d8], eax
mov ecx, dword [esp + 0xe1c]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0xe20
ret
Function at 0x1005cde0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1018ffcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
push 1
lea ecx, [esp + 0x1c]
lea eax, [esi + 0x2c]
push eax
call fcn.10084010
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
call fcn.10089ed0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0xc], ecx
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.1008a060
mov edi, dword [esi + 0x1c]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esi + 0x18]
mov dword [esp + 0x14], eax
test edi, edi
jne 0x1005ce7a
push 0x14
call fcn.1017c342
mov edi, eax
add esp, 4
mov dword [esp + 0x34], edi
test edi, edi
mov byte [esp + 0x2c], 2
je 0x1005ce6d
lea ecx, [edi + 8]
call fcn.1005cf20
jmp 0x1005ce6f
xor edi, edi
test edi, edi
mov byte [esp + 0x2c], 1
jne 0x1005ce86
jmp 0x1005cea4
mov eax, dword [esi + 0x24]
mov ecx, dword [edi]
dec eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x24], eax
mov dword [edi + 4], ebp
mov dword [edi], 0
mov ebp, dword [esi + 0x20]
lea edx, [edi + 8]
inc ebp
push 1
push edx
mov dword [esi + 0x20], ebp
call fcn.1005d2d0
add esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [edi + 0xc]
mov dword [edi + 8], eax
call fcn.1008a060
mov edx, dword [esp + 0x14]
mov dword [edi + 0x10], edx
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1005ceca
mov dword [eax], edi
jmp 0x1005cecd
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov eax, dword [esi + 0x10]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.1008a030
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10084070
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x1005cf40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10190000
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.10089ed0
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0
call fcn.10089ed0
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 1
call fcn.10089ed0
lea eax, [esi + 0x2c]
push 1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 2
call fcn.10084010
mov eax, dword [esi + 0x20]
mov byte [esp + 0x40], 3
test eax, eax
jg 0x1005cfee
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 2
call fcn.10084070
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 1
call fcn.1008a030
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 0
call fcn.1008a030
lea ecx, [esp + 4]
mov dword [esp + 0x40], 0xffffffff
call fcn.1008a030
pop esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
push edi
lea edi, [esi + 0x14]
mov esi, dword [esi + 0x14]
add esi, 8
mov ecx, dword [esi]
lea edx, [esi + 4]
mov dword [esp + 0xc], ecx
push edx
lea ecx, [esp + 0x14]
call fcn.1008a060
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], eax
call fcn.1008a060
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call fcn.1005d180
lea ecx, [esp + 0x34]
call fcn.1008a030
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.10084070
lea eax, [esp + 8]
push esi
push eax
call dword [esp + 0x14]
add esp, 8
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 1
call fcn.1008a030
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0
call fcn.1008a030
lea ecx, [esp + 8]
mov dword [esp + 0x44], 0xffffffff
call fcn.1008a030
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret

Function at 0x10075bf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x10075c3e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10075c3e
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x10075c43
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x10075c29
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x10075c53
test esi, esi
jne 0x10075c71
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x10075c6f
mov byte [eax + esi - 1], 0
jne 0x10075c78
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret
Function at 0x1007b360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x1007b3b0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1007b3b0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x1007b3b5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x1007b39b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x1007b3c2
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret

Function at 0x10084e60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x10084ea1
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x10084ea3
mov esi, edi
test esi, esi
je 0x10084f18
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x10084f0d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x10084f0d
cmp dword [esp + 0x1c], eax
jbe 0x10084ede
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x10084f0d
cmp esi, edi
je 0x10084eff
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x10084f18
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x10084f30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x10084f95
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x10084f95
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x10084f95
cmp dword [esp + 0x18], eax
jbe 0x10084f7b
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x10084f99
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x10085070
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x100850cf
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x100850cf
cmp dword [esp + 0xc], 3
jne 0x100850cf
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x100850cf
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x100850cf
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc

Function at 0x100851b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [ecx]
test esi, esi
push edi
je 0x10085224
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x10085224
cmp dword [esp + 0x10], 3
jne 0x10085224
mov edx, dword [esp + 0x18]
push edx
call fcn.1017c342
mov edi, eax
add esp, 4
test edi, edi
je 0x10085224
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1008521b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
pop ecx
ret 8
push edi
call fcn.1017c36b
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x10085230
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1019145f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x1019b4e4]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x1008529b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1008529d
mov esi, edi
test esi, esi
je 0x10085367
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1008535c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x100852df
cmp eax, 2
je 0x100852df
cmp eax, 6
je 0x100852df
cmp eax, 7
jne 0x1008535c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.1017c342
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebp
jne 0x10085342
lea ecx, [esp + 0x14]
call fcn.100777a0
cmp esi, dword [esp + 0x14]
je 0x10085337
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.1017c36b
add esp, 4
jmp 0x10085379
call fcn.1017c36b
add esp, 4
lea ecx, [esp + 0x10]
push 0x101ec534
call fcn.100777a0
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x10085367
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10085379
push eax
lea ecx, [esp + 0x14]
call fcn.100777a0
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.10076b20
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.10077520
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x10086060
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [ecx]
test esi, esi
je 0x10086099
push edi
mov edi, dword [esp + 0x10]
push edi
call fcn.1005f906
mov ecx, dword [esp + 0x10]
add esp, 4
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop edi
jne 0x10086099
mov eax, 1
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x100860d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10191528
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x10086126
lea ecx, [ebp + 0x14]
lea edx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x10086129
mov esi, dword [ebp + 8]
test esi, esi
je 0x1008621c
call fcn.1008d710
test eax, eax
je 0x10086179
mov edi, dword [ebp + 0x18]
push edi
call fcn.1005f906
mov ecx, dword [ebp + 0x10]
add esp, 4
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10086210
cmp esi, dword [ebp + 8]
je 0x1008616f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1008621e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100861b8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.1005ffe0
mov edi, esp
test edi, edi
je 0x100861b8
mov edx, dword [ebp + 0x10]
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x100861ba
xor edi, edi
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
push eax
call fcn.10071a40
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10086201
cmp esi, dword [ebp + 8]
je 0x100861eb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.100721a0
mov eax, 1
jmp 0x1008621e
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.100721a0
cmp esi, dword [ebp + 8]
je 0x1008621c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10086d20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x18]
push esi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
call fcn.1007ceb0
cmp ebp, ebx
je 0x10086e0f
push ebx
push ebx
lea eax, [esp + 0x14]
push ebx
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10086e0f
cmp dword [esp + 0x10], ebx
jbe 0x10086e0f
mov edx, dword [esp + 0xc]
lea eax, [edx + edx]
cmp eax, 0x104
ja 0x10086d85
mov eax, 0x104
mov dword [esp + 0xc], eax
lea eax, [eax + eax + 2]
push eax
call fcn.1017c342
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x10086e0f
cmp dword [esp + 0x10], ebx
jbe 0x10086df8
push edi
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edi, esi
push 0
lea ecx, [ecx + ecx + 2]
push 0
mov edx, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push esi
inc eax
push ebx
push ebp
mov dword [esp + 0x38], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10086dee
mov ecx, dword [esp + 0x20]
push esi
mov edx, dword [ecx + 4]
push edx
call fcn.1007d360
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jb 0x10086da3
pop edi
push esi
call fcn.1017c36b
add esp, 4
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4
Function at 0x10086ef0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1008706d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1008704c
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x10086f46
mov eax, 0x104
mov dword [esp + 0x1c], eax
lea edx, [eax + eax + 2]
push edx
call fcn.1017c342
mov esi, eax
add esp, 4
test esi, esi
je 0x1008706d
mov eax, dword [esp + 0x1c]
mov edi, esi
lea ecx, [eax + eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x10087064
mov ebp, dword [esp + 0x20]
mov eax, ebp
or eax, 0x2001f
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10087064
mov edi, dword [esp + 0x20]
test edi, edi
je 0x10087064
push ebp
push edi
call fcn.10086ef0
add esp, 8
test eax, eax
je 0x10087059
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x10200a00]
test eax, eax
je 0x10086ff5
test ebp, ebp
je 0x10086ff5
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x10087064
jmp 0x10087001
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x10087064
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x10087043
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + edx + 2]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x10087064
mov eax, dword [esp + 0x14]
jmp 0x10086f9e
push esi
call fcn.1017c36b
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x10087064
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.1017c36b
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x10087080
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push esi
mov esi, dword [ecx]
push edi
mov edi, dword [ecx + 4]
test esi, esi
je 0x100870e9
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100870a9
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x100870e9
pop edi
mov eax, 1
pop esi
ret 4
push edi
push esi
call fcn.10086ef0
add esp, 8
test eax, eax
je 0x100870e9
mov eax, dword [0x10200a00]
test eax, eax
je 0x100870d6
test edi, edi
je 0x100870d6
push 0
push edi
push 0
push esi
call eax
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4