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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1025fffb
push eax
mov eax, dword [0x10307b24]
mov dword fs:[0], esp
sub esp, 0xe14
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x10073879
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 [0x10307b24], 1
mov dword [esp + 0xc], ebx
stosw word es:[edi], ax
call fcn.1004b880
push eax
lea eax, [esp + 0x41c]
push 0x102b8718
push eax
call fcn.10078071
add esp, 0x10
lea ecx, [esp + 0x414]
lea edx, [esp + 0x61c]
push ecx
push 0x400
push edx
push 0x102f440c
push 0x1026a4b4
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x1007373a
cmp word [esp + 0xe1a], bx
jne 0x1007373a
lea eax, [esp + 0x14]
push 0x400
lea ecx, [esp + 0x620]
push eax
push ecx
call fcn.100a89d0
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x1007373e
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x10073843
lea ecx, [esp + 0xc]
call fcn.1009db40
push 0x20019
push 0x1026a4bc
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x18]
mov dword [esp + 0xe30], ebx
call fcn.1009dcb0
test eax, eax
je 0x100737ba
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
push 0x1026a548
call fcn.1009e0d0
cmp eax, ebx
je 0x100737ba
mov ecx, dword [esp + 8]
cmp ecx, 0x400
jae 0x100737ad
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 0x100737b1
mov dword [esp + 8], ebx
push eax
call fcn.1024ac9a
add esp, 4
lea ecx, [esp + 0xc]
call fcn.1009dd00
lea ecx, [esp + 0xc]
mov dword [esp + 0xe24], 0xffffffff
call fcn.1009dc30
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x10073843
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 0x102f440c
push 0x1026a548
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
test eax, eax
jbe 0x1007383b
cmp word [esp + 0xe1a], bx
jne 0x1007383b
lea ecx, [esp + 0x14]
push 0x400
lea edx, [esp + 0x620]
push ecx
push edx
call fcn.100a89d0
add esp, 0xc
jmp 0x1007383f
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x10073879
cmp eax, 4
jbe 0x10073879
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x10073879
cmp dword [esp + 0x14], 1
je 0x10073879
mov edx, dword [esp + 0x30]
and edx, 0xffff
lea ecx, [edx + edx + 0x22]
cmp ecx, ebx
je 0x10073879
add eax, 0xfffffffc
cmp ecx, eax
ja 0x10073879
mov eax, dword [esp + 0x1c]
mov dword [0x10307b20], eax
mov ecx, dword [esp + 0xe1c]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0xe20
ret
Function at 0x10074480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x102601fb
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.1009cf30
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
call fcn.100a2e50
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.100a2fe0
mov edi, dword [esi + 0x1c]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esi + 0x18]
mov dword [esp + 0x14], eax
test edi, edi
jne 0x1007451a
push 0x14
call fcn.1024ac71
mov edi, eax
add esp, 4
mov dword [esp + 0x34], edi
test edi, edi
mov byte [esp + 0x2c], 2
je 0x1007450d
lea ecx, [edi + 8]
call fcn.100745c0
jmp 0x1007450f
xor edi, edi
test edi, edi
mov byte [esp + 0x2c], 1
jne 0x10074526
jmp 0x10074544
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.10074970
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.100a2fe0
mov edx, dword [esp + 0x14]
mov dword [edi + 0x10], edx
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1007456a
mov dword [eax], edi
jmp 0x1007456d
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.100a2fb0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1009cf90
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x100745e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10260230
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.100a2e50
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0
call fcn.100a2e50
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 1
call fcn.100a2e50
lea eax, [esi + 0x2c]
push 1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 2
call fcn.1009cf30
mov eax, dword [esi + 0x20]
mov byte [esp + 0x40], 3
test eax, eax
jg 0x1007468e
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 2
call fcn.1009cf90
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 1
call fcn.100a2fb0
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 0
call fcn.100a2fb0
lea ecx, [esp + 4]
mov dword [esp + 0x40], 0xffffffff
call fcn.100a2fb0
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.100a2fe0
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], eax
call fcn.100a2fe0
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call fcn.10074820
lea ecx, [esp + 0x34]
call fcn.100a2fb0
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.1009cf90
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.100a2fb0
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0
call fcn.100a2fb0
lea ecx, [esp + 8]
mov dword [esp + 0x44], 0xffffffff
call fcn.100a2fb0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret

Function at 0x1008d360
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 0x1008d3ae
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1008d3ae
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x1008d3b3
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x1008d399
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x1008d3c3
test esi, esi
jne 0x1008d3e1
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 0x1008d3df
mov byte [eax + esi - 1], 0
jne 0x1008d3e8
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret
Function at 0x10092ad0
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 0x10092b20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10092b20
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x10092b25
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x10092b0b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x10092b32
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 0x1009dd80
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 0x1009ddc1
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 0x1009ddc3
mov esi, edi
test esi, esi
je 0x1009de38
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 0x1009de2d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x1009de2d
cmp dword [esp + 0x1c], eax
jbe 0x1009ddfe
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 0x1009de2d
cmp esi, edi
je 0x1009de1f
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 0x1009de38
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 0x1009de50
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 0x1009deb5
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 0x1009deb5
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x1009deb5
cmp dword [esp + 0x18], eax
jbe 0x1009de9b
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 0x1009deb9
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x1009df90
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x1009dfef
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 0x1009dfef
cmp dword [esp + 0xc], 3
jne 0x1009dfef
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x1009dfef
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 0x1009dfef
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 0x1009e0d0
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 0x1009e144
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 0x1009e144
cmp dword [esp + 0x10], 3
jne 0x1009e144
mov edx, dword [esp + 0x18]
push edx
call fcn.1024ac71
mov edi, eax
add esp, 4
test edi, edi
je 0x1009e144
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1009e13b
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.1024ac9a
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x1009e150
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1026168f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x1026c87c]
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 0x1009e1bb
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 0x1009e1bd
mov esi, edi
test esi, esi
je 0x1009e287
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 0x1009e27c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x1009e1ff
cmp eax, 2
je 0x1009e1ff
cmp eax, 6
je 0x1009e1ff
cmp eax, 7
jne 0x1009e27c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.1024ac71
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 0x1009e262
lea ecx, [esp + 0x14]
call fcn.1008ef10
cmp esi, dword [esp + 0x14]
je 0x1009e257
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.1024ac9a
add esp, 4
jmp 0x1009e299
call fcn.1024ac9a
add esp, 4
lea ecx, [esp + 0x10]
push 0x102f440c
call fcn.1008ef10
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x1009e287
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1009e299
push eax
lea ecx, [esp + 0x14]
call fcn.1008ef10
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.1008e290
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.1008ec90
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 0x1009ed30
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [ecx]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1009ed78
lea edx, [esp + 0x10]
or eax, 0x20006
push edx
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push 0
push 0
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1009ed7a
mov esi, edi
test esi, esi
je 0x1009edba
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push 4
push eax
push 4
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1009edaf
cmp esi, edi
je 0x1009eda4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
pop ecx
ret 0xc
cmp esi, edi
je 0x1009edba
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x1009ef80
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [ecx]
test esi, esi
je 0x1009efb9
push edi
mov edi, dword [esp + 0x10]
push edi
call fcn.10076fb2
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 0x1009efb9
mov eax, 1
pop esi
ret 8
xor eax, eax
pop esi
ret 8
Function at 0x1009eff0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10261758
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x1009f046
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 0x1009f049
mov esi, dword [ebp + 8]
test esi, esi
je 0x1009f13c
call fcn.100a66c0
test eax, eax
je 0x1009f099
mov edi, dword [ebp + 0x18]
push edi
call fcn.10076fb2
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 0x1009f130
cmp esi, dword [ebp + 8]
je 0x1009f08f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1009f13e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1009f0d8
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.10077700
mov edi, esp
test edi, edi
je 0x1009f0d8
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 0x1009f0da
xor edi, edi
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
push eax
call fcn.100891b0
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 0x1009f121
cmp esi, dword [ebp + 8]
je 0x1009f10b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.10089910
mov eax, 1
jmp 0x1009f13e
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.10089910
cmp esi, dword [ebp + 8]
je 0x1009f13c
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 0x1009fc40
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.10094620
cmp ebp, ebx
je 0x1009fd2f
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 0x1009fd2f
cmp dword [esp + 0x10], ebx
jbe 0x1009fd2f
mov edx, dword [esp + 0xc]
lea eax, [edx + edx]
cmp eax, 0x104
ja 0x1009fca5
mov eax, 0x104
mov dword [esp + 0xc], eax
lea eax, [eax + eax + 2]
push eax
call fcn.1024ac71
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1009fd2f
cmp dword [esp + 0x10], ebx
jbe 0x1009fd18
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 0x1009fd0e
mov ecx, dword [esp + 0x20]
push esi
mov edx, dword [ecx + 4]
push edx
call fcn.10094ad0
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jb 0x1009fcc3
pop edi
push esi
call fcn.1024ac9a
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 0x1009fe10
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 0x1009ff8d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1009ff6c
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x1009fe66
mov eax, 0x104
mov dword [esp + 0x1c], eax
lea edx, [eax + eax + 2]
push edx
call fcn.1024ac71
mov esi, eax
add esp, 4
test esi, esi
je 0x1009ff8d
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 0x1009ff84
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 0x1009ff84
mov edi, dword [esp + 0x20]
test edi, edi
je 0x1009ff84
push ebp
push edi
call fcn.1009fe10
add esp, 8
test eax, eax
je 0x1009ff79
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1030a148]
test eax, eax
je 0x1009ff15
test ebp, ebp
je 0x1009ff15
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x1009ff84
jmp 0x1009ff21
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1009ff84
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x1009ff63
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 0x1009ff84
mov eax, dword [esp + 0x14]
jmp 0x1009febe
push esi
call fcn.1024ac9a
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x1009ff84
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.1024ac9a
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x1009ffa0
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 0x100a0009
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1009ffc9
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x100a0009
pop edi
mov eax, 1
pop esi
ret 4
push edi
push esi
call fcn.1009fe10
add esp, 8
test eax, eax
je 0x100a0009
mov eax, dword [0x1030a148]
test eax, eax
je 0x1009fff6
test edi, edi
je 0x1009fff6
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