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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64bb5b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x755898]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
xor eax, eax
cmp byte [ebp + 8], al
setne al
mov dword [ebp - 0x228], eax
push 4
lea ecx, [ebp - 0x228]
push ecx
push 4
push 0
push str.ShowDropTarget
mov edx, dword [0x75abd8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0061d2ff
mov esp, ebp
pop ebp
ret 4

Function at 0x4a4503
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, ecx
call fcn.005f3212
push 0x66d
mov ecx, esi
mov dword [esi + 0xd8], esi
mov dword [esi + 0xdc], 0x66d
call fcn.005f21e5
mov eax, dword [eax + 0x20]
push esi
mov dword [esi + 0xd4], eax
call fcn.0045b250
add esp, 4
cmp dword [0x75ad18], 0
je 0x4a45ae
push 0x12a
push esi
mov ecx, 0x75acd8
call fcn.004e5400
mov ecx, dword [0x75c340]
push ecx
push 0x66a
mov ecx, esi
call fcn.005f21e5
mov edx, dword [eax + 0x20]
push edx
call fcn.004244f0
mov eax, dword [0x75c344]
add esp, 8
push eax
push 0x66b
mov ecx, esi
call fcn.005f21e5
mov ecx, dword [eax + 0x20]
push ecx
call fcn.004244f0
mov edx, dword [0x75c348]
add esp, 8
push edx
push 0x66c
mov ecx, esi
call fcn.005f21e5
mov eax, dword [eax + 0x20]
push eax
call fcn.004244f0
add esp, 8
mov ecx, dword [esi + 0xc8]
push ecx
lea ecx, [esi + 0x74]
call fcn.005f234f
mov ecx, dword [0x75abd8]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 0
push str.DuplLinksA
push ecx
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a45f3
mov edx, dword [esp + 8]
mov dword [esi + 0xcc], edx
mov eax, dword [esi + 0xcc]
sub eax, 1
mov ecx, 0x66c
je 0x4a4614
sub eax, 1
je 0x4a460d
sub eax, 1
jmp 0x4a4619
mov ecx, 0x66b
jmp 0x4a4619
mov ecx, 0x66a
push ecx
mov ecx, esi
call fcn.005f21e5
mov eax, dword [eax + 0x20]
push 0
push 1
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x4a6e60
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
push 0
push 0
push 0
push 0
mov esi, ecx
push ebx
push eax
lea edi, [esi + 0x88]
push 1
mov ecx, edi
call fcn.005fdb8e
mov ebp, eax
mov eax, dword [esi + 0x13c]
test eax, eax
je 0x4a6ebf
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x50]
push edx
push 0
push 0
push ebx
push eax
mov dword [esp + 0x60], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a6ebf
cmp dword [esp + 0x4c], 2
je 0x4a6ee7
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.005fdbd1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8
Function at 0x4a7200
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x64c160
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x38]
mov ecx, dword [esi + 0x110]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
cmp edi, dword [esi + 0x13c]
push 0
sete al
push 0
push pe_nt_image_headers32
push ecx
mov dword [esp + 0x2c], eax
call ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [esp + 0x18]
push edx
push 4
neg eax
push 0
sbb eax, eax
push str.PanelView
add eax, 2
push edi
mov dword [esp + 0x2c], eax
call ebx
mov eax, dword [esi + 0x100]
push 0
push 0
push pe_nt_image_headers32
push eax
call ebp
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
neg eax
push 0
sbb eax, eax
push str.DonlCaptWP
add eax, 2
push edi
mov dword [esp + 0x2c], eax
call ebx
mov edx, dword [esi + 0xa8]
push 0
push 0xffffffffffffffff
push 0x100c
push edx
call ebp
mov edi, eax
test edi, edi
jl 0x4a73c8
mov eax, dword [esi + 0xa8]
push 0xf000
push edi
push 0x102c
push eax
call ebp
shr eax, 0xc
dec eax
neg eax
push 0
sbb eax, eax
push edi
lea ecx, [esp + 0x20]
add eax, 2
push ecx
lea ecx, [esi + 0x88]
mov dword [esp + 0x20], eax
call fcn.005fe090
mov dword [esp + 0x30], 0
mov ecx, dword [esp + 0x18]
mov eax, ecx
lea ebx, [eax + 1]
jmp 0x4a7310
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4a7310
sub eax, ebx
je 0x4a7385
mov eax, dword [esp + 0x38]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push 0
push ecx
push eax
call ebx
cmp dword [esp + 0x1c], 0
je 0x4a7385
cmp dword [esi + 0x140], 0
je 0x4a7385
push edi
lea ecx, [esi + 0x88]
call fcn.005fd6f8
mov dword [esp + 0x20], eax
test eax, eax
je 0x4a7373
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x140]
push 4
lea ecx, [esp + 0x24]
push ecx
push 4
push 0
push edx
push eax
call ebx
jmp 0x4a7385
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x140]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a73ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0xa8]
push 0
push edi
push 0x100c
push ecx
call ebp
mov edi, eax
test edi, edi
jge 0x4a72c4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x4a73e3
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x13c]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4a7423
push eax
call fcn.004a7200
mov eax, dword [esi + 0x13c]
push eax
call edi
mov ecx, dword [esi + 0x140]
push ecx
call edi
mov dword [esi + 0x13c], 0
mov dword [esi + 0x140], 0
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareDownloadManagerIDMBIFirefoxDwnlPanel
push 0x80000001
call ebp
test eax, eax
jne 0x4a7461
mov eax, dword [esp + 0xc]
push eax
mov ecx, esi
call fcn.004a7200
mov ecx, dword [esp + 0xc]
push ecx
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareDownloadManagerIDMBIIEXPLOREDwnlPanel
push 0x80000001
call ebp
pop ebp
test eax, eax
jne 0x4a7499
mov eax, dword [esp + 8]
push eax
mov ecx, esi
call fcn.004a7200
mov ecx, dword [esp + 8]
push ecx
call edi
cmp byte [esi + 0x144], 0
je 0x4a74df
mov edx, dword [esi + 0xe0]
push 0
push 0
push pe_nt_image_headers32
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x75abd8]
neg eax
sbb eax, eax
neg eax
push 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 4
push 0
push str.CatchSecureRTMP
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, esi
call fcn.005f41d2
pop edi
pop esi
add esp, 8
ret
Function at 0x4a9030
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x94
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
push esi
push edi
xor edi, edi
xor eax, eax
push 0x40
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x3c]
push edi
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x40], edi
call fcn.0061d9e0
mov ecx, dword [str.S_1_16_8192]
mov eax, dword [0x6863ec]
mov edx, dword [0x6863e8]
mov dword [esp + 0x84], ecx
mov ecx, dword [0x6863f0]
mov dword [esp + 0x8c], eax
mov eax, dword [0x6863f8]
add esp, 0xc
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x7c], edx
mov edx, dword [0x6863f4]
mov dword [esp + 0x8c], eax
xor eax, eax
push ecx
push 0x8b
xor ebp, ebp
mov dword [esp + 0x90], edx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
cmp esi, edi
je 0x4a91bc
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 1
push 2
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, eax
cmp esi, edi
je 0x4a91bc
push str.Advapi32.dll
call fcn.00447580
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x4a91bc
push str.ConvertStringSidToSidW
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4a91bc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x7c]
push edx
call eax
mov esi, eax
cmp esi, edi
je 0x4a91bc
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [esp + 0x10]
add eax, 8
push eax
lea eax, [esp + 0x20]
push eax
push 0x19
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov esi, eax
cmp esi, edi
je 0x4a91bc
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x4a91cd
push eax
call ebx
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x4a91d8
push eax
call ebx
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4a91ee
push eax
call ebx
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4a91f9
push eax
call ebx
cmp ebp, edi
je 0x4a9204
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0xa0]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0061d2ff
add esp, 0x94
ret
Function at 0x4a9d10
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x64c4d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
cmp dword [0x75aba4], 0
je 0x4a9e5b
cmp dword [0x75b588], 0
jne 0x4a9d6f
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
cmp dword [0x75b57c], 0
jne 0x4a9d8c
call fcn.004a8f70
mov dword [0x75b474], eax
mov dword [0x75b57c], 1
cmp dword [0x75b474], 0
je 0x4a9db8
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov esi, dword [esp + 0x2c]
push esi
call fcn.004a9930
mov edi, dword [esp + 0x2c]
add esp, 4
test eax, eax
jne 0x4a9e18
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4a9e00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4a9e18
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
cmp dword [esp + 0x30], 0
jne 0x4a9e3c
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
push 0
push esi
push edi
call fcn.004a9430
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebp, eax
test ebp, ebp
jne 0x4a9f2d
cmp dword [0x74fd28], eax
jne 0x4a9f2d
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.00402a70
mov dword [esp + 0x2c], ebp
push ebp
lea edx, [esp + 0x20]
push esi
push edx
call fcn.00402a70
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x2c]
push 0x3f
push eax
call fcn.0061e8e0
add esp, 0x20
test eax, eax
jne 0x4a9f0e
mov ecx, dword [esp + 0x10]
push 0x3f
push ecx
call fcn.0061e8e0
add esp, 8
test eax, eax
jne 0x4a9f0e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, eax
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x10]
call fcn.00402570
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402570
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x10]
call fcn.00402570
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402570
mov eax, ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x4a9f50
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x642310
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
cmp dword [0x75aba4], 0
je 0x4aa087
cmp dword [0x75b588], 0
jne 0x4a9fb6
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [0x75b57c], 0
jne 0x4a9fd3
call fcn.004a8f70
mov dword [0x75b474], eax
mov dword [0x75b57c], 1
cmp dword [0x75b474], 0
jne 0x4a9f8d
mov esi, dword [esp + 0x30]
push esi
call fcn.004a9930
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
add esp, 4
test eax, eax
jne 0x4aa043
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4aa02a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4aa043
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [esp + 0x38], 0
jne 0x4aa068
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push edi
push esi
push ebx
call fcn.004a9560
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebp, eax
test ebp, ebp
jne 0x4aa160
cmp dword [0x74fd28], eax
jne 0x4aa160
push eax
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00402a70
mov dword [esp + 0x30], ebp
push ebp
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.00402a70
mov byte [esp + 0x3c], 1
mov edx, dword [esp + 0x30]
push 0x3f
push edx
call fcn.0061e8e0
add esp, 0x20
test eax, eax
jne 0x4aa141
mov eax, dword [esp + 0x14]
push 0x3f
push eax
call fcn.0061e8e0
add esp, 8
test eax, eax
jne 0x4aa141
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
call fcn.00402570
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402570
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
call fcn.00402570
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402570
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4aa180
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x6528b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
cmp dword [0x75aba4], 0
je 0x4aa2b0
cmp dword [0x75b588], 0
jne 0x4aa1d6
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
cmp dword [0x75b57c], 0
jne 0x4aa1f3
call fcn.004a8f70
mov dword [0x75b474], eax
mov dword [0x75b57c], 1
cmp dword [0x75b474], 0
je 0x4aa219
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov esi, dword [esp + 0x20]
push esi
call fcn.004a9930
add esp, 4
test eax, eax
jne 0x4aa272
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4aa25b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4aa272
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
cmp dword [esp + 0x24], 0
jne 0x4aa295
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
push esi
call fcn.004a9690
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x4aa30a
cmp dword [0x74fd28], eax
jne 0x4aa30a
push eax
lea edx, [esp + 0x10]
push edi
push edx
call fcn.00402a70
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x18]
push 0x3f
push eax
call fcn.0061e8e0
add esp, 0x14
test eax, eax
jne 0x4aa2f9
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402570
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4aa320
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x6528b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
cmp dword [0x75aba4], 0
je 0x4aa47d
cmp dword [0x75b588], 0
jne 0x4aa380
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
cmp dword [0x75b57c], 0
jne 0x4aa39d
call fcn.004a8f70
mov dword [0x75b474], eax
mov dword [0x75b57c], 1
cmp dword [0x75b474], 0
je 0x4aa3ad
mov edx, dword [esp + 0x20]
push edx
jmp 0x4aa35e
mov esi, dword [esp + 0x20]
push esi
call fcn.004a9930
add esp, 4
test eax, eax
jne 0x4aa407
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4aa3f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4aa43f
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov eax, dword [0x75b58c]
test eax, eax
jne 0x4aa415
mov eax, 0x75b590
push eax
push esi
call fcn.0062280a
add esp, 8
test eax, eax
je 0x4aa3f0
mov eax, dword [0x75b598]
test eax, eax
jne 0x4aa431
mov eax, 0x75b59c
push eax
push esi
call fcn.0062280a
add esp, 8
test eax, eax
je 0x4aa3f0
cmp dword [esp + 0x24], 0
jne 0x4aa462
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
push esi
call fcn.004a9770
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
test esi, esi
jne 0x4aa4e7
cmp dword [0x74fd28], edx
jne 0x4aa4e7
push edx
lea eax, [esp + 0x10]
push edi
push eax
call fcn.00402a70
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x18]
push 0x3f
push ecx
call fcn.0061e8e0
add esp, 0x14
test eax, eax
jne 0x4aa4d6
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402570
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4aa500
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x6528b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
cmp dword [0x75aba4], 0
je 0x4aa635
cmp dword [0x75b588], 0
jne 0x4aa558
mov eax, dword [esp + 0x20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
cmp dword [0x75b57c], 0
jne 0x4aa575
call fcn.004a8f70
mov dword [0x75b474], eax
mov dword [0x75b57c], 1
cmp dword [0x75b474], 0
je 0x4aa59d
mov ecx, dword [esp + 0x20]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov esi, dword [esp + 0x20]
push esi
call fcn.004a9930
add esp, 4
test eax, eax
jne 0x4aa5f7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4aa5e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4aa5f7
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
cmp dword [esp + 0x24], 0
jne 0x4aa61a
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
push esi
call fcn.004a9850
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov edi, dword [esp + 0x20]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x4aa692
cmp dword [0x74fd28], eax
jne 0x4aa692
push eax
lea edx, [esp + 0x10]
push edi
push edx
call fcn.00402a70
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x18]
push 0x3f
push eax
call fcn.0061e8e0
add esp, 0x14
test eax, eax
jne 0x4aa681
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402570
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret