joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47bfc0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
xor ecx, ecx
mov eax, dword [edi]
mov cx, word [eax + 0x14]
lea esi, [ecx + eax + 0x18]
mov ecx, dword [edi + 0x3c]
push ecx
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x1c], eax
call fcn.0047c110
push esi
push edi
mov dword [esp + 0x28], eax
call fcn.0047c120
mov ecx, dword [edi]
mov dword [esp + 0x2c], eax
mov edx, dword [esi + 0x24]
mov eax, 1
add esp, 0x10
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0
add esi, 0x28
cmp word [ecx + 6], ax
mov dword [esp + 0x10], eax
jbe 0x47c0db
mov ecx, dword [edi + 0x3c]
mov eax, dword [esi + 8]
push ecx
push eax
mov dword [esp + 0x34], eax
call fcn.0047c110
push esi
push edi
mov ebx, eax
call fcn.0047c120
mov edx, dword [esp + 0x24]
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, ebx
je 0x47c085
mov eax, dword [esp + 0x1c]
add eax, edx
cmp eax, ebx
ja 0x47c085
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.0047c150
add esp, 8
test eax, eax
je 0x47c0fb
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebp
mov eax, dword [esi + 0x24]
mov dword [esp + 0x20], eax
jmp 0x47c0ba
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x20]
test eax, 0x2000000
je 0x47c0a3
test ecx, 0x2000000
je 0x47c0a3
or ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x47c0ae
or eax, ecx
and eax, 0xfdffffff
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
sub ebp, edx
add ebp, eax
mov dword [esp + 0x1c], ebp
mov ecx, dword [edi]
mov eax, dword [esp + 0x10]
xor edx, edx
inc eax
mov dx, word [ecx + 6]
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x47c021
mov eax, 1
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0047c150
add esp, 8
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret

Function at 0x484590
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7c40b4]
xor edx, edx
cmp eax, edx
jne 0x4845b6
xor eax, eax
mov byte [eax + 0x7c3fb4], al
inc eax
cmp eax, 0x100
jl 0x48459e
mov dword [0x7c40b4], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7c3fb4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x484647
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x48461a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4845e8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4846c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x484713
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4846fa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48b0c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b88ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0048b9e0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x75421c
call fcn.004aa094
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x48b153
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004aa094
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x48b14c
push 0
mov ecx, eax
call fcn.004821c0
mov dword [esi + 0xc], eax
jmp 0x48b155
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x48b155
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4ac721
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ac759
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004aa7ae
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004aa786
jmp 0x4ac765
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ade13
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ade55
call fcn.004b38d0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ade55
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ade4c
xor eax, eax
jmp 0x4ade5d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ade63
pop edi
pop esi
pop ebx
ret 4
Function at 0x4b3e00
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b3e2e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b3e4c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b3d66
jmp 0x4b3e4c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b3e4c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b3d66
test edi, edi
mov eax, edi
jne 0x4b3e36
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x900
push ebx
push esi
push edi
push 0x27
call fcn.00401f9d
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esi]
push eax
lea eax, [ebp - 0x900]
push eax
call edi
and dword [ebp + 8], 0
add esp, 0x14
cmp dword [esi + 0x10], 0
jbe 0x401070
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x100]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x900]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x40103b
lea eax, [ebp - 0x900]
push eax
call fcn.004076a8
pop ecx
call fcn.00403e0d
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40150b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 8]
call fcn.00408726
push dword [ebp + 0xc]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.00401329
push 0x5c
mov ecx, edi
call fcn.00401429
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x40129c
push edi
push edi
mov dword [0x417720], esi
mov dword [0x417728], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x417768], 2
mov dword [0x417724], eax
je 0x401568
call fcn.0040786b
push 0xffffffffffffffff
push dword [0x417724]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x417728]
cmp eax, edi
mov dword [0x4177dc], edi
je 0x4015b7
cmp eax, 1
je 0x4015ab
cmp eax, 2
je 0x4015a7
cmp eax, 3
je 0x4015a3
cmp eax, 0x67
jle 0x40159e
cmp eax, 0x6a
jle 0x40161b
push eax
push 0x14
jmp 0x4015ee
push 0x12
jmp 0x4015ad
push 0x13
jmp 0x4015ad
push 0x11
push edi
call fcn.00407776
pop ecx
pop ecx
jmp 0x40161b
cmp dword [0x4177e4], edi
jne 0x40161b
lea eax, [ebp + 8]
push eax
push dword [0x417724]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
mov ecx, dword [ebp + 8]
je 0x4015de
cmp ecx, edi
jne 0x4015de
xor eax, eax
jmp 0x401620
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x4015f1
push ecx
push 0x21
push edi
jmp 0x401613
and ecx, 0xffff
cmp ecx, 0xe
jne 0x401605
cmp dword [0x41776c], 0xffffffff
je 0x40161b
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00407776
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8

Function at 0x401986
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4019c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x4019b1
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4019c7
test al, 0x10
jne 0x4019c7
push esi
jmp 0x4019a7
xor eax, eax
inc eax
pop esi
ret
Function at 0x401bdf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov ebx, eax
movzx eax, word [0x41772c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x401c23
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x401c49
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x401c34
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401c49
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x401cc3
cmp dword [0x41773c], 0
jne 0x401cc1
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SetProcessPreferredUILanguages
mov ebx, str.kernel32
push ebx
mov dword [0x41773c], 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0
mov dword [ebp - 4], eax
movzx eax, word [0x41772c]
push 0x409
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
cmp dword [ebp - 4], 0
jne 0x401cb6
push str.SetThreadPreferredUILanguages
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x401cc1
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call dword [ebp - 4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f9d
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x417058], ebx
je 0x401fd0
mov eax, 0x417058
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x401fd0
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x417058]
cmp dword [eax], ebx
jne 0x401fb9
shl esi, 4
cmp dword [esi + 0x417058], ebx
jne 0x401fe5
mov eax, 0x41335c
jmp 0x402157
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x68]
push str.7zSfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x68]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x402095
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x68]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x40208c
call edi
test eax, eax
jne 0x40208c
mov eax, dword [esi + 0x417064]
test eax, eax
je 0x402081
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40207e
push dword [esi + 0x417064]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x417064], edi
jmp 0x402094
push edi
jmp 0x40208f
mov eax, dword [ebp - 8]
mov dword [esi + 0x417064], eax
jmp 0x402095
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x417064]
test eax, eax
jne 0x402156
mov ebx, dword [esi + 0x41705c]
lea edi, [esi + 0x417060]
cmp dword [edi], eax
je 0x4020cb
call fcn.00401f47
cmp eax, dword [0x414060]
jne 0x4020cb
mov ebx, dword [edi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [0x417054], 0xffffffff
pop ecx
mov dword [esi + 0x417064], eax
jne 0x402136
and dword [0x417054], 0
push 0x1f
lea eax, [ebp - 0xa8]
push eax
movzx eax, word [0x41772c]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x402136
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x417054], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x417064]
push edi
push ebx
push 0
push dword [0x417054]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x417064]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40245a
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x40246a
xor eax, eax
leave
ret
test byte [0x41776c], 2
mov dword [ebp - 0x40], 0x40
jne 0x4024bf
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4024bf
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x4024bf
jb 0x40249b
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x4024bf
push 0x2b
call fcn.00401f9d
push eax
call fcn.00407717
cmp eax, 1
pop ecx
pop ecx
je 0x4024b8
or dword [0x41776c], 0xffffffff
jmp 0x402466
or dword [0x41776c], 2
xor eax, eax
inc eax
leave
ret

Function at 0x4027c7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.00401411
cmp dword [ebp - 4], 1
jg 0x4027e5
push 1
lea ecx, [ebp - 0xc]
call fcn.0040112b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
push dword [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x402809
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x402840
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.00402535
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.00401117
and word [esi + eax*2], 0
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.00401362
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x402b79
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.004024fc
push 0x413454
lea ecx, [ebp - 0xc]
call fcn.0040254d
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402c55
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00401329
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00401429
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040254d
test byte [ebp - 0x25c], 0x10
mov edi, dword [ebp - 0xc]
je 0x402c24
push 0x413450
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402c38
push 0x413448
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402c38
push edi
call fcn.00402b79
pop ecx
jmp 0x402c34
push 0
push edi
call esi
test eax, eax
je 0x402c78
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402c78
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402bbf
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402c78
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402c78
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x402c80
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
cmp dword [0x4177f0], 0
je 0x402c93
xor eax, eax
inc eax
ret
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402ca9
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x402cc7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402cc3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00402b79
pop ecx
pop esi
ret

Function at 0x402d7d
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.00401411
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x402dbb
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.00402535
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
and word [eax + esi*2], 0
mov dword [edi + 4], esi
mov eax, edi
pop edi
pop esi
ret
Function at 0x402f10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.00401411
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00402535
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00402535
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.00401117
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40301a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403037
xor eax, eax
jmp 0x403090
test al, 0x10
je 0x403048
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x403090
mov eax, dword [0x417770]
test eax, eax
jne 0x40305a
push esi
call fcn.00402fed
pop ecx
jmp 0x403090
cmp eax, 2
jne 0x40308d
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x403051
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jl 0x403051
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x403354
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.004024fc
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x403385
push esi
lea ecx, [ebp - 0x18]
call fcn.0040112b
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x403399
cmp ax, 0x2f
jne 0x4033a2
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x4033c8
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x4033bb
cmp ax, 0x5c
je 0x4033bb
dec esi
test esi, esi
jg 0x4033a6
test esi, esi
je 0x403477
and word [edi + esi*2], 0
push edi
call fcn.00401986
test eax, eax
pop ecx
je 0x4033b7
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4033ff
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.0040301a
test eax, eax
pop ecx
pop ecx
je 0x4033ff
xor esi, esi
jmp 0x40349c
push edi
call fcn.00401986
test eax, eax
pop ecx
jne 0x403419
push edi
push 0xc
push 1
call fcn.00407776
add esp, 0xc
jmp 0x4033f8
cmp esi, ebx
jge 0x40346b
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x403451
jmp 0x403450
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x403457
cmp ax, 0x2f
je 0x403457
inc esi
cmp word [edi + esi*2], cx
jne 0x403440
push edi
mov word [edi + esi*2], cx
call fcn.00401986
test eax, eax
pop ecx
je 0x40340a
cmp esi, dword [ebp - 4]
jl 0x40341d
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x4034bc
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x4034a7
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x4034a7
cmp ax, 0x7a
ja 0x4034a7
cmp word [ecx + 2], 0x3a
jne 0x4034a7
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x4034bc
push ecx
push 0xc
push 1
call fcn.00407776
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret