joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417810
Capabilities:
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443050
push 0x423b60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
cmp dword [0x483d74], edi
jne 0x41797b
xor ebx, ebx
cmp dword [0x483d6c], edi
je 0x41785c
push str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x483d74], edi
jne 0x41794f
cmp dword [0x483d6c], edi
jne 0x41787d
call fcn.00407570
test eax, eax
je 0x417954
mov eax, dword [0x451140]
mov dword [ebp - 0x48], eax
mov eax, dword [0x48af10]
cmp eax, edi
jne 0x417941
xor esi, esi
cmp dword [0x48af14], edi
jne 0x4178ce
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
je 0x4178c4
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x48af18], eax
mov dword [0x48af14], 1
mov eax, dword [0x48af18]
cmp eax, edi
je 0x4178e9
push str.ActivateActCtx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
jne 0x417932
mov eax, dword [0x48af1c]
cmp eax, edi
jne 0x417924
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
je 0x41790e
mov ecx, dword [str.Kernel32.dll]
push ecx
call dword [0x4429b8]
jmp 0x41791b
mov edx, dword [0x4429c4]
push edx
call dword [0x4429bc]
cmp eax, edi
je 0x417932
mov dword [0x48af1c], eax
push str.ActivateActCtx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov eax, esi
mov dword [0x48af10], eax
cmp esi, edi
jne 0x417941
xor eax, eax
jmp 0x41794b
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call eax
cmp eax, edi
je 0x417954
mov ebx, 1
cmp ebx, edi
jne 0x41797b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7f
je 0x417968
cmp eax, 0x78
jne 0x417973
mov ebx, 1
mov dword [0x483d74], ebx
cmp ebx, edi
jne 0x41797b
xor eax, eax
jmp 0x417980
mov eax, 1
cmp eax, edi
jne 0x417999
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004179dd
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4179dd
Capabilities:
Get file attributes

Disassembly:
cmp dword [0x483d74], edi
jne 0x417ad1
xor ebx, ebx
cmp dword [ebp - 0x20], edi
sete bl
cmp ebx, edi
je 0x417a00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x417a03
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x24]
mov eax, dword [0x48af20]
test eax, eax
jne 0x417abe
xor esi, esi
mov eax, dword [0x48af14]
test eax, eax
jne 0x417a50
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
je 0x417a46
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x48af18], eax
mov dword [0x48af14], 1
mov eax, dword [0x48af18]
test eax, eax
je 0x417a6b
push str.DeactivateActCtx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x417ab3
mov eax, dword [0x48af1c]
test eax, eax
jne 0x417aa5
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
je 0x417a90
mov edx, dword [str.Kernel32.dll]
push edx
call dword [0x4429b8]
jmp 0x417a9c
mov eax, dword [0x4429c4]
push eax
call dword [0x4429bc]
test eax, eax
je 0x417ab3
mov dword [0x48af1c], eax
push str.DeactivateActCtx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov eax, esi
mov dword [0x48af20], eax
test esi, esi
je 0x417ac3
push edi
push 0
call eax
test ebx, ebx
je 0x417ad1
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
ret
Function at 0x418b90
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov al, byte [0x487c08]
push ebx
push esi
push edi
mov byte [ebp - 0x224], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x223]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x224]
push 0x100
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
je 0x418bfa
mov al, byte [ebp - 0x224]
test al, al
je 0x418bfa
cmp byte [ebp - 0x223], 0x3a
jne 0x418bfa
cmp byte [ebp - 0x222], 0x5c
jne 0x418bfa
mov byte [ebp - 0x222], 0
jmp 0x418c08
lea edx, [ebp - 0x224]
push 0x47d9b4
push edx
call ebx
lea eax, [ebp - 0x224]
lea ecx, [ebp - 0x124]
push eax
push ecx
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x124]
push 0x47d9b8
push edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x124]
push eax
call edi
lea ecx, [ebp - 0x224]
lea edx, [ebp - 0x124]
push ecx
push edx
call ebx
lea eax, [ebp - 0x124]
push str._rf_rf.log
push eax
call esi
lea ecx, [ebp - 0x124]
push ecx
call edi
lea edx, [ebp - 0x124]
push edx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x418d4b
lea eax, [ebp - 0x124]
push 0x47d9d4
push eax
call esi
lea ecx, [ebp - 0x124]
mov dword [ebp - 4], 1
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x418d4b
push 0
push 0x80
push 3
push 0
push 3
lea edx, [ebp - 0x124]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x418d42
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x24]
lea edx, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
add ecx, 0xd5964000
lea esi, [ebp - 0x24]
adc eax, 0xffffff36
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
mov edi, 3
lea ecx, [ebp - 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x418d28
mov dword [ebp - 4], 0
add esi, 8
dec edi
jne 0x418d12
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
test eax, eax
je 0x418d4b
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x124]
push edx
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419100
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push eax
push esi
push str._temp
push ecx
call fcn.004190a0
add esp, 0x10
test eax, eax
je 0x41914e
push esi
call fcn.004190d0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41914b
push esi
call fcn.00418d60
add esp, 4
test eax, eax
je 0x41914b
mov eax, 1
pop esi
pop ebp
ret
mov byte [esi], 0
xor eax, eax
pop esi
pop ebp
ret

Function at 0x419330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00423b10
push edi
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push 0x487a04
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x419453
mov eax, dword [ebp + 0x14]
push esi
test eax, eax
je 0x41941e
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ax, word [ebp - 0x14]
cmp ax, 0x7d0
sbb ecx, ecx
and ecx, 0xffffff9c
add ecx, 0x7d0
sub ax, cx
mov word [ebp - 0x14], ax
mov eax, dword [ebp + 0xc]
test eax, eax
mov ecx, eax
jne 0x4193a4
mov ecx, 0x487c0c
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4193b0
mov eax, 0x487c10
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 6]
push edx
mov edx, dword [ebp - 0xa]
and eax, 0xffff
push eax
mov eax, dword [ebp - 0xc]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [ebp - 0x14]
and eax, 0xffff
push edx
mov edx, dword [ebp - 0x12]
push eax
mov eax, dword [ebp - 0xe]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
push str._02hd__02hd__02hd__02hd:_02hd:_02hd._03hd___X___s__s_r_n
lea ecx, [ebp - 0x1018]
push 0x1000
push ecx
call fcn.0042430a
add esp, 0x34
lea esi, [ebp - 0x1018]
mov byte [ebp - 0x18], 0
jmp 0x419421
mov esi, dword [ebp + 8]
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [ebp + 0x14]
push 0
push edx
push esi
mov dword [ebp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x419460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push 0x487a04
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4194bf
push edi
push 2
push 0
push 0
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4195c0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push str.KERNEL32.DLL
call fcn.00407270
test eax, eax
mov dword [esi], eax
je 0x419641
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi]
push str.Process32First
push eax
call edi
mov ecx, dword [esi]
push str.Process32Next
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi]
push str.Module32First
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi]
push str.Module32Next
push eax
call edi
mov ecx, dword [esi + 4]
mov dword [esi + 0x14], eax
test ecx, ecx
pop edi
je 0x419641
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x419641
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x419641
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x419641
test eax, eax
je 0x419641
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x419e90
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4409b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push ebx
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov eax, dword [ebx + 4]
test eax, eax
je 0x41a088
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x41a088
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x41a088
push 0
push 2
call eax
mov edx, eax
cmp edx, 0xffffffff
mov dword [ebp - 0x10], edx
je 0x41a088
push esi
push edi
mov ecx, 0x4a
xor eax, eax
lea edi, [ebp - 0x154]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x154]
mov dword [ebp - 0x154], 0x128
push eax
push edx
call dword [ebx + 8]
mov esi, dword [ebp + 8]
test eax, eax
je 0x41a05a
mov ecx, dword [ebp - 0x14c]
push ecx
mov ecx, ebx
call fcn.00419d10
test eax, eax
je 0x41a03a
cmp dword [ebp - 0x154], 0x24
jbe 0x41a03a
lea edx, [ebp - 0x130]
lea ecx, [ebp - 0x28]
push edx
call fcn.00436970
mov ecx, dword [ebp - 0x14c]
xor ebx, ebx
mov dword [ebp - 0x1c], ecx
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00436750
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004368f0
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 8]
cmp eax, ebx
jne 0x419fa9
mov edx, dword [esi + 0x18]
push 0x14
lea eax, [esi + 0x14]
push edx
push eax
call fcn.00430bc0
mov ecx, dword [esi + 0x18]
lea edx, [ecx + ecx*4]
dec ecx
cmp ecx, ebx
lea eax, [eax + edx*4 - 0x10]
jl 0x419fa9
inc ecx
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov dword [esi + 0x10], eax
sub eax, 0x14
dec ecx
jne 0x419f9b
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx]
mov dword [esi + 0x10], eax
mov dword [ebx + 4], edi
mov dword [ebx], 0
mov eax, dword [esi + 0xc]
lea edi, [ebx + 8]
inc eax
mov edx, edi
xor ecx, ecx
mov dword [esi + 0xc], eax
mov dword [ebp - 0x24], edi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [ebp + 8], ecx
mov dword [edx + 8], ecx
mov dword [ebp - 0x2c], edi
test edi, edi
mov byte [ebp - 4], 3
je 0x419fe8
mov ecx, edi
call fcn.0041a0a0
mov eax, dword [ebp + 8]
add edi, 0xc
mov ecx, eax
dec eax
test ecx, ecx
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], edi
mov dword [ebp + 8], eax
jne 0x419fd6
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0xc]
mov dword [ebx + 8], edx
call fcn.00436a80
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x10], ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x41a022
mov dword [eax], ebx
jmp 0x41a025
mov dword [esi + 4], ebx
lea ecx, [ebp - 0x18]
mov dword [esi + 8], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.004368f0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x154]
push edx
push eax
mov dword [ebp - 0x154], 0x128
call dword [ebx + 0xc]
test eax, eax
jne 0x419f1a
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x41a0c0
call dword [sym.imp.USER32.dll_EnumWindows]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x41c680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 1
push 0
push esi
push str.SaveSFX__
call fcn.00419330
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push esi
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push ecx
push eax
mov dword [ebp + 0xc], 0
call fcn.0041dee0
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x41c6db
push 1
push eax
push esi
push str.Err_open
call fcn.00419330
add esp, 0x10
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x14]
xor eax, eax
test esi, esi
mov ebx, dword [ebp + 0x10]
push 0
setne al
inc eax
push 0x80
push eax
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41c725
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
push str.Err_save_to
call fcn.0041cc40
add esp, 0xc
test esi, esi
jle 0x41c797
jmp 0x41c78b
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push 0
push ecx
push edx
push edi
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x41c770
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jne 0x41c770
push 1
push 0
push ebx
push str._..._saved_to
call fcn.00419330
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
push str.Err_write
call fcn.0041cc40
add esp, 0xc
test esi, esi
jle 0x41c797
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41c7a0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x41c7b0
xor eax, eax
pop esi
pop ebp
ret
push edi
push 1
push 0
push esi
push str.Cleanup_folder
call fcn.00419330
push 0
push 0
push fcn.0041d340
push esi
call fcn.0041d0c0
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x41c7f5
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Cleanup_files_err
call fcn.00419330
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edi, eax
test edi, edi
jne 0x41c819
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Cleanup_folder_err
call fcn.00419330
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x41c920
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
je 0x41c966
mov edi, dword [ebp + 8]
test edi, edi
je 0x41c966
push esi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x47fa48
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x41c96c
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push str.CreateTempFolder:_Cant_get_temp_name
call fcn.00419330
add esp, 0x10
pop edi
xor eax, eax
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, eax
test edi, edi
jne 0x41c982
mov byte [esi], al
mov esi, 0x47fa74
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.CreateTempFolder:
call fcn.00419330
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x41cd00
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
mov edx, dword [ebp + 0x10]
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push 0
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop esi
pop ebp
ret
Function at 0x41d340
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41d38e
test al, 0x10
je 0x41d38e
push edi
push 0
push 0
push fcn.0041d340
push esi
call fcn.0041d0c0
add esp, 0x10
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x41d388
push 1
push eax
push esi
push str.ActDelFile_____cant_remove_directory
call fcn.00419330
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop ebp
ret

Function at 0x41d3a0
Capabilities:
Check os version
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [ebp - 0xa0]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x41d43e
cmp dword [ebp - 0x90], 2
jne 0x41d43e
mov eax, dword [ebp - 0x9c]
cmp eax, 5
ja 0x41d3f4
jne 0x41d43e
cmp dword [ebp - 0x98], 1
jb 0x41d43e
push str.kernel32.dll
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x41d43e
push str.CopyFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d43e
mov edx, dword [ebp + 0x10]
xor ecx, ecx
test edx, edx
setne cl
or ecx, 8
lea edx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push 0
push 0
push ecx
push edx
call eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esp, ebp
pop ebp
ret
Function at 0x41db60
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447220
push 0x423b60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor esi, esi
cmp ebx, esi
jne 0x41db9f
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041db00
test eax, eax
jne 0x41dbc4
mov dword [ebx], 1
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], esi
xor edi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], 0x400
mov dword [ebp - 0x28], esi
mov byte [ebp - 0x38], 0
mov byte [ebp - 0x37], 0
mov byte [ebp - 0x36], 0
mov byte [ebp - 0x35], 0
mov byte [ebp - 0x34], 0
mov byte [ebp - 0x33], 5
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x41dd1f
mov dword [ebp - 0x40], esi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x41dc3f
push str.CheckTokenMembership
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
je 0x41dc6f
push ebx
mov edx, dword [ebp - 0x28]
push edx
push 0
call esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
call fcn.0041dd48
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41dd1f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41dc95
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x41dca5
mov dword [ebp - 0x48], edi
push edi
call fcn.00437120
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004370e0
add esp, 4
mov esi, eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x41dd1c
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push esi
push 2
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x41dce5
call ebx
cmp eax, 0x7a
jne 0x41dd1c
mov dword [ebp - 0x24], esi
call ebx
test eax, eax
jne 0x41dc92
xor edi, edi
mov dword [ebp - 0x44], edi
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
cmp edi, dword [esi]
jae 0x41dd1c
mov edx, dword [esi + edi*8 + 4]
push edx
mov eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x41dd3f
mov ecx, dword [ebp + 8]
mov dword [ecx], 1
mov dword [ebp - 0x30], 1
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.0041dd48
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc edi
mov dword [ebp - 0x44], edi
jmp 0x41dcf9