Function at 0x100045a0
Capabilities:
Contain obfuscated stackstrings
Copy file
Create directory
Delete file
Get common file path
Move file
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10010509
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x1001629c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x24c], edx
call fcn.10003d20
add esp, 8
lea ebx, [ebp - 0x238]
mov dword [ebp - 4], 0
call fcn.10007740
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x234]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10004634
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10004634
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x22c]
push eax
call fcn.10002170
push esi
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x230]
push edx
mov edi, eax
call fcn.10002170
mov edi, dword [edi]
mov eax, dword [eax]
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, dword [ebp - 0x230]
test eax, eax
sete bl
add edi, 0xfffffff4
cmp edi, 0x10016f18
je 0x10004696
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10004696
push edi
call fcn.10007aa7
add esp, 4
mov edi, dword [ebp - 0x22c]
add edi, 0xfffffff4
cmp edi, 0x10016f18
je 0x100046bb
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100046bb
push edi
call fcn.10007aa7
add esp, 4
test bl, bl
je 0x10004745
push esi
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call fcn.10002170
push esi
lea edx, [ebp - 0x238]
mov edi, eax
push edx
lea eax, [ebp - 0x230]
push eax
call fcn.10002170
mov edi, dword [edi]
mov eax, dword [eax]
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0x230]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x10004720
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10004720
push esi
call fcn.10007aa7
add esp, 4
mov esi, dword [ebp - 0x22c]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x10004745
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10004745
push esi
call fcn.10007aa7
add esp, 4
mov esi, dword [ebp - 0x250]
push esi
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x22c]
push edx
call fcn.10002170
mov edi, eax
push esi
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x230]
push ecx
call fcn.10002170
mov edi, dword [edi]
mov eax, dword [eax]
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, dword [ebp - 0x230]
test eax, eax
sete bl
add edi, 0xfffffff4
cmp edi, 0x10016f18
je 0x100047ad
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100047ad
push edi
call fcn.10007aa7
add esp, 4
mov edi, dword [ebp - 0x22c]
add edi, 0xfffffff4
cmp edi, 0x10016f18
je 0x100047d2
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100047d2
push edi
call fcn.10007aa7
add esp, 4
test bl, bl
je 0x1000485c
push esi
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x22c]
push eax
call fcn.10002170
push esi
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x230]
push edx
mov edi, eax
call fcn.10002170
mov edi, dword [edi]
mov eax, dword [eax]
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0x230]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x10004837
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10004837
push esi
call fcn.10007aa7
add esp, 4
mov esi, dword [ebp - 0x22c]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x1000485c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1000485c
push esi
call fcn.10007aa7
add esp, 4
mov esi, dword [ebp - 0x24c]
push esi
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call fcn.10002170
push esi
lea edx, [ebp - 0x238]
mov edi, eax
push edx
lea eax, [ebp - 0x230]
push eax
call fcn.10002170
mov edi, dword [edi]
mov eax, dword [eax]
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, dword [ebp - 0x230]
test eax, eax
sete bl
add edi, 0xfffffff4
cmp edi, 0x10016f18
je 0x100048c4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100048c4
push edi
call fcn.10007aa7
add esp, 4
mov edi, dword [ebp - 0x22c]
add edi, 0xfffffff4
cmp edi, 0x10016f18
je 0x100048e9
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100048e9
push edi
call fcn.10007aa7
add esp, 4
test bl, bl
je 0x10004973
push esi
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x22c]
push edx
call fcn.10002170
mov edi, eax
push esi
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x230]
push ecx
call fcn.10002170
mov edi, dword [edi]
mov eax, dword [eax]
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0x230]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x1000494e
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1000494e
push esi
call fcn.10007aa7
add esp, 4
mov esi, dword [ebp - 0x22c]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x10004973
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10004973
push esi
call fcn.10007aa7
add esp, 4
push str.libwazuhext.dll
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x22c]
push eax
call fcn.10002170
push str.libwazuhext.dll
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x230]
push edx
mov esi, eax
call fcn.10002170
mov esi, dword [esi]
mov eax, dword [eax]
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, dword [ebp - 0x230]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
sete bl
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x100049df
push esi
call edi
test eax, eax
jg 0x100049df
push esi
call fcn.10007aa7
add esp, 4
mov esi, dword [ebp - 0x22c]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x10004a00
push esi
call edi
test eax, eax
jg 0x10004a00
push esi
call fcn.10007aa7
add esp, 4
test bl, bl
je 0x10004a8a
push str.libwazuhext.dll
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call fcn.10002170
push str.libwazuhext.dll
lea edx, [ebp - 0x238]
mov esi, eax
push edx
lea eax, [ebp - 0x230]
push eax
call fcn.10002170
mov esi, dword [esi]
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0x230]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x10004a69
push esi
call edi
test eax, eax
jg 0x10004a69
push esi
call fcn.10007aa7
add esp, 4
mov esi, dword [ebp - 0x22c]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x10004a8a
push esi
call edi
test eax, eax
jg 0x10004a8a
push esi
call fcn.10007aa7
add esp, 4
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x226]
push edx
mov word [ebp - 0x228], cx
call fcn.1000c100
add esp, 0xc
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, 0x10016f24
lea eax, [ebp - 0x228]
mov dword [ebp - 0x22c], edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004ad0
sub eax, edx
sar eax, 1
mov esi, eax
je 0x10004b24
lea eax, [esi + esi + 0xe]
push eax
call fcn.10007ae1
add esp, 4
test eax, eax
je 0x10004b24
lea ecx, [esi + esi]
mov dword [eax], 1
mov dword [eax + 4], esi
mov dword [eax + 8], esi
xor edx, edx
lea edi, [eax + 0xc]
mov word [eax + ecx + 0xc], dx
push ecx
lea eax, [ebp - 0x228]
push eax
push edi
mov dword [ebp - 0x22c], edi
call fcn.1000c270
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, 1
mov dword [ebp - 0x230], 0x5c
cmp dword [edi - 0xc], ecx
jg 0x10004b60
mov eax, dword [edi - 8]
lea edx, [eax + 1]
cmp edx, dword [edi - 4]
jg 0x10004b60
mov dx, word [ebp - 0x230]
mov word [edi + eax*2], dx
add dword [edi - 8], ecx
mov eax, dword [edi - 8]
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x10004b87
mov edi, dword [edi - 8]
lea edx, [ebp - 0x22c]
lea esi, [edi + 1]
push edx
call fcn.10001ae0
test al, al
je 0x10004b87
mov ax, word [ebp - 0x230]
mov ecx, dword [ebp - 0x22c]
mov word [ecx + edi*2], ax
push 0
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x20], 0x6376736d
mov dword [ebp - 0x1c], 0x30303172
mov dword [ebp - 0x18], 0x6c6c642e
mov byte [ebp - 0x14], 0
call fcn.100011b0
add esp, 4
lea ecx, [ebp - 0x22c]
lea edi, [ebp - 0x244]
call fcn.10002cf0
mov esi, eax
push 0
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 4
call fcn.100011b0
add esp, 4
lea ecx, [ebp - 0x238]
lea edi, [ebp - 0x230]
call fcn.10002cf0
mov esi, dword [esi]
mov eax, dword [eax]
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, dword [ebp - 0x230]
test eax, eax
sete bl
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x10004c26
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10004c26
push esi
call fcn.10007aa7
add esp, 4
mov esi, dword [ebp - 0x248]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x10004c4d
push esi
call edi
test eax, eax
jg 0x10004c4d
push esi
call fcn.10007aa7
add esp, 4
mov esi, dword [ebp - 0x244]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x10004c6e
push esi
call edi
test eax, eax
jg 0x10004c6e
push esi
call fcn.10007aa7
add esp, 4
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x240]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x10004c93
push esi
call edi
test eax, eax
jg 0x10004c93
push esi
call fcn.10007aa7
add esp, 4
test bl, bl
je 0x10004d83
push 0
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x230]
call fcn.100011b0
add esp, 4
lea ecx, [ebp - 0x22c]
lea edi, [ebp - 0x248]
call fcn.10002cf0
mov esi, eax
push 0
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 6
call fcn.100011b0
add esp, 4
lea ecx, [ebp - 0x238]
lea edi, [ebp - 0x240]
call fcn.10002cf0
mov esi, dword [esi]
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0x240]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x10004d1e
push esi
call edi
test eax, eax
jg 0x10004d1e
push esi
call fcn.10007aa7
add esp, 4
mov esi, dword [ebp - 0x244]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x10004d3f
push esi
call edi
test eax, eax
jg 0x10004d3f
push esi
call fcn.10007aa7
add esp, 4
mov esi, dword [ebp - 0x248]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x10004d60
push esi
call edi
test eax, eax
jg 0x10004d60
push esi
call fcn.10007aa7
add esp, 4
mov esi, dword [ebp - 0x230]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x10004d89
push esi
call edi
test eax, eax
jg 0x10004d89
push esi
call fcn.10007aa7
add esp, 4
jmp 0x10004d89
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov edx, dword [ebp - 0x23c]
push edx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x23c]
push ecx
call fcn.10002170
mov byte [ebp - 4], 7
mov eax, dword [eax]
push eax
call fcn.10003e70
mov esi, dword [ebp - 0x23c]
add esi, 0xfffffff4
add esp, 4
cmp esi, 0x10016f18
je 0x10004dd3
push esi
call edi
test eax, eax
jg 0x10004dd3
push esi
call fcn.10007aa7
add esp, 4
mov edx, dword [ebp - 0x250]
push edx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x23c]
push ecx
call fcn.10002170
mov byte [ebp - 4], 8
mov eax, dword [eax]
push eax
call fcn.10003e70
mov esi, dword [ebp - 0x23c]
add esi, 0xfffffff4
add esp, 4
cmp esi, 0x10016f18
je 0x10004e1d
push esi
call edi
test eax, eax
jg 0x10004e1d
push esi
call fcn.10007aa7
add esp, 4
mov edx, dword [ebp - 0x24c]
push edx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x23c]
push ecx
call fcn.10002170
mov byte [ebp - 4], 9
mov eax, dword [eax]
push eax
call fcn.10003e70
mov esi, dword [ebp - 0x23c]
add esi, 0xfffffff4
add esp, 4
cmp esi, 0x10016f18
je 0x10004e67
push esi
call edi
test eax, eax
jg 0x10004e67
push esi
call fcn.10007aa7
add esp, 4
push str.libwazuhext.dll
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x240]
push eax
call fcn.10002170
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
push eax
call fcn.10003e70
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x240]
add esi, 0xfffffff4
add esp, 4
cmp esi, 0x10016f18
je 0x10004eb3
push esi
call edi
test eax, eax
jg 0x10004eb3
push esi
call fcn.10007aa7
add esp, 4
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.10004150
mov edx, dword [ebp - 0x234]
add esp, 4
push 6
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [ebp - 0x22c]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x10004ef2
push esi
call edi
test eax, eax
jg 0x10004ef2
push esi
call fcn.10007aa7
add esp, 4
mov esi, dword [ebp - 0x238]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x10004f13
push esi
call edi
test eax, eax
jg 0x10004f13
push esi
call fcn.10007aa7
add esp, 4
mov esi, dword [ebp - 0x234]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x10004f34
push esi
call edi
test eax, eax
jg 0x10004f34
push esi
call fcn.10007aa7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10007a8d
mov esp, ebp
pop ebp
ret