joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4705a0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x49a1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0046645b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0046645b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x470617
cmp word [ecx], dx
je 0x470617
mov eax, dword [0x48bd54]
push edi
dec eax
push eax
push 0x48bc40
call fcn.0047053f
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x47068a
cmp word [eax], dx
je 0x47068a
mov eax, dword [edi]
test eax, eax
je 0x47063b
cmp word [eax], dx
je 0x47063b
lea eax, [ebp - 0x10]
push eax
call fcn.0046ff1f
jmp 0x470644
lea eax, [ebp - 0x10]
push eax
call fcn.0046ffbd
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4706b4
mov eax, dword [0x48bc3c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x48b930
call fcn.0047053f
add esp, 0xc
test al, al
je 0x4706b4
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x47067f
cmp word [eax], di
je 0x47067f
lea eax, [ebp - 0x10]
push eax
call fcn.0046ff1f
pop ecx
jmp 0x4706b6
lea eax, [ebp - 0x10]
push eax
call fcn.0046ffbd
jmp 0x47067c
mov eax, dword [edi]
test eax, eax
je 0x4706a1
cmp word [eax], dx
je 0x4706a1
lea eax, [ebp - 0x10]
push eax
call fcn.0046fed4
pop ecx
jmp 0x4706b4
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x47077f
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004703c4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x47077f
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x47077f
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x47077f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x47070c
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00466ef0
test ebx, ebx
je 0x47077a
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00466ef0
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47077f
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47077f
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00474a2a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x470781
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448b53
leave
ret
Function at 0x475530
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47555d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47555d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x2cbe1670
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x29d21283
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402e9a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x431090]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402f2e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402eeb
cmp dword [ebp + 0x10], ebx
jne 0x402f22
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402e9a
test eax, eax
jne 0x402efd
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ed2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406477
cmp eax, ebx
je 0x402f35
push ebx
push dword [0x431090]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402f2e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x431090], ebx
jne 0x402f2b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402f2b
jmp 0x402f2e
Function at 0x4057af
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42d830], 0x44
push eax
xor eax, eax
push 0x42d830
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4057ea
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405b7c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42cc30
push esi
call fcn.00405fa8
push esi
call fcn.00405b2f
mov edi, eax
test edi, edi
jne 0x405b9d
xor eax, eax
jmp 0x405bef
push edi
call fcn.0040620a
test byte [0x430ff8], 0x80
je 0x405bb6
mov al, byte [edi]
test al, al
je 0x405b99
cmp al, 0x5c
je 0x405b99
sub edi, esi
jmp 0x405bce
call fcn.00406450
test eax, eax
je 0x405bc8
test byte [eax], 0x10
je 0x405b99
push esi
call fcn.00405ae2
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405bba
call fcn.00405a9b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405c7c
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405c7f
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405cae
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405cf2
test edi, edi
jne 0x405cb9
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405cec
Function at 0x405cf6
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00406477
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405d1a
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405e53
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42d9b8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42d9b8
je 0x405d5e
push 1
push 0
push esi
call fcn.00405c7f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405e59
cmp eax, edi
jg 0x405e59
mov esi, 0x42d430
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405e59
cmp eax, edi
jg 0x405e59
push esi
push ebp
push str._s_s_r_n
push 0x42d030
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x430ff0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405fca
push 4
push 0xc0000000
push esi
call fcn.00405c7f
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405e53
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405e4c
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405e4c
cmp edi, dword [esp + 0x18]
jne 0x405e4c
push str._Rename__r_n
push esi
call fcn.00405bf4
test eax, eax
jne 0x405e60
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405fa8
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42d030
push eax
call fcn.00405c40
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x431070]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aad8
push eax
call fcn.00405bf4
test eax, eax
je 0x405e17
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405e87
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405e7c
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405e19
Function at 0x405e8f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405f00
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405eef
cmp dword [ebp + 0x14], 1
je 0x405ef1
cmp dword [ebp + 0x14], 2
je 0x405ef1
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4062a3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4062c8
mov eax, dword [0x40a8a8]
cmp eax, 0xffffffff
je 0x4062bf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a8], 0xffffffff
jmp 0x40633b
cmp dword [0x42f760], ebx
je 0x40633b
cmp byte [0x42f360], bl
je 0x406307
cmp dword [0x40a8a8], 0xffffffff
jne 0x406310
push 4
push 0x40000000
push 0x42f360
call fcn.00405c7f
cmp eax, 0xffffffff
mov dword [0x40a8a8], eax
je 0x40633b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a8], 0xffffffff
je 0x40633b
push esi
mov esi, 0x42ff80
push 0x40aaf0
push esi
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp + 8]
push ebx
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [0x40a8a8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064e3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ddbc], 0
push esi
jne 0x40651a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4064f4
mov dword [ecx*4 + 0x42ddb8], eax
inc ecx
cmp ecx, 0x100
jl 0x4064ef
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40654b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ddb8]
xor eax, esi
inc ecx
dec edx
jne 0x40652d
pop edi
not eax
pop esi
ret 0xc
Function at 0x4032b4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4032d4
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x4032e6
mov dword [ebp - 0xc], 0x797700
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4032fb
mov ecx, dword [0x7a8ab8]
add ecx, eax
push ecx
call fcn.004034c2
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004034ac
test eax, eax
je 0x40349a
test byte [ebp + 0x17], 0x80
je 0x403445
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40ce58], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov byte [0x40ce40], 0xb
mov dword [ebp + 8], eax
jle 0x4034a2
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403351
mov esi, dword [ebp + 0x14]
mov edi, 0x793700
push esi
push edi
call fcn.004034ac
test eax, eax
je 0x40349a
sub dword [ebp + 0x14], esi
mov dword [0x40ce30], edi
mov dword [0x40ce34], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40ce30
mov dword [0x40ce38], edi
mov dword [0x40ce3c], eax
call fcn.00406a42
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40343d
mov esi, dword [0x40ce38]
sub esi, edi
call ebx
test byte [0x7a8b14], 1
mov edi, eax
je 0x4033f8
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x4033bf
cmp dword [ebp + 0x14], 0
jne 0x4033f8
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.0040557c
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403431
cmp dword [ebp + 0x10], 0
jne 0x403417
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.004060bc
test eax, eax
je 0x403441
add dword [ebp - 4], esi
jmp 0x403425
mov eax, dword [0x40ce38]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 4
jne 0x403374
jmp 0x4034a2
cmp dword [ebp + 0x14], 0
jg 0x403344
jmp 0x4034a2
push 0xfffffffffffffffc
jmp 0x40349c
push 0xfffffffffffffffe
jmp 0x40349c
test edi, edi
jne 0x403487
cmp dword [ebp + 0x14], edi
jle 0x4034a2
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x40345b
mov esi, ebx
mov edi, 0x793700
push esi
push edi
call fcn.004034ac
test eax, eax
je 0x40349a
push esi
push edi
push dword [ebp + 0xc]
call fcn.004060bc
test eax, eax
je 0x403441
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403451
jmp 0x4034a2
cmp dword [ebp + 0x14], esi
jge 0x40348f
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004034ac
test eax, eax
jne 0x40349f
push 0xfffffffffffffffd
pop eax
jmp 0x4034a5
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405a4b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405a9c
xor eax, eax
jmp 0x405ac3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405ac3
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405a98
call esi
pop esi
leave
ret 4

Function at 0x405afd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7a4f50], 0x44
push eax
xor eax, eax
push 0x7a4f50
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405b3c
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405b40
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405bde
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405fe5
mov edi, eax
cmp edi, 0xffffffff
je 0x405c1f
test byte [esp + 0x10], 1
push esi
je 0x405c01
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405c07
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405c10
xor eax, eax
inc eax
jmp 0x405c21
test byte [esp + 0x10], 4
jne 0x405c1f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405c26
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405ef1
test bl, 8
mov dword [ebp - 8], eax
je 0x405c65
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7a8ae8], eax
jmp 0x405de2
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405c7f
test eax, eax
je 0x405d90
test bl, 2
je 0x405d90
mov esi, 0x7a3f50
push edi
push esi
call fcn.0040651a
cmp dword [ebp + 8], 0
je 0x405c9e
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405ca4
push edi
call fcn.00405e35
cmp word [edi], 0
jne 0x405cb4
cmp word [0x7a3f50], 0x5c
jne 0x405cbf
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d85
cmp word [ebp - 0x22c], 0x2e
jne 0x405d09
cmp word [ebp - 0x22a], 0
je 0x405d68
cmp word [ebp - 0x22a], 0x2e
jne 0x405d09
cmp word [ebp - 0x228], 0
je 0x405d68
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040651a
test byte [ebp - 0x258], 0x10
je 0x405d34
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405d68
push dword [ebp + 0xc]
push edi
call fcn.00405c26
jmp 0x405d68
push dword [ebp - 4]
push edi
call fcn.00405bde
test eax, eax
jne 0x405d60
cmp dword [ebp - 4], eax
je 0x405d58
push edi
push 0xfffffffffffffff1
call fcn.0040557c
push 0
push edi
call fcn.004062da
jmp 0x405d68
inc dword [0x7a8ae8]
jmp 0x405d68
push edi
push 0xfffffffffffffff2
call fcn.0040557c
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405ce1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405d90
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405de2
cmp dword [ebp - 8], esi
jne 0x405da4
inc dword [0x7a8ae8]
jmp 0x405de2
push edi
call fcn.00406850
test eax, eax
je 0x405de2
push edi
call fcn.00405de9
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405bde
test eax, eax
jne 0x405dda
cmp dword [ebp - 4], esi
je 0x405d9c
push edi
push 0xfffffffffffffff1
call fcn.0040557c
push esi
push edi
call fcn.004062da
jmp 0x405de2
push edi
push 0xffffffffffffffe5
call fcn.0040557c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405ef1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a4750
push esi
call fcn.0040651a
push esi
call fcn.00405e94
mov edi, eax
test edi, edi
jne 0x405f12
xor eax, eax
jmp 0x405f6a
push edi
call fcn.004067a1
test byte [0x7a8a78], 0x80
je 0x405f2f
mov ax, word [edi]
test ax, ax
je 0x405f0e
cmp ax, 0x5c
je 0x405f0e
sub edi, esi
sar edi, 1
jmp 0x405f49
call fcn.00406850
test eax, eax
je 0x405f43
test byte [eax], 0x10
je 0x405f0e
push esi
call fcn.00405e35
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405f35
call fcn.00405de9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406004
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x40600a
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x406039
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a578]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a57c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406089
test edi, edi
jne 0x406046
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406083