joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1021bd8
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.0102134c
mov dword [ebp - 0x18], eax
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x14], edx
je 0x1021c60
push 2
push ebx
push ebx
push dword [ebp + 8]
call fcn.0102134c
mov ecx, eax
and ecx, edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x1021c60
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub esi, eax
sbb edi, edx
js 0x1021cf5
jg 0x1021c39
cmp esi, ebx
jbe 0x1021cf5
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x1021c6c
call fcn.0101b2d9
mov dword [eax], 0xc
call fcn.0101b2d9
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.01021e0d
pop ecx
pop ecx
mov dword [ebp - 8], eax
test edi, edi
jl 0x1021c8c
jg 0x1021c88
cmp esi, ebx
jb 0x1021c8c
mov eax, ebx
jmp 0x1021c8e
mov eax, esi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0101ecf8
add esp, 0xc
cmp eax, 0xffffffff
je 0x1021cd8
cdq
sub esi, eax
sbb edi, edx
js 0x1021caf
jg 0x1021c7e
test esi, esi
ja 0x1021c7e
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.01021e0d
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
jmp 0x1021d5e
call fcn.0101b2f1
cmp dword [eax], 5
jne 0x1021ced
call fcn.0101b2d9
mov dword [eax], 0xd
or esi, 0xffffffff
mov dword [ebp - 0xc], esi
jmp 0x1021cb2
cmp edi, ebx
jg 0x1021d6a
jl 0x1021cff
cmp esi, ebx
jae 0x1021d6a
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0102134c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x1021c60
push dword [ebp + 8]
call fcn.0101e9e6
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
and eax, edx
cmp eax, 0xffffffff
mov dword [ebp - 0xc], edx
jne 0x1021d6a
call fcn.0101b2d9
mov dword [eax], 0xd
call fcn.0101b2f1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [ebp - 0x10]
and esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x1021c60
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0102134c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x1021c60
xor eax, eax
jmp 0x1021c67
Function at 0x1022873
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 8], esi
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
je 0x1022942
cmp dword [ebp + 0x10], esi
je 0x1022942
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 4], 0xffffffff
je 0x102294a
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x102294a
cmp dword [ebp - 8], esi
je 0x10228e2
push 0x20010300
jmp 0x1022944
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x10228ee
mov eax, dword [ebp - 0xc]
jmp 0x10228f3
cmp eax, dword [ebp - 0xc]
jb 0x10228db
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, esi
je 0x102294a
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc]
mov dword [ebp + 8], esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x102294a
mov eax, dword [ebp - 0xc]
cmp dword [ebp + 8], eax
jne 0x10228db
push esi
push eax
push ebx
call dword [ebp + 0x10]
mov edi, eax
cmp edi, esi
je 0x102294a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1022973
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 4], esi
je 0x102295e
cmp dword [ebp - 4], 0xffffffff
je 0x102295e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
je 0x1022971
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x102297f
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x10229b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10229ac
cmp eax, 3
jne 0x10229b0
xor eax, eax
jmp 0x10229de
cmp dword [ebp + 0xc], 0
push esi
je 0x10229da
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10229d4
xor eax, eax
jmp 0x10229dd
push dword [ebp - 0x24]
push edi
call esi
xor eax, eax
inc eax
pop esi
pop edi
leave
ret 8
Function at 0x10232c5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 4
je 0x102334b
cmp dword [ebp + 0x10], esi
je 0x102334b
cmp dword [ebp + 0xc], esi
jne 0x10232f9
mov dword [ebp + 0xc], 0x100f454
push esi
push esi
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push dword [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.01022ebc
test eax, eax
je 0x102334b
cmp dword [ebp - 8], 1
je 0x102333d
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102333d
cmp dword [ebp - 0xc], 4
jne 0x102333d
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], esi
je 0x102334b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x1023755
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x24]
or dword [ebp - 4], 0xffffffff
push ebx
push esi
xor esi, esi
xor ebx, ebx
inc ebx
cmp eax, esi
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], ebx
je 0x102377e
mov dword [eax], esi
cmp dword [ebp + 8], esi
je 0x102389c
cmp dword [ebp + 0x10], esi
je 0x102389c
mov edi, dword [ebp + 0x14]
cmp edi, ebx
jb 0x102389c
cmp dword [ebp + 0x18], ebx
jb 0x102389c
cmp dword [ebp + 0x20], esi
je 0x102389c
push 0x2000
push 3
push 0xc0000000
push dword [ebp + 8]
call fcn.0102341b
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x10238b2
push esi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10238b2
cmp dword [ebp - 0x14], edi
je 0x10237f9
push 0x18
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10238b2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x10238b2
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0x18]
push esi
push 4
push dword [ebp - 4]
call fcn.01023358
cmp eax, esi
mov dword [ebp - 8], eax
je 0x10238b2
cmp eax, 0xffffffff
je 0x10238b2
push dword [ebp + 0x18]
xor eax, eax
cmp dword [ebp + 0x1c], esi
push esi
sete al
push esi
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x10238b2
cmp dword [ebp + 0xc], esi
je 0x102385e
mov dword [ebp - 0xc], 9
cmp dword [ebp + 0x1c], esi
je 0x1023867
or dword [ebp - 0xc], 2
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp + 0x24]
cmp eax, esi
je 0x1023885
cmp dword [ebp + 0xc], esi
je 0x1023885
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
jmp 0x102388a
push dword [ebp - 8]
call edi
push dword [ebp - 0xc]
push dword [ebp + 0x18]
push dword [ebp - 0x10]
call dword [ebp + 0x20]
cmp eax, esi
je 0x10238a4
jmp 0x10238dc
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x10], esi
je 0x10238b2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 4], esi
je 0x10238c6
cmp dword [ebp - 4], 0xffffffff
je 0x10238c6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
je 0x10238da
cmp dword [ebp - 8], 0xffffffff
je 0x10238da
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x20
Function at 0x10238e8
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
or dword [ebp - 0xc], 0xffffffff
push ebx
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call fcn.0102297f
test eax, eax
je 0x1023a9e
push ebx
push dword [ebp + 0xc]
call fcn.0102297f
test eax, eax
je 0x1023a9e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push ebx
push ebx
push 3
push ebx
push 1
mov edi, 0x80000000
push edi
push dword [ebp + 8]
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1023a9c
push ebx
push ebx
push 3
push ebx
push 1
push edi
push dword [ebp + 0xc]
call esi
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x1c], edi
je 0x1023a87
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call esi
test eax, eax
je 0x1023a87
lea eax, [ebp - 0x2c]
push eax
push edi
call esi
test eax, eax
je 0x1023a87
cmp dword [ebp - 0x20], ebx
jne 0x102398e
cmp dword [ebp - 0x28], ebx
je 0x1023996
push 0x18
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 8]
call esi
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x1023a87
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call esi
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x1023a70
mov esi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
push ebx
push ebx
push 4
push dword [ebp - 0x18]
call esi
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x14], edi
je 0x1023a70
push ebx
push ebx
push ebx
push 4
push dword [ebp + 0xc]
call esi
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x1023a5b
lea eax, [ebp - 4]
push eax
push edi
call fcn.01022b9a
mov esi, eax
cmp esi, ebx
je 0x1023a33
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
add eax, edi
add ecx, esi
cmp ecx, eax
ja 0x1023a33
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.01022b9a
cmp eax, ebx
je 0x1023a33
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + edi]
mov ecx, dword [ebp - 0x10]
lea edi, [ecx + eax]
cmp edi, edx
jbe 0x1023a43
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x2c]
jne 0x1023a5b
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
jmp 0x1023a4d
cmp dword [ebp - 4], ecx
jne 0x1023a5b
mov ecx, dword [ebp - 4]
mov edi, eax
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1023a58
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call esi
cmp dword [ebp + 8], ebx
je 0x1023a70
push dword [ebp + 8]
call esi
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp + 0xc], ebx
je 0x1023a8d
push dword [ebp + 0xc]
call esi
jmp 0x1023a8d
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call esi
cmp dword [ebp - 0x1c], ebx
je 0x1023a9c
push dword [ebp - 0x1c]
call esi
pop edi
pop esi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 8
Function at 0x1023e03
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x103f89c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov word [ebp - 0x20c], si
call fcn.01017f90
add esp, 0xc
cmp word [0x1042408], si
mov dword [ebp - 0x210], esi
je 0x1023e85
push 0x1010900
push 0x1042408
push 0x1010fb0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01023bc3
add esp, 0x14
test eax, eax
jge 0x1023e7d
push 0x32
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1023ec3
lea eax, [ebp - 0x20c]
jmp 0x1023e8a
mov eax, 0x1010868
lea ecx, [ebp - 0x210]
push ecx
push 0xf003f
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1023ec0
push edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01017c0a
leave
ret 4

Function at 0x1023ed8
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x103f89c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x206
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20a]
push esi
xor ebx, ebx
push eax
mov dword [ebp - 0x210], esi
inc ebx
mov word [ebp - 0x20c], si
call fcn.01017f90
add esp, 0xc
cmp word [0x1042408], si
mov eax, 0x10107a0
je 0x1023f6a
push 0x10108d0
push 0x1042408
push 0x1010fb0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01023bc3
add esp, 0x14
test eax, eax
jge 0x1023f64
push 0x32
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1023fd5
lea eax, [ebp - 0x20c]
cmp edi, esi
jne 0x1023f73
mov edi, 0x100f454
push 1
push 1
push esi
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.01022ebc
test eax, eax
je 0x1023f60
push 4
lea eax, [ebp - 0x214]
push eax
push 4
push esi
push edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1023fbd
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test eax, eax
je 0x1023fbf
xor ebx, ebx
cmp dword [ebp - 0x210], esi
je 0x1023fd3
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01017c0a
leave
ret 8
Function at 0x1023feb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x103f89c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
cmp eax, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x420], esi
jne 0x102403b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1024184
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov word [ebp - 0x20c], si
call fcn.01017f90
add esp, 0xc
cmp word [0x1042408], si
mov eax, 0x10107a0
je 0x1024096
push 0x10108d0
push 0x1042408
push 0x1010fb0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01023bc3
add esp, 0x14
test eax, eax
jge 0x1024090
push 0x32
jmp 0x102402e
lea eax, [ebp - 0x20c]
cmp edi, esi
jne 0x10240a4
mov dword [ebp - 0x424], 0x100f454
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.01022ebc
test eax, eax
je 0x102416a
cmp dword [ebp - 0x42c], 1
je 0x102416a
push 4
mov dword [ebp - 0x41c], esi
pop edi
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x438]
push eax
push esi
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x41c]
mov dword [ebp - 0x43c], 0x104
push dword [ebp - 0x418]
mov dword [ebp - 0x434], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x102414a
cmp eax, esi
jne 0x102416a
cmp dword [ebp - 0x438], edi
jne 0x102414a
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x424]
call fcn.01018388
test eax, eax
pop ecx
pop ecx
je 0x1024152
inc dword [ebp - 0x41c]
jmp 0x10240d9
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x430]
mov dword [ecx], eax
mov dword [ebp - 0x428], 1
cmp dword [ebp - 0x418], esi
je 0x102417e
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01017c0a
leave
ret 8
Function at 0x1024199
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x103f89c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
cmp edi, esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x21c], 1
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x214], esi
jne 0x10241e8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10242f5
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov word [ebp - 0x20c], si
call fcn.01017f90
add esp, 0xc
cmp word [0x1042408], si
mov dword [ebp - 0x218], 0x1010808
je 0x102424e
push 0x10108e8
push 0x1042408
push 0x1010fb0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01023bc3
add esp, 0x14
test eax, eax
jge 0x1024242
push 0x32
jmp 0x10241db
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x218], eax
cmp ebx, esi
jne 0x1024257
mov ebx, 0x100f454
lea eax, [ebp - 0x214]
push eax
push 0x400
push edi
call fcn.01023c23
test eax, eax
jl 0x102423e
mov eax, dword [ebp - 0x214]
lea eax, [eax + eax + 2]
cmp eax, 0x800
mov dword [ebp - 0x214], eax
ja 0x102423e
push 1
push 1
push esi
push dword [ebp - 0x218]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.01022ebc
test eax, eax
je 0x10241e1
push dword [ebp - 0x214]
push edi
push 1
push esi
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10242d5
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test eax, eax
je 0x10242db
mov dword [ebp - 0x21c], esi
cmp dword [ebp - 0x210], esi
je 0x10242ef
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01017c0a
leave
ret 8
Function at 0x102430b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x103f89c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push esi
xor esi, esi
cmp eax, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x41c], esi
jne 0x1024368
push 0x57
jmp 0x102440e
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov word [ebp - 0x20c], si
call fcn.01017f90
add esp, 0xc
cmp word [0x1042408], si
mov eax, 0x1010808
je 0x10243ce
push 0x10108e8
push 0x1042408
push 0x1010fb0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01023bc3
add esp, 0x14
test eax, eax
jge 0x10243c8
push 0x32
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10244ce
lea eax, [ebp - 0x20c]
cmp edi, esi
jne 0x10243dc
mov dword [ebp - 0x424], 0x100f454
mov edi, dword [ebp + 0x10]
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x418]
push eax
add edi, edi
call fcn.01022ebc
test eax, eax
je 0x10244b4
cmp dword [ebp - 0x42c], 1
jne 0x1024419
push 0x490
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10244b4
mov dword [ebp - 0x420], esi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x438]
lea eax, [ebp - 0x430]
push eax
push esi
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x420]
mov dword [ebp - 0x434], 0x104
push dword [ebp - 0x418]
mov dword [ebp - 0x41c], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x1024490
cmp eax, esi
jne 0x10244b4
cmp dword [ebp - 0x430], 1
jne 0x1024490
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x424]
call fcn.01018388
test eax, eax
pop ecx
pop ecx
je 0x1024498
inc dword [ebp - 0x420]
jmp 0x102441f
mov eax, dword [ebp - 0x43c]
cmp eax, esi
je 0x10244aa
mov ecx, dword [ebp - 0x41c]
mov dword [eax], ecx
mov dword [ebp - 0x428], 1
cmp dword [ebp - 0x418], esi
je 0x10244c8
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01017c0a
leave
ret 0x10
Function at 0x1024faa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x103f89c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
or dword [ebp - 0x418], 0xffffffff
test eax, eax
push esi
mov dword [ebp - 0x41c], ecx
jge 0x1024fdb
xor esi, esi
jmp 0x1024fde
lea esi, [eax + 1]
test ecx, ecx
jne 0x1024fea
or eax, 0xffffffff
jmp 0x1025087
push edi
mov edi, 0x270f
cmp esi, edi
jle 0x1025004
cmp dword [ebp + 0x10], 0
je 0x1025000
and dword [ebp + 0x10], 0
xor esi, esi
cmp esi, edi
jg 0x1025080
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x101
push dword [ebp - 0x41c]
call fcn.01024c25
test eax, eax
je 0x102507f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102507f
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.010248b0
test eax, eax
je 0x102507f
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102507f
mov dword [ebp - 0x418], esi
inc esi
cmp esi, edi
jle 0x102500a
cmp dword [ebp + 0x10], 0
je 0x102507b
and dword [ebp + 0x10], 0
xor esi, esi
cmp esi, edi
jle 0x102500a
pop ebx
mov eax, dword [ebp - 0x418]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01017c0a
leave
ret 0xc