joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1060720
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], 4
mov dword [ebp - 8], esi
mov eax, dword [0x1075004]
mov edi, 0x1075004
cmp eax, edi
je 0x1060762
test byte [eax + 0x1c], 2
je 0x1060762
cmp byte [eax + 0x19], 5
jb 0x1060762
push 0x10054f0
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call esi
mov ebx, eax
test ebx, ebx
je 0x10607ab
mov eax, dword [0x1075004]
cmp eax, edi
je 0x1060822
test byte [eax + 0x1c], 2
je 0x1060822
cmp byte [eax + 0x19], 2
jb 0x1060822
push ebx
push 0x10054f0
push 0xf
jmp 0x1060817
cmp dword [ebp - 4], 4
je 0x10607df
mov eax, dword [0x1075004]
cmp eax, edi
je 0x10607d8
test byte [eax + 0x1c], 2
je 0x10607d8
cmp byte [eax + 0x19], 2
jb 0x10607d8
push 0x10054f0
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov ebx, 0x3f1
jmp 0x1060822
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ebx, eax
test ebx, ebx
je 0x1060822
mov eax, dword [0x1075004]
cmp eax, edi
je 0x1060822
test byte [eax + 0x1c], 2
je 0x1060822
cmp byte [eax + 0x19], 2
jb 0x1060822
push ebx
push 0x10054f0
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x1061472
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
and dword [ebp - 0x120], 0
push ebx
push esi
push edi
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [0x1075004]
mov esi, 0x1075004
push 2
mov edi, 0x10059e0
pop ebx
cmp eax, esi
je 0x10614d6
test byte [eax + 0x1c], bl
je 0x10614d6
cmp byte [eax + 0x19], 5
jb 0x10614d6
push edi
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1061525
mov eax, dword [0x1075004]
cmp eax, esi
je 0x106151e
test byte [eax + 0x1c], bl
je 0x106151e
cmp byte [eax + 0x19], bl
jb 0x106151e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push edi
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
xor eax, eax
jmp 0x10615d2
cmp dword [ebp - 0x110], ebx
je 0x1061551
mov eax, dword [0x1075004]
cmp eax, esi
je 0x106151e
test byte [eax + 0x1c], bl
je 0x106151e
cmp byte [eax + 0x19], 3
jb 0x106151e
push edi
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x106151e
cmp dword [ebp - 0x11c], 5
jae 0x1061573
mov eax, dword [0x1075004]
cmp eax, esi
je 0x106151e
test byte [eax + 0x1c], bl
je 0x106151e
cmp byte [eax + 0x19], 3
jb 0x106151e
push edi
push 0xe
jmp 0x1061544
mov eax, dword [ebp - 8]
test al, 0x40
je 0x106158c
xor eax, eax
cmp byte [ebp - 6], 1
setne al
dec eax
and eax, 0xffffffe0
add eax, 0x40
jmp 0x10615d2
test eax, 0x200
je 0x1061598
xor eax, eax
inc eax
jmp 0x10615d2
test bl, al
je 0x10615a0
push 8
jmp 0x10615d1
test al, al
jns 0x10615a8
push 0x10
jmp 0x10615d1
test eax, 0x400
je 0x10615b6
mov eax, 0x80
jmp 0x10615d2
cmp byte [ebp - 6], 1
jne 0x10615c0
mov eax, ebx
jmp 0x10615d2
cmp byte [ebp - 6], 3
je 0x10615cf
cmp byte [ebp - 6], bl
jne 0x106151e
push 4
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105bb63
leave
ret

Function at 0x1062d85
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1001c60
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1062db0
xor eax, eax
leave
ret
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1005c64
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1062ddd
cmp dword [ebp - 0x10], 4
je 0x1062de1
and dword [ebp - 8], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x1062e30
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
cmp dword [0x1077b4c], 0xffffffff
je 0x1062e9c
push 0x10786e0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor eax, eax
inc eax
jmp 0x1062f0b
cmp edi, ebx
je 0x1062f09
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
je 0x1062f09
cmp eax, esi
ja 0x1062f09
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x1062f1c
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1062f09
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x1001cb8
push esi
mov esi, 0x10784d8
push esi
call fcn.01009acc
add esp, 0x14
test eax, eax
jge 0x1062f31
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105bb63
leave
ret 8
lea eax, [ebp - 0x20c]
push eax
push esi
mov esi, 0x10784d8
push esi
call fcn.01009a5d
jmp 0x1062f05
mov eax, dword [ebp + 0xc]
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
push esi
mov dword [0x1077b48], eax
call fcn.0105e5e0
mov dword [0x1077b4c], eax
cmp eax, 0xffffffff
je 0x1062f09
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1062f7e
push dword [0x1077b4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x1077b4c], 0xffffffff
jmp 0x1062f09
push 1
push 0x10786e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1062e97
Function at 0x1062f95
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [0x10786e4], 0
jne 0x1062fe5
call fcn.01062d85
mov dword [0x1077b38], eax
mov dword [0x10786e4], 1
cmp dword [0x1077b38], 0
jle 0x1063083
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.01062df4
test eax, eax
jl 0x1063083
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1063017
sub eax, edx
sar eax, 1
mov ecx, 0x3fd
cmp eax, ecx
jae 0x1063047
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1063037
sub eax, edx
sar eax, 1
jmp 0x1063049
mov eax, ecx
add eax, eax
cmp word [ebp + eax - 0x806], 0xa
je 0x1063076
push 0xd
pop ecx
mov word [ebp + eax - 0x804], cx
push 0xa
pop ecx
mov word [ebp + eax - 0x802], cx
xor ecx, ecx
mov word [ebp + eax - 0x800], cx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0105bb63
leave
ret
Function at 0x1063d54
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov eax, dword [0x1075004]
mov esi, 0x1075004
cmp eax, esi
je 0x1063d8a
test byte [eax + 0x1c], 2
je 0x1063d8a
cmp byte [eax + 0x19], 5
jb 0x1063d8a
push 0x1005ccc
push 0x4c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1063dd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1063dcd
test byte [eax + 0x1c], 2
je 0x1063dcd
cmp byte [eax + 0x19], 2
jb 0x1063dcd
push edi
push 0x1005ccc
push 0x4d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
mov eax, edi
jmp 0x1063ee7
cmp dword [ebp + 0xc], 0
je 0x1063de7
cmp dword [ebp - 0x1c], 1
jne 0x1063ded
xor eax, eax
jmp 0x1063ee7
cmp dword [ebp - 0x1c], 4
jmp 0x1063dde
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp - 4], eax
jmp 0x1063e44
cmp dword [ebp + 0xc], 0
je 0x1063e07
cmp dword [ebp - 0x1c], 1
jmp 0x1063e0b
cmp dword [ebp - 0x1c], 4
je 0x1063e85
cmp dword [ebp + 0xc], 0
je 0x1063e19
cmp dword [ebp - 0x1c], 3
jmp 0x1063e1d
cmp dword [ebp - 0x1c], 2
jne 0x1063e89
call ebx
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
ja 0x1063eba
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, 0x1388
cmp eax, ecx
jb 0x1063e3d
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1063dfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1063e81
test byte [eax + 0x1c], 2
je 0x1063e81
cmp byte [eax + 0x19], 2
jb 0x1063e81
push edi
push 0x1005ccc
push 0x4e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
mov eax, edi
jmp 0x1063ee6
xor eax, eax
jmp 0x1063ee6
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1063eb3
test byte [eax + 0x1c], 2
je 0x1063eb3
cmp byte [eax + 0x19], 2
jb 0x1063eb3
push dword [ebp - 0x1c]
push 0x1005ccc
push 0x4f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
mov eax, 0x426
jmp 0x1063ee6
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1063ee1
test byte [eax + 0x1c], 2
je 0x1063ee1
cmp byte [eax + 0x19], 2
jb 0x1063ee1
push 0x1005ccc
push 0x50
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov eax, 0x5b4
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x1063ef2
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x1075004]
mov esi, 0x1075004
mov edi, 0x1005ccc
cmp eax, esi
je 0x1063f32
test byte [eax + 0x1c], 2
je 0x1063f32
cmp byte [eax + 0x19], 5
jb 0x1063f32
push edi
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
push dword [ebp + 0x18]
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp + 0x18], eax
cmp eax, ebx
jne 0x1063f78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1064010
test byte [eax + 0x1c], 2
je 0x1064010
cmp byte [eax + 0x19], 2
jb 0x1064010
push dword [ebp - 4]
push edi
push 0xb
jmp 0x1063fee
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1063fb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1064010
test byte [eax + 0x1c], 2
je 0x1064010
cmp byte [eax + 0x19], 2
jb 0x1064010
push dword [ebp - 4]
push edi
push 0xc
jmp 0x1063fee
mov ebx, dword [ebp + 0x20]
test ebx, ebx
je 0x1064000
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1063ffb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1064010
test byte [eax + 0x1c], 2
je 0x1064010
cmp byte [eax + 0x19], 2
jb 0x1064010
push dword [ebp - 4]
push edi
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x1064010
mov eax, dword [ebp - 0x20]
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x1064024
push dword [ebp - 8]
push dword [ebp + 0x18]
call fcn.01063479
mov eax, dword [ebp - 4]
leave
ret 0x1c
Function at 0x1064030
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1075004]
mov ebx, 0x1075004
cmp eax, ebx
je 0x1064065
test byte [eax + 0x1c], 2
je 0x1064065
cmp byte [eax + 0x19], 5
jb 0x1064065
push 0x1005ccc
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov edi, 0x1005ce0
push edi
push 0
mov esi, 0x100000
push esi
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
jne 0x1064158
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10640c6
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10640bf
test byte [eax + 0x1c], 2
je 0x10640bf
cmp byte [eax + 0x19], 2
jb 0x10640bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005ccc
push 0x12
mov eax, dword [0x1075004]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
xor eax, eax
jmp 0x1064158
push 0x1f0003
push esi
push esi
call fcn.01063824
mov esi, eax
test esi, esi
jne 0x10640fd
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10640bf
test byte [eax + 0x1c], 2
je 0x10640bf
cmp byte [eax + 0x19], 2
jb 0x10640bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005ccc
push 0x13
jmp 0x10640af
push edi
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
xor edi, edi
mov dword [ebp - 4], eax
test eax, eax
jne 0x1064142
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1064142
test byte [eax + 0x1c], 2
je 0x1064142
cmp byte [eax + 0x19], 2
jb 0x1064142
push edi
push 0x1005ccc
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
push esi
call fcn.01063c5a
cmp dword [ebp - 4], 0
jne 0x1064155
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1064d69
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [0x1075004]
mov esi, 0x1075004
mov ebx, 0x1005db8
cmp eax, esi
je 0x1064dd6
test byte [eax + 0x1c], 2
je 0x1064dd6
cmp byte [eax + 0x19], 5
jb 0x1064dd6
push ebx
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
lea eax, [ebp - 0x20c]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x214], eax
test eax, eax
jge 0x1064e27
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1064e1e
test byte [eax + 0x1c], 2
je 0x1064e1e
cmp byte [eax + 0x19], 2
jb 0x1064e1e
push dword [ebp - 0x214]
push ebx
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
movzx eax, word [ebp - 0x214]
jmp 0x1064e67
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push edi
call fcn.01009a5d
mov edi, eax
test edi, edi
jge 0x1064e70
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1064e64
test byte [eax + 0x1c], 2
je 0x1064e64
cmp byte [eax + 0x19], 2
jb 0x1064e64
movzx ecx, di
push ecx
push ebx
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
movzx eax, di
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1064e7a
mov dword [ebp - 0x210], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105bb63
leave
ret 0xc
Function at 0x1064e97
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x41c], ax
xor ebx, ebx
lea eax, [ebp - 0x41a]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push 0x206
mov word [ebp - 0x624], ax
lea eax, [ebp - 0x622]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x24
xor eax, eax
mov dword [ebp - 0x630], 0x20a
cmp edi, ebx
je 0x10650a3
push 1
push 1
push 0x1005bd0
push SysReAllocString
mov word [edi], ax
call fcn.010600a9
mov esi, eax
cmp esi, ebx
je 0x10650a1
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x62c]
push eax
push ebx
push 0x1005dc8
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x1005244
test ebx, ebx
je 0x1064f82
cmp ebx, 2
jne 0x10650a1
mov dword [ebp - 0x628], 0x1005e9c
jmp 0x1064fe1
cmp dword [ebp - 0x62c], 1
je 0x1064f98
cmp dword [ebp - 0x62c], 2
jne 0x10650a1
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x628], ecx
lea ecx, [eax - 1]
cmp ecx, 0x103
ja 0x1064fe1
cmp word [ebp + eax*2 - 0x212], 0x5c
je 0x1064fe1
push esi
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.0100e740
test eax, eax
jl 0x1065097
push 0x105
lea eax, [ebp - 0x41c]
push eax
push 5
call fcn.01064d69
test eax, eax
jne 0x1065010
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005e60
call fcn.01062f95
pop ecx
pop ecx
jmp 0x10650a1
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 0xc]
push edi
call fcn.01009a5d
xor ebx, ebx
cmp eax, ebx
jl 0x1065097
mov eax, dword [ebp - 0x628]
cmp word [eax], 0x5c
je 0x1065040
push esi
push dword [ebp + 0xc]
push edi
call fcn.0100e740
cmp eax, ebx
jl 0x1065097
push dword [ebp - 0x628]
push dword [ebp + 0xc]
push edi
call fcn.0100e740
cmp eax, ebx
jl 0x1065097
lea eax, [ebp - 0x624]
push eax
push 0x1005e2c
push ebx
push ebx
push 0x8005
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
cmp eax, ebx
jl 0x1065097
push 0x93d
push 0x1005de8
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.SHELL32.dll_SHSetLocalizedName]
cmp eax, ebx
jl 0x1065097
push edi
call fcn.0105d14f
xor eax, eax
inc eax
jmp 0x10650a3
movzx eax, ax
push eax
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
Function at 0x1069265
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
mov eax, dword [0x1075004]
mov esi, 0x1075004
cmp eax, esi
je 0x106929e
test byte [eax + 0x1c], 2
je 0x106929e
cmp byte [eax + 0x19], 5
jb 0x106929e
push 0x10064f8
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
xor eax, eax
mov dword [ebp - 8], ebx
lea edi, [ebp - 4]
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push 1
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x1006570
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0xc], 0x1006508
mov dword [ebp - 0x10], 0x14
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x1069316
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1075004]
cmp ecx, esi
je 0x106930f
test byte [ecx + 0x1c], 2
je 0x106930f
cmp byte [ecx + 0x19], 2
jb 0x106930f
push eax
push 0x10064f8
push 0xb
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0102ca9d
xor eax, eax
jmp 0x1069443
cmp dword [ebp + 0x18], ebx
je 0x10693ef
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 8]
push 0x4c
call fcn.01065b4c
mov edi, eax
cmp edi, ebx
jge 0x106937b
mov eax, dword [0x1075004]
cmp eax, esi
je 0x106935b
test byte [eax + 0x1c], 2
je 0x106935b
cmp byte [eax + 0x19], 2
jb 0x106935b
push edi
push 0x10064f8
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
mov eax, edi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x106936f
and edi, 0xffff
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1069438
push dword [ebp + 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
jne 0x10693be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1075004]
cmp ecx, esi
je 0x1069438
test byte [ecx + 0x1c], 2
je 0x1069438
cmp byte [ecx + 0x19], 2
jb 0x1069438
push eax
push 0x10064f8
push 0xd
jmp 0x1069428
push 0x4c
push 0x1006520
push edi
call sub.msvcrt.dll_memcpy
push dword [ebp - 8]
lea eax, [edi + 0x4c]
push dword [ebp - 4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x18
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], edi
mov dword [ebp - 8], eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01060342
test eax, eax
jne 0x1069435
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1075004]
cmp ecx, esi
je 0x1069438
test byte [ecx + 0x1c], 2
je 0x1069438
cmp byte [ecx + 0x19], 2
jb 0x1069438
push eax
push 0x10064f8
push 0xe
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0102ca9d
jmp 0x1069438
xor ebx, ebx
inc ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x106b245
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword [0x1075004]
mov esi, 0x1075004
mov edi, 0x10064f8
cmp eax, esi
je 0x106b27f
test byte [eax + 0x1c], 2
je 0x106b27f
cmp byte [eax + 0x19], 5
jb 0x106b27f
push edi
push 0x75
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
lea eax, [ebp - 4]
push eax
push 0x10000
push 0
push 0x1006948
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
je 0x106b2c9
mov eax, dword [0x1075004]
cmp eax, esi
je 0x106b338
test byte [eax + 0x1c], 2
je 0x106b338
cmp byte [eax + 0x19], 2
jb 0x106b338
push ebx
push edi
push 0x76
push dword [eax + 0x14]
push dword [eax + 0x10]
jmp 0x106b333
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebx, eax
test ebx, ebx
je 0x106b306
mov eax, dword [0x1075004]
cmp eax, esi
je 0x106b306
test byte [eax + 0x1c], 2
je 0x106b306
cmp byte [eax + 0x19], 2
jb 0x106b306
push ebx
push dword [ebp + 8]
push edi
push 0x77
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x106b338
mov ecx, dword [0x1075004]
cmp ecx, esi
je 0x106b338
test byte [ecx + 0x1c], 2
je 0x106b338
cmp byte [ecx + 0x19], 2
jb 0x106b338
push eax
push edi
push 0x78
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0102ca9d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4