joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471df0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565a80
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [0x5ba1b0]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
push 0
call edi
push 0x581a44
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004031c0
mov dword [ebp - 4], 0
test esi, esi
je 0x471ecd
jns 0x471e52
push 0x80070057
call fcn.004027b0
mov eax, dword [ebp - 0x10]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x471e72
push esi
lea ecx, [ebp - 0x10]
call fcn.00402590
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x471e86
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004024c0
mov eax, dword [ebp - 0x10]
push eax
push esi
call edi
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00529878
mov edx, eax
add esp, 8
test edx, edx
js 0x471e48
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x471e48
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
cmp dword [ebx + 0xd8], ecx
je 0x471ecd
push str.SysWOW64
push str.system32
lea ecx, [ebp - 0x10]
call fcn.004140e0
push 0x15
push str._sstray_forbidden.dat
lea ecx, [ebp - 0x10]
call fcn.00443ec0
push 0x58d61c
push dword [ebp - 0x10]
call fcn.0052e5ea
mov esi, eax
add esp, 8
test esi, esi
je 0x471f1c
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 4], 1
mov ebx, dword [eax - 0xc]
jle 0x471f08
push ebx
mov ecx, edi
call fcn.00403280
push esi
push 1
push ebx
push dword [edi]
call fcn.0052b6e4
push esi
call fcn.0052c324
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x471f40
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4728d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x5b3680]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x5ba1b0]
lea eax, [ecx + 0x188]
push eax
call fcn.00469480
push 0x104
lea eax, [ebp - 0x20e]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, 0x22
push str.___repair
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0052e020
push 0x40
lea eax, [ebp - 0x264]
mov dword [ebp - 0x268], 0x44
push 0
push eax
call fcn.00531bd0
mov eax, dword [0x5ba1b0]
add esp, 0x18
push dword [eax + 0xf0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x190
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x5ba1b0]
mov eax, dword [eax + 0xbc]
test eax, eax
je 0x472986
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x268]
push eax
push 0
push 0
push 8
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005295e2
mov esp, ebp
pop ebp
ret
Function at 0x478170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x47818f
cmp dword [edi], 2
jae 0x47818f
pop edi
mov eax, 0x7a
pop esi
pop ebp
ret 0xc
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4781f7
cmp dword [ebp + 0x10], 7
je 0x4781c7
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
test esi, esi
je 0x4781f1
test cl, 1
jne 0x4781bc
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x4781bc
cmp word [esi + eax*2 - 2], 0
jne 0x4781bc
cmp eax, 1
jbe 0x4781f1
cmp word [esi + eax*2 - 4], 0
jne 0x4781bc
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4786d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5667de
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x5c3fd8]
mov dword [esi], vtable.ATL::CImage.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov word [esi + 0x1c], 0
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0xffffffff
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
test al, 1
jne 0x47877f
or eax, 1
mov dword [0x5c3fd8], eax
mov dword [ebp - 4], 0
call fcn.0045e570
push 0x56c260
call fcn.00529798
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x5c3fb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x5c3fd0]
push 0x5c3fb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x479810
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x566a53
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x5b3680]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push esi
mov eax, dword [0x5b3680]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov esi, dword [0x5ba1e0]
mov dword [esp + 0x20], vtable.ATL::CAcl.0
mov dword [esp + 0x24], 0
mov byte [esp + 0x28], 0
mov dword [esp + 0x2c], 2
mov dword [esp + 0xd0], 0
lea eax, [esp + 0x30]
mov dword [esp + 0x20], vtable.ATL::CDacl.0
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0xd0], 3
lea ecx, [esp + 0x5c]
call fcn.0043afd0
mov byte [esp + 0xd0], 4
sub esp, 8
lea ecx, [esp + 0x28]
push eax
call fcn.0043b240
mov byte [esp + 0xd0], 3
lea ecx, [esp + 0x5c]
call fcn.00434290
lea ecx, [esp + 0x5c]
call fcn.0043adb0
mov byte [esp + 0xd0], 5
sub esp, 8
lea ecx, [esp + 0x28]
push eax
call fcn.0043b240
mov byte [esp + 0xd0], 3
lea ecx, [esp + 0x5c]
call fcn.00434290
mov dword [esp + 0x14], vtable.ATL::CSecurityDesc.0
mov dword [esp + 0x18], 0
mov byte [esp + 0xd0], 6
lea eax, [esp + 0x20]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0043ab90
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [esp + 0x48], 0xc
mov dword [esp + 0x50], 0
call dword [eax + 4]
mov ecx, eax
call fcn.00436c90
mov byte [esp + 0xd0], 7
mov edx, 0x58a740
push eax
lea ecx, [esp + 0x20]
call fcn.00435a70
add esp, 4
mov byte [esp + 0xd0], 8
push dword [eax]
lea eax, [esp + 0x44]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
xor ebx, ebx
mov dword [esi + 0x1c], eax
test eax, eax
setne bl
mov byte [esp + 0xd0], 7
or esi, 0xffffffff
mov edx, dword [esp + 0x1c]
mov eax, esi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4799d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0xd0], 6
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4799f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x479a05
movzx eax, ax
or eax, 0x80070000
test ebx, ebx
jne 0x479a0f
push eax
call fcn.004027b0
mov byte [esp + 0xd0], 3
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.ATL::CSecurityDesc.0
call fcn.0043acd0
mov dword [esp + 0xd0], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.0043b380
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.005295e2
mov esp, ebp
pop ebp
ret
Function at 0x47ae80
Capabilities:
Create directory
Delete file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x566d0d
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5b3680]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x47aedf
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x280], 1
lea ecx, [esp + 0x14]
call fcn.00482350
mov byte [esp + 0x280], 2
lea eax, [esp + 0x14]
push 0x58437c
push 0x58b3a0
push eax
call fcn.00443ea0
add esp, 0xc
push 0
push dword [esp + 0x18]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 2
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x10]
push eax
lea ecx, [edi + 4]
call fcn.00436c90
mov byte [esp + 0x280], 3
push str.clpflog
push dword [eax]
lea eax, [esp + 0x20]
push dword [esp + 0x1c]
push 0x58d7e8
push eax
call fcn.00415d20
add esp, 0x14
mov byte [esp + 0x280], 2
or ebx, 0xffffffff
mov edx, dword [esp + 0x10]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x47af94
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 0x14], 0
mov esi, dword [esp + 0x18]
je 0x47afc4
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x47afc4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi + 0x28], 0
je 0x47affa
push 0x58c254
push esi
call fcn.0052e5ea
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x47affa
push eax
push dword [edi + 0x2c]
push 1
push dword [edi + 0x28]
call fcn.0052b6e4
push dword [esp + 0x20]
call fcn.0052c324
add esp, 0x14
mov byte [esp + 0x280], 1
mov ecx, ebx
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47b01f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x280], 0xffffffff
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x47b041
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.005295e2
mov esp, ebp
pop ebp
ret 4
Function at 0x47b400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x566a53
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x5b3680]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push esi
mov eax, dword [0x5b3680]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov esi, dword [0x5ba210]
mov dword [esp + 0x20], vtable.ATL::CAcl.0
mov dword [esp + 0x24], 0
mov byte [esp + 0x28], 0
mov dword [esp + 0x2c], 2
mov dword [esp + 0xd0], 0
lea eax, [esp + 0x30]
mov dword [esp + 0x20], vtable.ATL::CDacl.0
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0xd0], 3
lea ecx, [esp + 0x5c]
call fcn.0043afd0
mov byte [esp + 0xd0], 4
sub esp, 8
lea ecx, [esp + 0x28]
push eax
call fcn.0043b240
mov byte [esp + 0xd0], 3
lea ecx, [esp + 0x5c]
call fcn.00434290
lea ecx, [esp + 0x5c]
call fcn.0043adb0
mov byte [esp + 0xd0], 5
sub esp, 8
lea ecx, [esp + 0x28]
push eax
call fcn.0043b240
mov byte [esp + 0xd0], 3
lea ecx, [esp + 0x5c]
call fcn.00434290
mov dword [esp + 0x14], vtable.ATL::CSecurityDesc.0
mov dword [esp + 0x18], 0
mov byte [esp + 0xd0], 6
lea eax, [esp + 0x20]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0043ab90
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [esp + 0x48], 0xc
mov dword [esp + 0x50], 0
call dword [eax + 4]
mov ecx, eax
call fcn.00436c90
mov byte [esp + 0xd0], 7
mov edx, 0x58a868
push eax
lea ecx, [esp + 0x20]
call fcn.00435a70
add esp, 4
mov byte [esp + 0xd0], 8
push dword [eax]
lea eax, [esp + 0x44]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
xor ebx, ebx
mov dword [esi + 0x1c], eax
test eax, eax
setne bl
mov byte [esp + 0xd0], 7
or esi, 0xffffffff
mov edx, dword [esp + 0x1c]
mov eax, esi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x47b5c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0xd0], 6
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x47b5e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x47b5f5
movzx eax, ax
or eax, 0x80070000
test ebx, ebx
jne 0x47b5ff
push eax
call fcn.004027b0
mov byte [esp + 0xd0], 3
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.ATL::CSecurityDesc.0
call fcn.0043acd0
mov dword [esp + 0xd0], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.0043b380
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.005295e2
mov esp, ebp
pop ebp
ret
Function at 0x47c050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x566a53
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x5b3680]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push esi
mov eax, dword [0x5b3680]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov esi, dword [0x5ba218]
mov dword [esp + 0x20], vtable.ATL::CAcl.0
mov dword [esp + 0x24], 0
mov byte [esp + 0x28], 0
mov dword [esp + 0x2c], 2
mov dword [esp + 0xd0], 0
lea eax, [esp + 0x30]
mov dword [esp + 0x20], vtable.ATL::CDacl.0
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0xd0], 3
lea ecx, [esp + 0x5c]
call fcn.0043afd0
mov byte [esp + 0xd0], 4
sub esp, 8
lea ecx, [esp + 0x28]
push eax
call fcn.0043b240
mov byte [esp + 0xd0], 3
lea ecx, [esp + 0x5c]
call fcn.00434290
lea ecx, [esp + 0x5c]
call fcn.0043adb0
mov byte [esp + 0xd0], 5
sub esp, 8
lea ecx, [esp + 0x28]
push eax
call fcn.0043b240
mov byte [esp + 0xd0], 3
lea ecx, [esp + 0x5c]
call fcn.00434290
mov dword [esp + 0x14], vtable.ATL::CSecurityDesc.0
mov dword [esp + 0x18], 0
mov byte [esp + 0xd0], 6
lea eax, [esp + 0x20]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0043ab90
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [esp + 0x48], 0xc
mov dword [esp + 0x50], 0
call dword [eax + 4]
mov ecx, eax
call fcn.00436c90
mov byte [esp + 0xd0], 7
mov edx, 0x58a868
push eax
lea ecx, [esp + 0x20]
call fcn.00435a70
add esp, 4
mov byte [esp + 0xd0], 8
push dword [eax]
lea eax, [esp + 0x44]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
xor ebx, ebx
mov dword [esi + 0x1c], eax
test eax, eax
setne bl
mov byte [esp + 0xd0], 7
or esi, 0xffffffff
mov edx, dword [esp + 0x1c]
mov eax, esi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x47c210
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0xd0], 6
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x47c233
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x47c245
movzx eax, ax
or eax, 0x80070000
test ebx, ebx
jne 0x47c24f
push eax
call fcn.004027b0
mov byte [esp + 0xd0], 3
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.ATL::CSecurityDesc.0
call fcn.0043acd0
mov dword [esp + 0xd0], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.0043b380
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.005295e2
mov esp, ebp
pop ebp
ret
Function at 0x47c940
Capabilities:
Create directory
Delete file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x566d0d
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5b3680]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x47c99f
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x280], 1
lea ecx, [esp + 0x14]
call fcn.00482350
mov byte [esp + 0x280], 2
lea eax, [esp + 0x14]
push 0x584a2c
push 0x58b3a0
push eax
call fcn.00443ea0
add esp, 0xc
push 0
push dword [esp + 0x18]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 2
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x10]
push eax
lea ecx, [edi + 4]
call fcn.00436c90
mov byte [esp + 0x280], 3
push 0x584a1c
push dword [eax]
lea eax, [esp + 0x20]
push dword [esp + 0x1c]
push 0x58d7e8
push eax
call fcn.00415d20
add esp, 0x14
mov byte [esp + 0x280], 2
or ebx, 0xffffffff
mov edx, dword [esp + 0x10]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x47ca54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 0x14], 0
mov esi, dword [esp + 0x18]
je 0x47ca84
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x47ca84
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi + 0x28], 0
je 0x47caba
push 0x58c254
push esi
call fcn.0052e5ea
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x47caba
push eax
push dword [edi + 0x2c]
push 1
push dword [edi + 0x28]
call fcn.0052b6e4
push dword [esp + 0x20]
call fcn.0052c324
add esp, 0x14
mov byte [esp + 0x280], 1
mov ecx, ebx
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47cadf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x280], 0xffffffff
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x47cb01
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.005295e2
mov esp, ebp
pop ebp
ret 4
Function at 0x47cb70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x566a53
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x5b3680]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push esi
mov eax, dword [0x5b3680]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov esi, dword [0x5ba220]
mov dword [esp + 0x20], vtable.ATL::CAcl.0
mov dword [esp + 0x24], 0
mov byte [esp + 0x28], 0
mov dword [esp + 0x2c], 2
mov dword [esp + 0xd0], 0
lea eax, [esp + 0x30]
mov dword [esp + 0x20], vtable.ATL::CDacl.0
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0xd0], 3
lea ecx, [esp + 0x5c]
call fcn.0043afd0
mov byte [esp + 0xd0], 4
sub esp, 8
lea ecx, [esp + 0x28]
push eax
call fcn.0043b240
mov byte [esp + 0xd0], 3
lea ecx, [esp + 0x5c]
call fcn.00434290
lea ecx, [esp + 0x5c]
call fcn.0043adb0
mov byte [esp + 0xd0], 5
sub esp, 8
lea ecx, [esp + 0x28]
push eax
call fcn.0043b240
mov byte [esp + 0xd0], 3
lea ecx, [esp + 0x5c]
call fcn.00434290
mov dword [esp + 0x14], vtable.ATL::CSecurityDesc.0
mov dword [esp + 0x18], 0
mov byte [esp + 0xd0], 6
lea eax, [esp + 0x20]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0043ab90
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [esp + 0x48], 0xc
mov dword [esp + 0x50], 0
call dword [eax + 4]
mov ecx, eax
call fcn.00436c90
mov byte [esp + 0xd0], 7
mov edx, 0x58a868
push eax
lea ecx, [esp + 0x20]
call fcn.00435a70
add esp, 4
mov byte [esp + 0xd0], 8
push dword [eax]
lea eax, [esp + 0x44]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
xor ebx, ebx
mov dword [esi + 0x2c], eax
test eax, eax
setne bl
mov byte [esp + 0xd0], 7
or esi, 0xffffffff
mov edx, dword [esp + 0x1c]
mov eax, esi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x47cd30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0xd0], 6
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x47cd53
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x47cd65
movzx eax, ax
or eax, 0x80070000
test ebx, ebx
jne 0x47cd6f
push eax
call fcn.004027b0
mov byte [esp + 0xd0], 3
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.ATL::CSecurityDesc.0
call fcn.0043acd0
mov dword [esp + 0xd0], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.0043b380
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.005295e2
mov esp, ebp
pop ebp
ret