joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e68
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x438400
push esi
call fcn.00406281
push esi
call fcn.00405e19
mov edi, eax
test edi, edi
jne 0x405e89
xor eax, eax
jmp 0x405edb
push edi
call fcn.004064f1
test byte [0x44ba50], 0x80
je 0x405ea2
mov al, byte [edi]
test al, al
je 0x405e85
cmp al, 0x5c
je 0x405e85
sub edi, esi
push esi
call fcn.00406292
cmp eax, edi
push esi
jle 0x405ec5
call fcn.00406643
test eax, eax
je 0x405ebd
test byte [eax], 0x10
je 0x405e85
push esi
call fcn.00405dcd
jmp 0x405ea4
call fcn.00405d86
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 0x405f52
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 0x405f81
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop 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 0x405fc6
mov eax, edi
dec edi
test eax, eax
jne 0x405f8c
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405fc0
Function at 0x405fca
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00406681
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405ff6
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40613a
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43ad88], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x43ad88
je 0x40603a
push 1
push 0
push esi
call fcn.00405f52
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406140
cmp eax, edi
jg 0x406140
mov esi, 0x43a800
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406140
cmp eax, edi
jg 0x406140
push esi
push ebp
push str._s_s_r_n
push 0x43a400
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call fcn.0040629f
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40613a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x406122
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x406116
push str._Rename__r_n
push edi
call fcn.00405ee0
test eax, eax
jne 0x406147
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call fcn.00406281
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x43a400
push eax
call fcn.00405f2c
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x44bad0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40a9d0
push eax
call fcn.00405ee0
test eax, eax
je 0x4060fd
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x406170
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x406163
sub eax, edi
jmp 0x4060ff
Function at 0x406174
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4061d8
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4061c7
cmp dword [ebp + 0x14], 1
je 0x4061c9
cmp dword [ebp + 0x14], 2
je 0x4061c9
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x40658a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4065af
mov eax, dword [0x40a8cc]
cmp eax, 0xffffffff
je 0x4065a6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8cc], 0xffffffff
jmp 0x406622
cmp dword [0x43b9a0], ebx
je 0x406622
cmp byte [0x43b5a0], bl
je 0x4065ee
cmp dword [0x40a8cc], 0xffffffff
jne 0x4065f7
push 4
push 0x40000000
push 0x43b5a0
call fcn.00405f52
cmp eax, 0xffffffff
mov dword [0x40a8cc], eax
je 0x406622
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8cc], 0xffffffff
je 0x406622
push esi
mov esi, 0x43f9e0
push 0x40aa9c
push esi
call fcn.0040629f
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00406292
push eax
push esi
push dword [0x40a8cc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
xor esi, esi
cmp dword [0x43b18c], esi
push edi
jne 0x406722
mov ecx, 0x43b188
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4066fe
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x43b588
jl 0x4066f9
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406757
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43b188]
xor eax, esi
inc ecx
dec edx
jne 0x40673a
pop edi
pop esi
not eax
ret 0xc
Function at 0x404cae
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
push esi
xor esi, esi
cmp dword [0x59f0e8], 0x5b1
push edi
jne 0x404d47
push esi
lea eax, [ebp - 0x810]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push 0x4047d8
push esi
call fcn.004056e8
call fcn.00404f91
push esi
call fcn.004054d0
add esp, 0xc
push esi
push esi
call fcn.004054db
push esi
call fcn.0040560d
add esp, 0xc
push esi
call fcn.00405864
mov dword [esp], esi
call fcn.00404903
fstp st(0)
push esi
call fcn.0040560d
pop ecx
call fcn.0040581a
add dword [0x59f0e8], 0x1134b
push dword [0x59f0e8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x59e038], eax
call fcn.00404bf9
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x404d89
inc edi
cmp edi, 0x4f6a4
jl 0x404d70
xor edi, edi
cmp dword [0x59f0e8], esi
jbe 0x404dd5
cmp dword [0x59f0e8], 0xa8
mov eax, dword [0x59f0ec]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x59e038]
mov byte [ecx + edi], al
jne 0x404dcc
push esi
call dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
inc edi
cmp edi, dword [0x59f0e8]
jb 0x404d93
xor edi, edi
mov eax, dword [0x59f0e8]
add eax, edi
cmp eax, 0xe
jne 0x404df4
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
inc edi
cmp edi, 0x39621
jl 0x404dd7
mov edi, 0x1e6cc
push esi
push esi
call dword [sym.imp.USER32.dll_LoadMenuW]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemBuffW]
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatA]
dec edi
jne 0x404e02
call fcn.00404b3b
call ebx
cmp edi, 0x26
jne 0x404e34
call fcn.00404bdf
inc edi
cmp edi, 0x6753f
jl 0x404e28
push 0x7b
pop edi
cmp dword [0x59f0e8], 0x86
jne 0x404e81
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsProcessInJob]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push esi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push esi
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
call dword [sym.imp.KERNEL32.dll_SetFileApisToANSI]
dec edi
jne 0x404e40
push 0x4047e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404e94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80c
push ebx
push esi
xor esi, esi
cmp dword [0x59f0e8], 0x400
push edi
jne 0x404ef5
push esi
push esi
call dword [sym.imp.KERNEL32.dll__lopen]
push esi
push esi
call fcn.00405348
push esi
call fcn.004053d7
add esp, 0xc
push esi
push esi
call fcn.00405348
push esi
push esi
call fcn.004056e8
push esi
call fcn.00405874
add esp, 0x14
push esi
push esi
call fcn.0040511d
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004048e0
fstp st(0)
mov eax, dword [0x42bb14]
mov dword [0x59f0e8], eax
mov eax, dword [0x42baec]
mov dword [0x59f0ec], eax
call fcn.00404cae
xor ebx, ebx
mov edi, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp ebx, edi
jle 0x404f3c
cmp dword [esp + 0x14], 0x785074d5
jne 0x404f45
inc ebx
cmp ebx, 0x1c1b
jl 0x404f15
xor ebx, ebx
push esi
lea eax, [esp + 0x1c]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp ebx, edi
jle 0x404f71
cmp dword [esp + 0x14], 0x785074d5
jne 0x404f7a
inc ebx
cmp ebx, 0x11915
jl 0x404f47
mov eax, dword [0x59e038]
mov dword [0x59e67c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40657c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a1e0]
jne 0x406586
repz ret
jmp fcn.0040bf39
Function at 0x40d16d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00408949
and dword [ebp - 4], 0
cmp dword [0x42c708], 0
mov ebx, eax
jne 0x40d21e
push 0x401ddc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d2cf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401dd0
push edi
call esi
test eax, eax
je 0x40d2cf
push eax
call fcn.004088d7
mov dword [esp], 0x401dc0
push edi
mov dword [0x42c708], eax
call esi
push eax
call fcn.004088d7
mov dword [esp], 0x401dac
push edi
mov dword [0x42c70c], eax
call esi
push eax
call fcn.004088d7
mov dword [esp], 0x401d90
push edi
mov dword [0x42c710], eax
call esi
push eax
call fcn.004088d7
pop ecx
mov dword [0x42c718], eax
test eax, eax
je 0x40d21e
push 0x401d78
push edi
call esi
push eax
call fcn.004088d7
pop ecx
mov dword [0x42c714], eax
mov eax, dword [0x42c714]
cmp eax, ebx
je 0x40d276
cmp dword [0x42c718], ebx
je 0x40d276
push eax
call fcn.00408952
push dword [0x42c718]
mov esi, eax
call fcn.00408952
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d276
test edi, edi
je 0x40d276
call esi
test eax, eax
je 0x40d26d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d26d
test byte [ebp - 0xc], 1
jne 0x40d276
or dword [ebp + 0x10], 0x200000
jmp 0x40d2af
mov eax, dword [0x42c70c]
cmp eax, ebx
je 0x40d2af
push eax
call fcn.00408952
pop ecx
test eax, eax
je 0x40d2af
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d2af
mov eax, dword [0x42c710]
cmp eax, ebx
je 0x40d2af
push eax
call fcn.00408952
pop ecx
test eax, eax
je 0x40d2af
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42c708]
call fcn.00408952
pop ecx
test eax, eax
je 0x40d2cf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d2d1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4016fe
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.004087d2
push dword [ebp + 0xc]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.004014ed
push 0x5c
mov ecx, edi
call fcn.004015ed
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x401460
push edi
push edi
mov dword [0x41a5b8], esi
mov dword [0x41a5c0], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x41a5e8], 2
mov dword [0x41a5bc], eax
je 0x40175b
call fcn.00407969
push 0xffffffffffffffff
push dword [0x41a5bc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41a5c0]
cmp eax, edi
mov dword [0x41a654], edi
je 0x4017ab
cmp eax, 1
je 0x40179f
cmp eax, 2
je 0x40179b
cmp eax, 3
je 0x401797
cmp eax, 0x67
jle 0x401791
cmp eax, 0x6a
jle 0x401800
push eax
push 0x14
push edi
jmp 0x4017f8
push 0x12
jmp 0x4017a1
push 0x13
jmp 0x4017a1
push 0x11
push edi
call fcn.0040783d
pop ecx
pop ecx
jmp 0x401800
cmp dword [0x41a658], edi
jne 0x401800
lea eax, [ebp + 8]
push eax
push dword [0x41a5bc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
mov ecx, dword [ebp + 8]
je 0x4017d2
cmp ecx, edi
jne 0x4017d2
xor eax, eax
jmp 0x401805
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x4017e4
push ecx
push 0x21
jmp 0x401794
and ecx, 0xffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.0040783d
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8

Function at 0x401b80
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 0x401bc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x401ba3
push eax
jmp 0x401bb7
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401bc1
test al, 0x10
jne 0x401bc1
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
xor eax, eax
inc eax
pop esi
ret
Function at 0x401fa8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x402128
push str.STATIC
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402128
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 0xe
je 0x402128
push 0x415398
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetMenu]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx eax, ax
push eax
xor esi, esi
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
cmp ebx, esi
je 0x402128
push ebx
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x402128
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x402128
push ebx
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, 0x10
jb 0x402128
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
push dword [ebp - 0x10]
mov edi, eax
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
push eax
push esi
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x402121
cmp dword [ebp - 8], esi
je 0x402121
lea eax, [ebp - 0xc]
push eax
push 0x4168b8
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x402128
lea edx, [ebp - 4]
push edx
mov dword [ebp - 4], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp dword [ebp - 4], esi
je 0x402113
push dword [ebp - 4]
call fcn.00401e7d
pop ecx
lea ecx, [ebp - 0x28]
push ecx
push 0x18
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
push 6
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp - 4]
push esi
push 0x172
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
jmp 0x40212a
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4026cb
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x412e71
call fcn.00412810
sub esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.004015d5
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 1
jg 0x4026f4
push 1
lea ecx, [ebp - 0x18]
call fcn.004013bd
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 - 0x18]
push eax
call esi
test eax, eax
jne 0x40271c
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40274f
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0x18]
call fcn.0040212f
push eax
push ebx
call esi
lea ecx, [ebp - 0x18]
call fcn.004023a4
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00401526
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x402b17
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x412ef2
call fcn.00412810
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040236b
and dword [ebp - 4], 0
push 0x4153b4
lea ecx, [ebp - 0x18]
call fcn.004023bc
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402bfe
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.004014ed
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.004015ed
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x18]
call fcn.004023bc
test byte [ebp - 0x268], 0x10
je 0x402bc9
push 0x4153b0
lea eax, [ebp - 0x23c]
push eax
call ebx
test eax, eax
je 0x402be1
push 0x4153a8
lea eax, [ebp - 0x23c]
push eax
call ebx
test eax, eax
je 0x402be1
push dword [ebp - 0x18]
call fcn.00402b17
pop ecx
jmp 0x402bdd
push 0
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x402c1b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402c1b
lea eax, [ebp - 0x268]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402b6d
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402c1b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402c1b
xor esi, esi
inc esi
jmp 0x402c1d
xor esi, esi
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402c3b
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x41a660], 0
je 0x402c48
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 0x402c5e
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x402c7c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402c78
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00402b17
pop ecx
pop esi
ret

Function at 0x402ee8
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x412f5a
call fcn.00412810
sub esp, 0x18
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call esi
lea ecx, [ebp - 0x24]
mov edi, eax
call fcn.004015d5
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
call fcn.0040212f
inc edi
push edi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.0040212f
push eax
push dword [ebp + 0xc]
call esi
lea ecx, [ebp - 0x24]
call fcn.004023a4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.004014bb
push dword [ebp - 0x24]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40303f
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 0x40305c
xor eax, eax
jmp 0x4030b5
test al, 0x10
je 0x40306d
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x4030b5
mov eax, dword [0x41a5ec]
test eax, eax
je 0x4030a9
cmp eax, 2
jne 0x4030b2
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4030a9
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
jge 0x4030b2
push esi
call fcn.00403012
pop ecx
jmp 0x4030b5
xor eax, eax
inc eax
pop esi
leave
ret