joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449c2c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x449c43
add esp, 0xfffffff0
call fcn.00403400
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00418ee0
mov eax, dword [0x44df30]
cmp word [eax + 2], 0
jne 0x449c6b
mov eax, dword [0x44df30]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044b304
mov eax, dword [0x44dfd8]
cmp word [eax + 2], 0
jne 0x449c85
mov eax, dword [0x44dfd8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044b4fc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4111d8]
call fcn.004030c4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4111d8]
call fcn.004030c4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b0b4]
call fcn.00420cfc
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x449e0c
mov eax, dword [0x44de58]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004210cc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44ba9c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x44de58]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040bdc8
test eax, eax
je 0x449d7a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408180
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bdf0
test eax, eax
je 0x449d8e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040409c
mov eax, dword [0x44dd5c]
cmp byte [eax], 0
jne 0x449dc2
mov eax, ebx
call fcn.00449f34
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044bc78
mov eax, ebx
call fcn.0044c63c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x449e02
call fcn.00403458
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a1b4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x44fbb0]
cmp dword [eax + 0x30], 0
je 0x44a25e
cmp dword [ebx + 0x94], 0
jne 0x44a258
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44a144
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44a258
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44a21e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44a258
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413540
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44a22d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44adc0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44adf5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f1c
jmp 0x44ae02
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403e80
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44be54
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44be95
mov eax, esi
call fcn.00432820
test al, al
je 0x44be95
mov eax, dword [ebx + 0x84]
call fcn.004325c0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44be95
push 0
mov eax, dword [ebx + 0x84]
call fcn.004325c0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x436e70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18000]
push edi
or ebp, 0xffffffff
jmp 0x436e92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x436e99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x436e88
mov eax, 1
add ebx, ebx
jne 0x436eab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x436ea0
jne 0x436ebc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x436ea0
xor ecx, ecx
sub eax, 3
jb 0x436ed0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x436f42
mov ebp, eax
add ebx, ebx
jne 0x436edb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x436ee8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x436f0c
inc ecx
add ebx, ebx
jne 0x436ef8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x436eed
jne 0x436f09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x436eed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x436f2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x436f1d
jmp 0x436e8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x436f2c
add edi, ecx
jmp 0x436e8e
pop esi
mov edi, esi
mov ecx, 0x6eb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x436f4a
cmp byte [edi], 7
jne 0x436f4a
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 eax, ebx
loop 0x436f4f
lea edi, [esi + 0x34000]
mov eax, dword [edi]
or eax, eax
je 0x436fc7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x36d78]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x36e7c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x436f7c
mov ecx, edi
jns 0x436fab
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 + 0x36e80]
or eax, eax
je 0x436fc1
mov dword [ebx], eax
add ebx, 4
jmp 0x436f99
call dword [esi + 0x36e84]
popal
jmp 0x409882
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x41b8e0]
sub esp, 0x904
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x401036
cmp word [0x41b8e2], bx
je 0x401027
call eax
mov dword [0x41b8e0], eax
push eax
call fcn.004024c4
push eax
call fcn.0040951c
pop ecx
jmp 0x4010a4
push 0x27
call fcn.004024c4
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 - 0x904]
push eax
call edi
add esp, 0x14
cmp dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
jbe 0x401098
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x104]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x401063
lea eax, [ebp - 0x904]
push eax
call fcn.0040951c
pop ecx
call fcn.0040492e
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4018c7
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 + 0xc]
call fcn.0040116c
push dword [ebp + 0xc]
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.0040142a
push 0x5c
mov ecx, edi
call fcn.004017cf
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x401363
push edi
push edi
mov dword [0x41b8e4], esi
mov dword [0x41b8ec], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x41b944], 2
mov dword [0x41b8e8], eax
je 0x401924
call fcn.00408ca4
push 0xffffffffffffffff
push dword [0x41b8e8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41b8ec]
cmp eax, edi
mov dword [0x41b9d8], edi
je 0x401973
cmp eax, 1
je 0x401967
cmp eax, 2
je 0x401963
cmp eax, 3
je 0x40195f
cmp eax, 0x67
jle 0x40195a
cmp eax, 0x6b
jle 0x4019d7
push eax
push 0x14
jmp 0x4019aa
push 0x12
jmp 0x401969
push 0x13
jmp 0x401969
push 0x11
push edi
call fcn.00409600
pop ecx
pop ecx
jmp 0x4019d7
cmp dword [0x41b9e0], edi
jne 0x4019d7
lea eax, [ebp + 8]
push eax
push dword [0x41b8e8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
mov ecx, dword [ebp + 8]
je 0x40199a
cmp ecx, edi
jne 0x40199a
xor eax, eax
jmp 0x4019dc
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x4019ad
push ecx
push 0x21
push edi
jmp 0x4019cf
and ecx, 0xffff
cmp ecx, 0xe
jne 0x4019c1
cmp dword [0x41b948], 0xffffffff
je 0x4019d7
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00409600
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
Function at 0x401eb2
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 0x401ef3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x401edd
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 0x401ef3
test al, 0x10
jne 0x401ef3
push esi
jmp 0x401ed3
xor eax, eax
inc eax
pop esi
ret

Function at 0x402106
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 [0x41b900]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x40214a
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x402170
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40215b
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 0x402170
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x4021ea
cmp dword [0x41b910], 0
jne 0x4021e8
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SetProcessPreferredUILanguages
mov ebx, str.kernel32
push ebx
mov dword [0x41b910], 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 [0x41b900]
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 0x4021dd
push str.SetThreadPreferredUILanguages
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x4021e8
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 0x4024c4
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x41b0a0], ebx
je 0x4024f7
mov eax, 0x41b0a0
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x4024f7
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x41b0a0]
cmp dword [eax], ebx
jne 0x4024e0
shl esi, 4
cmp dword [esi + 0x41b0a0], ebx
jne 0x40250c
mov eax, 0x417584
jmp 0x40267e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push str.SfxString_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 - 0x64]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x4025bc
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 - 0x64]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x4025b3
call edi
test eax, eax
jne 0x4025b3
mov eax, dword [esi + 0x41b0ac]
test eax, eax
je 0x4025a8
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4025a5
push dword [esi + 0x41b0ac]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x41b0ac], edi
jmp 0x4025bb
push edi
jmp 0x4025b6
mov eax, dword [ebp - 8]
mov dword [esi + 0x41b0ac], eax
jmp 0x4025bc
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 + 0x41b0ac]
test eax, eax
jne 0x40267d
mov ebx, dword [esi + 0x41b0a4]
lea edi, [esi + 0x41b0a8]
cmp dword [edi], eax
je 0x4025f2
call fcn.0040246e
cmp eax, dword [0x41841c]
jne 0x4025f2
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 [0x41b074], 0xffffffff
pop ecx
mov dword [esi + 0x41b0ac], eax
jne 0x40265d
and dword [0x41b074], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x41b900]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x40265d
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41b074], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41b0ac]
push edi
push ebx
push 0
push dword [0x41b074]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x41b0ac]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40278b
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4027e8
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x402a0c
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x402a1c
xor eax, eax
leave
ret
test byte [0x41b948], 2
mov dword [ebp - 0x40], 0x40
jne 0x402a71
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x402a71
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x402a71
jb 0x402a4d
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x402a71
push 0x2b
call fcn.004024c4
push eax
call fcn.00409593
cmp eax, 1
pop ecx
pop ecx
je 0x402a6a
or dword [0x41b948], 0xffffffff
jmp 0x402a18
or dword [0x41b948], 2
xor eax, eax
inc eax
leave
ret

Function at 0x402eae
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.00401512
cmp dword [ebp - 4], 1
jg 0x402ecc
push 1
lea ecx, [ebp - 0xc]
call fcn.004011de
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 0x402ef0
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x402f27
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.00402ae7
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.004011ab
and word [esi + eax*2], 0
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.00401463
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x403223
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.00402aae
push 0x417688
lea ecx, [ebp - 0xc]
call fcn.00402aff
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 0x4032ff
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0040142a
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.004017cf
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.00402aff
test byte [ebp - 0x25c], 0x10
mov edi, dword [ebp - 0xc]
je 0x4032ce
push 0x417684
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4032e2
push 0x41767c
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4032e2
push edi
call fcn.00403223
pop ecx
jmp 0x4032de
push 0
push edi
call esi
test eax, eax
je 0x403322
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x403322
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403269
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x403322
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x403322
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x40332a
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 0x403330
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x41b9ec], 0
je 0x40333d
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 0x403353
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x403371
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40336d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00403223
pop ecx
pop esi
ret

Function at 0x403427
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.00401512
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x403465
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.00402ae7
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 0x4035ba
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.00401512
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00402ae7
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00402ae7
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.004011ab
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 0x40373e
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 0x40375b
xor eax, eax
jmp 0x4037b4
test al, 0x10
je 0x40376c
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x4037b4
mov eax, dword [0x41b94c]
test eax, eax
jne 0x40377e
push esi
call fcn.00403711
pop ecx
jmp 0x4037b4
cmp eax, 2
jne 0x4037b1
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x403775
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 0x403775
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x403aa8
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.00402aae
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x403ad9
push esi
lea ecx, [ebp - 0x18]
call fcn.004011de
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x403aed
cmp ax, 0x2f
jne 0x403af6
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x403b1c
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x403b0f
cmp ax, 0x5c
je 0x403b0f
dec esi
test esi, esi
jg 0x403afa
test esi, esi
je 0x403bcb
and word [edi + esi*2], 0
push edi
call fcn.00401eb2
test eax, eax
pop ecx
je 0x403b0b
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 0x403b53
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.0040373e
test eax, eax
pop ecx
pop ecx
je 0x403b53
xor esi, esi
jmp 0x403bf0
push edi
call fcn.00401eb2
test eax, eax
pop ecx
jne 0x403b6d
push edi
push 0xc
push 1
call fcn.00409600
add esp, 0xc
jmp 0x403b4c
cmp esi, ebx
jge 0x403bbf
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 0x403ba5
jmp 0x403ba4
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x403bab
cmp ax, 0x2f
je 0x403bab
inc esi
cmp word [edi + esi*2], cx
jne 0x403b94
push edi
mov word [edi + esi*2], cx
call fcn.00401eb2
test eax, eax
pop ecx
je 0x403b5e
cmp esi, dword [ebp - 4]
jl 0x403b71
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x403c10
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x403bfb
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x403bfb
cmp ax, 0x7a
ja 0x403bfb
cmp word [ecx + 2], 0x3a
jne 0x403bfb
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x403c10
push ecx
push 0xc
push 1
call fcn.00409600
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