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

Disassembly:
push 0xe1c
mov eax, 0x101cf6ef
call fcn.10099872
xor ebx, ebx
cmp dword [0x10261f34], ebx
jne 0x1001c7d5
push 0x3ff
lea eax, [ebp - 0x617]
push ebx
push eax
mov dword [0x10261f34], 1
mov byte [ebp - 0x618], bl
call fcn.10099920
xor eax, eax
push 0x7fe
mov word [ebp - 0xe18], ax
lea eax, [ebp - 0xe16]
push ebx
push eax
mov dword [ebp - 0xe1c], ebx
call fcn.10099920
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.10099920
add esp, 0x24
push str.OAgent.ini
call fcn.10001f61
push eax
lea eax, [ebp - 0x218]
push 0x101e6850
push eax
call fcn.1009b0d3
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
mov esi, 0x400
push esi
lea eax, [ebp - 0xe18]
push eax
push 0x101e6ae4
push 0x101ec108
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x1001c68e
cmp word [ebp - 0x61a], bx
jne 0x1001c68e
push esi
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0xe18]
push eax
call fcn.100e2800
add esp, 0xc
mov dword [ebp - 0xe1c], eax
cmp dword [ebp - 0xe1c], ebx
jne 0x1001c79c
lea ecx, [ebp - 0xe24]
call fcn.100dde00
mov dword [ebp - 4], ebx
push 0x20019
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xe24]
call fcn.100ddf70
mov edi, 0x101ec19c
test eax, eax
je 0x1001c71a
lea eax, [ebp - 0xe1c]
push eax
push edi
lea ecx, [ebp - 0xe24]
call fcn.100de390
mov dword [ebp - 0xe28], eax
cmp eax, ebx
je 0x1001c71a
cmp dword [ebp - 0xe1c], esi
jae 0x1001c708
push dword [ebp - 0xe1c]
push eax
lea eax, [ebp - 0x618]
push eax
call fcn.100999a0
add esp, 0xc
jmp 0x1001c70e
mov dword [ebp - 0xe1c], ebx
push dword [ebp - 0xe28]
call fcn.10066289
pop ecx
lea ecx, [ebp - 0xe24]
call fcn.100ddfc0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe24]
call fcn.100ddef0
cmp dword [ebp - 0xe1c], ebx
jne 0x1001c79c
push 0x800
lea eax, [ebp - 0xe18]
push ebx
push eax
call fcn.10099920
add esp, 0xc
push esi
lea eax, [ebp - 0xe18]
push eax
push 0x101e6ae4
push edi
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
test eax, eax
jbe 0x1001c794
cmp word [ebp - 0x61a], bx
jne 0x1001c794
push esi
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0xe18]
push eax
call fcn.100e2800
add esp, 0xc
mov dword [ebp - 0xe1c], eax
cmp dword [ebp - 0xe1c], ebx
je 0x1001c7d5
cmp dword [ebp - 0xe1c], 4
jbe 0x1001c7d5
cmp dword [ebp - 0x618], 1
je 0x1001c7d5
movzx eax, word [ebp - 0x5fc]
lea eax, [eax + eax + 0x22]
cmp eax, ebx
je 0x1001c7d5
mov ecx, dword [ebp - 0xe1c]
add ecx, 0xfffffffc
cmp eax, ecx
ja 0x1001c7d5
mov eax, dword [ebp - 0x610]
mov dword [0x10261f30], eax
call fcn.100998f5
ret
Function at 0x1001d14d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
cmp dword [ebp + 0xc], ebx
je 0x1001d174
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001d0e8
add esp, 0xc
jmp 0x1001d177
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x1001d245
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x1001d236
mov eax, dword [ebp - 8]
cmp eax, 4
jne 0x1001d1e3
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x1001d236
call fcn.1001cd41
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
je 0x1001d1df
push eax
call fcn.1001d139
pop ecx
mov al, 1
jmp 0x1001d247
cmp eax, 1
je 0x1001d1fc
cmp eax, 2
je 0x1001d1fc
cmp eax, 6
je 0x1001d1fc
cmp eax, 7
je 0x1001d1fc
cmp eax, 3
jne 0x1001d236
push dword [ebp - 4]
call fcn.1009bf6a
mov ebx, eax
pop ecx
test ebx, ebx
je 0x1001d236
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x1001d22f
call fcn.1001cd41
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 4], ebx
jmp 0x1001d1d0
push ebx
call fcn.1009be13
pop ecx
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
je 0x1001d245
push eax
call fcn.1001d139
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001d24c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0xc], ebx
je 0x1001d271
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001d0e8
add esp, 0xc
mov edi, eax
jmp 0x1001d274
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x1001d2c7
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push edi
call esi
test eax, eax
jne 0x1001d2bb
cmp dword [ebp + 0xc], 4
jne 0x1001d2bb
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push ebx
push ebx
push dword [ebp + 0x10]
push edi
call esi
test eax, eax
jne 0x1001d2bb
cmp edi, dword [ebp + 8]
je 0x1001d2b7
push edi
call fcn.1001d139
pop ecx
mov al, 1
jmp 0x1001d2c9
cmp edi, dword [ebp + 8]
je 0x1001d2c7
push edi
call fcn.1001d139
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001d2ce
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0xc], ebx
je 0x1001d2f3
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001d0e8
add esp, 0xc
mov edi, eax
jmp 0x1001d2f6
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x1001d351
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0xc]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
push edi
call esi
test eax, eax
jne 0x1001d345
cmp dword [ebp - 4], 3
jne 0x1001d345
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0xc]
jb 0x1001d345
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push ebx
push ebx
push dword [ebp + 0x10]
push edi
call esi
test eax, eax
jne 0x1001d345
cmp edi, dword [ebp + 8]
je 0x1001d341
push edi
call fcn.1001d139
pop ecx
mov al, 1
jmp 0x1001d353
cmp edi, dword [ebp + 8]
je 0x1001d351
push edi
call fcn.1001d139
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001d358
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
je 0x1001d37d
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001d0e8
add esp, 0xc
mov ebx, eax
jmp 0x1001d380
mov ebx, dword [ebp + 8]
cmp ebx, esi
je 0x1001d3f6
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
call esi
test eax, eax
jne 0x1001d3ea
cmp dword [ebp - 4], 3
jne 0x1001d3ea
push dword [ebp + 0xc]
call fcn.1009bf6a
mov edi, eax
pop ecx
test edi, edi
je 0x1001d3ea
lea eax, [ebp + 0xc]
push eax
push edi
push 0
push 0
push dword [ebp + 0x10]
push ebx
call esi
test eax, eax
jne 0x1001d3e3
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
cmp ebx, dword [ebp + 8]
je 0x1001d3df
push ebx
call fcn.1001d139
pop ecx
mov al, 1
jmp 0x1001d3f8
push edi
call fcn.1009be13
pop ecx
cmp ebx, dword [ebp + 8]
je 0x1001d3f6
push ebx
call fcn.1001d139
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001d3fd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0xc], ebx
je 0x1001d422
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001d0e8
add esp, 0xc
mov edi, eax
jmp 0x1001d425
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x1001d491
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0xc]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
push edi
call esi
test eax, eax
jne 0x1001d485
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x1001d45a
cmp eax, 2
je 0x1001d45a
cmp eax, 6
je 0x1001d45a
cmp eax, 7
jne 0x1001d485
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0xc]
jb 0x1001d485
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push ebx
push ebx
push dword [ebp + 0x10]
push edi
call esi
test eax, eax
jne 0x1001d485
cmp edi, dword [ebp + 8]
je 0x1001d481
push edi
call fcn.1001d139
pop ecx
mov al, 1
jmp 0x1001d493
cmp edi, dword [ebp + 8]
je 0x1001d491
push edi
call fcn.1001d139
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001d498
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
je 0x1001d4bd
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001d0e8
add esp, 0xc
mov ebx, eax
jmp 0x1001d4c0
mov ebx, dword [ebp + 8]
cmp ebx, esi
je 0x1001d54f
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
call esi
test eax, eax
jne 0x1001d543
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x1001d4f9
cmp eax, 2
je 0x1001d4f9
cmp eax, 6
je 0x1001d4f9
cmp eax, 7
jne 0x1001d543
push dword [ebp + 0xc]
call fcn.1009bf6a
mov edi, eax
pop ecx
test edi, edi
je 0x1001d543
lea eax, [ebp + 0xc]
push eax
push edi
push 0
push 0
push dword [ebp + 0x10]
push ebx
call esi
test eax, eax
jne 0x1001d53c
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1001d52c
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
cmp ebx, dword [ebp + 8]
je 0x1001d538
push ebx
call fcn.1001d139
pop ecx
mov al, 1
jmp 0x1001d551
push edi
call fcn.1009be13
pop ecx
cmp ebx, dword [ebp + 8]
je 0x1001d54f
push ebx
call fcn.1001d139
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001d5ea
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
je 0x1001d60f
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001d0e8
add esp, 0xc
mov ebx, eax
jmp 0x1001d612
mov ebx, dword [ebp + 8]
cmp ebx, esi
je 0x1001d6ba
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
call esi
test eax, eax
jne 0x1001d6ae
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x1001d64b
cmp eax, 2
je 0x1001d64b
cmp eax, 6
je 0x1001d64b
cmp eax, 7
jne 0x1001d6ae
mov eax, dword [ebp + 0xc]
inc eax
push eax
call fcn.10066294
mov edi, eax
mov eax, dword [ebp + 0xc]
inc eax
push eax
push 0
push edi
call fcn.10099920
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
push edi
push 0
push 0
push dword [ebp + 0x10]
push ebx
call esi
push edi
test eax, eax
jne 0x1001d69a
mov ecx, dword [ebp + 0x14]
call fcn.100cf1d0
cmp ebx, dword [ebp + 8]
je 0x1001d68f
push ebx
call fcn.1001d139
pop ecx
push edi
call fcn.1006629f
pop ecx
mov al, 1
jmp 0x1001d6bc
call fcn.1006629f
mov ecx, dword [ebp + 0x14]
mov dword [esp], 0x101e6ae4
call fcn.100cf1d0
cmp ebx, dword [ebp + 8]
je 0x1001d6ba
push ebx
call fcn.1001d139
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001d6c1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
push edi
mov esi, eax
je 0x1001d6e3
push 0x20006
push dword [ebp + 8]
push ebx
call fcn.1001d10c
add esp, 0xc
mov edi, eax
jmp 0x1001d6e5
mov edi, ebx
test edi, edi
je 0x1001d741
mov eax, dword [esi]
cmp eax, 4
jne 0x1001d6f7
push eax
add esi, eax
push esi
push eax
jmp 0x1001d717
cmp eax, 1
je 0x1001d710
cmp eax, 2
je 0x1001d710
cmp eax, 6
je 0x1001d710
cmp eax, 7
je 0x1001d710
cmp eax, 3
jne 0x1001d736
push dword [esi + 8]
push dword [esi + 4]
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1001d736
cmp edi, ebx
je 0x1001d732
push edi
call fcn.1001d139
pop ecx
mov al, 1
jmp 0x1001d743
cmp edi, ebx
je 0x1001d741
push edi
call fcn.1001d139
pop ecx
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x1001d747
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x1001d766
push 0x20006
push dword [ebp + 8]
push edi
call fcn.1001d10c
add esp, 0xc
mov esi, eax
jmp 0x1001d768
mov esi, edi
test esi, esi
je 0x1001d79e
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1001d793
cmp esi, edi
je 0x1001d78f
push esi
call fcn.1001d139
pop ecx
mov al, 1
jmp 0x1001d7a0
cmp esi, edi
je 0x1001d79e
push esi
call fcn.1001d139
pop ecx
xor al, al
pop esi
pop ebp
ret
Function at 0x1001d7a3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x1001d7c2
push 0x20006
push dword [ebp + 8]
push edi
call fcn.1001d10c
add esp, 0xc
mov esi, eax
jmp 0x1001d7c4
mov esi, edi
test esi, esi
je 0x1001d7fa
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 3
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1001d7ef
cmp esi, edi
je 0x1001d7eb
push esi
call fcn.1001d139
pop ecx
mov al, 1
jmp 0x1001d7fc
cmp esi, edi
je 0x1001d7fa
push esi
call fcn.1001d139
pop ecx
xor al, al
pop esi
pop ebp
ret

Function at 0x1001d7ff
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x1001d81e
push 0x20006
push dword [ebp + 8]
push edi
call fcn.1001d10c
add esp, 0xc
mov esi, eax
jmp 0x1001d820
mov esi, edi
test esi, esi
je 0x1001d861
push dword [ebp + 0x10]
call fcn.10099f06
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1001d856
cmp esi, edi
je 0x1001d852
push esi
call fcn.1001d139
pop ecx
mov al, 1
jmp 0x1001d863
cmp esi, edi
je 0x1001d861
push esi
call fcn.1001d139
pop ecx
xor al, al
pop esi
pop ebp
ret
Function at 0x1001d8ab
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x1001d8cf
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001d0e8
add esp, 0xc
jmp 0x1001d8d2
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x14], edi
jbe 0x1001d8fb
push dword [ebx + esi*4]
call fcn.10099f06
push eax
push 0x20
push dword [ebx + esi*4]
call fcn.10099920
add esp, 0x10
inc esi
cmp esi, dword [ebp + 0x14]
jb 0x1001d8df
cmp dword [ebp + 0xc], edi
je 0x1001d9ab
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x14]
push eax
push edi
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp + 0x14], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1001d99c
cmp dword [ebp + 0x14], edi
jbe 0x1001d99c
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10066294
mov esi, eax
pop ecx
cmp esi, edi
je 0x1001d99c
cmp dword [ebp + 0x14], edi
jbe 0x1001d982
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
inc eax
push eax
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1001d97a
mov eax, dword [ebp - 8]
push esi
push dword [eax]
call fcn.10099e71
add dword [ebp - 8], 4
pop ecx
pop ecx
inc edi
cmp edi, dword [ebp + 0x14]
jb 0x1001d954
jmp 0x1001d985
mov ebx, dword [ebp + 0xc]
push esi
call fcn.1006629f
pop ecx
cmp ebx, dword [ebp + 8]
je 0x1001d998
push ebx
call fcn.1001d139
pop ecx
mov al, 1
jmp 0x1001d9ad
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
je 0x1001d9ab
push eax
call fcn.1001d139
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001d9b2
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1001da51
cmp dword [ebp - 8], ebx
je 0x1001da46
inc dword [ebp - 4]
push dword [ebp - 4]
call fcn.1009bf6a
mov esi, eax
pop ecx
cmp esi, ebx
je 0x1001da51
push dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1001da4a
push 0x2001f
push esi
push dword [ebp + 8]
call fcn.1001d0e8
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x1001da4a
push edi
call fcn.1001d9b2
pop ecx
push edi
test al, al
je 0x1001da58
call fcn.1001d139
pop ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1001da4a
dec dword [ebp - 8]
jne 0x1001d9f1
push esi
call fcn.1009be13
pop ecx
mov al, 1
jmp 0x1001da53
push esi
call fcn.1009be13
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret
call fcn.1001d139
push esi
call fcn.1009be13
pop ecx
jmp 0x1001da50
Function at 0x1001da66
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x1001da85
push 0x2001f
push dword [ebp + 8]
push edi
call fcn.1001d0e8
add esp, 0xc
mov esi, eax
jmp 0x1001da87
mov esi, edi
test esi, esi
je 0x1001dae0
cmp dword [ebp + 0xc], 0
je 0x1001daae
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1001dad5
cmp esi, edi
je 0x1001daaa
push esi
call fcn.1001d139
pop ecx
mov al, 1
jmp 0x1001dae2
push esi
call fcn.1001d9b2
pop ecx
test al, al
je 0x1001dad5
cmp esi, edi
je 0x1001dac4
push esi
call fcn.1001d139
pop ecx
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
inc eax
jmp 0x1001dae2
cmp esi, edi
je 0x1001dae0
push esi
call fcn.1001d139
pop ecx
xor al, al
pop esi
pop ebp
ret

Function at 0x1001e277
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
je 0x1001e29c
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001d0e8
add esp, 0xc
mov ebx, eax
jmp 0x1001e29f
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
call fcn.100d48e0
cmp ebx, esi
je 0x1001e341
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push esi
push esi
push ebx
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1001e335
cmp dword [ebp + 0xc], esi
jbe 0x1001e335
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10066294
mov edi, eax
pop ecx
cmp edi, esi
je 0x1001e335
cmp dword [ebp + 0xc], esi
jbe 0x1001e31e
mov eax, dword [ebp - 4]
inc eax
push eax
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1001e318
mov ecx, dword [ebp + 0x10]
push edi
call fcn.1000575c
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x1001e2fd
push edi
call fcn.1006629f
pop ecx
cmp ebx, dword [ebp + 8]
je 0x1001e331
push ebx
call fcn.1001d139
pop ecx
mov al, 1
jmp 0x1001e343
cmp ebx, dword [ebp + 8]
je 0x1001e341
push ebx
call fcn.1001d139
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001fd98
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x1001fdce
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x1001fdcd
push dword [edi + 0xc]
call esi
push eax
call fcn.1006a4fe
pop esi
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
leave
ret
Function at 0x10023614
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov eax, 0x2001f
cmp dword [ebp + 0x14], esi
je 0x1002362d
mov eax, 0x2011f
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10023677
cmp dword [ebp + 0x10], esi
je 0x10023659
push dword [ebp + 0x10]
call fcn.10099f06
pop ecx
lea eax, [eax + eax + 2]
jmp 0x1002365b
xor eax, eax
push eax
push dword [ebp + 0x10]
push 1
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 0x10

Function at 0x1002367c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
mov eax, 0x2001f
je 0x10023694
mov eax, 0x2011f
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100236cc
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 0x10

Function at 0x100236d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
xor ebx, ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10023759
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 8], edi
push dword [ebp - 4]
mov dword [ebp + 8], edi
call esi
mov eax, dword [ebp + 8]
cmp eax, 2
jb 0x1002374f
inc eax
inc eax
mov dword [ebp + 8], eax
xor ecx, ecx
push 2
shr eax, 1
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10066294
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x1002374f
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x10023761
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100237b2
and dword [ebp - 0xc], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp + 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret 8
Function at 0x100245bb
Capabilities:
Write file on windows

Disassembly:
push 0x10
mov eax, 0x101cffe7
call fcn.10099809
mov esi, ecx
push 1
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100dd1f0
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
test eax, eax
je 0x10024619
cmp dword [ebp + 8], edi
je 0x10024619
push 2
push edi
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
call fcn.10099f06
pop ecx
add eax, eax
push eax
push dword [ebp + 8]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100dd250
call fcn.100998e1
ret 4