joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1062abc
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 0x1062b28
push 0x10786e0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor eax, eax
inc eax
jmp 0x1062b97
cmp edi, ebx
je 0x1062b95
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
je 0x1062b95
cmp eax, esi
ja 0x1062b95
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x1062ba8
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1062b95
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x1001cb8
push esi
mov esi, 0x10784d8
push esi
call fcn.01009a76
add esp, 0x14
test eax, eax
jge 0x1062bbd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105b7af
leave
ret 8
lea eax, [ebp - 0x20c]
push eax
push esi
mov esi, 0x10784d8
push esi
call fcn.010676d2
jmp 0x1062b91
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.0105e220
mov dword [0x1077b4c], eax
cmp eax, 0xffffffff
je 0x1062b95
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1062c0a
push dword [0x1077b4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x1077b4c], 0xffffffff
jmp 0x1062b95
push 1
push 0x10786e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1062b23
Function at 0x1062c21
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 0x1062c71
call fcn.01062a11
mov dword [0x1077b38], eax
mov dword [0x10786e4], 1
cmp dword [0x1077b38], 0
jle 0x1062d0f
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.01062a80
test eax, eax
jl 0x1062d0f
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1062ca3
sub eax, edx
sar eax, 1
mov ecx, 0x3fd
cmp eax, ecx
jae 0x1062cd3
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1062cc3
sub eax, edx
sar eax, 1
jmp 0x1062cd5
mov eax, ecx
add eax, eax
cmp word [ebp + eax - 0x806], 0xa
je 0x1062d02
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.0105b7af
leave
ret
Function at 0x10639e0
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 0x1063a16
test byte [eax + 0x1c], 2
je 0x1063a16
cmp byte [eax + 0x19], 5
jb 0x1063a16
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 0x1063a60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1063a59
test byte [eax + 0x1c], 2
je 0x1063a59
cmp byte [eax + 0x19], 2
jb 0x1063a59
push edi
push 0x1005ccc
push 0x4d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, edi
jmp 0x1063b73
cmp dword [ebp + 0xc], 0
je 0x1063a73
cmp dword [ebp - 0x1c], 1
jne 0x1063a79
xor eax, eax
jmp 0x1063b73
cmp dword [ebp - 0x1c], 4
jmp 0x1063a6a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp - 4], eax
jmp 0x1063ad0
cmp dword [ebp + 0xc], 0
je 0x1063a93
cmp dword [ebp - 0x1c], 1
jmp 0x1063a97
cmp dword [ebp - 0x1c], 4
je 0x1063b11
cmp dword [ebp + 0xc], 0
je 0x1063aa5
cmp dword [ebp - 0x1c], 3
jmp 0x1063aa9
cmp dword [ebp - 0x1c], 2
jne 0x1063b15
call ebx
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
ja 0x1063b46
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, 0x1388
cmp eax, ecx
jb 0x1063ac9
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 0x1063a87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1063b0d
test byte [eax + 0x1c], 2
je 0x1063b0d
cmp byte [eax + 0x19], 2
jb 0x1063b0d
push edi
push 0x1005ccc
push 0x4e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, edi
jmp 0x1063b72
xor eax, eax
jmp 0x1063b72
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1063b3f
test byte [eax + 0x1c], 2
je 0x1063b3f
cmp byte [eax + 0x19], 2
jb 0x1063b3f
push dword [ebp - 0x1c]
push 0x1005ccc
push 0x4f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, 0x426
jmp 0x1063b72
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1063b6d
test byte [eax + 0x1c], 2
je 0x1063b6d
cmp byte [eax + 0x19], 2
jb 0x1063b6d
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 0x1063b7e
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 0x1063bbe
test byte [eax + 0x1c], 2
je 0x1063bbe
cmp byte [eax + 0x19], 5
jb 0x1063bbe
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 0x1063c04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1063c9c
test byte [eax + 0x1c], 2
je 0x1063c9c
cmp byte [eax + 0x19], 2
jb 0x1063c9c
push dword [ebp - 4]
push edi
push 0xb
jmp 0x1063c7a
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 0x1063c3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1063c9c
test byte [eax + 0x1c], 2
je 0x1063c9c
cmp byte [eax + 0x19], 2
jb 0x1063c9c
push dword [ebp - 4]
push edi
push 0xc
jmp 0x1063c7a
mov ebx, dword [ebp + 0x20]
test ebx, ebx
je 0x1063c8c
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1063c87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1063c9c
test byte [eax + 0x1c], 2
je 0x1063c9c
cmp byte [eax + 0x19], 2
jb 0x1063c9c
push dword [ebp - 4]
push edi
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x1063c9c
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 0x1063cb0
push dword [ebp - 8]
push dword [ebp + 0x18]
call fcn.01063105
mov eax, dword [ebp - 4]
leave
ret 0x1c
Function at 0x1063cbc
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 0x1063cf1
test byte [eax + 0x1c], 2
je 0x1063cf1
cmp byte [eax + 0x19], 5
jb 0x1063cf1
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 0x1063de4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1063d52
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1063d4b
test byte [eax + 0x1c], 2
je 0x1063d4b
cmp byte [eax + 0x19], 2
jb 0x1063d4b
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.0101463a
xor eax, eax
jmp 0x1063de4
push 0x1f0003
push esi
push esi
call fcn.010634b0
mov esi, eax
test esi, esi
jne 0x1063d89
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1063d4b
test byte [eax + 0x1c], 2
je 0x1063d4b
cmp byte [eax + 0x19], 2
jb 0x1063d4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005ccc
push 0x13
jmp 0x1063d3b
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 0x1063dce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1063dce
test byte [eax + 0x1c], 2
je 0x1063dce
cmp byte [eax + 0x19], 2
jb 0x1063dce
push edi
push 0x1005ccc
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
push esi
call fcn.010638e6
cmp dword [ebp - 4], 0
jne 0x1063de1
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10649f5
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 0x1064a62
test byte [eax + 0x1c], 2
je 0x1064a62
cmp byte [eax + 0x19], 5
jb 0x1064a62
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 0x1064ab3
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1064aaa
test byte [eax + 0x1c], 2
je 0x1064aaa
cmp byte [eax + 0x19], 2
jb 0x1064aaa
push dword [ebp - 0x214]
push ebx
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
movzx eax, word [ebp - 0x214]
jmp 0x1064af3
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push edi
call fcn.010676d2
mov edi, eax
test edi, edi
jge 0x1064afc
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1064af0
test byte [eax + 0x1c], 2
je 0x1064af0
cmp byte [eax + 0x19], 2
jb 0x1064af0
movzx ecx, di
push ecx
push ebx
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
movzx eax, di
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1064b06
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.0105b7af
leave
ret 0xc
Function at 0x1064b22
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 0x1064d2e
push 1
push 1
push 0x1005bd0
push 0x80000001
mov word [edi], ax
call fcn.0105fce9
mov esi, eax
cmp esi, ebx
je 0x1064d2c
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 0x1064c0d
cmp ebx, 2
jne 0x1064d2c
mov dword [ebp - 0x628], 0x1005e9c
jmp 0x1064c6c
cmp dword [ebp - 0x62c], 1
je 0x1064c23
cmp dword [ebp - 0x62c], 2
jne 0x1064d2c
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 0x1064c6c
cmp word [ebp + eax*2 - 0x212], 0x5c
je 0x1064c6c
push esi
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.0100e6a9
test eax, eax
jl 0x1064d22
push 0x105
lea eax, [ebp - 0x41c]
push eax
push 5
call fcn.010649f5
test eax, eax
jne 0x1064c9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005e60
call fcn.01062c21
pop ecx
pop ecx
jmp 0x1064d2c
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 0xc]
push edi
call fcn.010676d2
xor ebx, ebx
cmp eax, ebx
jl 0x1064d22
mov eax, dword [ebp - 0x628]
cmp word [eax], 0x5c
je 0x1064ccb
push esi
push dword [ebp + 0xc]
push edi
call fcn.0100e6a9
cmp eax, ebx
jl 0x1064d22
push dword [ebp - 0x628]
push dword [ebp + 0xc]
push edi
call fcn.0100e6a9
cmp eax, ebx
jl 0x1064d22
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 0x1064d22
push 0x93d
push 0x1005de8
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.SHELL32.dll_SHSetLocalizedName]
cmp eax, ebx
jl 0x1064d22
push edi
call fcn.0105cd8f
xor eax, eax
inc eax
jmp 0x1064d2e
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.0105b7af
leave
ret 8
Function at 0x106905d
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 0x1069096
test byte [eax + 0x1c], 2
je 0x1069096
cmp byte [eax + 0x19], 5
jb 0x1069096
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 0x106910e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1075004]
cmp ecx, esi
je 0x1069107
test byte [ecx + 0x1c], 2
je 0x1069107
cmp byte [ecx + 0x19], 2
jb 0x1069107
push eax
push 0x10064f8
push 0xb
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101463a
xor eax, eax
jmp 0x106923b
cmp dword [ebp + 0x18], ebx
je 0x10691e7
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 8]
push 0x4c
call fcn.01065809
mov edi, eax
cmp edi, ebx
jge 0x1069173
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1069153
test byte [eax + 0x1c], 2
je 0x1069153
cmp byte [eax + 0x19], 2
jb 0x1069153
push edi
push 0x10064f8
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, edi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x1069167
and edi, 0xffff
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1069230
push dword [ebp + 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
jne 0x10691b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1075004]
cmp ecx, esi
je 0x1069230
test byte [ecx + 0x1c], 2
je 0x1069230
cmp byte [ecx + 0x19], 2
jb 0x1069230
push eax
push 0x10064f8
push 0xd
jmp 0x1069220
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.0105ff82
test eax, eax
jne 0x106922d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1075004]
cmp ecx, esi
je 0x1069230
test byte [ecx + 0x1c], 2
je 0x1069230
cmp byte [ecx + 0x19], 2
jb 0x1069230
push eax
push 0x10064f8
push 0xe
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101463a
jmp 0x1069230
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 0x106b03d
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 0x106b077
test byte [eax + 0x1c], 2
je 0x106b077
cmp byte [eax + 0x19], 5
jb 0x106b077
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 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
je 0x106b0c1
mov eax, dword [0x1075004]
cmp eax, esi
je 0x106b130
test byte [eax + 0x1c], 2
je 0x106b130
cmp byte [eax + 0x19], 2
jb 0x106b130
push ebx
push edi
push 0x76
push dword [eax + 0x14]
push dword [eax + 0x10]
jmp 0x106b12b
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 0x106b0fe
mov eax, dword [0x1075004]
cmp eax, esi
je 0x106b0fe
test byte [eax + 0x1c], 2
je 0x106b0fe
cmp byte [eax + 0x19], 2
jb 0x106b0fe
push ebx
push dword [ebp + 8]
push edi
push 0x77
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091cb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x106b130
mov ecx, dword [0x1075004]
cmp ecx, esi
je 0x106b130
test byte [ecx + 0x1c], 2
je 0x106b130
cmp byte [ecx + 0x19], 2
jb 0x106b130
push eax
push edi
push 0x78
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101463a
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x106b7a9
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
mov dword [ebp - 0x208], 1
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [0x1075004]
mov ebx, 0x1075004
cmp eax, ebx
je 0x106b818
test byte [eax + 0x1c], 2
je 0x106b818
cmp byte [eax + 0x19], 5
jb 0x106b818
push 0x10064f8
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push 0x1006a08
push 0x10069f0
push 0x100
push eax
call fcn.01009a76
mov edi, eax
add esp, 0x14
test edi, edi
jge 0x106b889
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x106b867
test byte [eax + 0x1c], 2
je 0x106b867
cmp byte [eax + 0x19], 2
jb 0x106b867
push edi
push 0x10064f8
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, edi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x106b87b
and edi, 0xffff
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x106b9a1
push 0x20019
push 0
lea eax, [ebp - 0x204]
push eax
mov edi, 0x80000002
push edi
call fcn.0105fce9
mov ebx, eax
test ebx, ebx
jne 0x106b8fd
and dword [ebp - 0x208], eax
push 0x20019
push eax
push 0x1006a08
push edi
call fcn.0105fce9
mov ebx, eax
test ebx, ebx
jne 0x106b8fd
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x106b882
test byte [eax + 0x1c], 2
je 0x106b882
cmp byte [eax + 0x19], 2
jb 0x106b882
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push 0x10064f8
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x106b882
push 0x1001768
call fcn.0105c8ee
push 0x1001d60
push 0x100668c
push ebx
mov dword [esi + 8], eax
call fcn.010606dd
push 0x1001d60
push 0x1006680
push ebx
mov dword [esi], eax
call fcn.010606dd
push 0x10066b0
push ebx
mov dword [esi + 4], eax
call fcn.0105fe33
push 0x10066bc
push ebx
mov dword [esi + 0xc], eax
call fcn.0105fe33
push ebx
mov dword [esi + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x208], 1
jne 0x106b99e
push 0
push 0
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
je 0x106b99e
mov ecx, dword [0x1075004]
cmp ecx, 0x1075004
je 0x106b99e
test byte [ecx + 0x1c], 2
je 0x106b99e
cmp byte [ecx + 0x19], 2
jb 0x106b99e
push eax
push 0x10064f8
push 0x27
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101463a
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105b7af
leave
ret 8
Function at 0x106c4f1
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [0x1075004]
mov esi, 0x1075004
mov ebx, 0x10064f8
cmp eax, esi
je 0x106c536
test byte [eax + 0x1c], 2
je 0x106c536
cmp byte [eax + 0x19], 5
jb 0x106c536
push ebx
push 0x65
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push dword [ebp + 8]
push 0x1006acc
push 0x104
push eax
call fcn.01009a76
mov edi, eax
add esp, 0x14
test edi, edi
jge 0x106c59c
mov eax, dword [0x1075004]
cmp eax, esi
je 0x106c57f
test byte [eax + 0x1c], 2
je 0x106c57f
cmp byte [eax + 0x19], 2
jb 0x106c57f
push edi
push ebx
push 0x66
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, edi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x106c632
and edi, 0xffff
jmp 0x106c632
push 0x10000
push 0
push 0x1004dc8
push 0x80000002
call fcn.0105fce9
mov dword [ebp - 0x210], eax
test eax, eax
jne 0x106c5ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x106c632
test byte [eax + 0x1c], 2
je 0x106c632
cmp byte [eax + 0x19], 2
jb 0x106c632
push edi
push ebx
push 0x67
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x106c632
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov edi, eax
test edi, edi
je 0x106c626
mov eax, dword [0x1075004]
cmp eax, esi
je 0x106c626
test byte [eax + 0x1c], 2
je 0x106c626
cmp byte [eax + 0x19], 2
jb 0x106c626
push edi
push ebx
push 0x68
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105b7af
leave
ret 8
Function at 0x4612a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4612cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4612cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret