joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443bd7
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x461070]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x224], 0
push ebx
push esi
push edi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov edi, ecx
mov dword [ebp - 0x214], 1
call fcn.00427b40
lea esi, [edi + 0xc]
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x443c2d
mov eax, dword [esi]
jmp 0x443c2f
mov eax, esi
mov ebx, 0x105
push ebx
lea ecx, [ebp - 0x210]
push ecx
push eax
call fcn.004437de
test eax, eax
jne 0x443c5f
cmp dword [esi + 0x14], 8
jb 0x443c4e
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0042250d
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x210]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x443d07
push esi
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], ebx
call fcn.00422e4e
pop ecx
mov dword [ebp - 0x218], eax
cmp eax, ebx
jne 0x443c9f
xor eax, eax
jmp 0x443d13
push eax
push esi
push ebx
lea eax, [ebp - 0x210]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x443cf3
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x40df60
push dword [ebp - 0x218]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x443cf3
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 8]
mov dword [edi + 0x60], ecx
mov eax, dword [eax + 0xc]
mov dword [edi + 0x64], eax
lea eax, [edi + 0x44]
push eax
mov ecx, edi
call fcn.00443b4b
jmp 0x443cf9
mov dword [ebp - 0x214], ebx
push dword [ebp - 0x218]
call fcn.00422e5e
pop ecx
jmp 0x443d0d
mov dword [edi + 0x60], ebx
mov dword [edi + 0x64], ebx
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004224f9
leave
ret

Function at 0x443ee9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push esi
push edi
mov edi, ecx
lea eax, [edi + 0x10]
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x10], 4
jb 0x443f0f
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0
push eax
lea esi, [edi + 0x48]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x443f34
xor eax, eax
pop edi
pop esi
leave
ret
test eax, eax
jne 0x443f43
cmp dword [ebp - 8], 4
jne 0x443f43
mov eax, dword [ebp - 0xc]
jmp 0x443f30
push esi
mov ecx, edi
call fcn.0043b75e
xor eax, eax
lea edi, [ebp - 1]
stosb byte es:[edi], al
mov al, byte [ebp - 1]
mov byte [ebp - 1], al
push 0x45aa00
lea eax, [ebp - 1]
push eax
call fcn.0042570e
int3
Function at 0x44422a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x461070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
mov edi, ecx
mov dword [ebp - 0x8c], 0x40
call fcn.00427b40
lea eax, [edi + 0x10]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x444273
mov eax, dword [eax]
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push 0
push 0
push eax
lea esi, [edi + 0x64]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x44429a
xor eax, eax
jmp 0x4442d9
test eax, eax
je 0x4442cc
push esi
mov ecx, edi
call fcn.0043b75e
xor eax, eax
lea edi, [ebp - 0x85]
stosb byte es:[edi], al
mov al, byte [ebp - 0x85]
mov byte [ebp - 0x85], al
push 0x45aa00
lea eax, [ebp - 0x85]
push eax
call fcn.0042570e
lea eax, [ebp - 0x84]
push eax
call fcn.00422e89
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004224f9
leave
ret
Function at 0x445a3d
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0x10
mov eax, 0x455d7a
call fcn.00447299
mov esi, ecx
mov dword [ebp - 0x18], esi
push 7
pop eax
xor edi, edi
xor ecx, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edi
mov word [esi], cx
mov dword [ebp - 4], edi
mov dword [esi + 0x30], eax
xor eax, eax
mov dword [esi + 0x2c], edi
mov word [esi + 0x1c], ax
mov byte [ebp - 4], 1
lea ebx, [esi + 0x38]
mov eax, ebx
mov dword [ebp - 0x14], eax
mov dword [eax], edi
mov byte [ebp - 4], 3
lea eax, [esi + 0x3c]
mov dword [ebp - 0x14], eax
mov dword [eax], edi
mov byte [ebp - 4], 5
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 7
lea eax, [ebp - 0x10]
push eax
push 0x409e68
push 1
push edi
push 0x409f38
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jge 0x445aeb
push 0x1c
call fcn.004228b7
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 8
cmp esi, edi
je 0x445ad4
push 0x409cd0
mov ecx, esi
call fcn.00410d1a
mov byte [ebp - 4], 8
jmp 0x445ad6
xor esi, esi
mov byte [ebp - 4], 7
mov dword [ebp + 8], esi
push 0x45c080
lea eax, [ebp + 8]
push eax
call fcn.0042570e
push 0x409cc4
mov ecx, esi
call fcn.00410cec
push dword [ebp + 8]
mov ecx, esi
call fcn.004111a3
cmp dword [esi + 0x14], 8
jb 0x445b0b
mov eax, dword [esi]
jmp 0x445b0d
mov eax, esi
cmp eax, edi
jne 0x445b67
mov dword [ebp + 8], edi
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
push eax
call dword [ecx + 0xc]
mov ebx, eax
cmp dword [ebp - 0x10], edi
je 0x445b3c
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.0041b37f
cmp ebx, edi
jge 0x445b95
push 0x1c
call fcn.004228b7
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 0xb
cmp esi, edi
je 0x445b7f
push 0x409c84
mov ecx, esi
call fcn.00410d1a
mov byte [ebp - 4], 0xb
jmp 0x445b81
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x445b14
push 0x8007000e
call fcn.0041331b
xor esi, esi
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x14], esi
push 0x45c080
lea eax, [ebp - 0x14]
jmp 0x445ae5
mov byte [ebp - 4], 7
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x445bb3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00447385
ret 4
Function at 0x446597
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x844
mov eax, dword [0x461070]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
push esi
push edi
mov edi, dword [ebp + 0xc]
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 0x840], eax
push edi
push eax
mov dword [ebp - 0x83c], edi
mov dword [ebp - 0x838], ecx
call ebx
xor esi, esi
cmp eax, esi
je 0x4465f8
mov ecx, edi
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, si
jne 0x4465e3
sub ecx, edi
sar ecx, 1
jne 0x4467f7
xor eax, eax
mov edi, 0x208
push edi
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push esi
push eax
call fcn.00427b40
xor eax, eax
push edi
mov word [ebp - 0x834], ax
lea eax, [ebp - 0x832]
push esi
push eax
call fcn.00427b40
push esi
push esi
push esi
push esi
mov esi, 0x105
push esi
lea eax, [ebp - 0x834]
push eax
push esi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x838]
call fcn.0042324c
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.00422675
add esp, 0x48
push 0x40a028
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.00422675
add esp, 0xc
call fcn.00430f85
movzx eax, ax
mov dword [ebp - 0x838], eax
xor eax, eax
push edi
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00427b40
xor eax, eax
push edi
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.00427b40
push 0xa
push esi
lea eax, [ebp - 0x628]
push eax
movzx eax, word [ebp - 0x838]
push eax
call fcn.0044803e
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0042250d
push 0x40f948
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00422675
add esp, 0x40
lea eax, [ebp - 0x628]
push eax
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.00422675
mov edi, 0x40a054
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00422675
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x83c]
push dword [ebp - 0x840]
call ebx
test eax, eax
je 0x446765
mov ecx, dword [ebp - 0x83c]
lea edx, [ecx + 2]
mov dword [ebp - 0x838], edx
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x44674c
sub ecx, dword [ebp - 0x838]
sar ecx, 1
jne 0x4467f7
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0042250d
push 0x40a040
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00422675
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x83c]
push dword [ebp - 0x840]
call ebx
test eax, eax
je 0x4467ce
mov ecx, dword [ebp - 0x83c]
lea edx, [ecx + 2]
mov dword [ebp - 0x838], edx
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4467b9
sub ecx, dword [ebp - 0x838]
sar ecx, 1
jne 0x4467f7
push edi
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.00422675
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x83c]
push dword [ebp - 0x840]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004224f9
leave
ret
Function at 0x4528e7
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x461070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
cmp dword [eax], 0
je 0x452921
mov eax, dword [eax + 4]
test eax, eax
je 0x452921
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x452921
xor eax, eax
cmp dword [ebp - 0x1c], 4
sete al
jmp 0x452923
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004224f9
leave
ret

Function at 0x4529ae
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x461070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x40dee8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x452a04
push ebx
call fcn.0045294b
test eax, eax
je 0x452a04
push esi
push edi
push 5
pop ecx
lea eax, [ebp - 0x18]
push eax
mov esi, 0x40df14
lea edi, [ebp - 0x18]
push ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
pop esi
test eax, eax
je 0x452a04
lea ecx, [ebp - 0x3c]
push ecx
call eax
jmp 0x452a0e
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x3c]
pop ebx
test eax, eax
je 0x452a2f
cmp eax, 6
je 0x452a2a
xor ecx, ecx
cmp eax, 9
setne cl
lea eax, [ecx + ecx + 1]
jmp 0x452a31
push 2
pop eax
jmp 0x452a31
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004224f9
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x408e84
mov ecx, 0x34ef473b
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x631d52f9
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x403db0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x5315d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x403e71
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00471c10
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x403e5b
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.00471c10
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x4f58e0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4f58e4
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x403e71
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004654a8
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00471c10
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.00403f40
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0048d000
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x403ed1
cmp eax, 0x207
ja 0x403ed1
jne 0x403ed8
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403ee1
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004654a8
mov esp, ebp
pop ebp
ret
Function at 0x4049a0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.004658d0
mov eax, dword [0x5315d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4049d0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004654a8
mov esp, ebp
pop ebp
ret
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call fcn.00471c10
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.0048e365
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004654a8
mov esp, ebp
pop ebp
ret
Function at 0x404a60
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x5315d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x404c40
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404c40
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404a93
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x404c40
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov ebx, 1
push 0
push eax
call fcn.00471c10
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00471c10
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call edi
push 0x4f599c
lea eax, [ebp - 0x414]
push eax
call edi
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x404c26
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x404c1a
test byte [ebp - 0x664], 0x10
je 0x404baa
cmp word [ebp - 0x638], 0x2e
jne 0x404b69
mov ax, word [ebp - 0x636]
test ax, ax
je 0x404bff
cmp ax, 0x2e
jne 0x404b69
cmp word [ebp - 0x634], 0
je 0x404bff
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00471c10
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call edi
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call fcn.00404a60
add esp, 4
jmp 0x404bfd
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00471c10
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call edi
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
push 0x80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and ebx, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404b32
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
and eax, ebx
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004654a8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004654a8
mov esp, ebp
pop ebp
ret
Function at 0x404c60
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404cc1
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404cc1
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404c98
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404cc1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404cbc
test al, 0x10
je 0x404cbc
push esi
call fcn.00404a60
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x404cc1
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x405950
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405998
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405998
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x405988
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405998
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x4059a0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7a46
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x5315d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4059dc
xor eax, eax
jmp 0x405be2
cmp word [ebx], 0
je 0x4059d5
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4059e7
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x4059d5
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00471c10
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x4f59e4
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405a42
test al, 1
je 0x405a42
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 0x5c
mov dword [ebp - 0x428], 0
mov word [ebp - 0x42c], ax
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x884]
call fcn.00404cd0
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x405b92
cmp dword [ebp - 0x424], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x405af1
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x405af1
cmp word [ebp - 0x858], 0x2e
jne 0x405af1
mov ax, word [ebp - 0x856]
test ax, ax
je 0x405acc
cmp ax, 0x2e
jne 0x405af1
cmp word [ebp - 0x854], 0
jne 0x405af1
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x405bfe
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x405b84
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x884]
call fcn.00404f70
cmp dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
je 0x405b2c
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x405b2c
mov esi, dword [ebp - 0x888]
push esi
call fcn.004059a0
jmp 0x405b38
mov esi, dword [ebp - 0x888]
push esi
call fcn.00405950
mov eax, dword [ebp - 0x428]
add esp, 4
test eax, eax
jne 0x405b49
xor edi, edi
jmp 0x405b68
cmp dword [ebp - 0x424], 0
jne 0x405b56
xor edi, edi
jmp 0x405b68
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405b84
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x405a89
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x405bb8
cmp eax, 0xffffffff
je 0x405bb8
push eax
call esi
mov dword [ebp - 0x428], 0
push ebx
call fcn.004049a0
mov eax, dword [ebp - 0x428]
add esp, 4
mov dword [ebp - 0x424], 0
test eax, eax
je 0x405bdd
cmp eax, 0xffffffff
je 0x405bdd
push eax
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004654a8
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x424], 0
jmp 0x405bb8
Function at 0x405cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405d09
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405d09
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405cfa
cmp esi, edx
jae 0x405d09
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x405ce8
cmp esi, edx
jae 0x405d09
cmp word [esi], 0
je 0x405d09
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x407130
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x5315d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x800
lea eax, [ebp - 0x804]
mov ebx, ecx
push 0
push eax
call fcn.00471c10
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push str.FirePhoenixInstaller
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x808], esi
test esi, esi
je 0x407217
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4071e4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x4f5abc
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x4071d2
push 0
push 0
push 0x1400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004654a8
mov esp, ebp
pop ebp
ret
push edi
lea edi, [ebx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 8]
lea ecx, [ebx + 4]
cmp dword [ecx + 8], eax
je 0x407202
mov dword [eax], esi
add dword [ecx + 4], 4
jmp 0x40720f
lea edx, [ebp - 0x808]
push edx
push eax
call fcn.00406c80
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.004654a8
mov esp, ebp
pop ebp
ret