joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a108
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x47a1a7
cmp dword [ebx + 0x94], 0
jne 0x47a1a1
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x47a090
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x47a1a1
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x47a167
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x47a1a1
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041cbdc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47a176
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47a3c0
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x58ccdc]
cmp dword [eax + 0x30], 0
je 0x47a51d
test bl, bl
jne 0x47a46e
cmp dword [esi + 0x9c], 0
jne 0x47a463
mov eax, esi
call fcn.0047cc3c
push eax
push 0x47a2ec
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x47a434
mov eax, dword [0x58ccdc]
call fcn.0047d31c
test al, al
je 0x47a434
mov eax, dword [0x58cd00]
call fcn.004066f8
mov edi, eax
cmp edi, 0
jl 0x47a434
push 0
mov eax, dword [0x58cd00]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x47a41e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x47a463
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041cbdc
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x47a443
inc dword [esi + 0x9c]
jmp 0x47a51d
cmp dword [esi + 0x9c], 0
jle 0x47a51d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x47a51d
cmp dword [esi + 0x44], 0
je 0x47a4c9
mov eax, dword [0x58ccdc]
call fcn.0047d31c
test al, al
je 0x47a4c9
mov eax, dword [0x58cd00]
call fcn.004066f8
mov edi, eax
cmp edi, 0
jl 0x47a4c9
push 5
mov eax, dword [0x58cd00]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x47a4b3
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x47a4f8
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041cbdc
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x47a4d8
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x58cd00
mov ecx, 1
mov edx, dword [0x47a2cc]
call fcn.004068ac
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x47afb0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x47b01a
mov eax, ebx
call fcn.0047d31c
test al, al
jne 0x47b01a
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004053d4
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x47b007
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x47b027
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405338
jmp 0x47b027
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405338
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x47c440
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x47c4ae
mov eax, esi
call fcn.004656d4
test al, al
je 0x47c4ae
mov eax, dword [ebx + 0x84]
call fcn.00465324
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47c4ae
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x47c4a2
push 0
mov eax, dword [ebx + 0x84]
call fcn.00465324
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0045d274
jmp 0x47c4ae
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0047c27c
pop esi
pop ebx
ret

Function at 0x49ff98
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x58cd84], 0
jne 0x49ffbb
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x49ff0c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x58cd84], eax
ret
Function at 0x4a28c8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x408798]
call fcn.00405ecc
xor eax, eax
push ebp
push 0x4a2a69
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x584e38], 0
jne 0x4a2923
mov ecx, dword [0x5875b4]
mov dl, 1
mov eax, dword [0x408e00]
call fcn.0040f02c
call fcn.00404c34
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403ab8
mov eax, ebx
call fcn.00405c84
mov dword [ebp - 0x24], eax
mov esi, 0x4a2a78
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406f9c
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405c94
test eax, eax
jle 0x4a2a0c
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4a29f8
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405554
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x4a299e
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.0040556c
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x4a29b4
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.0040556c
mov eax, dword [ebp - 0x54]
call fcn.00405774
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405554
mov eax, dword [ebp - 0x58]
call fcn.00405774
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x4a29fa
xor eax, eax
test al, al
je 0x4a2a05
mov ebx, 0x15
jmp 0x4a2a11
mov ebx, 0x10
jmp 0x4a2a11
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x584e38]
call fcn.004a2748
mov eax, dword [ebp - 4]
call fcn.004a2748
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406fb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2a70
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00405308
lea eax, [ebp - 0xc]
mov edx, dword [0x408798]
call fcn.00405f9c
ret
Function at 0x4a47fc
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a48b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004052e4
mov dl, 1
mov eax, dword [0x42b0e8]
call fcn.0042b254
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a488e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 4]
call fcn.0042b330
xor ecx, ecx
mov edx, 0x4a48cc
mov eax, dword [ebp - 4]
call fcn.0042b398
test al, al
je 0x4a487c
lea ecx, [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0042b934
mov edx, dword [ebp - 8]
mov eax, ebx
mov ecx, 0x4a4918
call fcn.004055fc
mov eax, dword [ebp - 4]
call fcn.00404380
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a48a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a48bd
lea eax, [ebp - 8]
call fcn.004052e4
ret

Function at 0x4a491c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
mov esi, ecx
mov ebx, eax
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403ab8
mov dword [ebp - 0x48], 0x44
mov word [ebp - 0x18], si
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, ebx
call fcn.00405774
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4a4991
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0
lea eax, [ebp - 0x60]
push eax
push 0
mov ecx, 0x4a49d4
mov dl, 1
mov eax, dword [0x408e00]
call fcn.0040efac
call fcn.00404c34
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp byte [ebp + 8], 0
je 0x4a49ba
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0xffffffff
je 0x4a49ba
lea eax, [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_GetExitCodeProcess
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a4a00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a4ab6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 4]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00405554
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4a4a56
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x108]
push eax
mov ecx, 1
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004057dc
mov eax, dword [ebp - 0x108]
mov edx, 0x4a4acc
call fcn.0040570c
je 0x4a4a8b
lea eax, [ebp - 4]
mov edx, 0x4a4acc
call fcn.004055b0
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00405338
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4abd
lea eax, [ebp - 0x108]
call fcn.004052e4
lea eax, [ebp - 4]
call fcn.004052e4
ret
Function at 0x4a4ad0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push ebx
xor edx, edx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x9c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a4cae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x94]
xor ecx, ecx
mov edx, 0x94
call fcn.00403ab8
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, ebx
mov edx, 0x4a4cc4
call fcn.00405338
cmp dword [ebp - 0x84], 2
jne 0x4a4ba7
mov eax, dword [ebp - 0x90]
sub eax, 3
je 0x4a4b54
dec eax
je 0x4a4b62
dec eax
je 0x4a4b70
jmp 0x4a4b7c
mov eax, ebx
mov edx, 0x4a4cd8
call fcn.00405338
jmp 0x4a4b7c
mov eax, ebx
mov edx, 0x4a4ce8
call fcn.00405338
jmp 0x4a4b7c
mov eax, ebx
mov edx, 0x4a4cf8
call fcn.00405338
cmp dword [ebp - 0x90], 5
jne 0x4a4c90
cmp dword [ebp - 0x8c], 1
jne 0x4a4c90
mov eax, ebx
mov edx, 0x4a4d08
call fcn.00405338
jmp 0x4a4c90
cmp dword [ebp - 0x90], 4
jne 0x4a4c10
cmp dword [ebp - 0x8c], 0
jne 0x4a4c10
mov eax, ebx
mov edx, 0x4a4d18
call fcn.00405338
lea eax, [ebp - 0x9c]
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.00405554
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x98]
call fcn.00409fb0
mov eax, dword [ebp - 0x98]
mov edx, 0x4a4d28
call fcn.0040570c
jne 0x4a4c90
mov eax, ebx
mov edx, 0x4a4d34
call fcn.00405338
jmp 0x4a4c90
cmp dword [ebp - 0x90], 4
jne 0x4a4c72
cmp dword [ebp - 0x8c], 0xa
jne 0x4a4c72
mov eax, ebx
mov edx, 0x4a4d48
call fcn.00405338
lea eax, [ebp - 0xa4]
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.00405554
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
call fcn.00409fb0
mov eax, dword [ebp - 0xa0]
mov edx, 0x4a4d58
call fcn.0040570c
jne 0x4a4c90
mov eax, ebx
mov edx, 0x4a4d64
call fcn.00405338
jmp 0x4a4c90
cmp dword [ebp - 0x90], 4
jne 0x4a4c90
cmp dword [ebp - 0x8c], 0x5a
jne 0x4a4c90
mov eax, ebx
mov edx, 0x4a4d74
call fcn.00405338
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4cb5
lea eax, [ebp - 0xa4]
mov edx, 4
call fcn.00405308
ret
Function at 0x4a4f28
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405764
xor eax, eax
push ebp
push 0x4a505f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov ecx, 2
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004057dc
mov eax, dword [ebp - 0xc]
mov edx, 0x4a5078
call fcn.00405338
xor edx, edx
push ebp
push 0x4a5025
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10]
mov ecx, 0x4a5088
mov edx, dword [ebp - 8]
call fcn.004055fc
mov eax, dword [ebp - 0x10]
call fcn.00405774
push eax
call sub.kernel32.dll_GetDriveTypeA
test eax, eax
jns 0x4a4faa
call fcn.00404248
cmp eax, 6
ja case.0x4a4faf.0
jmp dword [eax*4 + 0x4a4fb6]
mov eax, dword [ebp - 0xc]
mov edx, 0x4a5094
call fcn.00405338
jmp case.0x4a4faf.0
mov eax, dword [ebp - 0xc]
mov edx, 0x4a50a4
call fcn.00405338
jmp case.0x4a4faf.0
mov eax, dword [ebp - 0xc]
mov edx, 0x4a50b4
call fcn.00405338
jmp case.0x4a4faf.0
mov eax, dword [ebp - 0xc]
mov edx, 0x4a50c8
call fcn.00405338
jmp case.0x4a4faf.0
mov eax, dword [ebp - 0xc]
mov edx, 0x4a50d8
call fcn.00405338
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a503c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5066
lea eax, [ebp - 0x10]
call fcn.004052e4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405308
ret

Function at 0x4a50e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405764
xor eax, eax
push ebp
push 0x4a51e9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov edx, 0x4a5200
call fcn.00405338
lea eax, [ebp - 0xc]
push eax
mov ecx, 3
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004057dc
xor eax, eax
push ebp
push 0x4a51ac
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x11e]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00405774
push eax
call sub.kernel32.dll_GetVolumeInformationA
lea eax, [ebp - 0x124]
lea edx, [ebp - 0x11e]
mov ecx, 0x106
call fcn.00405554
mov edx, dword [ebp - 0x124]
lea eax, [ebp - 8]
xor ecx, ecx
call fcn.004055fc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00409c98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a51c3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a51f0
lea eax, [ebp - 0x124]
call fcn.004052e4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405308
ret
Function at 0x4a5208
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405764
xor eax, eax
push ebp
push 0x4a5342
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov ecx, 2
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004057dc
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
xor edx, edx
push ebp
push 0x4a52de
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x34]
mov ecx, 0x4a5360
mov edx, dword [ebp - 8]
call fcn.004055fc
mov eax, dword [ebp - 0x34]
call fcn.00405774
push eax
call sub.kernel32.dll_GetDriveTypeA
test eax, eax
jns 0x4a528e
call fcn.00404248
add eax, 0xfffffffe
sub eax, 4
jae 0x4a52d4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
mov ecx, 0x4a5360
mov edx, dword [ebp - 8]
call fcn.004055fc
mov eax, dword [ebp - 0x38]
call fcn.00405774
push eax
mov eax, dword [0x587938]
mov eax, dword [eax]
call eax
test eax, eax
je 0x4a52d4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a530e
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5349
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00405308
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405308
ret
Function at 0x4a5498
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe88
push ebx
xor edx, edx
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x16c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405764
lea eax, [ebp - 0x168]
mov edx, dword [0x408de0]
call fcn.00405ecc
xor eax, eax
push ebp
push 0x4a5637
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x4a54f2
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 4]
dec eax
test edx, edx
je 0x4a54ff
cmp eax, dword [edx - 4]
jb 0x4a5504
call fcn.00404248
inc eax
cmp byte [edx + eax - 1], 0x5c
je 0x4a5519
lea eax, [ebp - 4]
mov edx, 0x4a5650
call fcn.004055b0
lea eax, [ebp - 0x16c]
mov ecx, 0x4a565c
mov edx, dword [ebp - 4]
call fcn.004055fc
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x168]
mov edx, 0x3f
call fcn.0040aa3c
test eax, eax
jne 0x4a55f5
mov eax, dword [ebp - 0x158]
and eax, 0x10
test eax, eax
jle 0x4a5579
mov edx, 1
mov ecx, dword [ebp - 0x154]
dec edx
test ecx, ecx
je 0x4a556c
cmp edx, dword [ecx - 4]
jb 0x4a5571
call fcn.00404248
inc edx
cmp byte [ecx + edx - 1], 0x2e
je 0x4a55e2
test eax, eax
jle 0x4a55bd
lea eax, [ebp - 0x170]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 4]
call fcn.004055fc
mov eax, dword [ebp - 0x170]
call fcn.004a5498
lea eax, [ebp - 0x174]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 4]
call fcn.004055fc
mov eax, dword [ebp - 0x174]
call fcn.004a5660
jmp 0x4a55e2
lea eax, [ebp - 0x178]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 4]
call fcn.004055fc
mov eax, dword [ebp - 0x178]
call fcn.00405774
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x168]
call fcn.0040aa8c
test eax, eax
je 0x4a554a
lea eax, [ebp - 0x168]
call fcn.0040aab0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a563e
lea eax, [ebp - 0x178]
mov edx, 4
call fcn.00405308
lea eax, [ebp - 0x168]
mov edx, dword [0x408de0]
call fcn.00405f9c
lea eax, [ebp - 4]
call fcn.004052e4
ret
Function at 0x4a58ec
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 0x1004], eax
mov eax, dword [ebp - 0x1004]
call fcn.00405764
xor eax, eax
push ebp
push 0x4a5a96
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1004]
call fcn.004a57f4
test al, al
je 0x4a5940
push 0x80
mov eax, dword [ebp - 0x1004]
call fcn.00405774
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
push ebp
push 0x4a5a62
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x12
mov ecx, dword [ebp - 0x1004]
mov dl, 1
mov eax, dword [0x41a94c]
call fcn.0041fe74
mov ebx, eax
push ebp
call fcn.004a58b8
pop ecx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x100c], edx
push 0
push 0
mov eax, ebx
call fcn.0041f97c
jmp 0x4a5a21
cmp dword [ebp - 0x100c], 0
jne 0x4a59a4
cmp dword [ebp - 0x1010], 0x1000
jbe 0x4a59bc
jmp 0x4a59a6
jle 0x4a59bc
mov dword [ebp - 0x1018], 0x1000
mov dword [ebp - 0x1014], 0
jmp 0x4a59d4
mov eax, dword [ebp - 0x1010]
mov dword [ebp - 0x1018], eax
mov eax, dword [ebp - 0x100c]
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1018]
mov edx, dword [ebp - 0x1014]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x4a59ee
call fcn.00404248
mov ecx, eax
lea edx, [ebp - 0x1000]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, dword [ebp - 0x1010]
mov edx, dword [ebp - 0x100c]
sub eax, dword [ebp - 0x1018]
sbb edx, dword [ebp - 0x1014]
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x100c], edx
cmp dword [ebp - 0x100c], 0
jne 0x4a5a39
cmp dword [ebp - 0x1010], 0
ja 0x4a598d
jmp 0x4a5a3f
jg 0x4a598d
mov eax, dword [ebx + 4]
test eax, eax
jns 0x4a5a4b
call fcn.00404248
push eax
call sub.kernel32.dll_FlushFileBuffers
mov eax, ebx
call fcn.00404380
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a5a6c
mov eax, dword [ebp - 0x1004]
call fcn.00405774
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5a9d
lea eax, [ebp - 0x1004]
call fcn.004052e4
ret
Function at 0x4a5aa4
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4a5bf9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x108]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 4]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.00405554
mov esi, dword [ebp - 4]
mov ebx, esi
test ebx, ebx
je 0x4a5b0c
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x10c]
push eax
mov ecx, 1
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004057dc
mov eax, dword [ebp - 0x10c]
mov edx, 0x4a5c10
call fcn.0040570c
jne 0x4a5b53
mov ebx, esi
test ebx, ebx
je 0x4a5b3f
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004057dc
lea eax, [ebp - 4]
mov edx, 0x4a5c1c
call fcn.004055b0
mov eax, dword [ebp - 4]
call fcn.00405774
mov ebx, eax
mov edx, ebx
lea eax, [ebp - 0x110]
call fcn.004054dc
mov eax, dword [ebp - 0x110]
call fcn.0040a980
test al, al
jne 0x4a5b8e
push 0
push ebx
call sub.kernel32.dll_CreateDirectoryA
lea eax, [ebp - 8]
call fcn.004a5c28
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 8]
call fcn.004a6784
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 8]
call fcn.0040537c
push dword [ebp - 4]
push 0x4a5c10
push dword [ebp - 8]
push 0x4a5c10
mov eax, edi
mov edx, 4
call fcn.00405678
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5c00
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00405308
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405308
ret

Function at 0x4a5c28
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
xor edx, edx
mov dword [ebp - 0x204], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a5cc7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x100]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x200]
push eax
push 0
push 0x4a5cd4
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetTempFileNameA
lea eax, [ebp - 0x204]
lea edx, [ebp - 0x200]
mov ecx, pe_nt_image_headers32
call fcn.00405554
mov eax, dword [ebp - 0x204]
call fcn.00405774
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, ebx
lea edx, [ebp - 0x200]
mov ecx, pe_nt_image_headers32
call fcn.00405554
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5cce
lea eax, [ebp - 0x204]
call fcn.004052e4
ret