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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x61047110]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 6
pop edi
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.6102b300
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x610171d5
cmp dword [ebp - 0x108], 2
jne 0x610171a6
cmp dword [ebp - 0x114], 4
ja 0x61017160
xor edi, edi
inc edi
jmp 0x610171d5
cmp dword [ebp - 0x114], 5
jne 0x61017190
cmp dword [ebp - 0x110], 0
jne 0x61017176
push 2
jmp 0x610171a3
cmp dword [ebp - 0x110], 1
jne 0x61017183
push 3
jmp 0x610171a3
cmp dword [ebp - 0x110], 2
jne 0x610171d5
push 4
jmp 0x610171a3
cmp dword [ebp - 0x114], edi
jne 0x610171d5
cmp dword [ebp - 0x110], 0
jne 0x610171d5
push 5
pop edi
jmp 0x610171d5
cmp dword [ebp - 0x108], 1
jne 0x610171d5
cmp dword [ebp - 0x114], 4
jne 0x610171d5
cmp dword [ebp - 0x110], 0
je 0x610171d3
cmp dword [ebp - 0x110], 0xa
je 0x610171d3
cmp dword [ebp - 0x110], 0x5a
jne 0x610171d5
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.6102aaaa
leave
ret

Function at 0x61017333
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x6101734c
xor al, al
jmp 0x61017351
shr eax, 4
and al, 1
pop ebp
ret 4

Function at 0x6101735a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x61017373
xor al, al
jmp 0x6101737a
shr eax, 4
not al
and al, 1
pop ebp
ret 4

Function at 0x61017383
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x610173a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x610173a6
shr eax, 3
and eax, 2
pop ebp
ret 4
Function at 0x610173af
Capabilities:
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x61047110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x80
push dword [esi]
mov bl, 1
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x6101742d
mov eax, dword [esi]
push edi
lea ecx, [ebp - 0x20c]
push ecx
xor ebx, ebx
push ebx
push 0x61003e70
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
je 0x61017425
mov eax, dword [esi]
push 1
lea ecx, [ebp - 0x20c]
push ecx
push eax
call edi
test eax, eax
je 0x61017425
push 4
push ebx
lea eax, [ebp - 0x20c]
push eax
jmp 0x6101742a
push 4
push ebx
push dword [esi]
call edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.6102aaaa
leave
ret 4
Function at 0x61018854
Capabilities:
Create directory

Disassembly:
push 0x20
mov eax, 0x6103e5e4
call fcn.6102aabe
lea ecx, [ebp - 0x10]
call fcn.6100d224
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push dword [ebp + 8]
call fcn.6100d24f
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
call fcn.610182bd
test eax, eax
je 0x610188a6
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.6100d179
mov al, bl
jmp 0x61018a54
lea eax, [ebp - 0x10]
push eax
call fcn.61017333
test al, al
je 0x610188b7
mov bl, 1
jmp 0x61018893
push 0xa
lea ecx, [ebp - 0x2c]
call fcn.6100cb40
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push 3
pop edi
cmp ecx, edi
jl 0x61018958
test ecx, ecx
jge 0x610188e4
push 0x80070057
call fcn.6100c908
movzx eax, word [eax]
push eax
call fcn.6102c15b
pop ecx
push 0x5c
test eax, eax
mov eax, dword [ebp - 0x10]
pop ebx
je 0x61018918
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jl 0x610188da
movzx edx, word [eax + 2]
cmp dx, 0x3a
jne 0x61018918
cmp ecx, 2
jl 0x610188da
movzx ecx, word [eax + 4]
cmp cx, bx
je 0x61018969
mov edx, dword [eax - 0xc]
test edx, edx
jl 0x610188da
movzx ecx, word [eax]
cmp cx, bx
jne 0x61018958
cmp edx, 1
jl 0x610188da
movzx eax, word [eax + 2]
cmp ax, bx
jne 0x61018958
push 2
push ebx
lea ecx, [ebp - 0x10]
call fcn.61017b58
test eax, eax
jl 0x61018958
inc eax
push eax
push ebx
lea ecx, [ebp - 0x10]
call fcn.61017b58
mov edi, eax
test edi, edi
jl 0x61018958
inc edi
jns 0x61018969
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.6100cd91
jmp 0x610188b3
push ebx
lea ecx, [ebp - 0x10]
call fcn.610176af
mov esi, eax
cmp esi, edi
jg 0x6101897c
mov esi, edi
jmp 0x6101897d
inc esi
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.61013da4
mov byte [ebp - 4], 3
push dword [eax]
lea ecx, [ebp - 0x2c]
call fcn.61018826
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.6100d179
cmp esi, edi
jle 0x610189dc
dec esi
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.6101397c
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x10]
call fcn.6100d722
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.6100d179
lea eax, [ebp - 0x10]
push eax
call fcn.61017333
test al, al
je 0x61018969
xor esi, esi
cmp dword [ebp - 0x24], esi
je 0x61018958
mov eax, dword [ebp - 0x2c]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x61018a3a
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.6100d24f
mov byte [ebp - 4], 5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
call fcn.61018bc4
push eax
lea eax, [ebp + 8]
push eax
call fcn.61017e7e
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x61018a5c
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.6100d179
cmp dword [ebp - 0x14], esi
jne 0x610189f1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.6100cd91
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.6100d179
mov al, 1
call fcn.6102abaa
ret 4
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.6100d179
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.6100cd91
jmp 0x61018891
Function at 0x61018b02
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x61003fec
mov esi, ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x61018b35
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x61003fb8
push 3
mov ebx, eax
call fcn.6101b077
pop ecx
pop ecx
jmp 0x61018ba7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x61003fa0
push eax
call edi
test eax, eax
mov dword [esi + 0x18], eax
je 0x61018b9f
push 0x61003f88
push dword [esi + 0xc]
call edi
test eax, eax
mov dword [esi + 0x10], eax
je 0x61018b9f
push 0x61003f70
push dword [esi + 0xc]
call edi
test eax, eax
mov dword [esi + 0x14], eax
je 0x61018b9f
push 0x61003f60
push dword [esi + 0xc]
call edi
test eax, eax
mov dword [esi + 0x1c], eax
je 0x61018b9f
push 0x61003f48
push dword [esi + 0xc]
call edi
test eax, eax
mov dword [esi + 0x20], eax
je 0x61018b9f
push 0x61003f40
push dword [esi + 0xc]
call edi
test eax, eax
mov dword [esi + 0x24], eax
jne 0x61018bb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x61018bb9
push 0x61003eb8
push 3
call fcn.6101b077
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x61018c24
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push 0x20019
mov esi, ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
xor ebx, ebx
mov dword [ebp - 0xc], edi
call fcn.61018abd
test eax, eax
jne 0x61018c60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x61018d18
mov ecx, esi
call fcn.610133c2
lea eax, [ebp - 4]
push eax
push 0x20006
push edi
push 0x61004000
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x61018cdd
lea eax, [ebp - 8]
push eax
add esi, 8
push esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x61018cdd
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], edi
je 0x61018cc8
lea eax, [ebp - 0xc]
push eax
call fcn.61017bf6
mov ebx, eax
cmp ebx, edi
je 0x61018cdd
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
push ebx
push 7
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jmp 0x61018cdb
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, edi
je 0x61018cec
cmp eax, 2
je 0x61018cec
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x61018cef
xor esi, esi
inc esi
cmp dword [ebp - 4], edi
je 0x61018cfd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
je 0x61018d08
push ebx
call fcn.6102abeb
pop ecx
cmp dword [ebp - 8], edi
je 0x61018d16
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x61019a36
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x6103ecbf
call fcn.6102aabe
mov edi, ecx
mov dword [ebp - 0x18], edi
xor esi, esi
mov dword [ebp - 4], esi
push 0x20019
call fcn.61018abd
test eax, eax
jne 0x61019a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.6100d179
xor eax, eax
call fcn.6102abaa
ret 8
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
push dword [edi + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call edi
cmp eax, esi
je 0x61019abe
cmp eax, 2
je 0x61019ab9
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.6100d179
mov eax, esi
jmp 0x61019a75
xor esi, esi
inc esi
jmp 0x61019aa9
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
mov dword [ebp - 0x14], eax
call fcn.6102b86a
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x61019a9e
push dword [ebp - 0x14]
push esi
push ebx
call fcn.6102b300
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push ebx
push esi
push esi
push dword [ebp + 8]
push dword [eax + 0x18]
call edi
test eax, eax
push ebx
je 0x61019b00
call fcn.6102abeb
pop ecx
jmp 0x61019a9e
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.610199de
push ebx
call fcn.6102abeb
cmp dword [edi + 8], esi
pop ecx
jne 0x61019ab9
jmp 0x61019a9e
Function at 0x61019b1d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x20019
push esi
mov ebx, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
call fcn.61018abd
test eax, eax
jne 0x61019b5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x61019c1e
mov ecx, ebx
call fcn.610133c2
lea eax, [ebp - 8]
push eax
push esi
push edi
push 0x61004000
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x61019bd7
lea eax, [ebp - 0xc]
push eax
add ebx, 8
push ebx
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x61019bd7
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
call esi
cmp eax, edi
je 0x61019bae
cmp eax, 2
je 0x61019bef
jmp 0x61019bd7
add dword [ebp - 4], 4
push dword [ebp - 4]
call fcn.6102b86a
mov ebx, eax
cmp ebx, edi
pop ecx
mov dword [ebp - 0x10], ebx
je 0x61019bd7
lea eax, [ebp - 4]
push eax
push ebx
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
call esi
test eax, eax
je 0x61019be6
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x61019bf2
mov ecx, dword [ebp + 8]
push ebx
call fcn.610199de
xor esi, esi
inc esi
cmp dword [ebp - 8], edi
je 0x61019c00
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], edi
je 0x61019c0e
push dword [ebp - 0x10]
call fcn.6102abeb
pop ecx
cmp dword [ebp - 0xc], edi
je 0x61019c1c
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x6101b6a6
Capabilities:
Check mutex on windows
Create directory
Get file attributes

Disassembly:
push 0x34
push 0x61042e10
call fcn.6102acf8
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x44]
call fcn.6101b389
cmp eax, ebx
jne 0x6101b7e1
push 0x61004460
push ebx
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x6101b6f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea esi, [ebp - 0x44]
call fcn.6101b2a9
mov eax, edi
jmp 0x6101b7e1
lea esi, [ebp - 0x44]
call fcn.6101b2a9
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x6101b727
cmp eax, 0x80
je 0x6101b727
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x6101b7c9
xor edi, edi
inc edi
mov dword [ebp - 0x24], edi
cmp dword [0x61048630], ebx
je 0x6101b73d
mov dword [ebp - 0x1c], ebx
jmp 0x6101b7c9
push 0x104
mov esi, 0x61048428
push esi
call fcn.6101b5e3
test eax, eax
je 0x6101b75a
mov dword [ebp - 0x1c], 0x6e
jmp 0x6101b7c9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x6101b773
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x6101b7c9
mov dword [ebp - 0x1c], ebx
mov dword [0x61048630], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test ax, 0x800
jne 0x6101b7c9
push ebx
push 0x2000000
push 3
push ebx
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x6101b7c9
mov dword [ebp - 0x28], edi
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0x28]
push eax
push 0x9c040
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
call fcn.6101b7e9
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
call fcn.6102ad3d
ret
Function at 0x6101bd6a
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x6103ebf6
call fcn.6102aabe
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.6100d970
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x14]
push eax
call fcn.61018854
mov bl, al
neg bl
sbb bl, bl
inc bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.6100d179
test bl, bl
je 0x6101bdaf
push 0x52
pop eax
jmp 0x6101be33
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], esi
push 0x80000002
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x6101be01
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.6100d970
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
push eax
call fcn.610184b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.6100d179
jmp 0x6101bda7
cmp dword [ebp - 0x1c], 1
jne 0x6101be28
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 8
lea eax, [ebp - 0x18]
push eax
push 3
push esi
push 0x61004540
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
call fcn.6102abaa
ret 8
Function at 0x6101c4de
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0
mov eax, 0x6103d92f
call fcn.6102aabe
mov esi, ecx
and dword [ebp - 4], 0
call fcn.6101c2e1
test eax, eax
jne 0x6101c511
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.6100d179
mov eax, esi
call fcn.6102abaa
ret 8
push 0x61003a9c
lea ecx, [ebp + 8]
call fcn.6101348f
test eax, eax
je 0x6101c555
push 0x6100461c
lea ecx, [ebp + 8]
call fcn.6101348f
test eax, eax
je 0x6101c555
push 0x610019dc
lea ecx, [ebp + 8]
call fcn.6101348f
test eax, eax
je 0x6101c555
push 0x610045e8
lea ecx, [ebp + 8]
call fcn.6101348f
test eax, eax
jne 0x6101c4f9
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], 0
jne 0x6101c575
lea ecx, [ebp + 8]
call fcn.610116e0
push eax
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor esi, esi
inc esi
jmp 0x6101c4fb
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
call fcn.61017bf6
mov edi, eax
test edi, edi
je 0x6101c4f9
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push edi
push 7
push 0
lea ecx, [ebp + 8]
call fcn.61018e4b
push eax
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call fcn.6102abeb
xor eax, eax
test esi, esi
sete al
pop ecx
mov esi, eax
jmp 0x6101c4fb
Function at 0x6101c61a
Capabilities:
Copy file
Set file attributes

Disassembly:
push 4
mov eax, 0x6103ec6f
call fcn.6102aabe
mov esi, ecx
mov dword [ebp - 4], 1
xor edi, edi
cmp dword [esi + 0x14], edi
jne 0x6101c65a
mov esi, 0x10a
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.6100d179
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.6100d179
mov eax, esi
jmp 0x6101c772
lea ecx, [ebp - 0x10]
call fcn.6100d224
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], edi
je 0x6101c74b
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], edi
je 0x6101c74b
lea eax, [ebp + 8]
push eax
call fcn.6101735a
test al, al
jne 0x6101c69c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.6100d179
push 2
pop esi
jmp 0x6101c63b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
add esi, 8
push esi
call fcn.61017e7e
push dword [ebp - 0x10]
call fcn.6103b12c
mov esi, eax
cmp esi, edi
je 0x6101c6cc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.6100d179
jmp 0x6101c63b
push edi
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x6101c723
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
cmp ebx, 5
jne 0x6101c710
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push dword [ebp - 0x10]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x6101c723
call esi
mov esi, eax
jmp 0x6101c6bb
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.6100d179
mov esi, ebx
jmp 0x6101c63b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.6100d179
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.6100d179
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.6100d179
xor eax, eax
jmp 0x6101c772
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.6100d179
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.6100d179
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.6100d179
push 0x57
pop eax
call fcn.6102abaa
ret 8
Function at 0x6101c883
Capabilities:
Set registry value

Disassembly:
push 4
mov eax, 0x6103ec6f
call fcn.6102aabe
mov esi, ecx
mov dword [ebp - 4], 1
call fcn.6101c2e1
test eax, eax
jne 0x6101c8c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.6100d179
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.6100d179
xor eax, eax
jmp 0x6101c9b6
mov edi, 0x610046a4
push edi
lea ecx, [ebp + 8]
call fcn.6101348f
test eax, eax
jne 0x6101c916
lea ecx, [ebp - 0x10]
call fcn.6100d224
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [esi + 8]
push eax
call fcn.61017e7e
lea eax, [ebp - 0x10]
push eax
call fcn.6101735a
test al, al
jne 0x6101c90a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.6100d179
jmp 0x6101c8a1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.6100d179
push edi
lea ecx, [ebp + 8]
call fcn.6101348f
test eax, eax
je 0x6101c96b
push 0x6100468c
lea ecx, [ebp + 8]
call fcn.6101348f
test eax, eax
je 0x6101c96b
push 0x61004668
lea ecx, [ebp + 8]
call fcn.6101348f
test eax, eax
je 0x6101c96b
push 0x61003e8c
lea ecx, [ebp + 8]
call fcn.6101348f
test eax, eax
je 0x6101c96b
push 0x61004644
lea ecx, [ebp + 8]
call fcn.6101348f
test eax, eax
jne 0x6101c8a1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp + 0xc]
call fcn.61018e4b
push eax
push 1
push 0
lea ecx, [ebp + 8]
call fcn.61018e4b
push eax
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.6100d179
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.6100d179
mov eax, esi
call fcn.6102abaa
ret 8
Function at 0x6101caff
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x6103ecef
call fcn.6102aabe
mov esi, ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
cmp ecx, ebx
jne 0x6101cb25
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x6101cd08
mov edi, dword [ebp + 8]
cmp edi, 1
je 0x6101cc2c
cmp edi, 2
je 0x6101cc2c
cmp edi, 3
jne 0x6101cb4d
add esi, 4
push esi
call fcn.6100d822
jmp 0x6101cd05
cmp edi, 0xe
jne 0x6101cb5c
cmp dword [esi + 0x14], ebx
je 0x6101cb1e
add esi, 8
jmp 0x6101cb42
mov ecx, esi
call fcn.6101c2e1
test eax, eax
je 0x6101cb1e
cmp edi, 0xb
jne 0x6101cb75
mov dword [ebp - 0x10], 0x6100468c
jmp 0x6101cb9d
cmp edi, 0xc
jne 0x6101cb83
mov dword [ebp - 0x10], 0x61004668
jmp 0x6101cb9d
cmp edi, 0xd
jne 0x6101cb91
mov dword [ebp - 0x10], 0x61003e8c
jmp 0x6101cb9d
cmp edi, 7
jne 0x6101cb16
mov dword [ebp - 0x10], 0x61004644
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp + 8], ebx
push dword [esi + 0x10]
call edi
cmp eax, ebx
jne 0x6101cc26
cmp dword [ebp + 8], 1
jbe 0x6101cc26
add dword [ebp + 8], 4
push dword [ebp + 8]
call fcn.6102b86a
cmp eax, ebx
pop ecx
mov dword [ebp - 0x14], eax
je 0x6101cb1e
push dword [ebp + 8]
push ebx
push eax
call fcn.6102b300
add esp, 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
push ebx
push ebx
push dword [ebp - 0x10]
push dword [esi + 0x10]
call edi
test eax, eax
push dword [ebp - 0x14]
je 0x6101cc07
call fcn.6102abeb
pop ecx
jmp 0x6101cb1e
mov ecx, dword [ebp + 0xc]
call fcn.6100d8e9
push dword [ebp - 0x14]
call fcn.6102abeb
xor eax, eax
cmp eax, dword [ebp + 8]
pop ecx
sbb eax, eax
neg eax
jmp 0x6101cd08
push eax
jmp 0x6101cb18
mov ecx, esi
call fcn.6101c2e1
test eax, eax
je 0x6101cb1e
lea ecx, [ebp - 0x10]
call fcn.6100d224
mov dword [ebp - 4], ebx
push 0x104
lea ecx, [ebp - 0x10]
call fcn.61011c47
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx - 0xc]
lea ecx, [ecx + ecx + 2]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push ebx
push 0x610046a4
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.61011701
cmp edi, ebx
je 0x6101cc96
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.6100d179
jmp 0x6101cb1e
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
jne 0x6101ccae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.6100d179
mov eax, ebx
jmp 0x6101cd08
cmp dword [ebp + 8], 1
jne 0x6101ccc5
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.6100d722
xor ebx, ebx
inc ebx
jmp 0x6101cc9e
lea ecx, [ebp - 0x14]
call fcn.6100d224
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
add esi, 8
push esi
call fcn.61017e7e
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.6100d722
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.6100d179
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.6100d179
xor eax, eax
inc eax
call fcn.6102abaa
ret 8