joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5548e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x572fc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.0054985b
mov eax, dword [0x715a28]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0054978d
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.005553e0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x554987
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x55497e
cmp al, 0xff
je 0x55497e
dec al
mov byte [ecx], al
jmp 0x554987
push ecx
call fcn.0055f27f
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x5549b8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5549af
cmp al, 0xff
je 0x5549af
dec al
mov byte [ecx], al
jmp 0x5549b8
push ecx
call fcn.0055f27f
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x561119
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x561151
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0055f158
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0055f130
jmp 0x56115d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x56280a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x56284c
call fcn.00568fe2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x56284c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x562843
xor eax, eax
jmp 0x562854
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0056285a
pop edi
pop esi
pop ebx
ret 4

Function at 0x5686cc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5686fa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x568718
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00568632
jmp 0x568718
mov eax, dword [esi + 0x14]
test eax, eax
je 0x568718
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00568632
test edi, edi
mov eax, edi
jne 0x568702
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1003b28
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
movzx eax, si
push 0
shr eax, 4
inc eax
push eax
push 6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x1003b58
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01003235
jmp 0x1003b8d
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1003b4a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1003b4a
and esi, 0xf
jmp 0x1003b7a
dec esi
lea eax, [eax + ecx*2]
movzx ecx, word [eax]
inc eax
inc eax
test esi, esi
jne 0x1003b76
push dword [ebp + 0x10]
push ecx
push eax
call fcn.0100366b
mov esi, eax
test esi, esi
jge 0x1003bb8
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003bb8
test byte [eax + 0x3c], 2
je 0x1003bb8
push esi
push 0x1001bb8
push 0xd
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.010107ca
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x1003ca4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], 0x80000001
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
jne 0x1003cc5
mov dword [ebp - 0xc], edi
lea eax, [ebp - 8]
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010035ed
mov esi, eax
cmp esi, edi
mov dword [ebp + 0xc], esi
jl 0x1003d84
mov dword [ebp + 8], edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
call fcn.0100334b
test eax, eax
je 0x1003d7d
cmp dword [ebp - 4], edi
jne 0x1003d3b
cmp dword [ebp + 8], edi
jbe 0x1003d76
push dword [ebp + 8]
call fcn.01003185
lea ecx, [ebp - 4]
mov esi, eax
call fcn.0100357a
cmp esi, edi
je 0x1003d31
mov dword [ebp - 4], esi
jmp 0x1003ce6
mov dword [ebp - 4], edi
mov esi, 0x8007000e
jmp 0x1003d80
cmp dword [ebp - 0x10], 1
je 0x1003d48
mov esi, 0x8007000d
jmp 0x1003d84
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.01003bc4
mov esi, eax
cmp esi, edi
jl 0x1003d84
cmp dword [ebp + 0xc], edi
je 0x1003d68
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x1003d80
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x1003d80
mov esi, 0x8000ffff
jmp 0x1003d84
mov esi, dword [ebp + 0xc]
cmp esi, edi
jge 0x1003da9
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003da9
test byte [eax + 0x3c], 2
je 0x1003da9
push esi
push 0x1001b10
push 0x22
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.010107ca
lea ecx, [ebp - 4]
call fcn.0100357a
lea ecx, [ebp - 0xc]
call fcn.01003528
lea ecx, [ebp - 8]
call fcn.01003528
pop edi
mov eax, esi
pop esi
leave
ret 0x14
Function at 0x10044f9
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push eax
call fcn.0100334b
cmp dword [ebp - 4], 0
jge 0x1004546
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004546
test byte [eax + 0x3c], 2
je 0x1004546
push dword [ebp - 4]
push 0x1001c78
push 0x2c
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.010107ca
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x1004f54
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10160e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
push edi
xor edi, edi
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
jge 0x1004f97
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push 0x100175c
push 0x16
push eax
mov dword [ebp - 0x44], eax
inc edi
call fcn.01004748
add esp, 0x10
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov eax, dword [ebp + ecx*4 - 0x34]
cmp eax, ebx
je 0x1004fb8
mov dword [ebp + edi*4 - 0x44], eax
inc edi
inc ecx
cmp ecx, 3
jb 0x1004fab
cmp edi, ebx
jne 0x1004fc7
mov dword [ebp - 0x20], ebx
jmp 0x1005043
push esi
push 0x1001f18
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.01004934
cmp esi, ebx
jne 0x1004fe7
mov dword [ebp - 0x24], ebx
jmp 0x1005008
push dword [ebp - 0x28]
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x18]
mov dword [ebp - 0x24], esi
push edi
push ebx
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x1005042
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01003235
cmp eax, ebx
mov dword [ebp - 0x20], eax
jge 0x1005042
mov eax, dword [section..data]
cmp eax, section..data
je 0x1005042
test byte [eax + 0x3c], 2
je 0x1005042
push dword [ebp - 0x20]
push 0x1001cf8
push 0x1c
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.010107ca
pop esi
lea ecx, [ebp - 0x24]
call fcn.01004934
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
pop edi
xor ecx, ebp
pop ebx
call fcn.01013ae1
leave
ret 0x20
Function at 0x1005387
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10160e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x2000000
push ebx
xor esi, esi
push edi
mov dword [ebp - 0x218], esi
call fcn.01005063
cmp eax, esi
mov dword [ebp - 0x214], eax
jl 0x1005477
lea eax, [ebp - 0x214]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push esi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push eax
call fcn.0100334b
test eax, eax
je 0x100546f
jmp 0x100544f
dec dword [ebp - 0x21c]
lea eax, [ebp - 0x214]
push eax
push 0x105
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x21c]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push eax
call fcn.0100334b
test eax, eax
je 0x100546f
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
call fcn.01005387
cmp eax, esi
mov dword [ebp - 0x214], eax
jl 0x1005477
cmp dword [ebp - 0x21c], esi
ja 0x10053fe
lea ecx, [ebp - 0x218]
call fcn.01003528
push ebx
push edi
call fcn.010044f9
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], esi
jge 0x10054a1
mov eax, dword [section..data]
cmp eax, section..data
je 0x10054a1
test byte [eax + 0x3c], 2
je 0x10054a1
push dword [ebp - 0x214]
push 0x1001c78
push 0x2e
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.010107ca
lea ecx, [ebp - 0x218]
call fcn.01003528
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01013ae1
leave
ret 8

Function at 0x10057d3
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [ebp + 8], 0x80000001
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
jne 0x10057f4
mov dword [ebp - 0xc], esi
lea eax, [ebp - 4]
push eax
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01005063
mov edi, eax
cmp edi, esi
jl 0x1005838
mov eax, dword [ebp - 4]
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0x18]
mov dword [ebp - 8], esi
push dword [ebp + 0x14]
push 3
push esi
push dword [ebp + 0x10]
mov dword [ebp + 8], esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call fcn.0100334b
mov edi, dword [ebp + 8]
cmp edi, esi
jge 0x100585d
mov eax, dword [section..data]
cmp eax, section..data
je 0x100585d
test byte [eax + 0x3c], 2
je 0x100585d
push edi
push 0x1001c78
push 0x24
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.010107ca
lea ecx, [ebp - 8]
call fcn.0100357a
lea ecx, [ebp - 0xc]
call fcn.01003528
lea ecx, [ebp - 4]
call fcn.01003528
mov eax, edi
pop edi
pop esi
leave
ret 0x14
Function at 0x10059fd
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [ebp + 8], 0x80000001
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
jne 0x1005a1e
mov dword [ebp - 0xc], esi
lea eax, [ebp - 4]
push eax
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010035ed
mov edi, eax
cmp edi, esi
jl 0x1005a62
mov eax, dword [ebp - 4]
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0x18]
mov dword [ebp - 8], esi
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
mov dword [ebp + 8], esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call fcn.0100334b
mov edi, dword [ebp + 8]
cmp edi, esi
jge 0x1005a87
mov eax, dword [section..data]
cmp eax, section..data
je 0x1005a87
test byte [eax + 0x3c], 2
je 0x1005a87
push edi
push 0x1001c78
push 0x24
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.010107ca
lea ecx, [ebp - 8]
call fcn.0100357a
lea ecx, [ebp - 0xc]
call fcn.01003528
lea ecx, [ebp - 4]
call fcn.01003528
mov eax, edi
pop edi
pop esi
leave
ret 0x14

Function at 0x10072ff
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
xor esi, esi
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x38], 0x100
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x100737a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01003235
mov esi, eax
test esi, esi
jge 0x100737a
mov eax, dword [section..data]
cmp eax, section..data
je 0x100737a
test byte [eax + 0x3c], 2
je 0x100737a
push esi
push 0x1001dc4
push 0x23
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.010107ca
mov eax, esi
pop esi
leave
ret 4
Function at 0x1007a39
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.01005063
cmp eax, edi
mov dword [ebp + 0xc], eax
jl 0x1007ab0
mov eax, dword [ebp - 4]
push esi
lea ecx, [ebp - 8]
push ecx
push edi
lea ecx, [ebp + 8]
push ecx
push edi
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
xor esi, esi
sub ecx, edi
je 0x1007a96
dec ecx
dec ecx
je 0x1007a92
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.0100334b
test eax, eax
je 0x1007aaa
jmp 0x1007a99
xor esi, esi
jmp 0x1007a99
xor esi, esi
inc esi
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x1007aaa
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
cmp dword [ebp + 0xc], edi
pop esi
jge 0x1007ad7
mov eax, dword [section..data]
cmp eax, section..data
je 0x1007ad7
test byte [eax + 0x3c], 2
je 0x1007ad7
push dword [ebp + 0xc]
push 0x1001c78
push 0x2d
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.010107ca
lea ecx, [ebp - 4]
call fcn.01003528
mov eax, dword [ebp + 0xc]
pop edi
leave
ret 0x14

Function at 0x1007de2
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01005063
mov dword [ebp + 0xc], eax
test eax, eax
jl 0x1007e21
mov eax, dword [ebp - 4]
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push eax
call fcn.0100334b
cmp dword [ebp + 0xc], 0
jge 0x1007e48
mov eax, dword [section..data]
cmp eax, section..data
je 0x1007e48
test byte [eax + 0x3c], 2
je 0x1007e48
push dword [ebp + 0xc]
push 0x1001c78
push 0x1e
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.010107ca
lea ecx, [ebp - 4]
call fcn.01003528
mov eax, dword [ebp + 0xc]
leave
ret 0xc
Function at 0x1007e84
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], 0x80000001
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
jne 0x1007ea5
mov dword [ebp - 0xc], edi
lea eax, [ebp - 8]
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01005063
mov esi, eax
cmp esi, edi
mov dword [ebp + 0xc], esi
jl 0x1007f64
mov dword [ebp + 8], edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
call fcn.0100334b
test eax, eax
je 0x1007f5d
cmp dword [ebp - 4], edi
jne 0x1007f1b
cmp dword [ebp + 8], edi
jbe 0x1007f56
push dword [ebp + 8]
call fcn.01003185
lea ecx, [ebp - 4]
mov esi, eax
call fcn.0100357a
cmp esi, edi
je 0x1007f11
mov dword [ebp - 4], esi
jmp 0x1007ec6
mov dword [ebp - 4], edi
mov esi, 0x8007000e
jmp 0x1007f60
cmp dword [ebp - 0x10], 0xb
je 0x1007f28
mov esi, 0x8007000d
jmp 0x1007f64
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.010075cf
mov esi, eax
cmp esi, edi
jl 0x1007f64
cmp dword [ebp + 0xc], edi
je 0x1007f48
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x1007f60
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x1007f60
mov esi, 0x8000ffff
jmp 0x1007f64
mov esi, dword [ebp + 0xc]
cmp esi, edi
jge 0x1007f89
mov eax, dword [section..data]
cmp eax, section..data
je 0x1007f89
test byte [eax + 0x3c], 2
je 0x1007f89
push esi
push 0x1001c78
push 0x22
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.010107ca
lea ecx, [ebp - 4]
call fcn.0100357a
lea ecx, [ebp - 0xc]
call fcn.01003528
lea ecx, [ebp - 8]
call fcn.01003528
pop edi
mov eax, esi
pop esi
leave
ret 0x14

Function at 0x1007fae
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [ebp + 8], 0x80000001
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
jne 0x1007fcf
mov dword [ebp - 0xc], esi
lea eax, [ebp - 4]
push eax
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01005063
mov edi, eax
cmp edi, esi
jl 0x1008014
mov eax, dword [ebp - 4]
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0x1c]
lea ecx, [ebp + 0x14]
push ecx
push 0xb
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push eax
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call fcn.0100334b
mov edi, dword [ebp + 8]
cmp edi, esi
jge 0x1008039
mov eax, dword [section..data]
cmp eax, section..data
je 0x1008039
test byte [eax + 0x3c], 2
je 0x1008039
push edi
push 0x1001c78
push 0x24
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.010107ca
lea ecx, [ebp - 8]
call fcn.0100357a
lea ecx, [ebp - 0xc]
call fcn.01003528
lea ecx, [ebp - 4]
call fcn.01003528
mov eax, edi
pop edi
pop esi
leave
ret 0x18
Function at 0x100805e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], 0x80000001
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
jne 0x100807f
mov dword [ebp - 0xc], edi
lea eax, [ebp - 8]
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01005063
mov esi, eax
cmp esi, edi
mov dword [ebp + 0xc], esi
jl 0x100813e
mov dword [ebp + 8], edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
call fcn.0100334b
test eax, eax
je 0x1008137
cmp dword [ebp - 4], edi
jne 0x10080f5
cmp dword [ebp + 8], edi
jbe 0x1008130
push dword [ebp + 8]
call fcn.01003185
lea ecx, [ebp - 4]
mov esi, eax
call fcn.0100357a
cmp esi, edi
je 0x10080eb
mov dword [ebp - 4], esi
jmp 0x10080a0
mov dword [ebp - 4], edi
mov esi, 0x8007000e
jmp 0x100813a
cmp dword [ebp - 0x10], 4
je 0x1008102
mov esi, 0x8007000d
jmp 0x100813e
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.01007578
mov esi, eax
cmp esi, edi
jl 0x100813e
cmp dword [ebp + 0xc], edi
je 0x1008122
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x100813a
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x100813a
mov esi, 0x8000ffff
jmp 0x100813e
mov esi, dword [ebp + 0xc]
cmp esi, edi
jge 0x1008163
mov eax, dword [section..data]
cmp eax, section..data
je 0x1008163
test byte [eax + 0x3c], 2
je 0x1008163
push esi
push 0x1001c78
push 0x22
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.010107ca
lea ecx, [ebp - 4]
call fcn.0100357a
lea ecx, [ebp - 0xc]
call fcn.01003528
lea ecx, [ebp - 8]
call fcn.01003528
pop edi
mov eax, esi
pop esi
leave
ret 0x14

Function at 0x1008188
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [ebp + 8], 0x80000001
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
jne 0x10081a9
mov dword [ebp - 0xc], esi
lea eax, [ebp - 4]
push eax
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01005063
mov edi, eax
cmp edi, esi
jl 0x10081ee
mov eax, dword [ebp - 4]
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0x18]
lea ecx, [ebp + 0x14]
push ecx
push 4
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push eax
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call fcn.0100334b
mov edi, dword [ebp + 8]
cmp edi, esi
jge 0x1008213
mov eax, dword [section..data]
cmp eax, section..data
je 0x1008213
test byte [eax + 0x3c], 2
je 0x1008213
push edi
push 0x1001c78
push 0x24
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.010107ca
lea ecx, [ebp - 8]
call fcn.0100357a
lea ecx, [ebp - 0xc]
call fcn.01003528
lea ecx, [ebp - 4]
call fcn.01003528
mov eax, edi
pop edi
pop esi
leave
ret 0x14