joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c20d1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x501344]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov ebx, 1
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x1c]
push eax
call fcn.00450970
mov edx, dword [0x503d84]
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, 0x503d84
call eax
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x30], bl
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x20]
cmp ebx, esi
jle 0x44f662
mov ebp, dword [esp + 0x1c]
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x44f632
lea ecx, [eax - 1]
test ecx, ecx
jl 0x44f6e3
cmp ecx, eax
jg 0x44f6e3
movzx ecx, word [edx + ecx*2]
cmp cx, 0x5d
je 0x44f632
test eax, eax
jle 0x44f632
lea ecx, [eax - 1]
test ecx, ecx
jl 0x44f6e3
cmp ecx, eax
jg 0x44f6e3
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x44f632
push 0x5c
call fcn.0044f390
test esi, esi
jl 0x44f6ed
cmp esi, ebx
jge 0x44f6ed
mov eax, ebp
call fcn.004515f0
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov eax, edi
call fcn.004390fc
inc esi
add ebp, 4
cmp esi, ebx
jl 0x44f5e4
xor esi, esi
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x44f6c5
cmp ebx, esi
jle 0x44f6b8
mov esi, eax
mov ebp, ebx
jmp 0x44f680
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], 0
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44f6aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
sub ebp, 1
jne 0x44f680
mov eax, dword [esp + 0x1c]
xor esi, esi
push eax
call fcn.0049ca67
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0x80070057
call fcn.00405c3a
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x44f700
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c4d38
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x501344]
xor eax, esp
mov dword [esp + 0x418], eax
push edi
mov eax, dword [0x501344]
xor eax, esp
push eax
lea eax, [esp + 0x424]
mov dword fs:[0], eax
lea eax, [esp + 0x218]
push eax
xor edi, edi
push 0x104
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x44f770
mov edx, dword [0x503d84]
mov eax, dword [edx + 0xc]
mov ecx, 0x503d84
call eax
add eax, 0x10
mov dword [esi], eax
jmp 0x44f7b9
lea ecx, [esp + 0x10]
push ecx
push edi
push 0x4d9874
lea edx, [esp + 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x44f7a3
mov eax, dword [0x503d84]
mov edx, dword [eax + 0xc]
mov ecx, 0x503d84
call edx
add eax, 0x10
mov dword [esi], eax
jmp 0x44f7b9
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.00405d14
mov dword [esp + 0x42c], edi
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0049c07b
add esp, 0x428
ret
Function at 0x44ff20
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x501344]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
lea eax, [esp + 0x20c]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x44ff66
xor al, al
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0049c07b
add esp, 0x414
ret
mov esi, dword [esi]
lea ecx, [esp + 4]
push ecx
push 0
push esi
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x44ff4e
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 4]
push ecx
call fcn.0049c5d2
add esp, 4
push eax
lea edx, [esp + 8]
push edx
mov eax, edi
call fcn.00405c74
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
mov al, 1
call fcn.0049c07b
add esp, 0x414
ret
Function at 0x4510c0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4b7fb8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x501344]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
cmp esi, 0xffffffff
jne 0x45113a
mov dword [esp + 0x1c], eax
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xc], edi
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x45116e
mov dword [esp + 0x1c], eax
cmp esi, edi
je 0x45115a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xc], edi
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov dword [esp + 0x1c], 0xffffffff
cmp esi, edi
je 0x45118b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xc], edi
mov al, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret

Function at 0x4511a0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4bbec0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x501344]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
call fcn.00451230
add esp, 4
mov dword [esp + 0x14], 0
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete bl
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45120e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x10
ret
Function at 0x454620
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x30]
mov eax, dword [ebp]
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0x1f7
push eax
call esi
mov ecx, dword [ebp]
push 0x1f6
push ecx
mov dword [esp + 0x40], eax
call esi
mov edx, dword [ebp]
push 0x1f8
push edx
mov edi, eax
call esi
mov ebx, eax
push ebx
mov ecx, edi
lea esi, [esp + 0x24]
call fcn.00454590
mov ecx, dword [ebp]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp byte [esp + 0x3c], 0
mov edx, dword [esp + 0x38]
je 0x4546aa
push str.Details___
push 0
push 0xc
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push edi
call esi
push 5
push ebx
call esi
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
jmp 0x4546d2
push 0x4d99d4
push 0
push 0xc
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call esi
push 0
push ebx
call esi
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0x10]
add eax, ecx
push 0x216
mov dword [esp + 0x20], eax
sub eax, dword [esp + 0x18]
push eax
mov eax, dword [ebp]
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8

Function at 0x455650
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c1dfe
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x501344]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0xc]
push eax
call fcn.00455520
mov dword [esp + 0x30], 1
mov ecx, dword [esp + 0x3c]
mov dx, word [esp + 0x40]
mov dword [esp + 0x20], ecx
mov word [esp + 0x24], dx
test esi, esi
jne 0x4556a3
xor eax, eax
jmp 0x4556ac
push esi
call fcn.0049c5d2
add esp, 4
push eax
push esi
lea eax, [esp + 0x14]
call fcn.00405c74
mov eax, dword [esp + 0x44]
mov cx, word [esp + 0x48]
mov dx, word [esp + 0x4c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov ax, word [esp + 0x50]
mov word [esp + 0x18], cx
mov cx, word [esp + 0x54]
add esi, 0x14
lea ebx, [esp + 0xc]
mov dword [esp + 0x14], 0
mov word [esp + 0x1a], dx
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], cx
call fcn.00455b20
mov dword [esp + 0x30], 0xffffffff
mov edx, ebx
push edx
call fcn.00455580
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret 0x20
Function at 0x455e80
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4bd8c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push edi
mov eax, dword [0x501344]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [0x504fe4], ebx
je 0x455f25
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x14], ebx
call fcn.0044d7a0
add esp, 4
mov dword [esp + 0x38], ebx
cmp dword [eax + 0x18], 0x10
mov edi, dword [edi + 0x14]
jb 0x455ed4
mov eax, dword [eax + 4]
jmp 0x455ed7
add eax, 4
mov edx, dword [0x504fe4]
push ebx
lea ecx, [esp + 0x14]
push ecx
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x455f08
mov eax, dword [esp + 0x18]
push eax
call fcn.0049c070
add esp, 4
mov ecx, dword [0x504fe4]
push ecx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x30
ret

Function at 0x455ff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c1d76
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x501344]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push edi
mov eax, dword [0x501344]
xor eax, esp
push eax
lea eax, [esp + 0x154]
mov dword fs:[0], eax
mov eax, dword [esp + 0x164]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0044d890
add esp, 8
xor ebx, ebx
mov dword [esp + 0x15c], ebx
cmp dword [esp + 0x40], ebx
jne 0x4560fa
push 0x103
lea ecx, [esp + 0x4d]
push ebx
push ecx
mov byte [esp + 0x54], bl
call fcn.0049cb00
add esp, 0xc
push 0x104
lea edx, [esp + 0x4c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x48]
push eax
call fcn.0049c3b0
add esp, 4
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x34]
call fcn.00401251
lea edx, [esp + 0xc]
push edx
lea edi, [esp + 0x30]
mov byte [esp + 0x10], 0x5c
call fcn.004566a0
cmp eax, 0xffffffff
je 0x4560fa
push eax
lea eax, [esp + 0x14]
push eax
xor ecx, ecx
mov edx, edi
call fcn.00456630
mov byte [esp + 0x15c], 1
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.00401518
mov byte [esp + 0x15c], bl
cmp dword [esp + 0x28], 0x10
jb 0x4560ea
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0049c070
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x456109
lea eax, [esp + 0x30]
mov edx, dword [esi]
push eax
push edx
call dword [sym.imp.dbghelp.dll_SymSetSearchPath]
cmp eax, 1
sete byte [esp + 0xc]
mov dword [esp + 0x15c], 0xffffffff
cmp dword [esp + 0x44], 0x10
jb 0x45613a
mov eax, dword [esp + 0x30]
push eax
call fcn.0049c070
add esp, 4
mov al, byte [esp + 0xc]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0049c07b
add esp, 0x154
ret 4
Function at 0x456f53
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor esi, esi
inc esi
cmp byte [ebp + 0x10], 0
push edi
mov eax, esi
je 0x456f6c
mov eax, 0x101
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
or dword [ebp - 0x2c], 0xffffffff
push 0x14
pop edi
push edi
mov ebx, eax
mov dword [ebp - 0x14], esi
call fcn.0049afc0
or dword [ebp - 0x24], 0xffffffff
push edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], edi
call fcn.0049afc0
pop ecx
pop ecx
lea esi, [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], edi
call fcn.0044eb50
push edi
call fcn.0049afc0
and dword [ebp + 0x10], 0
pop ecx
mov dword [ebp - 0x20], eax
test ebx, ebx
jne 0x457099
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebx, str.InstallLanguage
mov dword [ebp - 0x10], ebx
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x28]
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, 0xea
jne 0x457046
lea esi, [ebp - 0x2c]
call fcn.0044eb50
push dword [ebp - 0xc]
call fcn.0049afc0
pop ecx
lea esi, [ebp - 0x24]
mov dword [ebp - 0x28], eax
call fcn.0044eb50
push dword [ebp - 8]
call fcn.0049afc0
pop ecx
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x28]
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call edi
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
sub esi, ebx
inc eax
mov cl, byte [esi + eax]
mov dl, byte [eax]
cmp cl, dl
jl 0x45708c
jg 0x45708c
test cl, cl
je 0x457062
test dl, dl
jne 0x45704e
mov ebx, dword [ebp - 0x20]
or dword [ebp + 0x10], 0xffffffff
lea eax, [ebp + 0x10]
push eax
call fcn.0044ebd0
pop ecx
mov edi, eax
lea esi, [ebp - 0x24]
call fcn.0044eb50
lea esi, [ebp - 0x2c]
call fcn.0044eb50
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
inc dword [ebp + 0x10]
cmp dword [ebp - 0x1c], 0
je 0x456fde
xor edi, edi
jmp 0x457075
Function at 0x4596d5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x501344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test byte [eax + 0x6c], 1
jne 0x4596f2
xor al, al
jmp 0x459768
push edi
push eax
call fcn.0045a4ea
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x459731
test ecx, ecx
jge 0x459713
push 0x80070057
call fcn.00405c3a
cmp word [eax], 0x5c
jne 0x459735
cmp ecx, 1
jl 0x459709
cmp word [eax + 2], 0x5c
jne 0x459735
cmp ecx, 2
jl 0x459709
cmp word [eax + 4], 0x5c
je 0x459735
xor al, al
jmp 0x459767
push esi
xor esi, esi
test esi, esi
jl 0x459709
mov ecx, esi
mov eax, edi
call fcn.0044e0d0
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x459738
xor eax, eax
mov word [ebp - 6], ax
pop esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
setne al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049c07b
leave
ret 4

Function at 0x459776
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push ebx
call fcn.0045a4ea
lea esi, [ebp - 4]
mov edi, eax
call fcn.0044f430
push 0x5c
mov esi, edi
call fcn.00438f27
lea edx, [eax + 1]
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00438f45
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.004390fc
lea ecx, [ebp - 0xc]
call fcn.004058a3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4597d6
push 0x80
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [edi]
push 0
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4597f0
xor esi, esi
inc esi
mov dword [ebx + 0x10], esi
jmp 0x459860
push edi
push 3
lea esi, [ebx + 0x18]
pop eax
mov ecx, esi
call fcn.00464b9e
lea ecx, [ebp - 8]
call fcn.0040932c
lea eax, [ebp - 0xc]
push eax
mov edi, esi
call fcn.00464c25
push dword [eax]
lea eax, [ebp - 8]
push dword [ebp - 4]
push str.__s___s
push eax
call fcn.0043e898
add esp, 0x10
lea ecx, [ebp - 0xc]
call fcn.004058a3
lea eax, [ebx + 0x130]
call fcn.00464910
xor esi, esi
push esi
push 0x20
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0045f649
add esp, 0x14
test al, al
jne 0x459858
inc esi
mov dword [ebx + 0x10], esi
lea ecx, [ebp - 8]
call fcn.004058a3
lea ecx, [ebp - 4]
call fcn.004058a3
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x45c1e5
Capabilities:
Delete directory
Delete file

Disassembly:
push esi
push edi
mov edi, eax
cmp byte [edi + 0xb0], 0
mov dword [edi], 0x4dac34
mov dword [edi + 4], 0x4dac38
je 0x45c283
cmp dword [edi + 0x7c], 3
je 0x45c234
call fcn.0045d384
mov eax, dword [edi + 0x7c]
cmp eax, 2
je 0x45c234
cmp eax, 1
je 0x45c234
mov eax, dword [edi + 0x44]
mov ecx, eax
shr ecx, 3
test cl, 1
jne 0x45c22f
shr eax, 6
test al, 1
je 0x45c234
call fcn.0045c80f
push ebx
mov ebx, dword [edi + 0x98]
xor esi, esi
test ebx, ebx
jle 0x45c25f
push ebp
lea ebp, [edi + 0x94]
mov eax, esi
mov ecx, ebp
call fcn.0043e215
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, ebx
jl 0x45c248
pop ebp
mov esi, dword [edi + 0xa4]
dec esi
js 0x45c282
lea ebx, [edi + 0xa0]
mov eax, esi
mov ecx, ebx
call fcn.0043e215
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
dec esi
jns 0x45c26e
pop ebx
lea ecx, [edi + 0xc8]
call fcn.004058a3
lea ecx, [edi + 0xc4]
call fcn.004058a3
lea ecx, [edi + 0xb4]
call fcn.004058a3
lea ecx, [edi + 0xac]
call fcn.004058a3
lea esi, [edi + 0xa0]
call fcn.0043a2a0
lea esi, [edi + 0x94]
call fcn.0043a2a0
lea esi, [edi + 0x88]
call fcn.0045e39c
mov eax, dword [edi + 0x70]
test eax, eax
je 0x45c2e2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x70], 0
lea esi, [edi + 0x64]
call fcn.0045e362
lea ecx, [edi + 0x60]
call fcn.004058a3
lea ecx, [edi + 0x5c]
call fcn.004058a3
lea ecx, [edi + 0x58]
call fcn.004058a3
lea ecx, [edi + 0x54]
pop edi
pop esi
jmp fcn.004058a3

Function at 0x45c80f
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [edi + 0x5c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0041f17d
mov eax, dword [edi + 0x44]
xor edx, edx
inc edx
test dl, al
jne 0x45c860
shr eax, 3
movzx ecx, al
and al, dl
and ecx, edx
movzx eax, al
add ecx, ecx
or ecx, edx
neg eax
sbb eax, eax
and eax, 7
push ecx
push eax
mov eax, edi
call fcn.0045ce36
lea ecx, [edi + 0x64]
call fcn.0045e2c4
mov esi, eax
lea eax, [ebp - 8]
add esi, 0x18
push eax
jmp 0x45c8a8
shr eax, 6
test dl, al
je 0x45c8c4
lea esi, [ebp - 8]
mov ecx, edi
call fcn.0045e158
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.004390fc
mov ecx, esi
call fcn.004058a3
lea eax, [ebp - 4]
call fcn.0044f3f0
push 6
mov eax, edi
call fcn.0045ce7a
lea ecx, [edi + 0x88]
call fcn.0045e2e5
lea ecx, [ebp - 8]
push ecx
mov esi, eax
call fcn.0044f7f0
mov eax, dword [eax]
pop ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.004390fc
lea ecx, [ebp - 8]
call fcn.004058a3
lea eax, [ebp - 4]
push eax
call fcn.0044fb60
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 4]
call fcn.004058a3
xor eax, eax
pop esi
leave
ret
Function at 0x45d384
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 0x44]
sub esp, 0x10
test al, 1
je 0x45d39c
shr eax, 6
test al, 1
je 0x45d452
mov eax, dword [edi + 0x68]
and dword [ebp - 8], 0
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x45d452
push ebx
push esi
mov eax, dword [ebp - 8]
lea ecx, [edi + 0x64]
call fcn.0045e2c4
mov esi, eax
cmp byte [esi + 0x1c], 0
je 0x45d441
mov eax, dword [esi]
cmp eax, 1
je 0x45d3dc
cmp eax, 3
je 0x45d3dc
cmp eax, 0x64
jb 0x45d3f4
cmp dword [edi + 0x7c], 2
jne 0x45d3f4
jmp 0x45d441
mov eax, dword [edi + 0x7c]
cmp eax, 4
je 0x45d3f4
cmp eax, 2
je 0x45d441
cmp eax, 1
je 0x45d441
test byte [esi + 8], 1
jne 0x45d441
lea ebx, [edi + 0x5c]
push ebx
lea eax, [ebp - 4]
push eax
call fcn.0041f17d
mov esi, dword [esi + 0x18]
push dword [esi - 0xc]
lea eax, [ebp - 4]
push esi
call fcn.004390fc
lea esi, [ebp - 4]
call fcn.0040d2f8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0044f7f0
pop ecx
push eax
call fcn.0044ffc0
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.004058a3
mov ecx, esi
call fcn.004058a3
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jl 0x45d3b0
pop esi
pop ebx
leave
ret
Function at 0x45d454
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov ebx, 0x400
push ebx
mov esi, eax
call fcn.0049afc0
mov edi, eax
xor edx, edx
pop ecx
mov dword [esp + 0x14], edi
cmp edi, edx
jne 0x45d483
push edx
call fcn.0049c876
pop ecx
push 3
jmp 0x45d60e
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x24]
inc dword [esp + 0x18]
add dword [esp + 0x1c], 0xa
add eax, ebx
cmp dword [esp + 0x18], 1
mov dword [esp + 0x24], eax
jle 0x45d4b1
sub eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x70]
push 2
push edx
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x45d5ee
mov eax, dword [esi + 0x70]
push 0
lea ecx, [esp + 0x24]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45d5ee
cmp dword [esp + 0x20], ebx
jne 0x45d5ee
xor eax, eax
jmp 0x45d4f9
mov edi, dword [esp + 0x14]
xor ecx, ecx
add edi, eax
mov dl, byte [edi]
cmp dl, byte [ecx + str.ADVINSTSFX]
jne 0x45d50e
inc ecx
inc edi
cmp ecx, 0xa
jl 0x45d4fd
cmp ecx, 0xa
jne 0x45d51e
lea ecx, [eax + ebp - 0x40]
mov dword [esp + 0x28], ecx
add eax, 0xa
inc eax
cmp eax, 0x3f6
jb 0x45d4f5
mov edi, dword [esp + 0x28]
xor ebp, ebp
cmp edi, ebp
jne 0x45d53b
mov edi, dword [esp + 0x14]
xor edx, edx
jmp 0x45d493
mov eax, dword [esi + 0x70]
push ebp
push ebp
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x45d56d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x54]
push ecx
push 0x103
push esi
mov ebx, eax
call fcn.0045e197
push dword [esp + 0x14]
jmp 0x45d606
mov eax, dword [esi + 0x70]
push ebp
lea ecx, [esp + 0x24]
push ecx
push 0x4c
lea ecx, [esi + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45d5c6
cmp dword [esp + 0x20], ebp
je 0x45d5c6
xor eax, eax
movzx ecx, byte [esi + eax + 0x48]
movsx edx, byte [eax + str.ADVINSTSFX]
cmp ecx, edx
jne 0x45d5c2
inc eax
cmp eax, 0xa
jl 0x45d58f
cmp dword [esi + 0x14], 0x64
jne 0x45d5c2
sub edi, dword [esi + 0x18]
push dword [esp + 0x14]
mov dword [esi + 0x84], edi
call fcn.0049c876
pop ecx
xor eax, eax
jmp 0x45d60f
push 5
jmp 0x45d5df
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x54]
push ecx
push 0x103
push esi
mov ebx, eax
call fcn.0045e197
push 2
pop esi
push dword [esp + 0x14]
call fcn.0049c876
pop ecx
mov eax, esi
jmp 0x45d60f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x54]
push ecx
push 0x103
push esi
mov ebx, eax
call fcn.0045e197
push edi
call fcn.0049c876
pop ecx
push 2
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret