joyce8/EMBER2024-capa huggingface dataset:
Function at 0x105c6a8
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x120], esi
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x105c6f6
test byte [eax + 0x1c], 2
je 0x105c6f6
cmp byte [eax + 0x19], 5
jb 0x105c6f6
push 0x10052bc
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
push dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
push edi
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push ebx
push dword [ebp + 8]
call esi
mov dword [ebp - 0x11c], eax
test eax, eax
jne 0x105c71d
xor eax, eax
jmp 0x105c7c6
cmp dword [ebp + 0x18], 0
jne 0x105c72a
add eax, eax
jmp 0x105c7c6
test bl, 0x30
jne 0x105c7c6
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x105c786
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x105c716
test byte [eax + 0x1c], 2
je 0x105c716
cmp byte [eax + 0x19], 2
jb 0x105c716
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push 0x10052bc
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x105c716
cmp dword [ebp - 0x108], 2
jne 0x105c7c0
cmp dword [ebp - 0x114], 5
jb 0x105c7c0
push edi
push dword [ebp + 8]
call fcn.01063157
test eax, eax
je 0x105c7c0
push dword [ebp + 0x18]
or ebx, 0x20
push edi
push 0
push dword [ebp - 0x120]
push ebx
push dword [ebp + 8]
call esi
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105bb63
leave
ret 0x14
Function at 0x105c7dc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x2c], eax
xor esi, esi
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x105c828
test byte [eax + 0x1c], 2
je 0x105c828
cmp byte [eax + 0x19], 5
jb 0x105c828
push 0x10052bc
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
test byte [ebp + 0xc], 0x30
mov ebx, dword [ebp + 8]
jne 0x105c8a2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x10
pop esi
push esi
lea eax, [ebp - 0x24]
push eax
push 0x58
push ebx
call edi
test eax, eax
je 0x105c8a1
test dword [ebp - 0x16], 0x800
je 0x105c8a1
push 2
lea eax, [ebp - 0x28]
push eax
push 0x20001009
push ebx
call edi
test eax, eax
je 0x105c8a1
mov eax, ebx
and eax, 0x3ff
cmp ax, 0xd
jne 0x105c87d
test byte [ebp + 0xc], 1
je 0x105c89e
cmp dword [ebp - 0x28], 8
jmp 0x105c89c
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x105c89e
cmp eax, 6
je 0x105c89e
cmp eax, 0x17
je 0x105c89e
cmp eax, 0xa
je 0x105c89e
cmp eax, 0xb
je 0x105c89e
cmp eax, 0xc
jne 0x105c8a1
push 0x20
pop esi
pop edi
push dword [ebp + 0x18]
or esi, dword [ebp + 0xc]
push dword [ebp - 0x2c]
push 0
push dword [ebp - 0x30]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0105bb63
leave
ret 0x14
Function at 0x105cad5
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x28], 0x10
mov eax, dword [0x1075004]
mov edi, 0x1075004
cmp eax, edi
je 0x105cb1f
test byte [eax + 0x1c], 2
je 0x105cb1f
cmp byte [eax + 0x19], 5
jb 0x105cb1f
push 0x10052bc
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
test esi, esi
jne 0x105cb2b
xor eax, eax
inc eax
jmp 0x105cbd1
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x105cb30
sub eax, edx
sar eax, 1
je 0x105cb23
mov ecx, esi
mov eax, 0x100533c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x105cb6d
test dx, dx
je 0x105cb69
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x105cb6d
add eax, 4
add ecx, 4
test dx, dx
jne 0x105cb47
xor eax, eax
jmp 0x105cb72
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x105cb23
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x105cbbf
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105cbbb
test byte [eax + 0x1c], 2
je 0x105cbbb
cmp byte [eax + 0x19], 2
jb 0x105cbbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push 0x10052bc
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
xor eax, eax
jmp 0x105cbd1
lea eax, [ebp - 0x24]
push esi
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0105bb63
leave
ret 4
Function at 0x105cdc5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov eax, dword [0x1075004]
mov edi, 0x1075004
cmp eax, edi
je 0x105cdf8
test byte [eax + 0x1c], 2
je 0x105cdf8
cmp byte [eax + 0x19], 5
jb 0x105cdf8
push 0x10052bc
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
push 0x25
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x105ce47
push dword [ebp + 8]
call fcn.0105ccae
test eax, eax
jne 0x105cf27
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105ce40
test byte [eax + 0x1c], 2
je 0x105ce40
cmp byte [eax + 0x19], 2
jb 0x105ce40
push 0x10052bc
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
xor eax, eax
jmp 0x105cf27
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push dword [ebp + 8]
call esi
mov ebx, eax
test ebx, ebx
jne 0x105ce9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1075004]
cmp ecx, edi
je 0x105cf23
test byte [ecx + 0x1c], 2
je 0x105cf23
cmp byte [ecx + 0x19], 2
jb 0x105cf23
push eax
push 0x10052bc
push 0x19
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0102ca9d
jmp 0x105cf23
inc ebx
lea eax, [ebx + ebx]
push eax
call fcn.0105c544
mov dword [ebp - 4], eax
test eax, eax
jne 0x105ced8
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105cf23
test byte [eax + 0x1c], 2
je 0x105cf23
cmp byte [eax + 0x19], 2
jb 0x105cf23
push 0x10052bc
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x105cf23
push ebx
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x105ceec
cmp eax, ebx
ja 0x105ceec
mov eax, dword [ebp - 4]
jmp 0x105cf25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1075004]
cmp ecx, edi
je 0x105cf1b
test byte [ecx + 0x1c], 2
je 0x105cf1b
cmp byte [ecx + 0x19], 2
jb 0x105cf1b
push eax
push 0x10052bc
push 0x1b
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0102ca9d
push dword [ebp - 4]
call fcn.0105c5dc
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x105cf31
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 0x218], ecx
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
mov dword [ebp - 0x214], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
lea eax, [edi - 1]
cmp eax, 0x103
ja 0x105cfee
dec edi
push edi
push ebx
push edi
lea eax, [ebp - 0x20c]
push eax
push 1
push 0x800
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x105cfee
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call esi
push dword [ebp - 0x214]
mov dword [ebp - 0x210], eax
sub dword [ebp - 0x210], edi
call esi
add eax, dword [ebp - 0x210]
pop esi
cmp eax, dword [ebp + 0x14]
jge 0x105cfee
lea eax, [ebx + edi*2]
push eax
push dword [ebp - 0x214]
push 0x1001cb8
push dword [ebp + 0x14]
push dword [ebp - 0x218]
call fcn.01009acc
xor ecx, ecx
add esp, 0x14
test eax, eax
setge cl
mov eax, ecx
jmp 0x105cff0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0105bb63
leave
ret 0x10
Function at 0x105d407
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov eax, dword [0x1075004]
mov edi, 0x1075004
mov ebx, 0x10053cc
cmp eax, edi
je 0x105d447
test byte [eax + 0x1c], 2
je 0x105d447
cmp byte [eax + 0x19], 5
jb 0x105d447
push ebx
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x105d456
push 0x57
pop eax
jmp 0x105d5aa
cmp dword [esi], 0x14
jne 0x105d44e
and dword [esi + 4], 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x105d4a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105d49e
test byte [eax + 0x1c], 2
je 0x105d49e
cmp byte [eax + 0x19], 2
jb 0x105d49e
push esi
push ebx
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
mov eax, esi
jmp 0x105d5aa
push eax
call fcn.0105c544
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x105d4df
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105d4d8
test byte [eax + 0x1c], 2
je 0x105d4d8
cmp byte [eax + 0x19], 2
jb 0x105d4d8
push dword [ebp + 0xc]
push ebx
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
push 8
jmp 0x105d450
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x105d524
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105d59f
test byte [eax + 0x1c], 2
je 0x105d59f
cmp byte [eax + 0x19], 2
jb 0x105d59f
push dword [ebp - 4]
push ebx
push 0xd
jmp 0x105d561
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1005244
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x105d56e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105d59f
test byte [eax + 0x1c], 2
je 0x105d59f
cmp byte [eax + 0x19], 2
jb 0x105d59f
push dword [ebp - 4]
push ebx
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x105d59f
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x1c]
xor ecx, ecx
inc ecx
and edx, ecx
mov dword [esi + 0x10], edx
mov dx, word [eax + 0x12]
mov word [esi + 8], dx
mov dx, word [eax + 0x10]
mov word [esi + 0xa], dx
mov dx, word [eax + 0x16]
mov word [esi + 0xc], dx
mov ax, word [eax + 0x14]
mov word [esi + 0xe], ax
mov dword [esi + 4], ecx
push dword [ebp - 0xc]
call fcn.0105c5dc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x105d5b6
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, dword [0x1075004]
mov esi, 0x1075004
mov edi, 0x10053cc
cmp eax, esi
je 0x105d5fa
test byte [eax + 0x1c], 2
je 0x105d5fa
cmp byte [eax + 0x19], 5
jb 0x105d5fa
push edi
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x105d65e
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105d65a
test byte [eax + 0x1c], 2
je 0x105d65a
cmp byte [eax + 0x19], 2
jb 0x105d65a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push edi
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
xor eax, eax
jmp 0x105d668
cmp dword [ebp - 0x114], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0105bb63
leave
ret
Function at 0x105fc68
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], edi
mov eax, dword [0x1075004]
mov esi, 0x1075004
cmp eax, esi
je 0x105fcaf
test byte [eax + 0x1c], 2
je 0x105fcaf
cmp byte [eax + 0x19], 5
jb 0x105fcaf
push 0x10054e0
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp cx, word [eax]
jne 0x105fcc1
push 0x57
pop eax
jmp 0x105fe24
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
push edi
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push edi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x105fd2d
call edi
mov dword [ebp - 4], eax
cmp eax, 0x7a
jne 0x105fcf2
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x105fd2d
call edi
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105fe0a
test byte [eax + 0x1c], 2
je 0x105fe0a
cmp byte [eax + 0x19], 2
jb 0x105fe0a
push dword [ebp - 4]
push 0x10054e0
push 0x1a
jmp 0x105fde9
push dword [ebp - 0xc]
call fcn.0105c544
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x105fd70
mov dword [ebp - 4], 8
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105fe0a
test byte [eax + 0x1c], 2
je 0x105fe0a
cmp byte [eax + 0x19], 2
jb 0x105fe0a
push dword [ebp - 0xc]
push 0x10054e0
push 0x1b
jmp 0x105fde9
mov eax, dword [ebp - 8]
add eax, eax
push eax
call fcn.0105c544
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x105fdaa
mov dword [ebp - 4], 8
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105fe0a
test byte [eax + 0x1c], 2
je 0x105fe0a
cmp byte [eax + 0x19], 2
jb 0x105fe0a
push dword [ebp - 8]
push 0x10054e0
push 0x1c
jmp 0x105fde9
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
push 0
call ebx
test eax, eax
jne 0x105fdf6
call edi
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105fe0a
test byte [eax + 0x1c], 2
je 0x105fe0a
cmp byte [eax + 0x19], 2
jb 0x105fe0a
push dword [ebp - 4]
push 0x10054e0
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x105fe0a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x105fe0a
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
push dword [ebp - 0x18]
call fcn.0105c5dc
cmp dword [ebp - 4], 0
pop ebx
je 0x105fe21
push dword [ebp - 0x10]
call fcn.0105c5dc
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0xc
Function at 0x106014f
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push 4
pop ebx
mov dword [ebp - 4], ebx
test esi, esi
jne 0x1060170
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10601e8
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 2
jne 0x10601bf
mov eax, dword [ebp + 0x14]
push ebx
push esi
push ebx
push 0
push dword [ebp + 0xc]
mov dword [esi], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x10601c8
push esi
push dword [ebp + 0xc]
push 0x1005610
call fcn.01062f95
add esp, 0xc
push esi
jmp 0x10601df
test edi, edi
jne 0x10601cd
cmp dword [ebp + 0x10], ebx
jne 0x10601cd
xor eax, eax
inc eax
jmp 0x10601e7
push edi
push dword [ebp + 0xc]
push 0x10055c8
call fcn.01062f95
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 8], 3
xor edi, edi
call esi
cmp eax, ebx
je 0x106026c
cmp eax, 2
je 0x106027b
push eax
push 0x1005658
call fcn.01062f95
pop ecx
pop ecx
push edi
call fcn.0105c5dc
jmp 0x1060272
cmp dword [ebp - 8], 3
je 0x1060276
xor eax, eax
jmp 0x10602eb
cmp dword [ebp - 4], ebx
jne 0x1060282
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.0105c544
mov edi, eax
cmp edi, ebx
je 0x1060264
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ecx, dword [ebp - 4]
mov byte [edi + ecx], bl
cmp eax, ebx
je 0x10602dd
cmp eax, 2
jne 0x1060257
push dword [ebp - 4]
push edi
push 3
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x10602dd
push eax
push dword [ebp + 0xc]
push 0x1005610
call fcn.01062f95
add esp, 0xc
jmp 0x1060264
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x10602e9
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10602f7
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x1060335
push esi
push dword [ebp + 0xc]
push 0x1005610
call fcn.01062f95
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1060338
xor eax, eax
inc eax
pop esi
pop ebp
ret 0xc
Function at 0x106038c
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
cmp eax, 0xffffffff
jne 0x10603bb
cmp dword [ebp + 0x14], 0
je 0x10603b9
mov eax, dword [ebp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10603a5
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
jmp 0x10603bb
xor eax, eax
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10603e9
xor eax, eax
inc eax

Function at 0x1060435
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
neg esi
sbb esi, esi
and esi, 6
add esi, 0x20019
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
call fcn.010600a9
mov ebx, eax
mov dword [ebp + 8], ebx
cmp ebx, edi
je 0x1060551
push edi
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
je 0x10604a1
push eax
push 0x10056d0
jmp 0x1060539
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push edi
push ebx
call dword [ebp + 0x14]
test eax, eax
je 0x1060548
add dword [ebp + 0xc], 4
cmp dword [ebp + 0xc], 0x7ffffffe
ja 0x1060548
mov eax, dword [ebp + 0xc]
lea eax, [eax + eax + 2]
push eax
call fcn.0105c544
mov dword [ebp - 4], eax
cmp eax, edi
je 0x1060548
push dword [ebp + 0xc]
push eax
push edi
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x1060526
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.010600a9
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x106051a
push dword [ebp + 0x18]
push dword [ebp - 8]
push dword [ebp - 4]
push eax
call dword [ebp + 0x14]
push dword [ebp - 0xc]
test eax, eax
je 0x1060542
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call ebx
cmp eax, edi
je 0x10604e7
cmp eax, 0x103
je 0x1060548
push eax
push 0x1005698
call fcn.01062f95
pop ecx
pop ecx
jmp 0x1060548
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call fcn.0105c5dc
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1060568
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x210], esi
mov eax, dword [0x1075004]
mov ebx, 0x1075004
cmp eax, ebx
je 0x10605c6
test byte [eax + 0x1c], 2
je 0x10605c6
cmp byte [eax + 0x19], 5
jb 0x10605c6
push 0x10054f0
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
lea eax, [ebp - 0x210]
push eax
push 0x3001f
push esi
push dword [ebp - 0x21c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
je 0x1060614
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x106060e
test byte [eax + 0x1c], 2
je 0x106060e
cmp byte [eax + 0x19], 2
jb 0x106060e
push edi
push 0x10054f0
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
push edi
jmp 0x1060702
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1060636
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.01060568
test eax, eax
je 0x1060708
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x104
call edi
mov dword [ebp - 0x214], eax
cmp eax, esi
je 0x106061c
cmp eax, 0x103
jne 0x10606c3
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp edi, esi
je 0x10606be
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x106060e
test byte [eax + 0x1c], 2
je 0x106060e
cmp byte [eax + 0x19], 2
jb 0x106060e
push edi
push 0x10054f0
push 0xd
jmp 0x1060603
xor eax, eax
inc eax
jmp 0x106070a
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10606f0
test byte [eax + 0x1c], 2
je 0x10606f0
cmp byte [eax + 0x19], 2
jb 0x10606f0
push dword [ebp - 0x214]
push 0x10054f0
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105bb63
leave
ret 8