joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ad0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x403af9
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + section..data]
inc esi
xor eax, edx
dec ecx
jne 0x403ae4
xor eax, 0xffffffff
pop esi
leave
ret 0xc

Function at 0x448000
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2d000]
push edi
or ebp, 0xffffffff
jmp 0x448022
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x448029
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x448018
mov eax, 1
add ebx, ebx
jne 0x44803b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x44804c
jne 0x44806b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44806b
dec eax
add ebx, ebx
jne 0x448058
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x448030
add ebx, ebx
jne 0x448067
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4480bd
xor ecx, ecx
sub eax, 3
jb 0x448083
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4480f2
sar eax, 1
mov ebp, eax
jmp 0x44808e
add ebx, ebx
jne 0x44808e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44805c
inc ecx
add ebx, ebx
jne 0x44809c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44805c
add ebx, ebx
jne 0x4480a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44809e
jne 0x4480ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44809e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4480dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4480ce
jmp 0x44801e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4480dc
add edi, ecx
jmp 0x44801e
pop esi
mov edi, esi
mov ecx, 0x1170
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4480fa
cmp byte [edi], 7
jne 0x4480fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4480ff
lea edi, [esi + 0x45000]
mov eax, dword [edi]
or eax, eax
je 0x448177
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4e47c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4e558]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44812c
mov ecx, edi
jns 0x44815b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4e55c]
or eax, eax
je 0x448171
mov dword [ebx], eax
add ebx, 4
jmp 0x448149
call dword [esi + 0x4e564]
mov ebp, dword [esi + 0x4e560]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4481ab
sub esp, 0xffffff80
jmp 0x413062
Function at 0x4010d8
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1104
call fcn.004760e0
mov eax, dword [0x4f2be0]
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.00474a10
push esi
lea eax, [ebp - 0x904]
push edi
push eax
call fcn.00474a10
add esp, 0x18
lea eax, [ebp - 0x1104]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00474a10
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.00476fe8
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.00474a8a
leave
ret
lea eax, [ebp - 0x904]
push eax
mov ecx, ebx
call fcn.004028fb
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.004755c9
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.00474a10
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 0x401751
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp word [edi], si
je 0x401786
cmp eax, esi
je 0x401797
cmp word [eax], si
je 0x401797
push esi
push esi
push eax
push edi
push esi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jge 0x4017db
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00474a8a
leave
ret 4
xor eax, eax
push 0x40e
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push esi
push eax
call fcn.00474a10
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 0x401786
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x401788

Function at 0x4018cd
Capabilities:
Move file

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x10
mov eax, 0x4b5969
call fcn.00475a5f
mov esi, dword [ebp + 0x80c]
mov eax, dword [ebp + 0x810]
mov ecx, dword [ebp + 0x814]
mov edx, dword [ebp + 0x818]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x1c], vtable.CResourceUnpack.0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
push edx
push ecx
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], edi
call fcn.00404e4c
test eax, eax
je 0x4019d3
push 0x4f8ce0
lea ecx, [ebp - 0x10]
call fcn.004029af
push 0x800
lea eax, [ebp]
push edi
push eax
mov byte [ebp - 4], 1
call fcn.00474a10
add esp, 0xc
push edi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004050d1
test eax, eax
je 0x401981
push 0x4d23ec
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [esi]
lea ecx, [ebp]
push ecx
push esi
call dword [eax]
jmp 0x4019af
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404ff5
test eax, eax
je 0x4019b1
push 0x4d23ec
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [esi]
lea ecx, [ebp]
push ecx
push esi
call dword [eax + 0x60]
mov ebx, eax
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push edi
lea eax, [ebp]
push eax
call esi
push 4
push edi
mov edi, dword [ebp - 0x10]
push edi
call esi
lea ecx, [edi - 0x10]
call fcn.004029d4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00474a8a
add ebp, 0x804
leave
ret 0x10
Function at 0x4019f8
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push 0
mov eax, 0x4afbb5
call fcn.00475a5f
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, ebx
je 0x401a7d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401a7d
push ebx
push esi
call fcn.00402402
pop ecx
pop ecx
test eax, eax
je 0x401a7d
push 0x4f8ce0
lea ecx, [ebp + 0xc]
call fcn.004029af
lea eax, [ebp + 0xc]
push eax
mov dword [ebp - 4], ebx
call fcn.004010d8
mov edi, dword [ebp + 0xc]
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
add esi, 0x394
push eax
mov ecx, esi
call fcn.00401df2
mov eax, dword [esi]
push ebx
push eax
call fcn.00402402
pop ecx
pop ecx
test eax, eax
jne 0x401a87
lea ecx, [edi - 0x10]
call fcn.004029d4
xor eax, eax
call fcn.00475b37
ret 8
push dword [esi]
call fcn.00472286
pop ecx
push 4
push ebx
push dword [esi]
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [edi - 0x10]
call fcn.004029d4
mov eax, dword [ebp + 0xc]
jmp 0x401a7f

Function at 0x401aaa
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401ad5
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401ad5
push 0
push esi
call fcn.00402402
pop ecx
pop ecx
test eax, eax
je 0x401ad5
push esi
call fcn.00472286
pop ecx
jmp 0x401ad7
xor eax, eax
pop esi
ret 8
Function at 0x401af0
Capabilities:
Move file

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x10
mov eax, 0x4b5969
call fcn.00475a5f
mov esi, dword [ebp + 0x80c]
mov eax, dword [ebp + 0x810]
mov ecx, dword [ebp + 0x814]
mov edx, dword [ebp + 0x818]
xor edi, edi
mov dword [ebp - 0x1c], vtable.CResourceUnpack.0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
push edx
push ecx
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], edi
call fcn.00404e4c
test eax, eax
jne 0x401b72
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00474a8a
add ebp, 0x804
leave
ret 0x10
push 0x4f8ce0
lea ecx, [ebp - 0x10]
call fcn.004029af
xor eax, eax
mov byte [ebp - 4], 1
push 0x7fe
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00474a10
push 0x800
lea eax, [ebp]
push edi
push eax
call fcn.00474a10
add esp, 0x18
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004050d1
test eax, eax
jne 0x401bcf
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404ff5
test eax, eax
je 0x401be1
push str.360SafeAssist.exe
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp]
push edi
push eax
call fcn.00402402
pop ecx
pop ecx
test eax, eax
jne 0x401c03
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004029d4
mov eax, edi
jmp 0x401b4d
lea eax, [ebp]
add esi, 0x39c
push eax
mov ecx, esi
call fcn.004028fb
push 4
push edi
push dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
push 4
push edi
push dword [ebp - 0x10]
call esi
xor edi, edi
inc edi
jmp 0x401bf1

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

Disassembly:
push 4
mov eax, 0x4afb92
call fcn.00475a5f
mov esi, ecx
test esi, esi
je 0x401dbb
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401dbb
push 0
push esi
call fcn.00402402
pop ecx
pop ecx
test eax, eax
je 0x401dbb
push 0x4f8ce0
lea ecx, [ebp - 0x10]
call fcn.004029af
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, 0x398
push eax
mov ecx, esi
call fcn.00401df2
push dword [esi]
call fcn.004022f4
push 4
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [edi - 0x10]
call fcn.004029d4
xor eax, eax
inc eax
jmp 0x401dbd
xor eax, eax
call fcn.00475b37
ret 4
Function at 0x401e3f
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x4f2be0]
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 0x401e84
xor eax, eax
jmp 0x401f14
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 0x401f08
cmp dword [esp + 0x14], 0x40
jne 0x401f08
mov eax, 0x5a4d
cmp word [esp + 0x110], ax
jne 0x401f08
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 0x401f08
push edi
lea eax, [esp + 0x18]
push eax
mov ebx, 0xf8
push ebx
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x20]
call esi
test eax, eax
je 0x401f08
cmp dword [esp + 0x14], ebx
jne 0x401f08
cmp dword [esp + 0x18], 0x4550
jne 0x401f08
cmp word [esp + 0x1e], di
je 0x401f08
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.00474a8a
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4f2be0]
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.00474a10
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0x4d251c
xor edi, edi
push 0x4d2528
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 0x402087
push 0x4d25a8
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 0x402087
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.00402402
pop ecx
pop ecx
test eax, eax
je 0x402087
lea eax, [ebp - 0x808]
push eax
call fcn.0040220c
mov esi, eax
test esi, esi
je 0x402087
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.00474a8a
leave
ret
Function at 0x402097
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004760e0
mov eax, dword [0x4f2be0]
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.00474a10
add esp, 0xc
mov esi, 0x800
push esi
lea eax, [ebp - 0x100c]
push 0x4d25d0
push eax
call fcn.004749c2
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push edi
push eax
call fcn.00476462
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push 0x4d25d8
push eax
call fcn.00476462
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push edi
push eax
call fcn.00476462
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push 0x4d2604
push eax
call fcn.00476462
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push ebx
push eax
call fcn.00476462
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push 0x4d2628
push eax
call fcn.00476462
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 0x4021ad
call fcn.00401f95
test eax, eax
je 0x402196
call fcn.00401fb2
test eax, eax
je 0x402196
push 5
xor eax, eax
push eax
push eax
push str.http:__down.360safe.com_setupbeta.exe
jmp 0x4021a1
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 0x4021ba
push 0
call fcn.004763ca
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00474a8a
leave
ret
Function at 0x402c14
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 [0x4f2be0]
xor eax, esp
mov dword [esp + 0x670], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
jne 0x402c3f
xor eax, eax
jmp 0x402dd0
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402c38
push ebx
call fcn.004754ae
pop ecx
cmp eax, 3
jbe 0x402c38
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.00474a10
xor eax, eax
push esi
push eax
mov word [esp + 0x484], ax
lea eax, [esp + 0x486]
push eax
call fcn.00474a10
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0x18
push ebx
lea eax, [esp + 0x474]
push eax
call esi
push 0x4d27d8
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 0x402dc5
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x402dbb
mov edi, 0x208
test byte [esp + 0x18], 0x10
je 0x402d61
cmp word [esp + 0x44], 0x2e
jne 0x402d20
cmp word [esp + 0x46], 0
je 0x402da4
cmp word [esp + 0x46], 0x2e
jne 0x402d20
cmp word [esp + 0x48], 0
je 0x402da4
push edi
lea eax, [esp + 0x26c]
push 0
push eax
call fcn.00474a10
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.00402c14
and dword [esp + 0x14], eax
pop ecx
jmp 0x402da4
push edi
lea eax, [esp + 0x26c]
push 0
push eax
call fcn.00474a10
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 0x402da4
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 0x402cf1
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.00474a8a
mov esp, ebp
pop ebp
ret
Function at 0x403d56
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xe8]
sub esp, 0x168
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0xe4], eax
push esi
mov esi, dword [ebp + 0xf0]
cmp dword [esi], 0
jne 0x403d83
mov dword [esi], 0x114
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x403e27
push 0x3f
push eax
mov byte [ebp + 0xa4], al
lea eax, [ebp + 0xa5]
push eax
call fcn.00474a10
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 0x403e06
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.0047b023
pop ecx
mov dword [esi + 8], eax
jmp 0x403e27
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 0x403e37
jne 0x403e8e
cmp dword [esi + 8], 2
jb 0x403e8e
push 0x118
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.00474a10
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 0x403e8e
lea ecx, [ebp - 0x78]
push ecx
call eax
test eax, eax
jne 0x403e8e
mov eax, dword [esi]
cmp eax, dword [ebp - 0x78]
jb 0x403e80
mov eax, dword [ebp - 0x78]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
call fcn.00479020
add esp, 0xc
mov ecx, dword [ebp + 0xe4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.00474a8a
add ebp, 0xe8
leave
ret

Function at 0x403fcf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
cmp dword [eax + 8], 5
jne 0x404060
cmp dword [eax + 0xc], 1
jb 0x404060
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.00474a10
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.CSDVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x404060
lea eax, [ebp - 0x78]
push str.Service_Pack_2
push eax
call fcn.00474cc6
pop ecx
pop ecx
test eax, eax
jl 0x404060
xor eax, eax
inc eax
jmp 0x404062
xor eax, eax
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.00474a8a
add ebp, 0x194
leave
ret 4