joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a3f4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0x20c], ebx
mov dword [esi + 0x210], ebx
mov dword [esi + 0x208], ebx
call fcn.0045d5f0
pop ecx
mov dword [esi + 0x214], eax
mov dword [esi + 0x204], ebx
mov ecx, dword [esi + 0x204]
mov eax, ecx
cdq
idiv dword [esi + 0x214]
mov al, byte [edx + edi]
mov byte [ecx + esi + 0x100], al
mov eax, dword [esi + 0x204]
mov cl, al
mov byte [esi + eax], cl
inc dword [esi + 0x204]
cmp dword [esi + 0x204], 0x100
jl 0x42a27b
mov dword [esi + 0x204], ebx
mov edi, 0xff
mov edx, dword [esi + 0x204]
lea ecx, [edx + esi]
movzx eax, byte [ecx + 0x100]
movzx ebx, byte [ecx]
add eax, ebx
add eax, dword [esi + 0x208]
and eax, edi
mov dword [esi + 0x208], eax
cmp edx, eax
je 0x42a30e
mov al, byte [eax + esi]
xor byte [ecx], al
mov ecx, dword [esi + 0x204]
mov eax, dword [esi + 0x208]
mov cl, byte [esi + ecx]
add eax, esi
xor byte [eax], cl
mov eax, dword [esi + 0x204]
mov ecx, dword [esi + 0x208]
mov cl, byte [esi + ecx]
add eax, esi
xor byte [eax], cl
inc dword [esi + 0x204]
cmp dword [esi + 0x204], 0x100
jl 0x42a2bc
mov ebx, dword [esp + 0x10]
push ebx
call fcn.0045d5f0
and dword [esi + 0x204], 0
pop ecx
mov dword [esi + 0x214], eax
test eax, eax
jle 0x42a3ec
mov eax, dword [esi + 0x20c]
inc eax
and eax, edi
lea edx, [eax + esi]
mov dword [esi + 0x20c], eax
movzx ecx, byte [edx]
add ecx, dword [esi + 0x210]
and ecx, edi
mov dword [esi + 0x210], ecx
cmp eax, ecx
je 0x42a392
mov al, byte [ecx + esi]
xor byte [edx], al
mov ecx, dword [esi + 0x20c]
mov eax, dword [esi + 0x210]
mov cl, byte [esi + ecx]
add eax, esi
xor byte [eax], cl
mov eax, dword [esi + 0x20c]
mov ecx, dword [esi + 0x210]
mov cl, byte [ecx + esi]
add eax, esi
xor byte [eax], cl
mov eax, dword [esi + 0x210]
movzx eax, byte [eax + esi]
mov ecx, dword [esi + 0x20c]
movzx ecx, byte [esi + ecx]
add eax, ecx
and eax, edi
mov cl, byte [eax + esi]
mov eax, dword [esi + 0x204]
add eax, ebx
mov byte [esi + 0x200], cl
movsx edx, byte [eax]
movzx ecx, cl
cmp ecx, edx
jne 0x42a3cc
mov byte [esi + 0x200], 0
mov cl, byte [esi + 0x200]
xor byte [eax], cl
inc dword [esi + 0x204]
mov eax, dword [esi + 0x204]
cmp eax, dword [esi + 0x214]
jl 0x42a340
pop edi
pop esi
mov eax, ebx
pop ebx
ret 8
jmp 0x42a24b
Function at 0x43c480
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4802fb
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b5240]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
push 4
lea eax, [esp + 0x18]
push eax
push 0x49
push 0
mov byte [esi + 0x74], 1
mov dword [esp + 0x24], 0xa
call dword [0x48d698]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x30]
mov dword [esi + 0x64], ecx
mov eax, dword [edx]
mov dword [esi + 0x68], eax
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x34], eax
jle 0x43c4fa
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x38]
lea ebp, [esi + 0x6c]
mov dword [ebp], ecx
mov edi, dword [ebx + 0xc]
mov dword [esp + 0x3c], 0
cmp edi, dword [ebx + 0x10]
jbe 0x43c519
call fcn.0045cf6d
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
nop
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x40], ecx
cmp dword [ebx + 0xc], ecx
jbe 0x43c535
call fcn.0045cf6d
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx]
test eax, eax
je 0x43c53f
cmp eax, ecx
je 0x43c548
call fcn.0045cf6d
mov eax, dword [esp + 0x18]
cmp edi, dword [esp + 0x40]
je 0x43c5fa
test eax, eax
jne 0x43c5ef
call fcn.0045cf6d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x43c56b
call fcn.0045cf6d
lea edx, [esp + 0x3c]
push edx
push ebx
mov ecx, esi
call fcn.0043b710
test al, al
jne 0x43c5c6
push 0x490
call fcn.0043d9a8
add esp, 4
mov dword [esp + 0x40], eax
xor ebx, ebx
mov dword [esp + 0x28], ebx
cmp eax, ebx
je 0x43c5aa
push edi
lea edx, [edi + 4]
push esi
lea ecx, [edx + 4]
push ecx
push edx
mov ecx, eax
call fcn.00439930
mov ebx, eax
mov dword [esp + 0x28], 0xffffffff
push edi
lea ecx, [esi + 0x24]
call fcn.0043c320
mov dword [eax], ebx
mov edx, dword [edi]
mov ebx, dword [esp + 0x30]
mov dword [esi + 0x70], edx
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x43c5f6
call fcn.0045cf6d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x43c5df
call fcn.0045cf6d
mov eax, dword [esp + 0x18]
add edi, 0xc
inc dword [esp + 0x3c]
jmp 0x43c520
mov eax, dword [eax]
jmp 0x43c561
mov eax, dword [eax]
jmp 0x43c5d5
lea edi, [esi + 4]
mov ecx, edi
call fcn.0043aac0
mov eax, dword [esp + 0x34]
cmp eax, 1
jl 0x43c63f
mov ebx, eax
nop
mov eax, dword [ebp]
cmp eax, dword [esi + 0x70]
jg 0x43c63a
push ebp
lea ecx, [esi + 0x44]
call fcn.0043c320
push ebp
lea ecx, [esi + 0x24]
mov dword [eax], 0
call fcn.0043c320
mov ecx, dword [eax]
call fcn.0043a570
inc dword [ebp]
sub ebx, 1
jne 0x43c610
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14
Function at 0x43d310
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x480549
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x4b5240]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x28], 1
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.00401918
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x18], 1
call fcn.0043d080
add esp, 4
mov byte [esp + 0x28], 2
push 0x497b94
lea ecx, [esp + 0xc]
call fcn.0040283a
mov byte [esp + 0x28], 3
mov ecx, dword [esp + 0x34]
push 0x2e
push ecx
call fcn.0045c9f8
mov ecx, dword [esp + 0x3c]
add esp, 8
test eax, eax
je 0x43d3d8
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x43d3d8
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x3c]
call fcn.00401dd0
mov byte [esp + 0x28], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x10]
call fcn.0040a821
mov byte [esp + 0x28], 3
lea ecx, [esp + 0x18]
call fcn.00401942
jmp 0x43d3e6
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x10]
call fcn.0040a821
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.004020af
mov byte [esp + 0x34], 5
push 0x491120
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00402106
add esp, 0x18
mov byte [esp + 0x28], 6
push eax
lea ecx, [esp + 0x10]
call fcn.00401f98
mov byte [esp + 0x28], 5
lea ecx, [esp + 0x18]
call fcn.00401942
mov byte [esp + 0x28], 3
lea ecx, [esp + 0x1c]
call fcn.00401942
xor ecx, ecx
mov dword [esp + 0x10], 0
cmp ecx, 0x495aa4
je 0x43d4e6
mov eax, dword [esp + 0xc]
test eax, eax
je 0x43d4e6
push 0x495aa4
push eax
lea edx, [esp + 0x18]
push edx
call fcn.0045de3c
add esp, 0xc
test eax, eax
jne 0x43d4e6
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x800
or eax, ecx
jge 0x43d49b
push 0x800
mov ecx, esi
call fcn.004017b0
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
push 0x800
push eax
call fcn.004613d0
mov eax, dword [esi]
mov ecx, dword [eax - 8]
add esp, 0xc
test eax, eax
je 0x43d4c7
push ecx
push eax
call fcn.0045d9a3
add esp, 8
test eax, eax
jl 0x43d523
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x43d523
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [esp + 0x10]
push edx
call fcn.0045e26c
add esp, 4
mov byte [esp + 0x28], 2
lea ecx, [esp + 8]
call fcn.00401942
mov byte [esp + 0x28], 1
lea ecx, [esp + 0xc]
call fcn.00401942
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x34]
call fcn.00401942
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret
push 0x80070057
call fcn.00401215
int3
Function at 0x4010d8
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1104
call fcn.00471870
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x800
push esi
xor edi, edi
lea eax, [ebp - 0x1104]
push edi
push eax
call fcn.004701a0
push esi
lea eax, [ebp - 0x904]
push edi
push eax
call fcn.004701a0
add esp, 0x18
lea eax, [ebp - 0x1104]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x100
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.004701a0
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.00401000
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x904]
push str..tmp
push eax
call fcn.00472798
pop ecx
pop ecx
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4011ab
inc edi
cmp edi, 0xa
jl 0x401142
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047021a
leave
ret
lea eax, [ebp - 0x904]
push eax
mov ecx, ebx
call fcn.0040285e
xor eax, eax
inc eax
jmp 0x40119c

Function at 0x401227
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x401234
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x18]
test eax, eax
je 0x401230
lea ecx, [esi + 8]
push ecx
push 0
push dword [esi + 0x1c]
push eax
push 0
push 0
call fcn.00470d59
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [esi + 4], eax
pop esi
mov eax, ecx
ret

Function at 0x401493
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x18]
push 8
push 0
push edi
call fcn.004701a0
add esp, 0xc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4014e8
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4014e7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], ebx
inc eax
pop ebx
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x4016fc
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp word [edi], si
je 0x401731
cmp eax, esi
je 0x401742
cmp word [eax], si
je 0x401742
push esi
push esi
push eax
push edi
push esi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jge 0x401786
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047021a
leave
ret 4
xor eax, eax
push 0x40e
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push esi
push eax
call fcn.004701a0
add esp, 0xc
push esi
push esi
push 0x104
lea eax, [ebp - 0x414]
push eax
push edi
push esi
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
jl 0x401731
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x401733

Function at 0x401cd8
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push 4
mov eax, 0x4ab346
call fcn.004711ef
mov esi, ecx
test esi, esi
je 0x401d66
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401d66
push 0
push esi
call fcn.00402346
pop ecx
pop ecx
test eax, eax
je 0x401d66
push 0x4f39f8
lea ecx, [ebp - 0x10]
call fcn.004028e9
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004010d8
mov edi, dword [ebp - 0x10]
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
add esi, 0x380
push eax
mov ecx, esi
call fcn.00401d9d
push dword [esi]
call fcn.00402238
push 4
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [edi - 0x10]
call fcn.0040290e
xor eax, eax
inc eax
jmp 0x401d68
xor eax, eax
call fcn.004712c7
ret 4
Function at 0x401dea
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x4ed820]
xor eax, esp
mov dword [esp + 0x148], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x401e2f
xor eax, eax
jmp 0x401ebf
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea ecx, [esp + 0x18]
push ecx
push 0x40
lea ecx, [esp + 0x11c]
push ecx
push eax
call esi
test eax, eax
je 0x401eb3
cmp dword [esp + 0x14], 0x40
jne 0x401eb3
mov eax, 0x5a4d
cmp word [esp + 0x110], ax
jne 0x401eb3
push edi
push edi
push dword [esp + 0x154]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esp + 0x14c]
jne 0x401eb3
push edi
lea eax, [esp + 0x18]
push eax
mov ebx, pe_nt_image_headers32
push ebx
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x20]
call esi
test eax, eax
je 0x401eb3
cmp dword [esp + 0x14], ebx
jne 0x401eb3
cmp dword [esp + 0x18], 0x4550
jne 0x401eb3
cmp word [esp + 0x1e], di
je 0x401eb3
xor edi, edi
inc edi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047021a
mov esp, ebp
pop ebp
ret

Function at 0x401f5d
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push eax
call fcn.004701a0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0x4cd5ec
xor edi, edi
push 0x4cd5f8
inc edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80c], edi
mov dword [ebp - 0x810], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x402032
push 0x4cd678
lea eax, [ebp - 0x808]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402032
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.00402346
pop ecx
pop ecx
test eax, eax
je 0x402032
lea eax, [ebp - 0x808]
push eax
call fcn.004021b7
mov esi, eax
test esi, esi
je 0x402032
push str.IsBetaVersion
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0047021a
leave
ret
Function at 0x402042
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00471870
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x1000
lea eax, [ebp - 0x100c]
push 0
push eax
call fcn.004701a0
add esp, 0xc
mov esi, 0x800
push esi
lea eax, [ebp - 0x100c]
push 0x4cd6a0
push eax
call fcn.00470149
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push edi
push eax
call fcn.00471c13
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push 0x4cd6a8
push eax
call fcn.00471c13
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push edi
push eax
call fcn.00471c13
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push str.vL
push eax
call fcn.00471c13
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push ebx
push eax
call fcn.00471c13
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push 0x4cd6f8
push eax
call fcn.00471c13
add esp, 0xc
push 0x14
push edi
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
cmp esi, 6
jne 0x402158
call fcn.00401f40
test eax, eax
je 0x402141
call fcn.00401f5d
test eax, eax
je 0x402141
push 5
xor eax, eax
push eax
push eax
push str.http:__down.360safe.com_setupbeta.exe
jmp 0x40214c
push 5
xor eax, eax
push eax
push eax
push str.http:__down.360safe.com_setup.exe
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp + 0x10], 0
je 0x402165
push 0
call fcn.00471b7b
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047021a
leave
ret
Function at 0x402b58
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x674
mov eax, dword [0x4ed820]
xor eax, esp
mov dword [esp + 0x670], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
jne 0x402b83
xor eax, eax
jmp 0x402d14
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402b7c
push ebx
call fcn.00470c3e
pop ecx
cmp eax, 3
jbe 0x402b7c
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [esp + 0x270], ax
lea eax, [esp + 0x272]
push eax
mov dword [esp + 0x1c], 1
call fcn.004701a0
xor eax, eax
push esi
push eax
mov word [esp + 0x484], ax
lea eax, [esp + 0x486]
push eax
call fcn.004701a0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0x18
push ebx
lea eax, [esp + 0x474]
push eax
call esi
push 0x4cd8a8
lea eax, [esp + 0x474]
push eax
call esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x402d09
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x402cff
mov edi, 0x208
test byte [esp + 0x18], 0x10
je 0x402ca5
cmp word [esp + 0x44], 0x2e
jne 0x402c64
cmp word [esp + 0x46], 0
je 0x402ce8
cmp word [esp + 0x46], 0x2e
jne 0x402c64
cmp word [esp + 0x48], 0
je 0x402ce8
push edi
lea eax, [esp + 0x26c]
push 0
push eax
call fcn.004701a0
add esp, 0xc
push ebx
lea eax, [esp + 0x26c]
push eax
call esi
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x26c]
push eax
call esi
lea eax, [esp + 0x268]
push eax
call fcn.00402b58
and dword [esp + 0x14], eax
pop ecx
jmp 0x402ce8
push edi
lea eax, [esp + 0x26c]
push 0
push eax
call fcn.004701a0
add esp, 0xc
push ebx
lea eax, [esp + 0x26c]
push eax
call esi
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x26c]
push eax
call esi
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x402ce8
and dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402c35
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047021a
mov esp, ebp
pop ebp
ret
Function at 0x403cef
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xe8]
sub esp, 0x168
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp + 0xe4], eax
push esi
mov esi, dword [ebp + 0xf0]
cmp dword [esi], 0
jne 0x403d1c
mov dword [esi], 0x114
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x403dc0
push 0x3f
push eax
mov byte [ebp + 0xa4], al
lea eax, [ebp + 0xa5]
push eax
call fcn.004701a0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xa4]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.CurrentVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x40
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x403d9f
movsx eax, byte [ebp + 0xa4]
sub eax, 0x30
mov dword [esi + 4], eax
lea eax, [ebp + 0xa6]
push eax
mov dword [esi + 0x10], 2
call fcn.004718b1
pop ecx
mov dword [esi + 8], eax
jmp 0x403dc0
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx eax, al
mov dword [esi + 8], eax
xor eax, eax
cmp ecx, 4
seta al
mov dword [esi + 4], ecx
inc eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
cmp eax, 6
ja 0x403dd0
jne 0x403e27
cmp dword [esi + 8], 2
jb 0x403e27
push 0x118
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004701a0
add esp, 0xc
push str.RtlGetVersion
push str.ntdll.dll
mov dword [ebp - 0x78], 0x11c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403e27
lea ecx, [ebp - 0x78]
push ecx
call eax
test eax, eax
jne 0x403e27
mov eax, dword [esi]
cmp eax, dword [ebp - 0x78]
jb 0x403e19
mov eax, dword [ebp - 0x78]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
call fcn.00473020
add esp, 0xc
mov ecx, dword [ebp + 0xe4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0047021a
add ebp, 0xe8
leave
ret
Function at 0x4049f1
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x210], esi
test esi, esi
je 0x404ad6
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404ad6
push 0
push esi
call fcn.00402346
pop ecx
pop ecx
test eax, eax
je 0x404ad6
push dword [ebp - 0x210]
lea esi, [edi + 8]
mov ecx, esi
call fcn.0040285e
push dword [esi]
call fcn.00402238
mov dword [edi + 0x10], eax
test eax, eax
je 0x404ad6
push str.GetMiniUI4
mov dword [0x4f5498], eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404ad6
call eax
push 4
push 0
push dword [esi]
mov dword [edi + 0x14], eax
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004701a0
mov eax, dword [esi]
add esp, 0xc
push dword [eax - 0xc]
mov ecx, esi
call fcn.0040277c
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0040237f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
call edi
xor eax, eax
inc eax
jmp 0x404ad8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047021a
leave
ret 8

Function at 0x404c55
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1104
call fcn.00471870
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x800
push esi
xor edi, edi
lea eax, [ebp - 0x1104]
push edi
push eax
call fcn.004701a0
push esi
lea eax, [ebp - 0x904]
push edi
push eax
call fcn.004701a0
add esp, 0x18
push edi
push 0x1a
lea eax, [ebp - 0x1104]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404d1a
push 0x100
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.004701a0
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.00401000
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x904]
push str..tmp
push eax
call fcn.00472798
pop ecx
pop ecx
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404d2b
inc edi
cmp edi, 0xa
jl 0x404cc2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047021a
leave
ret
lea eax, [ebp - 0x904]
push eax
mov ecx, ebx
call fcn.0040285e
xor eax, eax
inc eax
jmp 0x404d1c