joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424800
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c62d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x492110]
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 ecx, dword [ebp + 0x10]
mov eax, ecx
mov ebx, dword [ebp + 8]
mov edi, ecx
xor edi, 8
and al, 8
cmove edi, ecx
test ebx, ebx
jne 0x424845
xor eax, eax
jmp 0x4248b2
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0
push 0
push 0x479018
call sub.SHELL32.dll_SHGetKnownFolderPath
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0
test eax, eax
jns 0x424873
xor edi, edi
jmp 0x4248a5
push ebx
push esi
lea eax, [ebp - 0x28]
push 0x471a00
push eax
call fcn.004246d0
add esp, 0x10
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.00403f00
test esi, esi
je 0x4248b0
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
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.0042db8f
mov esp, ebp
pop ebp
ret
Function at 0x424b90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
test edx, edx
je 0x424cb6
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x424cb6
mov ecx, dword [ebp + 0x10]
cmp ecx, 1
jb 0x424cb6
cmp dword [esi + 0xc], 0
je 0x424cb6
cmp dword [esi + 0x10], 0
je 0x424cb6
test ecx, ecx
jle 0x424caa
sub edx, eax
push ebx
mov dword [ebp + 8], edx
push edi
mov ebx, dword [esi + 0x10]
mov edx, ebx
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edx
test ecx, ecx
jle 0x424c3d
mov ecx, dword [esi]
call fcn.00424e30
mov byte [edi], al
lea edi, [edi + 1]
mov ecx, dword [esi]
call fcn.00424e30
mov byte [ebx], al
lea ebx, [ebx + 1]
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 4]
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
cmp eax, ecx
jl 0x424c03
mov ebx, dword [esi + 0x10]
mov edx, ebx
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
dec ecx
mov eax, dword [ebp + 0xc]
mov al, byte [ebx + eax]
mov ebx, dword [esi + 8]
add edx, ebx
test ecx, ecx
jle 0x424c85
mov ecx, dword [ebp - 0x10]
sub ecx, ebx
sub ecx, dword [ebp - 8]
dec ecx
add ecx, edx
sub ebx, edx
lea esi, [ebx + edi]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
nop dword [eax]
sub al, byte [edx]
lea edx, [edx - 1]
xor al, byte [ebx + edx + 1]
dec ecx
test ecx, ecx
jg 0x424c70
mov ecx, dword [ebp - 4]
mov edx, edi
jmp 0x424c8b
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
sub al, byte [ecx]
xor al, byte [edx]
mov ecx, dword [ebp + 0xc]
xor al, byte [esi + 0x15]
mov byte [ecx], al
inc ecx
xor byte [esi + 0x15], al
sub dword [ebp + 0x10], 1
mov dword [ebp + 0xc], ecx
jne 0x424be1
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4251a4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x425209
xor eax, eax
cmp ax, word [esi]
je 0x425209
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4251c5
push 2
jmp 0x42520b
push 0
call fcn.004250cd
pop ecx
push esi
mov ecx, eax
call fcn.004278cc
test eax, eax
je 0x425205
push 0x4942dc
push dword [0x478b50]
push 0x49207c
push 0x4920a0
push dword [0x478b54]
push esi
call fcn.004268a9
add esp, 0x18
test eax, eax
jne 0x425205
push 5
jmp 0x42520b
xor eax, eax
jmp 0x42520c
push 0x57
pop eax
pop esi
pop ebp
ret
Function at 0x426e12
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push 0x427051
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x426e54
push esi
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
jne 0x426e54
xor eax, eax
inc eax
jmp 0x426e56
xor eax, eax
pop edi
leave
ret
Function at 0x4270a1
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x27c
mov eax, 0x46c8ff
call fcn.0042dc0b
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.0042f1f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push str.Program_FilesCommon_FilesMcAfeePlatformCore_trusted.js
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
je 0x427145
lea eax, [ebp - 0x218]
push eax
call fcn.00426b2b
pop ecx
test eax, eax
je 0x427145
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x427136
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.004252ac
jmp 0x427145
lea ecx, [ebp - 0x218]
push ecx
push eax
mov ecx, edi
call fcn.004253c6
mov byte [ebp - 0x27c], 0
lea eax, [ebp + 0xc]
push dword [ebp - 0x27c]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.0042523e
add esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x278]
call fcn.004275d2
push 0x478b38
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 1
call fcn.004255a8
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x427199
mov esi, dword [esi]
push esi
mov dword [ebp - 0x27c], esi
call ebx
test eax, eax
je 0x4271d8
push esi
call fcn.00426b2b
pop ecx
test eax, eax
je 0x4271d8
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x4271c9
lea eax, [ebp - 0x27c]
mov ecx, edi
push eax
call fcn.00425282
jmp 0x4271d8
lea ecx, [ebp - 0x27c]
push ecx
push eax
mov ecx, edi
call fcn.004252d6
lea eax, [ebp - 0x288]
push eax
call fcn.004272d5
pop ecx
mov esi, dword [ebp - 0x288]
mov byte [ebp - 4], 2
jmp 0x4272a2
and dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
and dword [ebp - 0x21c], 0
push esi
call fcn.00415094
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x230]
call fcn.004275d2
push 0x478b38
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 4
call fcn.004255a8
mov ebx, eax
cmp dword [ebx + 0x14], 8
jb 0x427242
mov ebx, dword [ebx]
push ebx
mov dword [ebp - 0x27c], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x427285
push ebx
call fcn.00426b2b
pop ecx
test eax, eax
je 0x427285
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x427276
lea eax, [ebp - 0x27c]
mov ecx, edi
push eax
call fcn.00425282
jmp 0x427285
lea ecx, [ebp - 0x27c]
push ecx
push eax
mov ecx, edi
call fcn.004252d6
lea ecx, [ebp - 0x248]
call fcn.00403f00
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.00403f00
add esi, 0x18
cmp esi, dword [ebp - 0x284]
jne 0x4271f4
lea ecx, [ebp - 0x288]
call fcn.00426f20
lea ecx, [ebp - 0x260]
call fcn.00403f00
lea ecx, [ebp - 0x278]
call fcn.00403f00
call fcn.0042dbb5
ret
Function at 0x428636
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x46cb62
call fcn.0042dc0b
mov edi, ecx
mov dword [ebp - 0x21c], edi
mov ebx, dword [ebp + 8]
lea esi, [edi + 0x18]
xor eax, eax
mov dword [ebp - 0x220], edi
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
push esi
mov dword [ebp - 0x21c], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.00427c1a
pop ecx
mov dword [esi], eax
xor ecx, ecx
lea esi, [edi + 0x24]
mov dword [edi + 0x20], ecx
xor eax, eax
mov dword [ebp - 4], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 1
test ebx, ebx
je 0x4286a5
push ebx
jmp 0x4286f2
push 0x208
push ecx
lea eax, [ebp - 0x218]
push eax
call fcn.0042f1f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push str.Program_FilesCommon_FilesMcAfeePlatformCore_trusted.js
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.0042a509
mov eax, edi
call fcn.0042dbb5
ret 4
Function at 0x429cfa
Capabilities:
Check if file exists
Copy file
Create directory
Move file

Disassembly:
push 0x234
mov eax, 0x46cd3f
call fcn.0042dc0b
mov edi, ecx
mov dword [ebp - 0x21c], edi
mov eax, dword [ebp + 8]
lea esi, [edi + 0x14]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], esi
test esi, esi
je 0x429d2e
push esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
add edi, 0x24
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x429d40
mov eax, dword [edi]
push 1
push eax
lea ecx, [ebp - 0x240]
call fcn.00428703
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0042f1f0
add esp, 0xc
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x429d6d
mov eax, dword [edi]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.00404b00
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push str.trusted.tmp
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x429e36
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x429dcf
mov eax, dword [edi]
mov ebx, dword [ebp - 0x21c]
push eax
add ebx, 0x24
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x429e02
cmp dword [ebx + 0x14], 8
jb 0x429deb
mov ebx, dword [ebx]
xor eax, eax
push eax
push eax
push 2
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
jmp 0x429e18
cmp dword [ebx + 0x14], 8
jb 0x429e0a
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x429e56
cmp dword [edi + 0x14], 8
jb 0x429e24
mov edi, dword [edi]
push 4
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor ebx, ebx
lea ecx, [ebp - 0x240]
call fcn.00428b55
test esi, esi
je 0x429e4c
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, ebx
call fcn.0042dbb5
ret 4
lea ecx, [ebp - 0x240]
call fcn.00428b55
push str.67136527_5D6B_4AC9_865B_3E392E982420
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov ecx, dword [ebp - 0x21c]
call fcn.0042940d
mov ecx, dword [ebp - 0x21c]
call fcn.0042970a
mov ebx, eax
jmp 0x429e41
Function at 0x429f1f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x492110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x429f7c
cmp byte [esi + 0x3e], bl
je 0x429f7c
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
cmp di, ax
je 0x429fb5
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, ebx
je 0x429f8d
sub eax, 1
je 0x429f90
dec eax
sub eax, 1
jne 0x429fb5
mov byte [esi + 0x3e], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042db8f
leave
ret
mov byte [esi + 0x3e], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x429fad
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0043a61c
add esp, 0x10
cmp edi, eax
jne 0x429fb5
cmp byte [esi + 0x3e], bl
sete al
jmp 0x429f7e
xor al, al
jmp 0x429f7e

Function at 0x42acae
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x492110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
mov esi, ecx
cmp bx, di
jne 0x42acd7
xor eax, eax
jmp 0x42ada3
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x42ad03
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x42ad03
dec dword [edx]
mov ax, di
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
jmp 0x42ada3
cmp dword [esi + 0x4c], 0
je 0x42ada0
mov ecx, esi
call fcn.0042a481
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42ad2f
push dword [esi + 0x4c]
push edi
call fcn.00427ec4
pop ecx
pop ecx
test al, al
je 0x42ada0
movzx ebx, di
jmp 0x42ada0
movzx eax, di
mov dword [ebp - 0x28], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x42ada0
cmp eax, 1
jle 0x42ad6e
cmp eax, 3
jne 0x42ada0
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x42ad1f
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x42ad91
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.0043a61c
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x42ada0
lea eax, [ebp - 0x28]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x34], eax
mov ax, di
jne 0x42ada3
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042db8f
leave
ret 4
Function at 0x42b661
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x4a8
mov eax, 0x46ceb1
call fcn.0042dc0b
mov edi, ecx
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 0x10], esi
jne 0x42b683
xor eax, eax
jmp 0x42b81a
lea ecx, [ebp - 0x2a4]
push 3
mov dword [ebp - 0x2a8], ecx
lea ecx, [ebp - 0x2a8]
push eax
call fcn.0040aeb4
mov ebx, 0x104
mov dword [ebp - 4], esi
push ebx
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0042f1f0
push ebx
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.0042f1f0
add esp, 0x18
push dword [ebp - 0x2a8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.00414c25
push dword [ebp - 0x2a8]
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.00414c25
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0x46f9b8
push ebx
lea eax, [ebp - 0x114]
push eax
call fcn.00414be7
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x224]
push ecx
push 0xffffffffffffffff
push 0x42b869
push 0x42b84e
push 0x42b872
push 0x42b860
push 0x42b857
push 0x42b87b
push fcn.00425070
call eax
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x42b7fe
push 0x108
lea eax, [ebp - 0x4b4]
push esi
push eax
call fcn.0042f1f0
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x4b4]
push ecx
push esi
push 0x42b880
push esi
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push ebx
call eax
mov eax, dword [edi + 0xc]
push ebx
call eax
add esp, 0x2c
lea eax, [ebp - 0x4b0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42b7fe
cmp dword [ebp - 0x4b4], 0
je 0x42b7f1
lea eax, [ebp - 0x3a8]
mov dword [ebp - 0x3ac], eax
lea ecx, [ebp - 0x3ac]
push 3
lea eax, [ebp - 0x4b0]
push eax
call fcn.0041e39d
push dword [ebp - 0x3ac]
mov byte [ebp - 4], 1
call fcn.00425f19
mov esi, eax
lea eax, [ebp - 0x3a8]
pop ecx
cmp dword [ebp - 0x3ac], eax
je 0x42b7f1
push dword [ebp - 0x3ac]
call fcn.00432c0b
pop ecx
lea eax, [ebp - 0x4b0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x2a4]
cmp dword [ebp - 0x2a8], eax
je 0x42b818
push dword [ebp - 0x2a8]
call fcn.00432c0b
pop ecx
mov eax, esi
call fcn.0042dbb5
ret 4
Function at 0x42c66c
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cf05
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x492110]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, 0x42c162
push edi
push str.SetFileInformationByHandle
push str.kernel32.dll
push 0x494318
call fcn.0042c12a
mov esi, eax
cmp esi, edi
jne 0x42c715
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x42c6cf
mov byte [ebp - 0x20], 1
xor edx, edx
mov eax, dword [ebp - 0x20]
jmp 0x42c7c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x10b
jne 0x42c6ef
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42c6c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.0041a351
movzx edx, al
mov eax, dword [ebp - 0x18]
neg edx
pop ecx
sbb edx, edx
not edx
and edx, esi
jmp 0x42c7c5
push 0x2200000
push 0x10000
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.0042c638
mov ebx, eax
test ebx, ebx
je 0x42c749
push ebx
mov byte [ebp - 0x28], 0
call fcn.0041a351
movzx edi, al
neg edi
pop ecx
sbb edi, edi
not edi
and edi, ebx
jmp 0x42c7b6
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 3
push eax
push 0x15
push dword [ebp - 0x14]
mov ecx, esi
call dword [0x46f4d0]
call esi
test eax, eax
je 0x42c771
mov byte [ebp - 0x28], 1
xor edi, edi
jmp 0x42c7b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 1
je 0x42c78e
sub ecx, 0x31
je 0x42c78e
sub ecx, 0x25
je 0x42c78e
mov byte [ebp - 0x28], 0
jmp 0x42c7b4
push 1
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 1
push eax
push 4
push dword [ebp - 0x14]
mov ecx, esi
call dword [0x46f4d0]
call esi
test eax, eax
jne 0x42c769
mov byte [ebp - 0x28], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
call fcn.0042c16f
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4489ba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044866b

Function at 0x4489c5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004487f5
Function at 0x4558a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4558da
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0
push 0x8000
push 0x479008
call sub.SHELL32.dll_SHGetKnownFolderPath
mov esi, dword [ebp + 8]
test eax, eax
jns 0x4558e5
test esi, esi
je 0x4558da
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
mov eax, 0x57
pop esi
pop ebp
ret 8
push 0xffffffffffffffff
push esi
push dword [ebp + 0xc]
push edi
call fcn.0044d463
add esp, 0x10
mov edi, eax
test esi, esi
je 0x455901
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x456830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
test eax, eax
je 0x4568f3
xor ecx, ecx
cmp cx, word [eax]
je 0x4568f3
cmp dword [esi + 0x28], ecx
je 0x45685b
mov eax, 0xb7
pop esi
pop ebp
ret 8
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0xa0
push edi
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x28], eax
test ecx, ecx
je 0x456891
cmp ecx, 0xffffffff
je 0x456891
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
jne 0x4568ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ebx, eax
mov dword [esi + 0x28], 0
pop ebx
pop esi
pop ebp
ret 8
cmp edi, 3
jne 0x4568c7
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8
cmp edi, 2
je 0x4568d1
cmp edi, 1
jne 0x4568ea
push 0
lea ecx, [ebp + 0xc]
mov word [ebp + 8], 0xfeff
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8
mov eax, 0x57
pop esi
pop ebp
ret 8
Function at 0x457f10
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 0x34]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
test eax, eax
je 0x457f39
push 0x1b58
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebx + 0x54]
mov ecx, ebx
mov edi, 0x57
call eax
test al, al
je 0x457ffa
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x457ffa
xor ecx, ecx
cmp cx, word [eax]
je 0x457ffa
mov ecx, ebx
call fcn.00456900
mov edi, eax
test edi, edi
je 0x457f7c
cmp edi, 0xb7
jne 0x457ffa
lea eax, [ebp - 4]
mov ecx, ebx
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00454f30
mov esi, dword [ebp - 4]
mov edi, eax
test edi, edi
jne 0x457ffa
test esi, esi
jne 0x457fac
lea edi, [eax + 0xe]
jmp 0x457ffa
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457fb1
sub ecx, edx
lea eax, [ebp - 0xc]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push esi
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [ebx + 0x44], 1
mov dword [ebp + 0x18], eax
je 0x457fee
xor ecx, ecx
cmp cx, word [esi]
je 0x457fee
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x457ffa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x28], 0
test eax, eax
je 0x458014
cmp eax, 0xffffffff
je 0x458014
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x458021
push esi
call fcn.00432c0b
add esp, 4
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x45802f
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14