joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e9a7
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
mov esi, dword [ebp + 0x1a0]
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x74], ax
xor edi, edi
lea eax, [ebp - 0x72]
push edi
push eax
call fcn.10031310
add esp, 0xc
push 0x2001f
push 0x1004aea8
push 0x80000002
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], 0x208
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
call fcn.1000da6a
lea ecx, [ebp - 0x7c]
test eax, eax
je 0x1000ea2d
call fcn.1000d9f5
xor eax, eax
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop esi
call fcn.10031770
add ebp, 0x198
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
call fcn.1000daab
test eax, eax
je 0x1000ea44
lea ecx, [ebp - 0x7c]
jmp 0x1000ea0f
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000ea5e
lea ecx, [ebp - 0x7c]
call fcn.1000d9f5
mov eax, edi
jmp 0x1000ea16
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x74]
push eax
push 0x104
push esi
call fcn.10009101
xor edi, edi
inc edi
jmp 0x1000ea52

Function at 0x1000ea7c
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
push esi
mov esi, dword [ebp + 0x1b8]
push edi
xor eax, eax
push 0x208
mov word [ebp - 0x60], ax
xor edi, edi
lea eax, [ebp - 0x5e]
push edi
push eax
call fcn.10031310
add esp, 0xc
push esi
push 0x104
lea eax, [ebp - 0x60]
push eax
call fcn.10009101
cmp dword [ebp + 0x1bc], edi
je 0x1000ead9
push esi
call fcn.1000ccdf
pop ecx
jmp 0x1000eb1b
push 0x1e
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.10031310
add esp, 0xc
push 0x10
pop eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x6a], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x66], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
mov ecx, dword [ebp + 0x1ac]
pop edi
xor ecx, ebp
pop esi
call fcn.10031770
add ebp, 0x1b0
leave
ret
Function at 0x1000eb32
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
mov esi, dword [ebp + 0x1a0]
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x74], ax
xor edi, edi
lea eax, [ebp - 0x72]
push edi
push eax
call fcn.10031310
add esp, 0xc
push 0x2001f
push 0x1004af28
push 0x80000002
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], 0x208
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
call fcn.1000da6a
lea ecx, [ebp - 0x7c]
test eax, eax
je 0x1000ebb8
call fcn.1000d9f5
xor eax, eax
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop esi
call fcn.10031770
add ebp, 0x198
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
call fcn.1000daab
test eax, eax
je 0x1000ebcf
lea ecx, [ebp - 0x7c]
jmp 0x1000eb9a
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000ebe9
lea ecx, [ebp - 0x7c]
call fcn.1000d9f5
mov eax, edi
jmp 0x1000eba1
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x74]
push eax
push 0x104
push esi
call fcn.10009101
xor edi, edi
inc edi
jmp 0x1000ebdd

Function at 0x1000ec51
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
mov esi, dword [ebp + 0x1a0]
xor eax, eax
push 0x206
mov word [ebp - 0x74], ax
xor ebx, ebx
lea eax, [ebp - 0x72]
push ebx
push eax
call fcn.10031310
add esp, 0xc
mov dword [ebp - 0x7c], 0x208
mov dword [ebp - 0x80], 1
cmp esi, ebx
jne 0x1000ecac
cmp dword [ebp + 0x1a4], ebx
jne 0x1000ecac
xor eax, eax
jmp 0x1000ed04
lea eax, [ebp - 0x78]
push eax
push 1
push ebx
push 0x1004aea8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000eca8
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x10051fe4
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x74], bx
je 0x1000eca8
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x1a4]
push esi
call fcn.10009101
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x194]
pop esi
xor ecx, ebp
pop ebx
call fcn.10031770
add ebp, 0x198
leave
ret
Function at 0x1000f34f
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x194], eax
push edi
mov edi, dword [ebp + 0x1a0]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.10031310
and dword [ebp - 0x7c], 0
and dword [ebp - 0x78], 0
add esp, 0xc
push 0x2001f
push 0x1004b0b8
push 0x80000002
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], 0x208
call fcn.1000da6a
lea ecx, [ebp - 0x7c]
test eax, eax
je 0x1000f3d3
call fcn.1000d9f5
xor eax, eax
mov ecx, dword [ebp + 0x194]
xor ecx, ebp
pop edi
call fcn.10031770
add ebp, 0x198
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
call fcn.1000daab
test eax, eax
je 0x1000f3eb
lea ecx, [ebp - 0x7c]
jmp 0x1000f3b6
push esi
mov esi, 0x104
lea eax, [ebp - 0x74]
push esi
push eax
push eax
call fcn.1000ec07
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000f41c
xor esi, esi
lea ecx, [ebp - 0x7c]
call fcn.1000d9f5
mov eax, esi
pop esi
jmp 0x1000f3bd
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x74]
push eax
push esi
push edi
call fcn.10009101
xor esi, esi
inc esi
jmp 0x1000f40f

Function at 0x1000f436
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x210], eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1000f471
push dword [ebp + 0x14]
push esi
call fcn.1000ea7c
pop ecx
pop ecx
jmp 0x1000f504
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10031310
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000f498
mov eax, 0x80
and eax, 0xfffffff8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.10032fdd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000f504
push edi
call fcn.10032fef
cdq
mov ecx, 0x3e8
idiv ecx
lea eax, [ebp - 0x20c]
push edx
push esi
push 0x1004b13c
push 0x104
push eax
call fcn.1000e4b8
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0x14
push 1
lea eax, [ebp - 0x20c]
push eax
push esi
call edi
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
call edi
pop edi
push 0
push esi
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10031770
leave
ret
Function at 0x10010591
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push 0x10010559
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100105b8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret

Function at 0x10010ab5
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x618
lea ebp, [esp - 4]
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x618], eax
push 0xc
mov eax, 0x100472be
call fcn.1003177f
xor edi, edi
mov esi, 0x104
push dword [edi + 0x100590f0]
lea eax, [ebp]
push 0x1004ad50
push esi
push eax
call fcn.1000e4b8
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1004ad2c
lea eax, [ebp]
push eax
push 0x80000002
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x18], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10010b9a
push esi
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.1000e7ae
add esp, 0xc
test eax, eax
je 0x10010b9a
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10010b9a
mov eax, dword [0x100591c4]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x410]
push eax
call fcn.1001093c
pop ecx
pop ecx
test eax, eax
je 0x10010b8e
push 0x1004b67c
push dword [ebp - 0x10]
call fcn.10032b93
pop ecx
pop ecx
test eax, eax
je 0x10010bcb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1000e380
add edi, 4
cmp edi, 8
jb 0x10010ae0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x618]
xor ecx, ebp
call fcn.10031770
add ebp, 0x61c
leave
ret
lea ecx, [ebp - 0x10]
call fcn.1000e380
xor eax, eax
inc eax
jmp 0x10010ba8
Function at 0x10010bd8
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x618
lea ebp, [esp - 4]
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x618], eax
push 0xc
mov eax, 0x100472be
call fcn.1003177f
xor edi, edi
mov esi, 0x104
push dword [edi + 0x100590f8]
lea eax, [ebp]
push 0x1004ad50
push esi
push eax
call fcn.1000e4b8
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1004ad2c
lea eax, [ebp]
push eax
push 0x80000002
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x18], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10010cbd
push esi
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.1000e7ae
add esp, 0xc
test eax, eax
je 0x10010cbd
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10010cbd
mov eax, dword [0x100591c4]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x410]
push eax
call fcn.1001093c
pop ecx
pop ecx
test eax, eax
je 0x10010cb1
push 0x1004b6a4
push dword [ebp - 0x10]
call fcn.10032b93
pop ecx
pop ecx
test eax, eax
je 0x10010cee
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1000e380
add edi, 4
cmp edi, 4
jb 0x10010c03
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x618]
xor ecx, ebp
call fcn.10031770
add ebp, 0x61c
leave
ret
lea ecx, [ebp - 0x10]
call fcn.1000e380
xor eax, eax
inc eax
jmp 0x10010ccb
Function at 0x10010cfb
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push 0x14
mov eax, 0x100476ac
call fcn.1003177f
xor esi, esi
push 0x10051fe4
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.100107c9
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call esi
test eax, eax
jne 0x10010d44
lea ecx, [ebp - 0x10]
call fcn.1000e380
xor eax, eax
jmp 0x10010e3d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.1000cc3d
add esp, 0xc
push edi
test eax, eax
jne 0x10010d62
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10010d35
call fcn.1000ce03
pop ecx
cmp eax, 4
jne 0x10010d70
push edi
jmp 0x10010d5a
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x10010da9
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.10010a43
push ebx
push dword [ebp - 0x10]
call fcn.10032b93
add esp, 0x10
test eax, eax
je 0x10010da9
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
lea ecx, [ebp - 0x10]
call fcn.1000e380
mov eax, esi
jmp 0x10010e3d
mov edi, dword [ebp + 0xc]
push edi
call esi
test eax, eax
jne 0x10010db8
xor esi, esi
inc esi
jmp 0x10010d9a
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.1000cc3d
add esp, 0xc
test eax, eax
je 0x10010db3
push edi
call fcn.1000ce03
pop ecx
cmp eax, 4
je 0x10010db3
test ebx, ebx
je 0x10010df7
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.10010a43
push ebx
push dword [ebp - 0x10]
call fcn.10032b93
add esp, 0x10
test eax, eax
jne 0x10010db3
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x4000
jne 0x10010db3
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
cmp eax, ecx
ja 0x10010e32
mov edx, dword [ebp - 0x20]
jne 0x10010e1f
cmp dword [ebp - 0x14], edx
ja 0x10010e32
je 0x10010d98
cmp eax, ecx
jb 0x10010e2a
jne 0x10010e32
cmp dword [ebp - 0x14], edx
jae 0x10010e32
or esi, 0xffffffff
jmp 0x10010d9a
lea ecx, [ebp - 0x10]
call fcn.1000e380
xor eax, eax
inc eax
call fcn.10031857
ret
Function at 0x10013e9f
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
xor eax, eax
test edx, edx
jne 0x10013eac
lea edx, [ecx + 4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x10013ed1
mov ecx, dword [esp + 8]
push ebx
push edi
movzx ebx, byte [ecx]
mov edi, eax
shr edi, 0x18
xor edi, ebx
shl eax, 8
xor eax, dword [edx + edi*4]
inc ecx
dec esi
jne 0x10013ebb
pop edi
pop ebx
pop esi
ret 0xc

Function at 0x100140d9
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push ebx
push eax
xor edi, edi
mov byte [ebp - 0x79], bl
mov dword [ebp - 0x80], ebx
call fcn.10031310
add esp, 0xc
push 0x1004c74c
push 0x1005bb14
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x10014176
push esi
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10014175
push ebx
lea eax, [ebp - 0x80]
push eax
push 1
lea eax, [ebp - 0x79]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001416e
cmp byte [ebp - 0x79], bl
je 0x1001416e
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp + 0x190]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.10031770
add ebp, 0x194
leave
ret
Function at 0x100145ba
Capabilities:
Check if file exists
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x198], eax
push esi
xor esi, esi
push edi
mov edi, ecx
cmp dword [0x1005d6b0], esi
jne 0x100145eb
xor eax, eax
inc eax
jmp 0x100146bf
push ebx
lea ecx, [edi + 0x64]
call fcn.10022b25
push 4
pop ebx
mov dword [ebp - 0x80], eax
xor eax, eax
push 0x206
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push esi
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
call fcn.10031310
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x1004c810
push 0x1004c7dc
mov esi, 0x80000002
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, 2
jne 0x100146bb
push 0x1004c74c
push 0x1005bb14
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x100146bb
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100146bb
mov ecx, edi
call fcn.100140d9
push dword [ebp - 0x78]
test eax, eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0x1004c7c4
push 0x1004c770
push esi
je 0x100146aa
mov dword [ebp - 0x74], 1
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, edi
call fcn.10014027
test eax, eax
je 0x100146bb
mov dword [edi + 0x4a0], 1
jmp 0x100146bb
and dword [ebp - 0x74], 0
and dword [edi + 0x4a0], 0
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [ebp - 0x80]
pop ebx
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop esi
call fcn.10031770
add ebp, 0x19c
leave
ret
Function at 0x100146d6
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ecx + 0x4a4], 0
mov dword [ebp - 8], ecx
jne 0x100146f7
mov eax, dword [ebp + 8]
mov dword [eax], 0x80030005
xor eax, eax
jmp 0x100147a1
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 4
pop ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x1004c810
push 0x1004c7dc
mov esi, 0x80000002
push esi
mov dword [ebp - 4], 1
call edi
test eax, eax
je 0x10014731
mov eax, dword [ebp + 8]
mov dword [eax], 0x80030004
jmp 0x1001479c
push 0x1004c908
push 0x1004aad4
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x1004c7c4
push 0x1004c770
push esi
call edi
test eax, eax
jne 0x10014726
mov ecx, dword [ebp - 8]
add ecx, 0x64
call fcn.10022b25
cmp eax, 0xb
jne 0x100147a5
mov eax, dword [ebp + 8]
mov dword [eax], 0x80030002
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x1004c810
push 0x1004c7dc
push esi
call edi
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x1004c7c4
push 0x1004c770
push esi
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
cmp eax, 3
jne 0x100147b5
mov eax, dword [ebp + 8]
mov dword [eax], 0x80030003
jmp 0x10014772
mov ecx, 0x80030006
cmp eax, ecx
jne 0x100147c3
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0x80030002
je 0x10014772
cmp eax, 0x80030003
je 0x10014772
cmp eax, ecx
je 0x10014772
mov ecx, dword [ebp - 8]
xor esi, esi
inc esi
mov dword [ecx + 0x4a0], esi
call fcn.10014027
test eax, eax
jne 0x100147fa
mov eax, dword [ebp + 8]
mov dword [eax], 0x80030001
jmp 0x1001479c
mov eax, esi
jmp 0x1001479e
Function at 0x100157f0
Capabilities:
Write file on windows

Disassembly:
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push 0x10000000
push 0x1005bf24
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10015816
jmp fcn.100157a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x10015934
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
mov esi, ecx
inc ebx
cmp dword [esi + 0x3dc], ebx
jne 0x10015950
mov eax, ebx
jmp 0x100159ff
cmp dword [esi + 0x3d4], 0
je 0x1001596d
mov eax, dword [ebp + 8]
test eax, eax
je 0x10015966
mov dword [eax], 0x80050001
xor eax, eax
jmp 0x100159ff
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1004cc34
push 0x1004c7dc
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 4], ebx
je 0x100159ae
mov eax, dword [ebp + 8]
test eax, eax
je 0x10015966
mov dword [eax], 0x80050002
jmp 0x10015966
push edi
lea edi, [esi + 0x404]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 8]
lea ecx, [esi + 8]
push esi
call fcn.100184e8
push ebx
mov dword [esi + 0x3dc], eax
call fcn.10015852
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x3d0]
pop edi
test eax, eax
je 0x100159ee
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0x1005d6b4], 0
mov eax, ebx
jne 0x100159ff
mov eax, dword [esi + 0x3dc]
pop esi
pop ebx
leave
ret 4

Function at 0x10015df8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3d8], edi
jne 0x10015e0e
xor eax, eax
jmp 0x10015e48
cmp dword [esi + 0x3cc], edi
je 0x10015e21
xor eax, eax
mov dword [esi + 0x3d4], edi
inc eax
jmp 0x10015e48
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x10015de6
push edi
push edi
mov dword [ebp - 4], edi
call fcn.1003316c
xor ecx, ecx
add esp, 0x18
cmp eax, edi
setne cl
mov dword [esi + 0x3cc], eax
mov eax, ecx
pop edi
pop esi
leave
ret
Function at 0x100160ca
Capabilities:
Get file size

Disassembly:
push 8
mov eax, 0x10047873
call fcn.1003177f
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
xor esi, esi
push edx
mov dword [ebp - 0x10], esi
mov ecx, dword [eax]
push eax
mov dword [ebp - 4], esi
call dword [ecx + 0xc]
xor edi, edi
cmp dword [ebp - 0x10], esi
jbe 0x10016112
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
push edi
mov dword [ebp - 0x14], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x14]
cmp word [eax + 4], si
je 0x1001612b
inc edi
cmp edi, dword [ebp - 0x10]
jb 0x100160f2
mov eax, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x10016123
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
call fcn.10031857
ret
push 0x10
add eax, 0x24
push eax
push dword [ebp + 0xc]
call fcn.100318a0
mov eax, dword [ebp - 0x14]
add esp, 0xc
push esi
push 0x80
push 3
push esi
push 7
push 0x80000000
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10016170
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx], esi
je 0x10016112
mov eax, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x10016185
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
jmp 0x10016125