joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49f740
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov al, byte [esi + 0xa00]
mov dword [ebp - 0x10], esp
cmp al, bl
je 0x49f7f0
cmp byte [esi + 0xd], bl
je 0x49f7f0
lea edi, [esi + 0x318]
push ebx
push ebx
push 0x2000000
mov ecx, edi
mov byte [esi + 0x6e0], 1
mov byte [esi + 0xd], bl
mov dword [esi + 0x438], ebx
call fcn.006233ad
lea eax, [esi + 0x610]
mov ecx, edi
push eax
call fcn.0062f6b6
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, edi
call fcn.0062f208
push eax
mov ecx, edi
call fcn.0062f5c1
cmp eax, ebx
jl 0x49f7ce
push eax
mov ecx, edi
call fcn.0062f594
mov ecx, edi
call fcn.0062f208
mov edx, dword [eax + 0x1c]
push 1
push ebx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
push ebx
push 0x2000000
push ebx
mov ecx, edi
call fcn.006233ad
mov ecx, dword [0x6fcafc]
lea eax, [ebp - 0x14]
push 4
push eax
push 4
push ebx
push str.bHideSLTabOnDwnlDlg
push ecx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49f830
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642170
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov al, byte [edi + 0xa00]
mov dword [ebp - 4], ebx
cmp al, bl
je 0x49f8da
cmp byte [edi + 0xe], bl
je 0x49f8da
lea esi, [edi + 0x318]
push ebx
push ebx
push 0x2000000
mov ecx, esi
mov byte [edi + 0x590], 1
mov byte [edi + 0xe], bl
call fcn.006233ad
lea eax, [edi + 0x4c0]
mov ecx, esi
push eax
call fcn.0062f6b6
mov ecx, dword [edi + 0x10]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, esi
call fcn.0062f208
push eax
mov ecx, esi
call fcn.0062f5c1
cmp eax, ebx
jl 0x49f8b8
push eax
mov ecx, esi
call fcn.0062f594
mov ecx, esi
call fcn.0062f208
mov edx, dword [eax + 0x1c]
push 1
push ebx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
push ebx
push 0x2000000
push ebx
mov ecx, esi
call fcn.006233ad
mov ecx, dword [0x6fcafc]
lea eax, [ebp - 0x14]
push 4
push eax
push 4
push ebx
push str.bHideCTabOnDwnlDlg
push ecx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49fdd0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x642230
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov cl, byte [esp + 0x14]
mov edx, dword [0x6fcafc]
xor eax, eax
push 4
test cl, cl
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push str.ShowDropTarget
setne al
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4a37b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
push edi
push 0
mov esi, ecx
push 0
push 0
push 0
lea edi, [esi + 0x8c]
push ebx
push eax
push 1
mov ecx, edi
call fcn.00620866
mov ebp, eax
mov eax, dword [esi + 0x128]
test eax, eax
je 0x4a380f
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x40]
push ecx
push edx
push 0
push 0
push ebx
push eax
mov dword [esp + 0x54], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a380f
cmp dword [esp + 0x40], 2
je 0x4a3837
mov ecx, dword [esi + 0xa8]
lea eax, [esp + 0x10]
push eax
push ebp
push 0x102b
push ecx
mov dword [esp + 0x30], 0xf000
mov dword [esp + 0x2c], 0x2000
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ecx, edi
call fcn.006208e8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
Function at 0x4a3860
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x642648
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
mov edx, dword [esi + 0x128]
mov ecx, dword [esi + 0xfc]
cmp ebx, edx
push 0
push 0
push 0xf0
sete al
push ecx
mov dword [esp + 0x28], eax
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x10]
neg eax
push 4
push edx
sbb eax, eax
push 4
push 0
add eax, 2
push str.PanelView
push ebx
mov dword [esp + 0x28], eax
call ebp
mov eax, dword [esi + 0xec]
push 0
push 0
push 0xf0
push eax
call edi
lea ecx, [esp + 0x10]
push 4
neg eax
push ecx
push 4
sbb eax, eax
push 0
add eax, 2
push str.DonlCaptWP
push ebx
mov dword [esp + 0x28], eax
call ebp
or ebx, 0xffffffff
mov edx, dword [esi + 0xa8]
push 0
push ebx
push 0x100c
push edx
call edi
mov ebx, eax
test ebx, ebx
jl 0x4a39f3
mov eax, dword [esi + 0xa8]
push 0xf000
push ebx
push 0x102c
push eax
call edi
shr eax, 0xc
dec eax
push 0
neg eax
sbb eax, eax
lea ecx, [esp + 0x18]
lea ebp, [esi + 0x8c]
push ebx
add eax, 2
push ecx
mov ecx, ebp
mov dword [esp + 0x1c], eax
call fcn.0062098c
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], 0
je 0x4a39d7
mov ecx, dword [esp + 0x30]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push edx
push ecx
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a39d7
mov eax, dword [esi + 0x12c]
test eax, eax
je 0x4a39d7
push ebx
mov ecx, ebp
call fcn.00620a31
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4a39c5
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x12c]
lea edx, [esp + 0x1c]
push 4
push edx
push 4
push 0
push eax
push ecx
call edi
jmp 0x4a39d7
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x12c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.00622d8a
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4a3902
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x4a387e
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x642648
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
mov edx, dword [esi + 0x128]
mov ecx, dword [esi + 0xfc]
cmp ebx, edx
push 0
push 0
push 0xf0
sete al
push ecx
mov dword [esp + 0x28], eax
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x10]
neg eax
push 4
push edx
sbb eax, eax
push 4
push 0
add eax, 2
push str.PanelView
push ebx
mov dword [esp + 0x28], eax
call ebp
mov eax, dword [esi + 0xec]
push 0
push 0
push 0xf0
push eax
call edi
lea ecx, [esp + 0x10]
push 4
neg eax
push ecx
push 4
sbb eax, eax
push 0
add eax, 2
push str.DonlCaptWP
push ebx
mov dword [esp + 0x28], eax
call ebp
or ebx, 0xffffffff
mov edx, dword [esi + 0xa8]
push 0
push ebx
push 0x100c
push edx
call edi
mov ebx, eax
test ebx, ebx
jl 0x4a39f3
mov eax, dword [esi + 0xa8]
push 0xf000
push ebx
push 0x102c
push eax
call edi
shr eax, 0xc
dec eax
push 0
neg eax
sbb eax, eax
lea ecx, [esp + 0x18]
lea ebp, [esi + 0x8c]
push ebx
add eax, 2
push ecx
mov ecx, ebp
mov dword [esp + 0x1c], eax
call fcn.0062098c
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], 0
je 0x4a39d7
mov ecx, dword [esp + 0x30]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push edx
push ecx
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a39d7
mov eax, dword [esi + 0x12c]
test eax, eax
je 0x4a39d7
push ebx
mov ecx, ebp
call fcn.00620a31
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4a39c5
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x12c]
lea edx, [esp + 0x1c]
push 4
push edx
push 4
push 0
push eax
push ecx
call edi
jmp 0x4a39d7
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x12c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.00622d8a
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4a3902
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x4a5870
Capabilities:
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6428f0
push eax
mov eax, dword [0x6fcacc]
mov dword fs:[0], esp
push ebp
push esi
test eax, eax
push edi
je 0x4a59a8
mov eax, dword [0x6fceb8]
test eax, eax
jne 0x4a58c0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, dword [0x6fceac]
test eax, eax
jne 0x4a58dd
call fcn.004a5380
mov dword [0x6fcea8], eax
mov dword [0x6fceac], 1
mov eax, dword [0x6fcea8]
test eax, eax
je 0x4a5908
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
push esi
call fcn.004a5440
mov edi, dword [esp + 0x20]
add esp, 4
test eax, eax
jne 0x4a5966
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4a594f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4a5966
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4a598a
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
push 0
push esi
push edi
call fcn.004a4fd0
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebp, eax
test ebp, ebp
jne 0x4a5a73
mov eax, dword [0x6cdafc]
test eax, eax
jne 0x4a5a73
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00402850
lea edx, [esp + 0x28]
push esi
push edx
mov dword [esp + 0x24], ebp
call fcn.00402850
mov eax, dword [esp + 0x2c]
push 0x3f
push eax
call fcn.00609c00
add esp, 0x18
test eax, eax
jne 0x4a5a54
mov ecx, dword [esp + 0x20]
push 0x3f
push ecx
call fcn.00609c00
add esp, 8
test eax, eax
jne 0x4a5a54
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x14], 0
call fcn.00622d8a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00622d8a
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 0
call fcn.00622d8a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00622d8a
mov ecx, dword [esp + 0xc]
pop edi
mov eax, ebp
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0xc
ret
Function at 0x4a5a90
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x642910
push eax
mov eax, dword [0x6fcacc]
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
test eax, eax
je 0x4a5bb5
mov eax, dword [0x6fceb8]
test eax, eax
jne 0x4a5ae7
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [0x6fceac]
test eax, eax
jne 0x4a5b04
call fcn.004a5380
mov dword [0x6fcea8], eax
mov dword [0x6fceac], 1
mov eax, dword [0x6fcea8]
test eax, eax
jne 0x4a5abf
mov esi, dword [esp + 0x24]
push esi
call fcn.004a5440
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x4a5b72
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4a5b5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4a5b72
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4a5b97
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push edi
push esi
push ebx
call fcn.004a50a0
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebp, eax
test ebp, ebp
jne 0x4a5c87
mov eax, dword [0x6cdafc]
test eax, eax
jne 0x4a5c87
lea eax, [esp + 0x24]
push edi
push eax
call fcn.00402850
lea ecx, [esp + 0x30]
push esi
push ecx
mov dword [esp + 0x28], ebp
call fcn.00402850
mov edx, dword [esp + 0x34]
push 0x3f
push edx
call fcn.00609c00
add esp, 0x18
test eax, eax
jne 0x4a5c68
mov eax, dword [esp + 0x28]
push 0x3f
push eax
call fcn.00609c00
add esp, 8
test eax, eax
jne 0x4a5c68
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.00622d8a
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.00622d8a
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea ecx, [esp + 0x28]
mov byte [esp + 0x18], 0
call fcn.00622d8a
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.00622d8a
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x4a5ca0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x642928
push eax
mov eax, dword [0x6fcacc]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x4a5dbf
mov eax, dword [0x6fceb8]
test eax, eax
jne 0x4a5ce9
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6fceac]
test eax, eax
jne 0x4a5d06
call fcn.004a5380
mov dword [0x6fcea8], eax
mov dword [0x6fceac], 1
mov eax, dword [0x6fcea8]
test eax, eax
je 0x4a5d2b
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.004a5440
add esp, 4
test eax, eax
jne 0x4a5d82
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4a5d6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4a5d82
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4a5da5
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call fcn.004a5170
add esp, 4
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x4a5e15
mov eax, dword [0x6cdafc]
test eax, eax
jne 0x4a5e15
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00402850
mov eax, dword [esp + 0x20]
push 0x3f
push eax
call fcn.00609c00
add esp, 0x10
test eax, eax
jne 0x4a5e04
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00622d8a
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x4a5e30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x642948
push eax
mov eax, dword [0x6fcacc]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x4a5f93
mov eax, dword [0x6fceb8]
test eax, eax
jne 0x4a5e83
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6fceac]
test eax, eax
jne 0x4a5ea0
call fcn.004a5380
mov dword [0x6fcea8], eax
mov dword [0x6fceac], 1
mov eax, dword [0x6fcea8]
test eax, eax
je 0x4a5eb0
mov edx, dword [esp + 0x18]
push edx
jmp 0x4a5e62
mov esi, dword [esp + 0x18]
push esi
call fcn.004a5440
add esp, 4
test eax, eax
jne 0x4a5ef2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a5f0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4a5f56
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6fcd98]
test eax, eax
jne 0x4a5f00
mov eax, 0x6fcd9c
push eax
push esi
call fcn.0060c3d3
add esp, 8
test eax, eax
jne 0x4a5f24
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6fcc88]
test eax, eax
jne 0x4a5f32
mov eax, 0x6fcc8c
push eax
push esi
call fcn.0060c3d3
add esp, 8
test eax, eax
jne 0x4a5f56
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4a5f79
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call fcn.004a5220
add esp, 4
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
test esi, esi
jne 0x4a5ff9
mov eax, dword [0x6cdafc]
test eax, eax
jne 0x4a5ff9
lea eax, [esp + 0x18]
push edi
push eax
call fcn.00402850
mov ecx, dword [esp + 0x20]
push 0x3f
push ecx
call fcn.00609c00
add esp, 0x10
test eax, eax
jne 0x4a5fe8
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00622d8a
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x4a6010
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x642968
push eax
mov eax, dword [0x6fcacc]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x4a6134
mov eax, dword [0x6fceb8]
test eax, eax
jne 0x4a605b
mov eax, dword [esp + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6fceac]
test eax, eax
jne 0x4a6078
call fcn.004a5380
mov dword [0x6fcea8], eax
mov dword [0x6fceac], 1
mov eax, dword [0x6fcea8]
test eax, eax
je 0x4a609f
mov ecx, dword [esp + 0x18]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.004a5440
add esp, 4
test eax, eax
jne 0x4a60f7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4a60e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4a60f7
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4a611a
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call fcn.004a52d0
add esp, 4
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x18]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x4a618d
mov eax, dword [0x6cdafc]
test eax, eax
jne 0x4a618d
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00402850
mov eax, dword [esp + 0x20]
push 0x3f
push eax
call fcn.00609c00
add esp, 0x10
test eax, eax
jne 0x4a617c
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00622d8a
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x4a61a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x90
push ebx
xor eax, eax
push ebp
push esi
mov dword [esp + 0x24], eax
push edi
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov ecx, 0x10
lea edi, [esp + 0x60]
mov dword [esp + 0x5c], ebx
mov esi, str.S_1_16_8192
rep stosd dword es:[edi], eax
mov ecx, 6
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x4c], ecx
push edx
mov dword [esp + 0x54], ecx
push 0x8b
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], eax
xor ebp, ebp
mov dword [esp + 0x60], ecx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
cmp esi, ebx
je 0x4a62d4
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push 1
push 2
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, eax
cmp esi, ebx
je 0x4a62d4
push str.Advapi32.dll
call fcn.0044abc0
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x4a62d4
push str.ConvertStringSidToSidW
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4a62d4
lea edx, [esp + 0x14]
lea ecx, [esp + 0x34]
push edx
push ecx
call eax
mov esi, eax
cmp esi, ebx
je 0x4a62d4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0x20
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
lea edx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push edx
push 0x19
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov esi, eax
cmp esi, ebx
je 0x4a62d4
lea ecx, [esp + 0x24]
lea edx, [esp + 0x5c]
mov eax, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x4a62e5
push eax
call edi
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4a62f0
push eax
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4a6306
push eax
call edi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4a6311
push eax
call edi
cmp ebp, ebx
je 0x4a631c
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret